anchor-ai-sdk 0.0.1 → 0.1.1
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/README.md +97 -73
- package/dist/agents/coding/index.d.ts +1 -1
- package/dist/agents/coding/index.js +1 -1
- package/dist/agents/coding/prompts/index.js +1 -1
- package/dist/agents/coding/prompts/index.js.map +1 -1
- package/dist/agents/coding/tools.d.ts +1 -2
- package/dist/agents/coding/tools.d.ts.map +1 -1
- package/dist/agents/coding/tools.js +1 -2
- package/dist/agents/coding/tools.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,53 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
>
|
|
11
|
-
>
|
|
12
|
-
|
|
13
|
-
>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/hrithikkoduri/anchor-ai-sdk/main/assets/logo-dark.svg" />
|
|
4
|
+
<img src="https://raw.githubusercontent.com/hrithikkoduri/anchor-ai-sdk/main/assets/logo.svg" alt="Anchor" width="96" />
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<h1 align="center">Anchor</h1>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<strong>Loop-first, sandbox-first agent harness SDK.</strong><br />
|
|
12
|
+
Give it a task and a machine — it reasons, runs tools, checks its own work, and keeps the receipts.
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://www.npmjs.com/package/anchor-ai-sdk"><img src="https://img.shields.io/npm/v/anchor-ai-sdk?style=flat-square&color=0f1115" alt="npm" /></a>
|
|
17
|
+
<a href="https://github.com/hrithikkoduri/anchor-ai-sdk/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/hrithikkoduri/anchor-ai-sdk/ci.yml?style=flat-square&label=ci&color=0f1115" alt="CI" /></a>
|
|
18
|
+
<a href="https://github.com/hrithikkoduri/anchor-ai-sdk/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/anchor-ai-sdk?style=flat-square&color=0f1115" alt="license" /></a>
|
|
19
|
+
<img src="https://img.shields.io/node/v/anchor-ai-sdk?style=flat-square&color=0f1115" alt="node" />
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
Most agent harnesses give you a loop and leave the hard parts to you: a
|
|
25
|
+
context that grows until it dies, a trace you can't replay, a "done" you can't
|
|
26
|
+
trust. Anchor ships the hard parts.
|
|
27
|
+
|
|
28
|
+
- **Evidence, never vibes.** Every tool result is recorded on
|
|
29
|
+
`AgentResult.evidence`; `run_tests` stamps the tree hash it ran against and
|
|
30
|
+
`latestEvidenceForTree` ties a green run to the *exact* bytes (fail-closed
|
|
31
|
+
when the tree can't be inspected). The engine carries evidence and never
|
|
32
|
+
reads success out of a confident sentence — what to gate on it is your
|
|
33
|
+
policy, not a hidden wall.
|
|
34
|
+
- **Durable by construction.** Conversation, workspace, and the agent's own
|
|
35
|
+
notes survive folds, restarts, and budget deaths; the SDK ships the
|
|
36
|
+
resumption primitives (thread store, checkpoints, phase pauses, revival
|
|
37
|
+
planning), so resuming is wiring, not research.
|
|
38
|
+
- **Sandbox-first.** The machine is part of the design, not an afterthought:
|
|
39
|
+
one provider contract, adapters accepted by an executable conformance
|
|
40
|
+
suite.
|
|
41
|
+
|
|
42
|
+
## Out of the box
|
|
43
|
+
|
|
44
|
+
| | |
|
|
45
|
+
| --- | --- |
|
|
46
|
+
| **Agent loop with dials** | Budgets (steps / tokens / USD), repeated-call detection, silent-tool advisories — guardrails on by default, each with an off switch. Phases describe the approach — never a second gated execution engine. |
|
|
47
|
+
| **Streaming by default** | One wire path: every model call streams. Text and reasoning deltas, tool calls, compaction, checkpoints, and finishes all arrive as typed events. |
|
|
48
|
+
| **Durable memory** | `ThreadStore` carries conversation across runs; compaction is derived from the model's *real* context window; reasoning is journaled but never re-sent. |
|
|
49
|
+
| **Notes & spill storage** | A reserved `.anchor/notes.md` (git-excluded, checkpoint-carried) is the agent's durable memory across folds; oversized tool output spills to sandbox files and stays addressable instead of vanishing. |
|
|
50
|
+
| **Revival** | A dying run leaves a handoff (`request_revival`); `planRevival` + `ThreadBudget` decide how to fund the next run — **same task, phase, and budget** — and when the thread's caps are spent, a human gets the note, quoting the agent's own words on what remains. |
|
|
51
|
+
| **Snapshots & resume** | A pluggable snapshot hook (git-backed by default, push optional), phase-boundary pauses, heartbeats and cross-process cancel polling owned by the engine. |
|
|
52
|
+
| **Traces you can replay** | One fanout: one sequence number, redaction applied before *every* sink — NDJSON file, database rows, and a live projector share the same ordering. |
|
|
53
|
+
| **Sandbox plugins** | One `SandboxProvider` contract: Heyo microVMs, Docker, local. Capabilities are promises — the conformance suite holds adapters to them. Store-backed sessions give adopt-and-fallback continuity for free. |
|
|
54
|
+
| **Typed handoffs** | `finish({ handoff })` is shaped by *your* JSON schema; the engine declares the parameter, carries the object, and never interprets it. |
|
|
55
|
+
| **Priced & windowed models** | `llmFromCatalog` reads live prices and the genuine context window from the provider catalog — budgets and compaction configure themselves correctly. |
|
|
56
|
+
|
|
57
|
+
## Ten lines to a working agent
|
|
35
58
|
|
|
36
59
|
```bash
|
|
37
60
|
npm install anchor-ai-sdk
|
|
38
61
|
```
|
|
39
62
|
|
|
40
63
|
```ts
|
|
41
|
-
import {
|
|
42
|
-
chatAgent,
|
|
43
|
-
createLLMClient,
|
|
44
|
-
llmFromCatalog,
|
|
45
|
-
runAgent,
|
|
46
|
-
} from "anchor-ai-sdk";
|
|
64
|
+
import { chatAgent, llmFromCatalog, runAgent } from "anchor-ai-sdk";
|
|
47
65
|
|
|
48
66
|
const { llm } = await llmFromCatalog({
|
|
49
67
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
50
|
-
apiKey: process.env.OPENROUTER_KEY
|
|
68
|
+
apiKey: process.env.OPENROUTER_KEY!,
|
|
51
69
|
model: "z-ai/glm-5.3",
|
|
52
70
|
});
|
|
53
71
|
|
|
@@ -58,14 +76,13 @@ const result = await runAgent(
|
|
|
58
76
|
console.log(result.summary);
|
|
59
77
|
```
|
|
60
78
|
|
|
61
|
-
|
|
79
|
+
## Give it a machine
|
|
62
80
|
|
|
63
81
|
```ts
|
|
64
|
-
import { codingAgent,
|
|
82
|
+
import { codingAgent, runAgent } from "anchor-ai-sdk";
|
|
65
83
|
import { docker } from "anchor-ai-sdk/sandbox/docker";
|
|
66
84
|
|
|
67
|
-
const
|
|
68
|
-
const sandbox = provider.create({
|
|
85
|
+
const sandbox = docker().create({
|
|
69
86
|
repoUrl: "https://github.com/you/your-repo",
|
|
70
87
|
ref: "main",
|
|
71
88
|
});
|
|
@@ -73,44 +90,51 @@ await sandbox.start();
|
|
|
73
90
|
try {
|
|
74
91
|
const result = await runAgent(
|
|
75
92
|
{ task: "Run the tests and fix the failing case" },
|
|
76
|
-
{
|
|
77
|
-
llm: createLLMClient({
|
|
78
|
-
/* … */
|
|
79
|
-
}),
|
|
80
|
-
agent: codingAgent,
|
|
81
|
-
sandbox,
|
|
82
|
-
},
|
|
93
|
+
{ llm, agent: codingAgent, sandbox },
|
|
83
94
|
);
|
|
84
|
-
console.log(result.summary);
|
|
95
|
+
console.log(result.summary, result.checkpointRef);
|
|
85
96
|
} finally {
|
|
86
97
|
await sandbox.destroy();
|
|
87
98
|
}
|
|
88
99
|
```
|
|
89
100
|
|
|
101
|
+
Runnable versions of both snippets live in [`examples/`](https://github.com/hrithikkoduri/anchor-ai-sdk/tree/main/examples) — including
|
|
102
|
+
a non-coding agent (its own strategy and tool, no sandbox).
|
|
103
|
+
|
|
90
104
|
## Providers
|
|
91
105
|
|
|
92
|
-
| subpath
|
|
93
|
-
|
|
|
94
|
-
| `anchor-ai-sdk/sandbox/heyo`
|
|
95
|
-
| `anchor-ai-sdk/sandbox/docker` | containers on the local daemon
|
|
96
|
-
| `anchor-ai-sdk/sandbox/local`
|
|
97
|
-
| —
|
|
106
|
+
| subpath | backend | status |
|
|
107
|
+
| --- | --- | --- |
|
|
108
|
+
| `anchor-ai-sdk/sandbox/heyo` | Heyo Cloud microVMs (Firecracker) | production path; conformance + live tests |
|
|
109
|
+
| `anchor-ai-sdk/sandbox/docker` | containers on the local daemon | conformance-tested in CI |
|
|
110
|
+
| `anchor-ai-sdk/sandbox/local` | this host, **no isolation** | dev / CI only |
|
|
111
|
+
| — | E2B, Daytona | planned |
|
|
98
112
|
|
|
99
113
|
A backend is "done" when `runSandboxConformance(provider)` from
|
|
100
|
-
`anchor-ai-sdk/testing` passes
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
`anchor-ai-sdk/testing` passes — exec fidelity, kill deadlines, env secrets,
|
|
115
|
+
checkpoints, retain/adopt, git identity, pushes, and `fork` where declared.
|
|
116
|
+
See [`src/sandbox/README.md`](https://github.com/hrithikkoduri/anchor-ai-sdk/blob/main/src/sandbox/README.md) for the provider guide.
|
|
117
|
+
|
|
118
|
+
## Proof, not promises
|
|
119
|
+
|
|
120
|
+
- **Tests:** the engine, tools, trace layer, and every provider scenario run
|
|
121
|
+
in CI — local conformance always, Docker conformance on a purpose-built
|
|
122
|
+
image. Live microVM conformance is opt-in with your own Heyo credentials
|
|
123
|
+
(the suite skips without them).
|
|
124
|
+
- **Genericity guards:** executable rules keep the package consumer-neutral —
|
|
125
|
+
no product nouns, no env reads, SDKs behind subpaths. They run in the same
|
|
126
|
+
suite as everything else.
|
|
127
|
+
- **Evaluation:** Anchor vs mini-swe-agent on SWE-bench Lite — same
|
|
128
|
+
container, same model, same official grader — resolved the same 7/10 at
|
|
129
|
+
roughly **one-third of the cost**
|
|
130
|
+
([`evals/benchmarks/swe-bench/results/comparison.md`](https://github.com/hrithikkoduri/anchor-ai-sdk/blob/main/evals/benchmarks/swe-bench/results/comparison.md)).
|
|
131
|
+
|
|
132
|
+
## Status
|
|
133
|
+
|
|
134
|
+
**Early alpha (0.x).** The API will move before 1.0 — pin exact versions. The
|
|
135
|
+
[`DECISIONS.md`](https://github.com/hrithikkoduri/anchor-ai-sdk/blob/main/DECISIONS.md) is the engineering log: every API has a written
|
|
136
|
+
reason, and the reasons moved with the code when this repo was extracted from
|
|
137
|
+
its monorepo.
|
|
114
138
|
|
|
115
139
|
- Repo / issues: [github.com/hrithikkoduri/anchor-ai-sdk](https://github.com/hrithikkoduri/anchor-ai-sdk)
|
|
116
140
|
- Docs: [anchor-sdk.dev](https://anchor-sdk.dev) (coming)
|
|
@@ -7,7 +7,7 @@ export { codingPhases } from "./phases.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* The coding agent — strategy + toolbox. Pass `testCommand` when the repo's
|
|
9
9
|
* canonical suite is known (CLI or repo config); otherwise run_tests detects
|
|
10
|
-
* one
|
|
10
|
+
* one; either way run_tests tags the run as the repo's full-suite evidence.
|
|
11
11
|
*/
|
|
12
12
|
export declare function createCodingAgent(opts?: {
|
|
13
13
|
testCommand?: string;
|
|
@@ -7,7 +7,7 @@ export { codingPhases } from "./phases.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* The coding agent — strategy + toolbox. Pass `testCommand` when the repo's
|
|
9
9
|
* canonical suite is known (CLI or repo config); otherwise run_tests detects
|
|
10
|
-
* one
|
|
10
|
+
* one; either way run_tests tags the run as the repo's full-suite evidence.
|
|
11
11
|
*/
|
|
12
12
|
export function createCodingAgent(opts = {}) {
|
|
13
13
|
return {
|
|
@@ -28,7 +28,7 @@ export function buildCodingPrompt(options = {}) {
|
|
|
28
28
|
{
|
|
29
29
|
title: "Approach phases",
|
|
30
30
|
body: [
|
|
31
|
-
"These describe your approach, not prerequisites. Choose the phases that fit, skip or revisit when appropriate, and conclude from any phase.
|
|
31
|
+
"These describe your approach, not prerequisites. Choose the phases that fit, skip or revisit them when appropriate, and conclude from any phase. When your work shifts between kinds of activity — investigating, changing code, verifying, answering — call set_phase once to record the new phase; it labels your approach (it never authorizes or blocks anything) and keeps the thread's timeline honest.",
|
|
32
32
|
...phases.map((phase) => `- ${phase.id}: ${phase.goal}${phase.guidance ? ` ${phase.guidance}` : ""}`),
|
|
33
33
|
].join("\n"),
|
|
34
34
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/agents/coding/prompts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AActD;+EAC+E;AAC/E,MAAM,UAAU,iBAAiB,CAAC,OAAO,GAAwB,EAAE;IACjE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC;IAC9C,OAAO;QACL,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,SAAS,IAAI,SAAS,EAAE;QAC5D,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE;QAC7C,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,IAAI,QAAQ,EAAE;QACzD;YACE,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,OAAO,CAAC,cAAc,IAAI,cAAc;SAC/C;QACD;YACE,KAAK,EAAE,yBAAyB;YAChC,IAAI,EAAE,OAAO,CAAC,YAAY,IAAI,YAAY;SAC3C;QACD;YACE,KAAK,EAAE,eAAe;YACtB,IAAI,EACF,0FAA0F;gBAC1F,sFAAsF;gBACtF,sEAAsE;gBACtE,2FAA2F;SAC9F;QACD;YACE,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE;gBACJ
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/agents/coding/prompts/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AActD;+EAC+E;AAC/E,MAAM,UAAU,iBAAiB,CAAC,OAAO,GAAwB,EAAE;IACjE,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC;IAC9C,OAAO;QACL,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,SAAS,IAAI,SAAS,EAAE;QAC5D,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,IAAI,EAAE;QAC7C,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ,IAAI,QAAQ,EAAE;QACzD;YACE,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE,OAAO,CAAC,cAAc,IAAI,cAAc;SAC/C;QACD;YACE,KAAK,EAAE,yBAAyB;YAChC,IAAI,EAAE,OAAO,CAAC,YAAY,IAAI,YAAY;SAC3C;QACD;YACE,KAAK,EAAE,eAAe;YACtB,IAAI,EACF,0FAA0F;gBAC1F,sFAAsF;gBACtF,sEAAsE;gBACtE,2FAA2F;SAC9F;QACD;YACE,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE;gBACJ,+YAA+Y;gBAC/Y,GAAG,MAAM,CAAC,GAAG,CACX,CAAC,KAAK,EAAE,EAAE,CACR,KAAK,KAAK,CAAC,EAAE,KAAK,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAC9E;aACF,CAAC,IAAI,CAAC,IAAI,CAAC;SACb;QACD,GAAG,CAAC,OAAO,CAAC,kBAAkB,IAAI,EAAE,CAAC;QACrC;YACE,KAAK,EAAE,2CAA2C;YAClD,IAAI,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE;SAC5B;QACD;YACE,KAAK,EAAE,sDAAsD;YAC7D,IAAI,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE;SAC5B;KACF;SACE,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SACxC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,OAAO,CAAC,KAAK,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC;SACvD,IAAI,CAAC,MAAM,CAAC,CAAC;AAClB,CAAC"}
|
|
@@ -12,8 +12,7 @@ import type { Tool } from "../../tools/types.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The toolbox for one coding agent. `testCommand` — when the repo's canonical
|
|
14
14
|
* suite is known from config/CLI — becomes run_tests' fallback and counts as
|
|
15
|
-
* full-suite evidence (
|
|
16
|
-
* distinction).
|
|
15
|
+
* full-suite evidence (publication policies gate on that distinction).
|
|
17
16
|
*/
|
|
18
17
|
export declare function createCodingTools(opts?: {
|
|
19
18
|
testCommand?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/agents/coding/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAOjD
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/agents/coding/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAOjD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,GAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,IAAI,EAAE,CAQ7E;AAED,wEAAwE;AACxE,eAAO,MAAM,WAAW,EAAE,IAAI,EAAwB,CAAC"}
|
|
@@ -6,8 +6,7 @@ import { searchTool } from "../../tools/search.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* The toolbox for one coding agent. `testCommand` — when the repo's canonical
|
|
8
8
|
* suite is known from config/CLI — becomes run_tests' fallback and counts as
|
|
9
|
-
* full-suite evidence (
|
|
10
|
-
* distinction).
|
|
9
|
+
* full-suite evidence (publication policies gate on that distinction).
|
|
11
10
|
*/
|
|
12
11
|
export function createCodingTools(opts = {}) {
|
|
13
12
|
return [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/agents/coding/tools.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/agents/coding/tools.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAI,GAA6B,EAAE;IACnE,OAAO;QACL,QAAQ;QACR,YAAY;QACZ,YAAY;QACZ,UAAU;QACV,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3E,CAAC;AACJ,CAAC;AAED,wEAAwE;AACxE,MAAM,CAAC,MAAM,WAAW,GAAW,iBAAiB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anchor-ai-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Loop-first, sandbox-first agent
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Loop-first, sandbox-first agent harness SDK: engine, tools, LLM client, sandbox adapters.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"prepack": "npm run build",
|
|
53
53
|
"prepublishOnly": "npm run build && node scripts/verify-dist-exports.mjs",
|
|
54
54
|
"test": "vitest run",
|
|
55
|
-
"typecheck": "tsc --noEmit"
|
|
55
|
+
"typecheck": "tsc --noEmit",
|
|
56
|
+
"prepare": "npm run build"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
59
|
"@heyocomputer/hws": ">=0.4",
|