@pumped-fn/agent-sdk-claude 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Pumped-fn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @pumped-fn/agent-sdk-claude
2
+
3
+ Claude CLI model provider for `@pumped-fn/agent-sdk`.
4
+
5
+ ```ts
6
+ import { createScope } from "@pumped-fn/lite"
7
+ import { agent } from "@pumped-fn/agent-sdk"
8
+ import { claude } from "@pumped-fn/agent-sdk-claude"
9
+
10
+ const triage = agent({ name: "triage" })
11
+ const scope = createScope({ tags: [claude()] })
12
+ const ctx = scope.createContext()
13
+
14
+ await ctx.exec({ flow: triage.turn, input: { prompt: "Triage this ticket." } })
15
+ ```
16
+
17
+ `claude()` returns a lazy `model` tag. The Claude harness is created only when the model is first used, and the agent can be run with `codex()` or `model(fake)` instead without changing the graph.
package/dist/index.cjs ADDED
@@ -0,0 +1,27 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let _pumped_fn_agent_sdk = require("@pumped-fn/agent-sdk");
3
+ //#region src/index.ts
4
+ function claude(options = {}) {
5
+ return (0, _pumped_fn_agent_sdk.model)(lazyModel(() => (0, _pumped_fn_agent_sdk.claudeHarness)(options)));
6
+ }
7
+ function lazyModel(create) {
8
+ let target;
9
+ return { complete(ctx, request) {
10
+ target ??= create();
11
+ return target.complete(ctx, request);
12
+ } };
13
+ }
14
+ //#endregion
15
+ exports.claude = claude;
16
+ Object.defineProperty(exports, "claudeCliWorker", {
17
+ enumerable: true,
18
+ get: function() {
19
+ return _pumped_fn_agent_sdk.claudeCliWorker;
20
+ }
21
+ });
22
+ Object.defineProperty(exports, "claudeHarness", {
23
+ enumerable: true,
24
+ get: function() {
25
+ return _pumped_fn_agent_sdk.claudeHarness;
26
+ }
27
+ });
@@ -0,0 +1,9 @@
1
+ import { ClaudeCliWorkerOptions, CliHarnessOptions, CliHarnessOptions as CliHarnessOptions$1, Model, claudeCliWorker, claudeHarness } from "@pumped-fn/agent-sdk";
2
+ import { Lite } from "@pumped-fn/lite";
3
+
4
+ //#region src/index.d.ts
5
+ type ClaudeOptions = CliHarnessOptions$1;
6
+ declare function claude(options?: ClaudeOptions): Lite.Tagged<Model>;
7
+ //#endregion
8
+ export { type ClaudeCliWorkerOptions, ClaudeOptions, type CliHarnessOptions, claude, claudeCliWorker, claudeHarness };
9
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;KAGY,aAAA,GAAgB,mBAAiB;AAAA,iBAE7B,MAAA,CAAO,OAAA,GAAS,aAAA,GAAqB,IAAA,CAAK,MAAA,CAAO,KAAA"}
@@ -0,0 +1,9 @@
1
+ import { ClaudeCliWorkerOptions, CliHarnessOptions, CliHarnessOptions as CliHarnessOptions$1, Model, claudeCliWorker, claudeHarness } from "@pumped-fn/agent-sdk";
2
+ import { Lite } from "@pumped-fn/lite";
3
+
4
+ //#region src/index.d.ts
5
+ type ClaudeOptions = CliHarnessOptions$1;
6
+ declare function claude(options?: ClaudeOptions): Lite.Tagged<Model>;
7
+ //#endregion
8
+ export { type ClaudeCliWorkerOptions, ClaudeOptions, type CliHarnessOptions, claude, claudeCliWorker, claudeHarness };
9
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;KAGY,aAAA,GAAgB,mBAAiB;AAAA,iBAE7B,MAAA,CAAO,OAAA,GAAS,aAAA,GAAqB,IAAA,CAAK,MAAA,CAAO,KAAA"}
package/dist/index.mjs ADDED
@@ -0,0 +1,16 @@
1
+ import { claudeCliWorker, claudeHarness, claudeHarness as claudeHarness$1, model } from "@pumped-fn/agent-sdk";
2
+ //#region src/index.ts
3
+ function claude(options = {}) {
4
+ return model(lazyModel(() => claudeHarness$1(options)));
5
+ }
6
+ function lazyModel(create) {
7
+ let target;
8
+ return { complete(ctx, request) {
9
+ target ??= create();
10
+ return target.complete(ctx, request);
11
+ } };
12
+ }
13
+ //#endregion
14
+ export { claude, claudeCliWorker, claudeHarness };
15
+
16
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["claudeHarness"],"sources":["../src/index.ts"],"sourcesContent":["import { claudeHarness, model, type CliHarnessOptions, type Model } from \"@pumped-fn/agent-sdk\"\nimport type { Lite } from \"@pumped-fn/lite\"\n\nexport type ClaudeOptions = CliHarnessOptions\n\nexport function claude(options: ClaudeOptions = {}): Lite.Tagged<Model> {\n return model(lazyModel(() => claudeHarness(options)))\n}\n\nfunction lazyModel(create: () => Model): Model {\n let target: Model | undefined\n return {\n complete(ctx, request) {\n target ??= create()\n return target.complete(ctx, request)\n },\n }\n}\n\nexport { claudeCliWorker, claudeHarness, type ClaudeCliWorkerOptions, type CliHarnessOptions } from \"@pumped-fn/agent-sdk\"\n"],"mappings":";;AAKA,SAAgB,OAAO,UAAyB,CAAC,GAAuB;CACtE,OAAO,MAAM,gBAAgBA,gBAAc,OAAO,CAAC,CAAC;AACtD;AAEA,SAAS,UAAU,QAA4B;CAC7C,IAAI;CACJ,OAAO,EACL,SAAS,KAAK,SAAS;EACrB,WAAW,OAAO;EAClB,OAAO,OAAO,SAAS,KAAK,OAAO;CACrC,EACF;AACF"}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@pumped-fn/agent-sdk-claude",
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "description": "Claude CLI model provider for @pumped-fn/agent-sdk",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.cts",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/index.d.mts",
14
+ "default": "./dist/index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.cts",
18
+ "default": "./dist/index.cjs"
19
+ }
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "scripts": {
31
+ "build": "tsdown --config-loader tsx",
32
+ "typecheck": "tsgo --noEmit",
33
+ "test": "vitest run",
34
+ "test:watch": "vitest"
35
+ },
36
+ "peerDependencies": {
37
+ "@pumped-fn/agent-sdk": "^1.0.0",
38
+ "@pumped-fn/lite": "^3.1.0"
39
+ },
40
+ "devDependencies": {
41
+ "@pumped-fn/agent-sdk": "workspace:*",
42
+ "@pumped-fn/lite": "workspace:*",
43
+ "@types/node": "catalog:",
44
+ "@typescript/native-preview": "catalog:",
45
+ "tsdown": "catalog:",
46
+ "typescript": "catalog:",
47
+ "vite": "catalog:",
48
+ "vitest": "catalog:"
49
+ },
50
+ "license": "MIT",
51
+ "repository": {
52
+ "type": "git",
53
+ "directory": "packages/agent-sdk-claude",
54
+ "url": "git+https://github.com/pumped-fn/pumped-fn.git"
55
+ }
56
+ }