anchor-ai-sdk 0.1.0 → 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
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<p align="center">
|
|
16
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
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="LICENSE"><img src="https://img.shields.io/npm/l/anchor-ai-sdk?style=flat-square&color=0f1115" alt="license" /></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
19
|
<img src="https://img.shields.io/node/v/anchor-ai-sdk?style=flat-square&color=0f1115" alt="node" />
|
|
20
20
|
</p>
|
|
21
21
|
|
|
@@ -98,6 +98,9 @@ try {
|
|
|
98
98
|
}
|
|
99
99
|
```
|
|
100
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
|
+
|
|
101
104
|
## Providers
|
|
102
105
|
|
|
103
106
|
| subpath | backend | status |
|
|
@@ -110,7 +113,7 @@ try {
|
|
|
110
113
|
A backend is "done" when `runSandboxConformance(provider)` from
|
|
111
114
|
`anchor-ai-sdk/testing` passes — exec fidelity, kill deadlines, env secrets,
|
|
112
115
|
checkpoints, retain/adopt, git identity, pushes, and `fork` where declared.
|
|
113
|
-
See [`src/sandbox/README.md`](src/sandbox/README.md) for the provider guide.
|
|
116
|
+
See [`src/sandbox/README.md`](https://github.com/hrithikkoduri/anchor-ai-sdk/blob/main/src/sandbox/README.md) for the provider guide.
|
|
114
117
|
|
|
115
118
|
## Proof, not promises
|
|
116
119
|
|
|
@@ -124,12 +127,12 @@ See [`src/sandbox/README.md`](src/sandbox/README.md) for the provider guide.
|
|
|
124
127
|
- **Evaluation:** Anchor vs mini-swe-agent on SWE-bench Lite — same
|
|
125
128
|
container, same model, same official grader — resolved the same 7/10 at
|
|
126
129
|
roughly **one-third of the cost**
|
|
127
|
-
([`evals/results/comparison.md`](evals/results/comparison.md)).
|
|
130
|
+
([`evals/benchmarks/swe-bench/results/comparison.md`](https://github.com/hrithikkoduri/anchor-ai-sdk/blob/main/evals/benchmarks/swe-bench/results/comparison.md)).
|
|
128
131
|
|
|
129
132
|
## Status
|
|
130
133
|
|
|
131
134
|
**Early alpha (0.x).** The API will move before 1.0 — pin exact versions. The
|
|
132
|
-
[`DECISIONS.md`](DECISIONS.md) is the engineering log: every API has a written
|
|
135
|
+
[`DECISIONS.md`](https://github.com/hrithikkoduri/anchor-ai-sdk/blob/main/DECISIONS.md) is the engineering log: every API has a written
|
|
133
136
|
reason, and the reasons moved with the code when this repo was extracted from
|
|
134
137
|
its monorepo.
|
|
135
138
|
|
|
@@ -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,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