@parcha/agentrun-serve 0.1.0-beta.33 → 0.1.0-beta.34
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/CHANGELOG.md +233 -0
- package/README.md +266 -201
- package/dist/adapters.d.ts +0 -4
- package/dist/adapters.js +11 -15
- package/dist/agent-rows.d.ts +98 -0
- package/dist/agent-rows.js +1 -0
- package/dist/agents-store.d.ts +6 -2
- package/dist/agents-store.js +60 -25
- package/dist/agents.d.ts +9 -125
- package/dist/agents.js +15 -305
- package/dist/answer-json.d.ts +23 -0
- package/dist/answer-json.js +58 -0
- package/dist/api-only.d.ts +1 -1
- package/dist/api-only.js +2 -2
- package/dist/bash-read-only.d.ts +22 -0
- package/dist/bash-read-only.js +701 -0
- package/dist/box-settings.d.ts +3 -23
- package/dist/box-settings.js +7 -51
- package/dist/boxes.d.ts +17 -0
- package/dist/boxes.js +27 -20
- package/dist/browser-commands.d.ts +5 -2
- package/dist/browser-commands.js +4 -4
- package/dist/browser-computer.d.ts +5 -0
- package/dist/browser-computer.js +21 -0
- package/dist/browser-cost.d.ts +9 -6
- package/dist/browser-cost.js +92 -50
- package/dist/browser-live.d.ts +7 -20
- package/dist/browser-live.js +15 -93
- package/dist/browser-person.d.ts +18 -51
- package/dist/browser-person.js +94 -277
- package/dist/cap.d.ts +8 -5
- package/dist/cap.js +12 -5
- package/dist/cli.js +39 -13
- package/dist/closed-pipes.d.ts +2 -0
- package/dist/closed-pipes.js +13 -0
- package/dist/computer-commands.d.ts +2 -0
- package/dist/computer-commands.js +2 -0
- package/dist/computer-keys.js +5 -2
- package/dist/computer-setting.d.ts +20 -4
- package/dist/computer-setting.js +25 -5
- package/dist/computers.d.ts +30 -2
- package/dist/computers.js +70 -11
- package/dist/confine.d.ts +120 -0
- package/dist/confine.js +436 -0
- package/dist/console/assets/index-RPHGlXmM.js +540 -0
- package/dist/console/assets/index-opTN5Naq.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/decision-rows.d.ts +1 -1
- package/dist/decision-rows.js +1 -1
- package/dist/docker-daemon.d.ts +31 -0
- package/dist/docker-daemon.js +56 -0
- package/dist/effort-guidance.js +4 -3
- package/dist/environment.d.ts +0 -3
- package/dist/environment.js +3 -5
- package/dist/errors.d.ts +0 -2
- package/dist/errors.js +6 -9
- package/dist/filed-answer.d.ts +32 -0
- package/dist/filed-answer.js +160 -0
- package/dist/files.d.ts +1 -3
- package/dist/files.js +2 -4
- package/dist/github-connection.d.ts +1 -1
- package/dist/graph-view.d.ts +3 -5
- package/dist/graph-view.js +4 -14
- package/dist/handed-values.d.ts +9 -0
- package/dist/handed-values.js +26 -0
- package/dist/harness-install.d.ts +1 -7
- package/dist/harness-install.js +1 -18
- package/dist/harness-opencode/adapter.d.ts +7 -0
- package/dist/harness-opencode/adapter.js +23 -6
- package/dist/harness-opencode/index.d.ts +1 -1
- package/dist/harness-opencode/index.js +1 -1
- package/dist/harness-opencode/verify.d.ts +17 -0
- package/dist/harness-opencode/verify.js +30 -10
- package/dist/harness-table.js +6 -1
- package/dist/heard.js +1 -1
- package/dist/held-fd.d.ts +5 -0
- package/dist/held-fd.js +14 -0
- package/dist/host-calls.d.ts +20 -0
- package/dist/host-calls.js +12 -0
- package/dist/host-tools.d.ts +4 -21
- package/dist/host-tools.js +4 -61
- package/dist/host.d.ts +2 -4
- package/dist/host.js +2 -7
- package/dist/import-summary.d.ts +1 -5
- package/dist/import-summary.js +0 -21
- package/dist/import.d.ts +6 -6
- package/dist/import.js +14 -15
- package/dist/key-refusal.d.ts +5 -1
- package/dist/key-refusal.js +19 -4
- package/dist/learn/check.d.ts +6 -2
- package/dist/learn/check.js +83 -29
- package/dist/learn/folder.d.ts +5 -1
- package/dist/learn/folder.js +10 -3
- package/dist/learn/grade.d.ts +14 -0
- package/dist/learn/grade.js +68 -12
- package/dist/learn/index.d.ts +4 -4
- package/dist/learn/index.js +4 -4
- package/dist/learn/reflect.d.ts +31 -2
- package/dist/learn/reflect.js +79 -4
- package/dist/learn/relevance.d.ts +24 -0
- package/dist/learn/relevance.js +91 -0
- package/dist/learn/secrets.d.ts +7 -1
- package/dist/learn/secrets.js +86 -19
- package/dist/learn/skills.d.ts +112 -14
- package/dist/learn/skills.js +556 -52
- package/dist/learned-workflow.d.ts +32 -1
- package/dist/learned-workflow.js +100 -9
- package/dist/learning-routes.d.ts +8 -4
- package/dist/learning-routes.js +23 -9
- package/dist/learning-run.d.ts +9 -26
- package/dist/learning-run.js +22 -32
- package/dist/learning-words.d.ts +12 -5
- package/dist/learning-words.js +18 -9
- package/dist/learning.d.ts +93 -77
- package/dist/learning.js +176 -304
- package/dist/live/stream.js +1 -1
- package/dist/live/translate.js +12 -2
- package/dist/local-models.d.ts +11 -5
- package/dist/local-models.js +13 -8
- package/dist/mcp-gateway.d.ts +11 -49
- package/dist/mcp-gateway.js +44 -135
- package/dist/mcp-oauth.d.ts +10 -14
- package/dist/mcp-oauth.js +14 -32
- package/dist/mcp-probe.d.ts +0 -7
- package/dist/mcp-probe.js +4 -10
- package/dist/mcp-servers-store.d.ts +6 -6
- package/dist/mcp-servers-store.js +12 -14
- package/dist/mcp-store.js +3 -4
- package/dist/mcp.js +4 -3
- package/dist/model.d.ts +6 -7
- package/dist/model.js +43 -27
- package/dist/monid.d.ts +0 -2
- package/dist/monid.js +3 -6
- package/dist/openapi.d.ts +8 -1
- package/dist/openapi.js +121 -47
- package/dist/page.d.ts +1 -3
- package/dist/page.js +6 -18
- package/dist/paid-calls.d.ts +21 -27
- package/dist/paid-calls.js +25 -60
- package/dist/propose.js +83 -39
- package/dist/push-handler.d.ts +1 -1
- package/dist/reflect-range.d.ts +25 -0
- package/dist/reflect-range.js +30 -0
- package/dist/refusal-words.d.ts +5 -1
- package/dist/refusal-words.js +5 -1
- package/dist/rows.d.ts +1 -1
- package/dist/run-cut.d.ts +0 -6
- package/dist/run-cut.js +0 -6
- package/dist/run-db.d.ts +2 -11
- package/dist/run-db.js +2 -37
- package/dist/run-launch.d.ts +19 -2
- package/dist/run-launch.js +13 -5
- package/dist/run-learning-served.d.ts +10 -4
- package/dist/run-learning-served.js +23 -13
- package/dist/run-reads-over-store.d.ts +1 -1
- package/dist/run-reads-over-store.js +15 -6
- package/dist/run-secrets.d.ts +1 -1
- package/dist/run-timeline-served.d.ts +5 -1
- package/dist/run-timeline-served.js +15 -4
- package/dist/run-view.d.ts +7 -8
- package/dist/run-view.js +26 -7
- package/dist/runnable.d.ts +18 -10
- package/dist/runnable.js +21 -10
- package/dist/runner/adapter-loop.d.ts +6 -1
- package/dist/runner/adapter-loop.js +423 -53
- package/dist/runner/adapter-run-spec.d.ts +21 -8
- package/dist/runner/adapter-run-spec.js +90 -32
- package/dist/runner/adapters/index.js +11 -1
- package/dist/runner/adapters/pi.d.ts +12 -2
- package/dist/runner/adapters/pi.js +16 -5
- package/dist/runner/beside.d.ts +30 -3
- package/dist/runner/beside.js +36 -5
- package/dist/runner/claim-secrets.d.ts +10 -1
- package/dist/runner/claim-secrets.js +48 -14
- package/dist/runner/cli-run-spec.d.ts +2 -0
- package/dist/runner/cli-run-spec.js +45 -16
- package/dist/runner/commands.js +1 -1
- package/dist/runner/computer-journal.d.ts +15 -2
- package/dist/runner/computer-journal.js +41 -5
- package/dist/runner/conformance/harness.js +118 -8
- package/dist/runner/conformance/subject.d.ts +4 -1
- package/dist/runner/dispatch.d.ts +8 -1
- package/dist/runner/dispatch.js +81 -7
- package/dist/runner/end-of-run.d.ts +8 -2
- package/dist/runner/end-of-run.js +10 -4
- package/dist/runner/github-app.js +1 -1
- package/dist/runner/harness-loops.d.ts +9 -1
- package/dist/runner/harness-loops.js +15 -2
- package/dist/runner/journal-kinds.d.ts +24 -6
- package/dist/runner/journal-kinds.js +20 -5
- package/dist/runner/journal-reader.d.ts +1 -1
- package/dist/runner/journal-reader.js +2 -2
- package/dist/runner/learning-ask.d.ts +4 -0
- package/dist/runner/learning-ask.js +15 -1
- package/dist/runner/learning-end.d.ts +18 -3
- package/dist/runner/learning-end.js +113 -11
- package/dist/runner/learning-loop.d.ts +5 -0
- package/dist/runner/learning-loop.js +26 -6
- package/dist/runner/main.d.ts +56 -9
- package/dist/runner/main.js +127 -18
- package/dist/runner/mcp-claim.js +1 -2
- package/dist/runner/mcp-run.d.ts +2 -0
- package/dist/runner/mcp-run.js +15 -5
- package/dist/runner/memory-claim.d.ts +9 -0
- package/dist/runner/memory-claim.js +25 -0
- package/dist/runner/metrics.d.ts +33 -1
- package/dist/runner/metrics.js +85 -1
- package/dist/runner/model-route.d.ts +13 -0
- package/dist/runner/model-route.js +133 -9
- package/dist/runner/reflect-hook.d.ts +12 -1
- package/dist/runner/reflect-hook.js +33 -3
- package/dist/runner/runner.d.ts +20 -0
- package/dist/runner/runner.js +56 -10
- package/dist/runner/store-port.d.ts +1 -1
- package/dist/runner/store-secrets.d.ts +3 -3
- package/dist/runner/store-secrets.js +8 -12
- package/dist/runner/text-tools.d.ts +44 -0
- package/dist/runner/text-tools.js +237 -0
- package/dist/runner/workflow-loop.d.ts +6 -0
- package/dist/runner/workflow-loop.js +6 -4
- package/dist/runner/workflow-spec.d.ts +18 -0
- package/dist/runner/workflow-spec.js +63 -17
- package/dist/runs-over-store.d.ts +7 -2
- package/dist/runs-over-store.js +60 -14
- package/dist/seal-key.js +5 -43
- package/dist/sealed-settings-store.d.ts +19 -4
- package/dist/sealed-settings-store.js +9 -9
- package/dist/sealing.d.ts +4 -0
- package/dist/sealing.js +20 -0
- package/dist/secret-cut.d.ts +1 -1
- package/dist/secret-cut.js +1 -1
- package/dist/secret-name.d.ts +9 -0
- package/dist/secret-name.js +15 -0
- package/dist/secret-writes.d.ts +0 -1
- package/dist/secret-writes.js +0 -1
- package/dist/server-fs.d.ts +4 -0
- package/dist/server-fs.js +8 -2
- package/dist/server-lock.d.ts +0 -24
- package/dist/server-lock.js +1 -80
- package/dist/server-secrets-store.d.ts +4 -4
- package/dist/server-secrets-store.js +9 -31
- package/dist/server-secrets.d.ts +4 -9
- package/dist/server-secrets.js +12 -36
- package/dist/server.d.ts +16 -38
- package/dist/server.js +145 -106
- package/dist/sign-ins-store.d.ts +34 -36
- package/dist/sign-ins-store.js +27 -38
- package/dist/sign-ins.d.ts +2 -119
- package/dist/sign-ins.js +5 -311
- package/dist/standard-webhooks.d.ts +1 -1
- package/dist/standard-webhooks.js +1 -1
- package/dist/stats.d.ts +3 -2
- package/dist/stats.js +1 -1
- package/dist/store/agent-body.d.ts +8 -2
- package/dist/store/agent-body.js +16 -4
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +2 -2
- package/dist/store/open.d.ts +6 -3
- package/dist/store/open.js +2 -2
- package/dist/store/postgres/connection.d.ts +18 -2
- package/dist/store/postgres/connection.js +156 -32
- package/dist/store/postgres/migrate.d.ts +4 -0
- package/dist/store/postgres/migrate.js +9 -2
- package/dist/store/postgres/migrations/0003_commands_one_answer.check.sql +19 -0
- package/dist/store/postgres/migrations/0003_commands_one_answer.sql +13 -0
- package/dist/store/postgres/store.d.ts +9 -2
- package/dist/store/postgres/store.js +9 -0
- package/dist/store/schema.js +1 -1
- package/dist/store/seal.js +2 -2
- package/dist/store/sqlite/connection.js +49 -5
- package/dist/store/sqlite/run-patch.d.ts +3 -0
- package/dist/store/sqlite/run-patch.js +3 -0
- package/dist/store/sqlite/store.js +41 -12
- package/dist/store/store.d.ts +35 -6
- package/dist/store/store.js +12 -2
- package/dist/store-reads/cap.d.ts +1 -1
- package/dist/store-reads/cap.js +22 -4
- package/dist/store-reads/journal.d.ts +9 -6
- package/dist/store-reads/journal.js +93 -17
- package/dist/store-reads/learning.d.ts +26 -8
- package/dist/store-reads/learning.js +12 -4
- package/dist/store-reads/workflow.d.ts +1 -1
- package/dist/store-reads/workflow.js +1 -1
- package/dist/store-view.d.ts +5 -1
- package/dist/store-view.js +53 -18
- package/dist/template-eval.d.ts +60 -4
- package/dist/template-eval.js +120 -54
- package/dist/templates.d.ts +24 -10
- package/dist/templates.js +69 -38
- package/dist/timeline/group.d.ts +33 -0
- package/dist/timeline/group.js +77 -0
- package/dist/timeline/index.d.ts +7 -0
- package/dist/timeline/index.js +7 -0
- package/dist/timeline/labels.d.ts +79 -0
- package/dist/timeline/labels.js +150 -0
- package/dist/timeline/origin.d.ts +56 -0
- package/dist/timeline/origin.js +92 -0
- package/dist/timeline/render-text.d.ts +11 -0
- package/dist/timeline/render-text.js +62 -0
- package/dist/timeline/timeline.d.ts +274 -0
- package/dist/timeline/timeline.js +1308 -0
- package/dist/timeline/util.d.ts +17 -0
- package/dist/timeline/util.js +49 -0
- package/dist/tool-gate.d.ts +41 -216
- package/dist/tool-gate.js +79 -540
- package/dist/tool-keys-store.d.ts +11 -12
- package/dist/tool-keys-store.js +24 -31
- package/dist/tool-keys.d.ts +5 -101
- package/dist/tool-keys.js +8 -267
- package/dist/tool-plane.d.ts +14 -42
- package/dist/tool-plane.js +23 -81
- package/dist/tool-settings-store.d.ts +1 -2
- package/dist/tool-settings-store.js +5 -8
- package/dist/tools.d.ts +30 -18
- package/dist/tools.js +97 -107
- package/dist/trigger-adapter.d.ts +2 -2
- package/dist/trigger-targets.d.ts +13 -1
- package/dist/trigger-targets.js +31 -1
- package/dist/triggers.d.ts +2 -2
- package/dist/triggers.js +3 -3
- package/dist/turn-end.d.ts +1 -1
- package/dist/turn-end.js +1 -1
- package/dist/turns.d.ts +0 -6
- package/dist/turns.js +0 -19
- package/dist/uploads.js +1 -1
- package/dist/usage.d.ts +0 -2
- package/dist/usage.js +0 -2
- package/dist/validate.d.ts +2 -0
- package/dist/validate.js +23 -14
- package/dist/webhooks.d.ts +102 -76
- package/dist/webhooks.js +266 -233
- package/dist/workflow-run.d.ts +114 -0
- package/dist/workflow-run.js +144 -0
- package/dist/workspace/beneath.d.ts +19 -0
- package/dist/workspace/beneath.js +106 -0
- package/dist/workspace/computer-deps.d.ts +24 -6
- package/dist/workspace/computer-deps.js +108 -20
- package/dist/workspace/computer-for-claim.d.ts +12 -11
- package/dist/workspace/computer-for-claim.js +76 -15
- package/dist/workspace/computer-hold.d.ts +6 -1
- package/dist/workspace/computer-hold.js +6 -1
- package/dist/workspace/computer-janitor.d.ts +47 -0
- package/dist/workspace/computer-janitor.js +182 -0
- package/dist/workspace/grep-worker.d.ts +5 -0
- package/dist/workspace/grep-worker.js +9 -6
- package/dist/workspace/index.d.ts +3 -2
- package/dist/workspace/index.js +3 -3
- package/dist/workspace/local.d.ts +11 -2
- package/dist/workspace/local.js +161 -43
- package/dist/workspace/resolve-computer.d.ts +50 -10
- package/dist/workspace/resolve-computer.js +46 -11
- package/dist/workspace/run-tools.d.ts +13 -31
- package/dist/workspace/run-tools.js +10 -27
- package/dist/workspace-paths.d.ts +0 -17
- package/dist/workspace-paths.js +1 -41
- package/dist/workspace.d.ts +0 -14
- package/dist/workspace.js +3 -96
- package/package.json +13 -13
- package/templates/README.md +9 -3
- package/templates/market-monitor/agent.md +2 -2
- package/templates/market-monitor/skills/monitor/SKILL.md +6 -4
- package/dist/bound-files.d.ts +0 -4
- package/dist/bound-files.js +0 -164
- package/dist/coding-tools.d.ts +0 -47
- package/dist/coding-tools.js +0 -189
- package/dist/computer-adb.d.ts +0 -12
- package/dist/computer-adb.js +0 -14
- package/dist/console/assets/index-Dn0ngwG9.js +0 -535
- package/dist/console/assets/index-DvW6Aled.css +0 -1
- package/dist/grade.d.ts +0 -63
- package/dist/grade.js +0 -150
- package/dist/mcp-servers.d.ts +0 -269
- package/dist/mcp-servers.js +0 -456
- package/dist/packs.d.ts +0 -71
- package/dist/packs.js +0 -180
- package/dist/sealed-settings.d.ts +0 -60
- package/dist/sealed-settings.js +0 -171
- package/dist/sessions.d.ts +0 -6
- package/dist/sessions.js +0 -109
- package/dist/workspace/computer-serves.d.ts +0 -12
- package/dist/workspace/computer-serves.js +0 -15
package/dist/learning.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type LearnedNote, type Problem, type Verdict } from "./learn/index.js";
|
|
1
|
+
import { type DraftDryRun, type LearnedNote, type Problem, type Verdict } from "./learn/index.js";
|
|
2
2
|
import { type LearningFolder } from "./learn/folder.js";
|
|
3
3
|
import { type Workspace } from "./workspace/index.js";
|
|
4
4
|
/** The server's learning switch (`--learning`, AGENTRUN_SERVE_LEARNING; capabilities.features.learning). `on`, the
|
|
@@ -8,7 +8,7 @@ export type LearningMode = (typeof LEARNING_MODES)[number];
|
|
|
8
8
|
export declare const LEARNING_ENV = "AGENTRUN_SERVE_LEARNING";
|
|
9
9
|
/** The switch: `given`, else AGENTRUN_SERVE_LEARNING, else on. Any other value is an error, and the server does not start. */
|
|
10
10
|
export declare function learningOf(env: NodeJS.ProcessEnv, given?: string): LearningMode;
|
|
11
|
-
/** How much of what a run learned its instructions hold under `# Learned` by default, in UTF-8 bytes (
|
|
11
|
+
/** How much of what a run learned its instructions hold under `# Learned` by default, in UTF-8 bytes (learnedParts): its
|
|
12
12
|
* notes whole while they fit, else the index and the notes changed last, whole, while they fit. */
|
|
13
13
|
export declare const LEARNING_BUDGET = 8000;
|
|
14
14
|
export declare const LEARNING_BUDGET_ENV = "AGENTRUN_SERVE_LEARNING_BUDGET";
|
|
@@ -17,7 +17,7 @@ export declare const LEARNING_BUDGET_ENV = "AGENTRUN_SERVE_LEARNING_BUDGET";
|
|
|
17
17
|
export declare function learningBudgetOf(env: NodeJS.ProcessEnv, given?: number): number;
|
|
18
18
|
/** Where a run's learning stands (its `learning`, runs.ts): `seeded` once it starts from what its agent learned,
|
|
19
19
|
* `reflecting` while its end-of-run turn runs and until what it answered is checked, `proposed` once that passed the
|
|
20
|
-
* checks and is kept
|
|
20
|
+
* checks and is kept (propose.ts), `merged` once it is on main (runner/learning-loop.ts), or `dropped` with a
|
|
21
21
|
* reason from the closed list. A learning fault never refuses a run: it starts with nothing learned, `seed_failed`. */
|
|
22
22
|
export declare const LEARNING_STATES: readonly ["seeded", "reflecting", "proposed", "merged", "dropped"];
|
|
23
23
|
export declare const LEARNING_REASONS: readonly ["seed_failed", "no_budget", "unknown_cost", "cancelled", "crashed", "reflect_timeout", "reflect_failed", "empty", "unparsed", "propose_failed", "checker", "grader", "grade_failed"];
|
|
@@ -35,7 +35,7 @@ export declare const NO_TOKENS: Tokens;
|
|
|
35
35
|
/** The variable that names the grader's model, as `--grade-model` does. */
|
|
36
36
|
export declare const GRADE_MODEL_ENV = "AGENTRUN_SERVE_GRADE_MODEL";
|
|
37
37
|
/** The model this server grades on, by name: `given` (`--grade-model`), else GRADE_MODEL_ENV, else its strong tier
|
|
38
|
-
* (AGENT_MODEL_STRONG); undefined when it names none, and each run is graded on its agent's own model (
|
|
38
|
+
* (AGENT_MODEL_STRONG); undefined when it names none, and each run is graded on its agent's own model (runner/learning-loop.ts). A
|
|
39
39
|
* name is a model as the strong tier takes one: sent as it is to a gateway, a provider/model-id otherwise. */
|
|
40
40
|
export declare const gradeModelOf: (env: NodeJS.ProcessEnv, given?: string) => string | undefined;
|
|
41
41
|
/** How many of an agent's runs were given a note, and read it, by the note's file (learning-run.ts noteRuns). */
|
|
@@ -107,9 +107,6 @@ export type LearnedFile = {
|
|
|
107
107
|
name: string;
|
|
108
108
|
pending?: true;
|
|
109
109
|
};
|
|
110
|
-
/** What a run's learning keeps whatever its learning does after: what it read, how many notes it started from, and its
|
|
111
|
-
* answer's time and its costs (learning-run.ts setLearning). */
|
|
112
|
-
export declare const KEPT_LEARNING: readonly ["given", "read", "seed_notes", "answered_at", "job_cost_usd", "look_back_usd"];
|
|
113
110
|
/** What a text or a name that leaves shows of the host's secrets now: none (secretsShown). */
|
|
114
111
|
export type Shown = {
|
|
115
112
|
text: (text: string) => string;
|
|
@@ -117,9 +114,15 @@ export type Shown = {
|
|
|
117
114
|
holds: (text: string) => boolean;
|
|
118
115
|
};
|
|
119
116
|
/** The host's secrets as a reader cuts them: a text holding a value or a shape is cut of it (whole when long:
|
|
120
|
-
* learn/secrets.ts
|
|
121
|
-
* route still answers the real name, to a caller who knows it); any other text or name is shown as it is.
|
|
122
|
-
|
|
117
|
+
* learn/secrets.ts redactLearned, a bank's numbers too), and a file's name holding one reads REDACTED whole, not a name of the folder's (its
|
|
118
|
+
* route still answers the real name, to a caller who knows it); any other text or name is shown as it is. A text served
|
|
119
|
+
* has no loopback address, the address alone (key-refusal.ts withoutLoopbackAddresses, the pattern a run's words share,
|
|
120
|
+
* run-view.ts shownOf): the host's own, never a person's; a run error's `url:` tail is no rule of a note's, a patch's or a
|
|
121
|
+
* workflow.json's, so their label, line ends and JSON stay. `local`: kept, for what a run itself is given (its .learning/ notes, runner/learning-seed.ts, and its
|
|
122
|
+
* # Learned section, server.ts's learning start), where an address on the run's own machine is the note's to give. */
|
|
123
|
+
export declare function secretsShown(values: readonly string[], { local }?: {
|
|
124
|
+
local?: boolean;
|
|
125
|
+
}): Shown;
|
|
123
126
|
/** The notes a run read and learned, as a view or a list shows them, each name cut of the host's secrets (`shown`):
|
|
124
127
|
* `given` from its start, `read` once the run settled, `learned` and `pending` (what waits for the owner's OK) once it merged, and the skill
|
|
125
128
|
* and the workflow draft it merged (`skills`, `workflows`, each `pending` while it waits), each only when it holds one.
|
|
@@ -159,16 +162,19 @@ export declare const learningView: (learning: Learning, shown: Shown, settled: b
|
|
|
159
162
|
skills?: LearnedFile[];
|
|
160
163
|
workflows?: LearnedFile[];
|
|
161
164
|
state: "proposed" | "merged" | "seeded" | "reflecting" | "dropped";
|
|
162
|
-
reason: "empty" | "
|
|
165
|
+
reason: "empty" | "cancelled" | "unparsed" | "seed_failed" | "no_budget" | "unknown_cost" | "crashed" | "reflect_timeout" | "reflect_failed" | "propose_failed" | "checker" | "grader" | "grade_failed" | null;
|
|
163
166
|
detail: string | null;
|
|
164
167
|
at: string;
|
|
165
168
|
};
|
|
169
|
+
/** A learning's `reason` as it is served: one of its words as the server writes them, read back from a kept row, which is
|
|
170
|
+
* untrusted, so cut of the host's secrets as every text is. */
|
|
171
|
+
export declare const reasonShown: (reason: Learning["reason"] | undefined, shown: Shown) => Learning["reason"];
|
|
166
172
|
/** A run's learning as a list shows it: its state and reason, its detail cut of the host's secrets and then short (at
|
|
167
173
|
* most LIST_DETAIL characters, so a secret is never cut in half and shown), and the notes it read and learned
|
|
168
174
|
* (notesView); never its time. */
|
|
169
175
|
export declare const shortLearning: (learning: Learning | null, shown: Shown, settled: boolean) => ({
|
|
170
176
|
state: "proposed" | "merged" | "seeded" | "reflecting" | "dropped";
|
|
171
|
-
reason: "empty" | "
|
|
177
|
+
reason: "empty" | "cancelled" | "unparsed" | "seed_failed" | "no_budget" | "unknown_cost" | "crashed" | "reflect_timeout" | "reflect_failed" | "propose_failed" | "checker" | "grader" | "grade_failed" | null;
|
|
172
178
|
detail: string | null;
|
|
173
179
|
} & Omit<{
|
|
174
180
|
given?: NoteUsed[];
|
|
@@ -178,7 +184,7 @@ export declare const shortLearning: (learning: Learning | null, shown: Shown, se
|
|
|
178
184
|
skills?: LearnedFile[];
|
|
179
185
|
workflows?: LearnedFile[];
|
|
180
186
|
state: "proposed" | "merged" | "seeded" | "reflecting" | "dropped";
|
|
181
|
-
reason: "empty" | "
|
|
187
|
+
reason: "empty" | "cancelled" | "unparsed" | "seed_failed" | "no_budget" | "unknown_cost" | "crashed" | "reflect_timeout" | "reflect_failed" | "propose_failed" | "checker" | "grader" | "grade_failed" | null;
|
|
182
188
|
detail: string | null;
|
|
183
189
|
at: string;
|
|
184
190
|
}, "at" | "reason" | "detail" | "state">) | null;
|
|
@@ -190,7 +196,7 @@ export declare function shortOf<T extends {
|
|
|
190
196
|
at: string;
|
|
191
197
|
}>({ state, reason, detail, at: _, ...notes }: T): {
|
|
192
198
|
state: "proposed" | "merged" | "seeded" | "reflecting" | "dropped";
|
|
193
|
-
reason: "empty" | "
|
|
199
|
+
reason: "empty" | "cancelled" | "unparsed" | "seed_failed" | "no_budget" | "unknown_cost" | "crashed" | "reflect_timeout" | "reflect_failed" | "propose_failed" | "checker" | "grader" | "grade_failed" | null;
|
|
194
200
|
detail: string | null;
|
|
195
201
|
} & Omit<T, "at" | "reason" | "detail" | "state">;
|
|
196
202
|
/** The label of the end-of-run turn's timeline rows, and the kind and label of a run's learning row. */
|
|
@@ -200,6 +206,8 @@ export declare const LEARNING_LABEL = "learning";
|
|
|
200
206
|
* when it gives none), and what the user said in the run as the grader reads it (each message cut of the host's
|
|
201
207
|
* secrets, then shortened to its head and tail, shortMessage; absent in a proposal kept before the grader read them). */
|
|
202
208
|
export declare const PROPOSAL = "learning-proposal.json";
|
|
209
|
+
/** A run's proposal: its notes, skill and drafts, each draft's dry run by its workflow.json's path (learn/skills.ts
|
|
210
|
+
* draftDryRun: passed, or not run and why), and what was said in the run. */
|
|
203
211
|
export type Proposal = {
|
|
204
212
|
seed: string;
|
|
205
213
|
notes: {
|
|
@@ -210,6 +218,7 @@ export type Proposal = {
|
|
|
210
218
|
file: string;
|
|
211
219
|
text: string;
|
|
212
220
|
}[];
|
|
221
|
+
dryRuns?: Record<string, DraftDryRun>;
|
|
213
222
|
asked?: string[];
|
|
214
223
|
triggered?: Triggered[];
|
|
215
224
|
};
|
|
@@ -223,16 +232,14 @@ export type Triggered = {
|
|
|
223
232
|
export declare const LEARNING_PIN = "learning.json";
|
|
224
233
|
/** Where a run finds its agent's notes: in its work, a copy the run may read and nothing reads back. */
|
|
225
234
|
export declare const LEARNED_DIR = ".learning";
|
|
226
|
-
/** What the run's end-of-run turn answered, and what the user said in the run
|
|
227
|
-
* settles (learning-run.ts beforeSettle), where the host alone reads it: what propose.ts checks. */
|
|
228
|
-
export declare const LEARNING_TURN = "learning-turn.json";
|
|
235
|
+
/** What the run's end-of-run turn answered, and what the user said in the run: what propose.ts checks. */
|
|
229
236
|
export type Turn = {
|
|
230
237
|
answer: string;
|
|
231
238
|
asked: string[];
|
|
232
239
|
triggered?: Triggered[];
|
|
233
240
|
};
|
|
234
241
|
/** What a run's pin holds: the commit of main it was seeded from (null: the folder had no main yet, so the run learns
|
|
235
|
-
* from an empty seed), and what it reads under `# Learned` (
|
|
242
|
+
* from an empty seed), and what it reads under `# Learned` (learnedParts), when it learned anything.
|
|
236
243
|
* `skills`: the files of the learned skills laid in its work, by their paths under `.agents/skills/`, as a revision
|
|
237
244
|
* names its own; `skills_left_out`: the learned skills it does not get, over their budget or holding a secret.
|
|
238
245
|
* `workflows`: the names of the learned workflows the run may run (its `learned_workflow` tool), each written whole in
|
|
@@ -275,7 +282,9 @@ export declare const LEARNED_WORKFLOWS_FILE = "learned-workflows.json";
|
|
|
275
282
|
/** The most bytes the `learned_workflow` tool's description gives its workflows, each one's line (workflowLine)
|
|
276
283
|
* together: every harness sends the description with each request, so it never grows with what an agent learned. */
|
|
277
284
|
export declare const LEARNED_WORKFLOWS_BUDGET: number;
|
|
278
|
-
/** A learned workflow's line in the `learned_workflow` tool's description: its name,
|
|
285
|
+
/** A learned workflow's line in the `learned_workflow` tool's description: its name, its input's fields (inputFields;
|
|
286
|
+
* none for a workflow whose input names no schema) and what its README says it does. One line: the tool's own line says
|
|
287
|
+
* once that `*` marks a required field. */
|
|
279
288
|
export declare const workflowLine: ({ name, description, workflow }: Pick<LearnedWorkflow, "name" | "description"> & {
|
|
280
289
|
workflow?: string;
|
|
281
290
|
}) => string;
|
|
@@ -291,34 +300,14 @@ export type LearnedSkill = {
|
|
|
291
300
|
files?: Record<string, string>;
|
|
292
301
|
};
|
|
293
302
|
/** The agent's learning folder: `learning/` in its folder on the disk, which only the host writes. The folder is files.ts
|
|
294
|
-
* agentFolderOf (
|
|
303
|
+
* agentFolderOf (server-fs.ts agentDiskDir), so two ids that differ only in case never share one. */
|
|
295
304
|
export declare const learningRepo: (data: string, agentId: string) => string;
|
|
296
|
-
/** The agent's learning folder, its home and the folder made where absent (checkedFolder). A link swapped in for a part
|
|
297
|
-
* just made is caught by the check after. `<data>/disk/agents` is the operator's, as the data directory is. Every write into
|
|
298
|
-
* the folder goes through it, in the agent's queue: before a run's seed reads or makes
|
|
299
|
-
* the repository, before its end-of-run turn reads its seed again (seedAt), before its proposal is checked against it
|
|
300
|
-
* (propose.ts), before its grade reads main and its merge writes it (grade.ts), and before a person's edit, create,
|
|
301
|
-
* retire, approve or restore (learning-routes.ts). A refusal throws: a run about to start starts with nothing
|
|
302
|
-
* learned (seed_failed), a run that ended drops what it learned (reflect_failed, propose_failed or grade_failed), and
|
|
303
|
-
* a person's write is an error. */
|
|
304
|
-
export declare const agentFolder: (data: string, agentId: string) => Promise<string>;
|
|
305
|
-
/** One git call on `repo` (none for `init`), from `cwd`: its stdout, or a rejection naming the command and its stderr.
|
|
306
|
-
* `env` adds to the call's environment (a temporary index, a work tree named outright). */
|
|
307
|
-
export declare function git(cwd: string, repo: string | undefined, args: readonly string[], input?: string | Uint8Array, env?: NodeJS.ProcessEnv): Promise<Buffer>;
|
|
308
305
|
/** Runs `work` once every call queued before it on the agent's folder has finished: one at a time per agent, in this
|
|
309
306
|
* process. Everything that touches an agent's folder goes through it, so two runs made at once never both make it. */
|
|
310
307
|
export declare const withAgentRepo: <T>(data: string, agentId: string, work: () => Promise<T>) => Promise<T>;
|
|
311
308
|
/** Agent `agentId`'s learning folder (learn/folder.ts learningWorkspace), in this server's place: Mode 1's local folder
|
|
312
309
|
* under `data`. The one point that names the place; its `end()` is called in a finally after every use. */
|
|
313
310
|
export declare const learningFolderOf: (data: string, agentId: string) => LearningFolder;
|
|
314
|
-
/** The blobs `oids` hold, in order, read in one `cat-file --batch`. One git cannot read throws. */
|
|
315
|
-
export declare function readBlobs(cwd: string, repo: string, oids: readonly string[]): Promise<Buffer[]>;
|
|
316
|
-
/** What commit `sha` holds for a run, read with plumbing: its index and its active notes, the `.md` files at its top.
|
|
317
|
-
* Only a regular file (mode 100644) under FILE_CAP, in UTF-8, is read, and only a note in shape (learn/notes.ts
|
|
318
|
-
* parseNoteFile); anything else is named in `skipped`. Only an active note is a run's: a pending, superseded or retired
|
|
319
|
-
* one is not, and nothing serves it (learnedOf, layLearned). A read git fails (an
|
|
320
|
-
* object missing, a timeout) throws. */
|
|
321
|
-
export declare function readSeed(cwd: string, repo: string, sha: string): Promise<Seed>;
|
|
322
311
|
/** What the learning folder's read at a commit gives a run's seed (the folder's script's read op, through the agent's
|
|
323
312
|
* learning Workspace): each file of its index, its active notes and its active skills, by its path from the folder's
|
|
324
313
|
* root, each skill it left out whole and why (`refused`, always there: a skill holding a tracked link), and every entry
|
|
@@ -367,11 +356,6 @@ export declare function seedFrom(commit: string | null, read: SeedReader, { orde
|
|
|
367
356
|
/** What seedFrom reads through the agent's learning folder: the script's read at a commit, or the snapshot and its
|
|
368
357
|
* bodies when the commit is main's (learn/seed-check.ts readSeed). No git in this process. */
|
|
369
358
|
export declare const readerOf: (ws: Workspace) => SeedReader;
|
|
370
|
-
/** A learned workflow README's front matter, each key to its value (quotes dropped; a `>` or `|` value's indented lines
|
|
371
|
-
* joined by spaces), or undefined when it does not read one way: no front matter, none closed (`---` on a line of its
|
|
372
|
-
* own, the last line or not), a line that is neither a key at its left edge, a comment, blank, nor a line of a `>` or
|
|
373
|
-
* `|` value, or a key set twice. */
|
|
374
|
-
export declare function readmeFront(text: string): Map<string, string> | undefined;
|
|
375
359
|
/** The seed of a run of agent `agentId` about to be made: main's commit, the folder made first when it is absent (the
|
|
376
360
|
* learning script's init), and what main holds for a run (seedFrom over the folder's read): its index, its active
|
|
377
361
|
* notes the one changed last first, its active skills, and its active learned workflows. A skill the read refused is
|
|
@@ -388,45 +372,75 @@ export declare const activeOf: (seed: Pick<Seed, "notes">) => LearnedNote[];
|
|
|
388
372
|
* learned files are written, once its pin is in place, before what its end-of-run turn wrote is checked, as a run that
|
|
389
373
|
* learns opens again for a follow-up, and as each git call starts (its arguments). */
|
|
390
374
|
export declare const learningTestHooks: {
|
|
391
|
-
git?: (args: readonly string[]) => void;
|
|
392
|
-
afterMkdir?: (dir: string) => Promise<void> | void;
|
|
393
|
-
beforePin?: (runDir: string) => Promise<void> | void;
|
|
394
375
|
afterPin?: (runDir: string) => Promise<void> | void;
|
|
395
|
-
/** Once a start's seed is copied and pinned, before its learning is said: a throw here leaves the start's pin. */
|
|
396
|
-
afterSeed?: (runDir: string) => Promise<void> | void;
|
|
397
|
-
beforePropose?: (runDir: string) => Promise<void> | void;
|
|
398
|
-
beforeReopen?: (runDir: string) => Promise<void> | void;
|
|
399
376
|
};
|
|
400
|
-
/** As the run in `runDir` settles after its end-of-run turn ended, before it reads ended and before a follow-up can
|
|
401
|
-
* open it again: what the turn answered and what the user said, kept whole in `<run dir>/learning-turn.json`, so
|
|
402
|
-
* nothing the run does after its end reaches what is checked. One already there stays (a server that went after it
|
|
403
|
-
* was written). Throws when the write fails. */
|
|
404
|
-
export declare function keepTurn(runDir: string, turn: Turn): Promise<void>;
|
|
405
|
-
/** The turn a run's directory keeps (keepTurn). One that is not there, or out of shape, throws. */
|
|
406
|
-
export declare function readTurn(runDir: string): Promise<Turn>;
|
|
407
377
|
/** Lays `seed`'s index and active notes in the run's `.learning/`, through its Workspace, made fresh: whatever was there
|
|
408
378
|
* goes. The index names the active notes alone (servedIndex), and each file is cut of the host's secrets (`shown`), the
|
|
409
379
|
* index a line at a time. */
|
|
410
380
|
export declare function layLearned(work: Workspace, seed: Seed, shown: Shown): Promise<void>;
|
|
411
|
-
/** How a run reads what it learned (
|
|
412
|
-
* tool; the host's secrets, which every text is cut of
|
|
381
|
+
/** How a run reads what it learned (learnedParts): the server's learning budget, in bytes; whether its agent has the read
|
|
382
|
+
* tool; the host's secrets, which every text is cut of; and which of its notes it is given (`select`, byRelevance when
|
|
383
|
+
* none) for the run it starts (`run`: what the selector may read of it, its input). */
|
|
413
384
|
export type LearnedOptions = {
|
|
414
385
|
budget: number;
|
|
415
386
|
read: boolean;
|
|
416
387
|
shown: Shown;
|
|
388
|
+
select?: NoteSelector;
|
|
389
|
+
run?: RunInput;
|
|
390
|
+
};
|
|
391
|
+
/** What a note selector may read of the run it chooses for: the input it was started with. */
|
|
392
|
+
export type RunInput = {
|
|
393
|
+
readonly input?: unknown;
|
|
394
|
+
};
|
|
395
|
+
/** What a note selector chooses from: the agent's active notes, newest first, each with the UTF-8 bytes it takes whole
|
|
396
|
+
* (its block and the blank line before it); the bytes the served index takes (0 when there is none); whether every index
|
|
397
|
+
* line names an active note (none names one main does not hold whole); and the learning budget. */
|
|
398
|
+
export type NoteCandidates = {
|
|
399
|
+
/** Each note, with the bytes it takes whole and the bytes it takes as one rule line (`lineBytes`: its name, file and
|
|
400
|
+
* description on one line). */
|
|
401
|
+
readonly notes: readonly {
|
|
402
|
+
readonly note: LearnedNote;
|
|
403
|
+
readonly bytes: number;
|
|
404
|
+
readonly lineBytes: number;
|
|
405
|
+
}[];
|
|
406
|
+
readonly indexBytes: number;
|
|
407
|
+
readonly indexComplete: boolean;
|
|
408
|
+
readonly budget: number;
|
|
409
|
+
};
|
|
410
|
+
/** A selector's choice: the notes the run reads whole, in the order it reads them (a subset of the candidates), and
|
|
411
|
+
* whether it reads the index first. Without the index, the notes are all it is given; or, with `lines`, the notes it
|
|
412
|
+
* reads as one rule line each after them, in their place (`index` is then false). */
|
|
413
|
+
export type NoteSelection = {
|
|
414
|
+
readonly whole: readonly LearnedNote[];
|
|
415
|
+
readonly index: boolean;
|
|
416
|
+
readonly lines?: readonly LearnedNote[];
|
|
417
|
+
};
|
|
418
|
+
/** The port that chooses which of an agent's notes a run gets (learnedParts; byRelevance when none is named). It chooses only: the seed, the pin, the cut of
|
|
419
|
+
* the host's secrets and the section's words stay learnedParts'. A selector keeps the budget: its whole notes, and the
|
|
420
|
+
* index when it serves it, fit `budget`, past which only the index may go (as loadedIndex bounds it). */
|
|
421
|
+
export type NoteSelector = (candidates: NoteCandidates, run: RunInput) => NoteSelection;
|
|
422
|
+
/** The selector by recency: every note whole while all fit the budget and the index names no note main does not hold
|
|
423
|
+
* whole; else the index, then the newest notes that fit what it leaves, each whole. */
|
|
424
|
+
export declare const byRecency: NoteSelector;
|
|
425
|
+
/** The default selector, by relevance, past the budget: while the notes fit it, recency's choice (byRecency). Else each
|
|
426
|
+
* note is scored against the run's input (learn/relevance.ts: BM25 over its name, description and body, a code
|
|
427
|
+
* review's changed paths' words weighed PATH_WEIGHT; no model call), and the run reads the notes that bear on it most
|
|
428
|
+
* whole, in score order, while they fit, then one rule line for each of the rest, best first, in place of the index; the lines count toward the
|
|
429
|
+
* budget before the whole notes, as the index did, and no more of them than a run reads of the index (loadedIndex). An
|
|
430
|
+
* input with no word any note holds reads by recency. */
|
|
431
|
+
export declare const byRelevance: NoteSelector;
|
|
432
|
+
/** What a run of `seed` reads under `# Learned` (`section`, the same for every harness, undefined when it learned
|
|
433
|
+
* nothing) and the notes that names (`given`), from one choice of the selector, so the section and the given notes never
|
|
434
|
+
* come from two choices. Only active notes are served: a pending, superseded or retired one is never there, whole or in
|
|
435
|
+
* the index, nor counted toward the budget (readSeed reads active notes alone, and servedIndex drops their lines). Its
|
|
436
|
+
* active notes, newest first (`seed.recent`, else by name), each whole while all fit `budget`; past it, the selector's
|
|
437
|
+
* choice (byRelevance by default). An agent with the read tool is told the rest are in `.learning/`, one without is not.
|
|
438
|
+
* Every text is cut of the host's secrets. A run "was given" `given`; of them, it "read" those whose file it opened
|
|
439
|
+
* (store-reads/learning.ts notesReadOf). Whether it applied one given whole is not measured. */
|
|
440
|
+
export declare function learnedParts(seed: Seed, options: LearnedOptions): {
|
|
441
|
+
section: string | undefined;
|
|
442
|
+
given: LearnedNote[];
|
|
417
443
|
};
|
|
418
|
-
/** What a run of `seed` reads under `# Learned`, the same for every harness, or undefined when it learned nothing. Only
|
|
419
|
-
* active notes are served: a pending, superseded or retired one is never there, whole or in the index, nor counted
|
|
420
|
-
* toward the budget (readSeed reads active notes alone, and servedIndex drops their lines). Its active notes, newest
|
|
421
|
-
* first (`seed.recent`, else by name): each whole while all fit `budget`, the UTF-8 bytes of
|
|
422
|
-
* what follows the first paragraph. Past it, or when the index names a note main does not hold whole: the index as a
|
|
423
|
-
* run loads it (learn/notes.ts loadedIndex, the first 200 lines and no more than 25 KB, past the budget when it is
|
|
424
|
-
* larger), then the newest notes that fit what is left, each whole, and the rest named only in the index; an agent
|
|
425
|
-
* with the read tool is told they are in `.learning/`, one without is not. Every text is cut of the host's secrets. */
|
|
426
|
-
export declare function learnedOf(seed: Seed, options: LearnedOptions): string | undefined;
|
|
427
|
-
/** The notes a run's # Learned section names (learnedOf): each given whole, and each an index line names by its file;
|
|
428
|
-
* every active note when all are given whole. A run "was given" these; whether it applied one is not measured. */
|
|
429
|
-
export declare function givenOf(seed: Seed, options: LearnedOptions): NoteUsed[];
|
|
430
444
|
/** Lays each of `skills` in the run's `.agents/skills/<name>/` through its Workspace, a folder made new for it (one
|
|
431
445
|
* already there throws EXISTS); a link on the way is ESCAPE, and nothing is written through it. Each name goes in
|
|
432
446
|
* `made` once its folder is, so a caller that fails takes back what was laid. */
|
|
@@ -435,9 +449,11 @@ export declare function laySkills(work: Workspace, skills: readonly LearnedSkill
|
|
|
435
449
|
* way is a link (or no folder), when nothing is touched. */
|
|
436
450
|
export declare function takeSkills(work: Workspace, names: Iterable<string>): Promise<void>;
|
|
437
451
|
/** Which of `seed`'s learned skills a run gets, in `work`, in the seed's order: each whole while they fit their budget,
|
|
438
|
-
* LEARNED_SKILLS_BUDGET and never more than the revision's `own` skill files
|
|
439
|
-
*
|
|
440
|
-
*
|
|
452
|
+
* LEARNED_SKILLS_BUDGET and never more than the revision's `own` skill files leave of SKILL_BYTES, sized in each form a
|
|
453
|
+
* harness is handed them, the larger: as they are in `work` (claude-agent, codex) and as servedSkills writes them
|
|
454
|
+
* (OpenCode, whose check reads that form). One named like a folder of the revision's skills, or like anything already in `work/.agents/skills/`, is
|
|
455
|
+
* the revision's, and not the run's; one that does not fit, or holds a host secret (`shown`) as stored or as laid, is
|
|
456
|
+
* left out. */
|
|
441
457
|
export declare function chooseSkills(work: Workspace, seed: Seed, own: readonly string[], shown: Shown): Promise<{
|
|
442
458
|
taken: LearnedSkill[];
|
|
443
459
|
left: string[];
|
|
@@ -452,7 +468,7 @@ export declare function chooseWorkflows(seed: Seed, shown: Shown): {
|
|
|
452
468
|
};
|
|
453
469
|
/** Writes `seed` into the run just made in `runDir`, its files through the run's Workspace (`work`): the index and each
|
|
454
470
|
* active note into `.learning/`, made fresh (whatever was there goes), then the pin, with what the run reads under
|
|
455
|
-
* `# Learned` (
|
|
471
|
+
* `# Learned` (learnedParts) and the learned skills it gets beside the revision's `own` skill files (chooseSkills), then
|
|
456
472
|
* those skills, last, into `.agents/skills/`. A write that fails leaves no `.learning/`, no learned skill and no pin,
|
|
457
473
|
* and throws. */
|
|
458
474
|
export declare function pinSeed(runDir: string, work: Workspace, seed: Seed, options: LearnedOptions & {
|