mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2026-01-25 03:54:58 -06:00
nongnu: Add node-anthropic-ai-claude-agent-sdk.
* nongnu/packages/claude-code.scm (node-anthropic-ai-claude-agent-sdk): New variable.
This commit is contained in:
parent
812be2a880
commit
1cd3c57408
1 changed files with 52 additions and 0 deletions
|
|
@ -3063,3 +3063,55 @@ and documentation.")
|
|||
standardizes communication between code editors and AI coding agents.")
|
||||
(license license:asl2.0)))
|
||||
|
||||
(define-public node-anthropic-ai-claude-agent-sdk
|
||||
(package
|
||||
(name "node-anthropic-ai-claude-agent-sdk")
|
||||
(version "0.1.70")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (string-append
|
||||
"https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-"
|
||||
version ".tgz"))
|
||||
(sha256
|
||||
(base32 "0ka82q5lx18cl23lr5vxgdn00x75wwvi7lrli5s9w6569mxc20bz"))))
|
||||
(build-system node-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:tests? #f
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'patch-dependencies 'delete-dev-dependencies
|
||||
(lambda _
|
||||
(modify-json (delete-dev-dependencies))))
|
||||
(add-after 'delete-dev-dependencies 'delete-build-scripts
|
||||
(lambda _
|
||||
(with-atomic-json-file-replacement
|
||||
(lambda (pkg)
|
||||
(map (lambda (kv)
|
||||
(if (equal? (car kv) "scripts")
|
||||
(cons "scripts"
|
||||
(filter
|
||||
(lambda (s)
|
||||
(not
|
||||
(member (car s)
|
||||
'("build" "prepare"
|
||||
"prepack" "postinstall"))))
|
||||
(cdr kv)))
|
||||
kv))
|
||||
pkg)))))
|
||||
(delete 'build)
|
||||
(delete 'validate-runpath))))
|
||||
(inputs
|
||||
(list
|
||||
node-zod))
|
||||
(home-page "https://www.npmjs.com/package/@anthropic-ai/claude-agent-sdk")
|
||||
(synopsis "Claude Code agent SDK")
|
||||
(description "This package provides an SDK for building AI agents with Claude Code's
|
||||
capabilities, enabling programmatic interaction with Claude for
|
||||
autonomous code editing.")
|
||||
(properties '((substitutable? . #f)))
|
||||
(license
|
||||
(license:nonfree
|
||||
"https://code.claude.com/docs/en/legal-and-compliance"))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue