@parcha/agentrun-serve 0.1.0-beta.44 → 0.1.0-beta.45
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 +131 -5
- package/README.md +371 -300
- package/dist/acp-package.d.ts +28 -0
- package/dist/acp-package.js +23 -0
- package/dist/adapter-facts.d.ts +8 -1
- package/dist/adapter-facts.js +9 -1
- package/dist/adapters.d.ts +5 -0
- package/dist/adapters.js +36 -3
- package/dist/agent-delete.d.ts +50 -0
- package/dist/agent-delete.js +125 -0
- package/dist/agents-store.d.ts +9 -3
- package/dist/agents-store.js +22 -8
- package/dist/agents.d.ts +5 -1
- package/dist/agents.js +8 -4
- package/dist/api-only.d.ts +8 -3
- package/dist/api-only.js +10 -4
- package/dist/archil-routes.d.ts +5 -1
- package/dist/archil-routes.js +57 -2
- package/dist/browser-wait-ended.d.ts +2 -0
- package/dist/browser-wait-ended.js +2 -0
- package/dist/calendar/ics-faux.d.ts +3 -1
- package/dist/calendar/ics-faux.js +12 -2
- package/dist/calendar/tools.js +5 -2
- package/dist/chatgpt-plan.js +3 -1
- package/dist/claude-login.d.ts +135 -0
- package/dist/claude-login.js +244 -0
- package/dist/cli.js +52 -16
- package/dist/composio-preset.js +69 -7
- package/dist/composio-triggers.d.ts +14 -0
- package/dist/composio-triggers.js +79 -15
- package/dist/computer-attach.d.ts +40 -5
- package/dist/computer-attach.js +130 -15
- package/dist/computer-keys.d.ts +3 -0
- package/dist/computer-keys.js +7 -1
- package/dist/computer-live.js +3 -2
- package/dist/computers.d.ts +21 -10
- package/dist/computers.js +39 -28
- package/dist/console/assets/index-3O2Yl6hZ.js +701 -0
- package/dist/console/assets/index-DaFsZuzQ.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/decisions.d.ts +1 -1
- package/dist/dial-relay.d.ts +29 -0
- package/dist/dial-relay.js +94 -0
- package/dist/email/tools.js +10 -5
- package/dist/env-proxy.d.ts +2 -0
- package/dist/env-proxy.js +35 -0
- package/dist/errors.d.ts +3 -1
- package/dist/errors.js +7 -4
- package/dist/faux-computers.d.ts +8 -2
- package/dist/faux-computers.js +83 -6
- package/dist/harness-archive.d.ts +67 -0
- package/dist/harness-archive.js +177 -0
- package/dist/harness-goose.d.ts +34 -0
- package/dist/harness-goose.js +87 -0
- package/dist/harness-install.d.ts +21 -0
- package/dist/harness-install.js +24 -11
- package/dist/harness-opencode/adapter.js +1 -1
- package/dist/harness-table.d.ts +9 -1
- package/dist/harness-table.js +20 -3
- package/dist/harness.d.ts +1 -2
- package/dist/harness.js +3 -4
- package/dist/host.js +2 -1
- package/dist/key-check.js +3 -0
- package/dist/learn/audit.d.ts +6 -6
- package/dist/learn/audit.js +3 -7
- package/dist/learn/check.d.ts +23 -89
- package/dist/learn/check.js +57 -335
- package/dist/learn/commit.d.ts +63 -90
- package/dist/learn/commit.js +124 -316
- package/dist/learn/compile.d.ts +53 -50
- package/dist/learn/compile.js +87 -102
- package/dist/learn/corrections.d.ts +13 -0
- package/dist/learn/corrections.js +23 -0
- package/dist/learn/delete.d.ts +5 -5
- package/dist/learn/delete.js +8 -10
- package/dist/learn/folder.d.ts +35 -47
- package/dist/learn/folder.js +118 -134
- package/dist/learn/index.d.ts +3 -5
- package/dist/learn/index.js +6 -9
- package/dist/learn/learning.sh +45 -15
- package/dist/learn/promote.d.ts +13 -1
- package/dist/learn/promote.js +9 -0
- package/dist/learn/{skills.d.ts → workflow-draft.d.ts} +30 -38
- package/dist/learn/{skills.js → workflow-draft.js} +48 -58
- package/dist/learn/workflow-nodes.js +1 -1
- package/dist/learned-workflow.js +2 -2
- package/dist/learning-cost.d.ts +38 -24
- package/dist/learning-cost.js +41 -24
- package/dist/learning-routes.d.ts +91 -170
- package/dist/learning-routes.js +183 -421
- package/dist/learning-run.d.ts +19 -40
- package/dist/learning-run.js +23 -93
- package/dist/learning-setting.d.ts +4 -4
- package/dist/learning-setting.js +6 -6
- package/dist/learning-words.d.ts +28 -74
- package/dist/learning-words.js +64 -162
- package/dist/learning.d.ts +61 -392
- package/dist/learning.js +101 -651
- package/dist/live-reach.d.ts +25 -2
- package/dist/live-reach.js +46 -4
- package/dist/llms.txt +1 -1
- package/dist/local-models.d.ts +3 -11
- package/dist/local-models.js +5 -6
- package/dist/mcp-servers-store.d.ts +4 -4
- package/dist/model-form.js +6 -5
- package/dist/model.d.ts +4 -0
- package/dist/model.js +26 -9
- package/dist/native/binding.js +1 -1
- package/dist/native/connection.js +1 -1
- package/dist/native/discovery.js +1 -1
- package/dist/native/instructions.d.ts +3 -0
- package/dist/native/instructions.js +5 -3
- package/dist/native/remote-worker-bridge.js +9 -43
- package/dist/native/remote.d.ts +8 -15
- package/dist/native/remote.js +3 -3
- package/dist/native/schema.js +1 -1
- package/dist/native/types.d.ts +2 -2
- package/dist/openapi.js +268 -316
- package/dist/paid-calls.d.ts +8 -0
- package/dist/paid-calls.js +20 -0
- package/dist/particle-provider.d.ts +11 -0
- package/dist/particle-provider.js +135 -0
- package/dist/port-models.d.ts +12 -4
- package/dist/port-models.js +28 -11
- package/dist/print.d.ts +27 -0
- package/dist/print.js +21 -0
- package/dist/provider.d.ts +7 -0
- package/dist/provider.js +15 -1
- package/dist/reflect-range.js +2 -3
- package/dist/run-launch.d.ts +14 -28
- package/dist/run-launch.js +9 -12
- package/dist/run-learning-served.d.ts +15 -89
- package/dist/run-listing.d.ts +34 -0
- package/dist/run-listing.js +128 -0
- package/dist/run-model-key.js +1 -1
- package/dist/run-timeline-served.js +5 -3
- package/dist/run-trace.d.ts +97 -0
- package/dist/run-trace.js +253 -0
- package/dist/run-view.d.ts +15 -0
- package/dist/run-view.js +9 -0
- package/dist/runnable.js +2 -1
- package/dist/runner/adapter-loop.d.ts +8 -6
- package/dist/runner/adapter-loop.js +16 -12
- package/dist/runner/adapter-run-spec.d.ts +16 -4
- package/dist/runner/adapter-run-spec.js +64 -58
- package/dist/runner/adapters/index.js +22 -0
- package/dist/runner/adapters/pi.d.ts +4 -12
- package/dist/runner/adapters/pi.js +2 -2
- package/dist/runner/audit.d.ts +1 -1
- package/dist/runner/audit.js +16 -8
- package/dist/runner/beside.d.ts +6 -2
- package/dist/runner/beside.js +38 -9
- package/dist/runner/claim-secrets.d.ts +18 -2
- package/dist/runner/claim-secrets.js +42 -18
- package/dist/runner/cli-run-spec.js +55 -51
- package/dist/runner/conformance/harness.d.ts +6 -0
- package/dist/runner/conformance/harness.js +16 -5
- package/dist/runner/dispatch.d.ts +2 -2
- package/dist/runner/end-of-run.d.ts +6 -14
- package/dist/runner/end-of-run.js +8 -33
- package/dist/runner/feedback-round.d.ts +2 -2
- package/dist/runner/feedback-round.js +7 -7
- package/dist/runner/github-app.js +3 -1
- package/dist/runner/harness-loops.d.ts +0 -8
- package/dist/runner/harness-loops.js +11 -59
- package/dist/runner/held.d.ts +170 -0
- package/dist/runner/held.js +57 -0
- package/dist/runner/journal-kinds.d.ts +2 -3
- package/dist/runner/journal-kinds.js +2 -3
- package/dist/runner/learned-first.d.ts +40 -0
- package/dist/runner/learned-first.js +32 -0
- package/dist/runner/learning-end.d.ts +77 -69
- package/dist/runner/learning-end.js +250 -303
- package/dist/runner/learning-seed.d.ts +15 -33
- package/dist/runner/learning-seed.js +24 -45
- package/dist/runner/loop-contract.d.ts +2 -3
- package/dist/runner/main.d.ts +17 -9
- package/dist/runner/main.js +63 -20
- package/dist/runner/mcp-run.d.ts +11 -0
- package/dist/runner/mcp-run.js +67 -0
- package/dist/runner/memory-claim.d.ts +10 -5
- package/dist/runner/memory-claim.js +12 -6
- package/dist/runner/model-route.d.ts +7 -4
- package/dist/runner/model-route.js +22 -10
- package/dist/runner/native-loop.d.ts +0 -7
- package/dist/runner/native-loop.js +9 -101
- package/dist/runner/promotion.d.ts +8 -6
- package/dist/runner/promotion.js +19 -12
- package/dist/runner/reflect-hook.d.ts +64 -95
- package/dist/runner/reflect-hook.js +112 -225
- package/dist/runner/run-channel.d.ts +43 -0
- package/dist/runner/run-channel.js +467 -0
- package/dist/runner/run-child-host.d.ts +169 -0
- package/dist/runner/run-child-host.js +1222 -0
- package/dist/runner/run-child.d.ts +1 -0
- package/dist/runner/run-child.js +254 -0
- package/dist/runner/run-errors.d.ts +2 -0
- package/dist/runner/run-errors.js +20 -0
- package/dist/runner/runner.js +1 -5
- package/dist/runner/sdk-ask.d.ts +78 -0
- package/dist/runner/sdk-ask.js +158 -0
- package/dist/runner/sdk-loop.d.ts +2 -4
- package/dist/runner/sdk-loop.js +29 -49
- package/dist/runner/store-secrets.d.ts +5 -3
- package/dist/runner/store-secrets.js +5 -1
- package/dist/runner/workflow-first.d.ts +5 -0
- package/dist/runner/workflow-first.js +4 -0
- package/dist/runner/workflow-spec.js +7 -2
- package/dist/runs-over-store.d.ts +16 -28
- package/dist/runs-over-store.js +31 -38
- package/dist/sdk/runs.d.ts +6 -11
- package/dist/sdk/runs.js +20 -41
- package/dist/sdk/schema.js +3 -4
- package/dist/seal-key.d.ts +5 -0
- package/dist/seal-key.js +7 -0
- package/dist/secrets.d.ts +3 -0
- package/dist/secrets.js +16 -3
- package/dist/server.d.ts +55 -33
- package/dist/server.js +685 -320
- package/dist/sign-ins-store.d.ts +8 -0
- package/dist/sign-ins-store.js +36 -1
- package/dist/skills.js +1 -1
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +1 -1
- package/dist/store/journal/storage.js +3 -0
- package/dist/store/postgres/migrations/0017_run_listing.sql +83 -0
- package/dist/store/postgres/migrations/0018_trigger_template.sql +6 -0
- package/dist/store/postgres/migrations/0019_runner_relays.sql +28 -0
- package/dist/store/schema.d.ts +53 -4
- package/dist/store/schema.js +137 -6
- package/dist/store/sqlite/connection.d.ts +2 -0
- package/dist/store/sqlite/connection.js +3 -1
- package/dist/store/sqlite/run-patch.d.ts +0 -17
- package/dist/store/sqlite/run-patch.js +4 -33
- package/dist/store/sqlite/store.js +246 -63
- package/dist/store/sqlite/worker.js +25 -0
- package/dist/store/store.d.ts +193 -36
- package/dist/store/store.js +25 -3
- package/dist/store-reads/learning.d.ts +102 -204
- package/dist/store-reads/learning.js +159 -321
- package/dist/store-reads/loop.d.ts +0 -1
- package/dist/store-reads/loop.js +1 -1
- package/dist/store-view.d.ts +29 -1
- package/dist/store-view.js +97 -31
- package/dist/template-eval.d.ts +3 -6
- package/dist/template-eval.js +22 -36
- package/dist/templates.d.ts +2 -1
- package/dist/templates.js +6 -3
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/timeline.d.ts +5 -1
- package/dist/timeline/timeline.js +16 -0
- package/dist/tool-gate.d.ts +0 -7
- package/dist/tool-gate.js +1 -15
- package/dist/tool-keys-store.d.ts +1 -1
- package/dist/tool-keys.d.ts +6 -4
- package/dist/tool-keys.js +12 -6
- package/dist/tools.d.ts +2 -2
- package/dist/tools.js +11 -4
- package/dist/triggers.d.ts +60 -5
- package/dist/triggers.js +123 -18
- package/dist/validate.js +1 -1
- package/dist/webhooks.d.ts +4 -1
- package/dist/webhooks.js +11 -4
- package/dist/workspace/agent-computer.d.ts +2 -0
- package/dist/workspace/agent-computer.js +2 -0
- package/dist/workspace/archil-claim.d.ts +7 -0
- package/dist/workspace/archil-claim.js +29 -0
- package/dist/workspace/archil.d.ts +9 -1
- package/dist/workspace/archil.js +165 -3
- package/dist/workspace/attach.d.ts +3 -1
- package/dist/workspace/attach.js +2 -0
- package/dist/workspace/attached-computers.d.ts +16 -5
- package/dist/workspace/attached-computers.js +25 -9
- package/dist/workspace/computer-deps.js +1 -1
- package/dist/workspace/computer-for-claim.d.ts +7 -3
- package/dist/workspace/computer-for-claim.js +119 -22
- package/dist/workspace/computer-hold.js +2 -1
- package/dist/workspace/computer-kept.d.ts +11 -1
- package/dist/workspace/computer-kept.js +24 -3
- package/dist/workspace/resolve-computer.d.ts +33 -19
- package/dist/workspace/resolve-computer.js +172 -64
- package/dist/workspace/revision-skills.d.ts +1 -2
- package/dist/workspace/revision-skills.js +3 -4
- package/dist/workspace/run-workspace.d.ts +1 -1
- package/dist/workspace/run-workspace.js +5 -0
- package/dist/workspace/synced-folder.d.ts +85 -0
- package/dist/workspace/synced-folder.js +230 -0
- package/dist/workspace/workspace.d.ts +4 -0
- package/launcher/agentrun-serve +1 -1
- package/package.json +10 -10
- package/templates/README.md +7 -7
- package/templates/inbound-lead/agent.md +3 -3
- package/templates/inbound-lead/evals/learned-correction/case.yaml +3 -3
- package/templates/inbound-lead/evals/learned-correction/fixtures/corrections.md +1 -0
- package/templates/inbound-lead/evals/learned-correction/graders/applies-correction.md +22 -0
- package/templates/inbound-lead/evals/learned-correction/graders/learned-origin.md +1 -1
- package/templates/inbound-lead/evals/learned-correction/prompt.md +1 -1
- package/templates/inbound-lead/lead.schema.json +6 -5
- package/templates/inbound-lead/rules/RUBRIC.md +4 -4
- package/templates/inbound-lead/skills/lead/SKILL.md +4 -4
- package/templates/market-monitor/evals/learned-preference/case.yaml +4 -4
- package/templates/market-monitor/evals/learned-preference/fixtures/corrections.md +1 -0
- package/templates/market-monitor/evals/learned-preference/graders/omits-junior-post.md +3 -3
- package/templates/market-monitor/evals/learned-preference/prompt.md +1 -1
- package/templates/release-notes/evals/learned-style/case.yaml +4 -4
- package/templates/release-notes/evals/learned-style/fixtures/corrections.md +1 -0
- package/templates/release-notes/evals/learned-style/graders/same-changes.md +2 -2
- package/templates/release-notes/evals/learned-style/prompt.md +1 -1
- package/dist/console/assets/index-BUktRvS-.css +0 -1
- package/dist/console/assets/index-nB9kTfIN.js +0 -711
- package/dist/learn/grade.d.ts +0 -138
- package/dist/learn/grade.js +0 -682
- package/dist/learn/notes.d.ts +0 -81
- package/dist/learn/notes.js +0 -178
- package/dist/learn/reflect.d.ts +0 -77
- package/dist/learn/reflect.js +0 -228
- package/dist/learn/relevance.d.ts +0 -24
- package/dist/learn/relevance.js +0 -91
- package/dist/learn/seed-check.d.ts +0 -74
- package/dist/learn/seed-check.js +0 -103
- package/dist/learning-batch.d.ts +0 -291
- package/dist/learning-batch.js +0 -600
- package/dist/learning-evals.d.ts +0 -35
- package/dist/learning-evals.js +0 -99
- package/dist/native/context.d.ts +0 -6
- package/dist/native/context.js +0 -22
- package/dist/propose.d.ts +0 -52
- package/dist/propose.js +0 -224
- package/dist/runner/learning-ask.d.ts +0 -47
- package/dist/runner/learning-ask.js +0 -128
- package/dist/runner/learning-dispatch.d.ts +0 -45
- package/dist/runner/learning-dispatch.js +0 -99
- package/dist/runner/learning-factory.d.ts +0 -16
- package/dist/runner/learning-factory.js +0 -50
- package/dist/runner/learning-loop.d.ts +0 -273
- package/dist/runner/learning-loop.js +0 -521
- package/dist/usage.d.ts +0 -11
- package/dist/usage.js +0 -11
- package/templates/inbound-lead/evals/learned-correction/fixtures/learning/MEMORY.md +0 -1
- package/templates/inbound-lead/evals/learned-correction/fixtures/learning/no-agencies.md +0 -14
- package/templates/inbound-lead/evals/learned-correction/graders/applies-note.md +0 -21
- package/templates/market-monitor/evals/learned-preference/fixtures/learning/MEMORY.md +0 -1
- package/templates/market-monitor/evals/learned-preference/fixtures/learning/skip-junior-job-posts.md +0 -8
- package/templates/release-notes/evals/learned-style/fixtures/learning/MEMORY.md +0 -1
- package/templates/release-notes/evals/learned-style/fixtures/learning/say-agent-not-bot.md +0 -13
|
@@ -17,7 +17,7 @@ import { serialWriter, startModelProxy } from "@parcha/agentrun-kernel/host";
|
|
|
17
17
|
import { openCodeHarness, sentSubmissions } from "./harness.js";
|
|
18
18
|
import { openCodePolicy, TOOL_PREFIX } from "./host/policy.js";
|
|
19
19
|
import { verifyOpenCode } from "./verify.js";
|
|
20
|
-
import { learnedFront } from "../learn/
|
|
20
|
+
import { learnedFront } from "../learn/workflow-draft.js";
|
|
21
21
|
/** A name OpenCode keeps whole for an MCP tool (it turns anything else into `_`), short enough that `hands_<name>` is a
|
|
22
22
|
* function name the Responses API takes (at most 64). */
|
|
23
23
|
const TOOL_NAME = new RegExp(`^[A-Za-z0-9_-]{1,${64 - TOOL_PREFIX.length}}$`);
|
package/dist/harness-table.d.ts
CHANGED
|
@@ -76,6 +76,10 @@ export interface HarnessEntry {
|
|
|
76
76
|
skillCheck?(): Promise<SkillCheck | undefined>;
|
|
77
77
|
/** What its first-use install needs (installs). */
|
|
78
78
|
pins?(): Promise<HarnessPins>;
|
|
79
|
+
/** Why it is not listed on `env` (harnessIds: capabilities, the tools' harnesses), in words that end with what to do;
|
|
80
|
+
* undefined while it is. One its owner installs (Goose: harness-goose.ts) is listed only once it is there and verified.
|
|
81
|
+
* It is still in the table, so a run or a save naming it is refused with these words. */
|
|
82
|
+
hidden?(env: NodeJS.ProcessEnv): string | undefined;
|
|
79
83
|
}
|
|
80
84
|
/** What a test's table module exports: entries by id, each merged over the built-in one of that id (all of it, for one
|
|
81
85
|
* the server has none of), given the built-ins to build on. Loaded with require: the module has no top-level await. */
|
|
@@ -102,8 +106,12 @@ export declare const harnessModulesOf: (given: readonly string[] | undefined, en
|
|
|
102
106
|
export declare function harnessModulePaths(names: readonly string[], data: string): string[];
|
|
103
107
|
/** HARNESS_MODULES_ENV for the harness modules `names` names: none for none. */
|
|
104
108
|
export declare const harnessModulesEnv: (names: readonly string[], data: string) => NodeJS.ProcessEnv;
|
|
105
|
-
/** The ids of the harnesses `env`'s table
|
|
109
|
+
/** The ids of the harnesses `env`'s table lists, in its order: the built-in ones (pi first), then those its modules add;
|
|
110
|
+
* not one its entry hides on `env` (HarnessEntry.hidden: Goose until it is installed). */
|
|
106
111
|
export declare const harnessIds: (env: NodeJS.ProcessEnv) => readonly string[];
|
|
112
|
+
/** The ids of every harness `env`'s table has, hidden ones too: those a definition may name (a save warns of a hidden one,
|
|
113
|
+
* a run is refused with why). */
|
|
114
|
+
export declare const tableIds: (env: NodeJS.ProcessEnv) => readonly string[];
|
|
107
115
|
/** The built-in entry of harness `id` (none: the default, pi), for what a test's entry never changes: its memory (host.ts),
|
|
108
116
|
* which a stand-in reserves as the harness it stands in for does, so tests admit as a real server does. */
|
|
109
117
|
export declare const builtinHarness: (id: string | undefined) => HarnessEntry | undefined;
|
package/dist/harness-table.js
CHANGED
|
@@ -12,6 +12,8 @@ import { join, resolve } from "node:path";
|
|
|
12
12
|
import { facts as claudeFacts } from "@parcha/agentrun-harness-claude/facts";
|
|
13
13
|
import { facts as codexFacts } from "@parcha/agentrun-harness-codex/facts";
|
|
14
14
|
import { facts as openCodeFacts } from "./harness-opencode/facts.js";
|
|
15
|
+
import { GOOSE_FACTS } from "./adapter-facts.js";
|
|
16
|
+
import { gooseHidden } from "./harness-goose.js";
|
|
15
17
|
import { DEFAULT_HARNESS, HARNESS_ID_PATTERN, PLAN_HARNESSES, RESERVED_HARNESS_IDS } from "./harness.js";
|
|
16
18
|
import { HARNESS_INSTALLS } from "./harness-install.js";
|
|
17
19
|
import { chooseModel } from "./model.js";
|
|
@@ -84,6 +86,9 @@ function adapterEntry(facts, make, extra = {}) {
|
|
|
84
86
|
route: async (env, needs) => {
|
|
85
87
|
const { nativeOptions, priceOf } = await import("./adapters.js");
|
|
86
88
|
const provider = providerFor(wire, env, needs.model, id);
|
|
89
|
+
// A person's Claude Code login is its CLI's alone: no request of serve's own goes on it.
|
|
90
|
+
if (provider.login)
|
|
91
|
+
throw new HarnessUnavailable(`${id} runs on Claude Code's login on this machine, which only its CLI uses: this request needs a model key.`);
|
|
87
92
|
const policy = facts.policy({ model: provider.modelId, tools: [], auth: provider.auth, ...nativeOptions(facts, env), ...(provider.billing === "plan" ? { plan: true } : {}) });
|
|
88
93
|
return { api: wire, options: { policy, model: provider.modelId, origin: provider.origin, credential: async () => provider.credential(), price: priceOf({ ...needs, model: provider.priceModel }) } };
|
|
89
94
|
},
|
|
@@ -122,11 +127,19 @@ const BUILTIN = Object.freeze({
|
|
|
122
127
|
[openCodeFacts.id]: adapterEntry(openCodeFacts, async (env, needs) => (await import("./adapters.js")).opencodeOf(env, needs), {
|
|
123
128
|
// Checked as OpenCode is handed them (servedSkills, opencodeOf's): one size check on what it gets.
|
|
124
129
|
skillCheck: async () => {
|
|
125
|
-
const [{ packageSkillCheck }, { servedSkills }] = await Promise.all([import("./adapters.js"), import("./learn/
|
|
130
|
+
const [{ packageSkillCheck }, { servedSkills }] = await Promise.all([import("./adapters.js"), import("./learn/workflow-draft.js")]);
|
|
126
131
|
const check = await packageSkillCheck(() => import("./harness-opencode/index.js"));
|
|
127
132
|
return check && ((skills) => check(servedSkills(skills)));
|
|
128
133
|
},
|
|
129
134
|
}),
|
|
135
|
+
// Goose, over ACP, where its package is beside serve (acp-package.ts): its owner installs its pinned binary
|
|
136
|
+
// (`agentrun harness install goose`, harness-goose.ts), never a run; listed only once it is installed and verified.
|
|
137
|
+
...(GOOSE_FACTS ? {
|
|
138
|
+
[GOOSE_FACTS.id]: adapterEntry(GOOSE_FACTS, async (env, needs) => (await import("./adapters.js")).gooseOf(env, needs), {
|
|
139
|
+
promises: Object.freeze({ resume: "load", tool_gate: "permission", billing: "proxy" }),
|
|
140
|
+
hidden: gooseHidden,
|
|
141
|
+
}),
|
|
142
|
+
} : {}),
|
|
130
143
|
});
|
|
131
144
|
const loaded = new Map();
|
|
132
145
|
const requireHere = createRequire(import.meta.url);
|
|
@@ -216,8 +229,12 @@ export function harnessModulePaths(names, data) {
|
|
|
216
229
|
}
|
|
217
230
|
/** HARNESS_MODULES_ENV for the harness modules `names` names: none for none. */
|
|
218
231
|
export const harnessModulesEnv = (names, data) => (names.length ? { [HARNESS_MODULES_ENV]: JSON.stringify(harnessModulePaths(names, data)) } : {});
|
|
219
|
-
/** The ids of the harnesses `env`'s table
|
|
220
|
-
|
|
232
|
+
/** The ids of the harnesses `env`'s table lists, in its order: the built-in ones (pi first), then those its modules add;
|
|
233
|
+
* not one its entry hides on `env` (HarnessEntry.hidden: Goose until it is installed). */
|
|
234
|
+
export const harnessIds = (env) => Object.entries(harnessTable(env)).filter(([, entry]) => entry.hidden?.(env) === undefined).map(([id]) => id);
|
|
235
|
+
/** The ids of every harness `env`'s table has, hidden ones too: those a definition may name (a save warns of a hidden one,
|
|
236
|
+
* a run is refused with why). */
|
|
237
|
+
export const tableIds = (env) => Object.keys(harnessTable(env));
|
|
221
238
|
/** The built-in entry of harness `id` (none: the default, pi), for what a test's entry never changes: its memory (host.ts),
|
|
222
239
|
* which a stand-in reserves as the harness it stands in for does, so tests admit as a real server does. */
|
|
223
240
|
export const builtinHarness = (id) => BUILTIN[id ?? DEFAULT_HARNESS];
|
package/dist/harness.d.ts
CHANGED
|
@@ -8,8 +8,7 @@ export declare const DEFAULT_HARNESS: HarnessId;
|
|
|
8
8
|
/** What a harness id is, as the API says it (openapi.ts): a harness module's id that is not one refuses the start. */
|
|
9
9
|
export declare const HARNESS_ID_PATTERN = "^[a-z][a-z0-9-]{0,39}$";
|
|
10
10
|
/** The names serve's own runs carry where a harness id goes, so a harness module may not take one (its start is refused):
|
|
11
|
-
* `learning`,
|
|
12
|
-
* learning-factory.ts LEARNING_HARNESS) and the stores' learning queries match; `sdk`, an SDK run's launch harness
|
|
11
|
+
* `learning`, the launch harness the stores' learning queries match; `sdk`, an SDK run's launch harness
|
|
13
12
|
* (sdk/runs.ts); and the names analytics files a run's harness under: `workflow`, a workflow revision's, and each SDK
|
|
14
13
|
* runtime's (sdk/schema.ts SDK_BINDING). Also every name a plain object already has that the id pattern admits
|
|
15
14
|
* (`constructor`): serve looks harnesses up by id in plain objects, where such an id would read Object's own member. */
|
package/dist/harness.js
CHANGED
|
@@ -6,8 +6,7 @@ export const DEFAULT_HARNESS = "pi";
|
|
|
6
6
|
/** What a harness id is, as the API says it (openapi.ts): a harness module's id that is not one refuses the start. */
|
|
7
7
|
export const HARNESS_ID_PATTERN = "^[a-z][a-z0-9-]{0,39}$";
|
|
8
8
|
/** The names serve's own runs carry where a harness id goes, so a harness module may not take one (its start is refused):
|
|
9
|
-
* `learning`,
|
|
10
|
-
* learning-factory.ts LEARNING_HARNESS) and the stores' learning queries match; `sdk`, an SDK run's launch harness
|
|
9
|
+
* `learning`, the launch harness the stores' learning queries match; `sdk`, an SDK run's launch harness
|
|
11
10
|
* (sdk/runs.ts); and the names analytics files a run's harness under: `workflow`, a workflow revision's, and each SDK
|
|
12
11
|
* runtime's (sdk/schema.ts SDK_BINDING). Also every name a plain object already has that the id pattern admits
|
|
13
12
|
* (`constructor`): serve looks harnesses up by id in plain objects, where such an id would read Object's own member. */
|
|
@@ -86,9 +85,9 @@ export function harnessOffers(env) {
|
|
|
86
85
|
// lacks only a key is (a save warns of that, never refuses).
|
|
87
86
|
const { MODEL_REF } = await import("./validate.js");
|
|
88
87
|
const { providerFor, HarnessUnavailable } = await import("./provider.js");
|
|
89
|
-
const {
|
|
88
|
+
const { adapterFactsOf } = await import("./adapter-facts.js");
|
|
90
89
|
const { FAUX_ENV } = await import("./model.js");
|
|
91
|
-
const facts =
|
|
90
|
+
const facts = adapterFactsOf(offer.id);
|
|
92
91
|
for (const id of new Set([...pickerCandidates(env, offer.id), ...free.map((m) => m.id)])) {
|
|
93
92
|
if (!MODEL_REF.test(id))
|
|
94
93
|
continue;
|
package/dist/host.js
CHANGED
|
@@ -49,7 +49,8 @@ const listed = (names) => (names.length > 1 ? `${names.slice(0, -1).join(", ")}
|
|
|
49
49
|
export function neverFits(harness, memory, env = {}) {
|
|
50
50
|
if (runsThatFit(harness, memory, env) > 0)
|
|
51
51
|
return undefined;
|
|
52
|
-
|
|
52
|
+
// Those the server lists (an entry it hides, Goose before it is installed, is never named: harness-table.ts hidden).
|
|
53
|
+
const fit = Object.entries(ownerTable(env)).filter(([id, entry]) => entry.hidden?.(env) === undefined && runsThatFit(id, memory, env) > 0).map(([id]) => id);
|
|
53
54
|
return `This server has ${sizeOf(memory / MiB)} of memory and keeps ${sizeOf(SERVER_MIB)} for itself; ${aRun(harness)} needs about ${sizeOf(runMibOf(harness, env))} more, so it can't start here. ${listed(fit)} runs fit.`;
|
|
54
55
|
}
|
|
55
56
|
/** The cap on how many runs at once: `given`, else `AGENTRUN_MAX_RUNS`, else the default for this host's memory. A runner
|
package/dist/key-check.js
CHANGED
|
@@ -39,6 +39,9 @@ export const KEY_CHECKS = {
|
|
|
39
39
|
// in NOT_CHECKED.
|
|
40
40
|
anthropic: (key, env) => ({ url: `${base(env.ANTHROPIC_BASE_URL, "https://api.anthropic.com")}/v1/models?limit=1`, headers: { "x-api-key": key, "anthropic-version": "2023-06-01" } }),
|
|
41
41
|
openrouter: (key) => ({ url: "https://openrouter.ai/api/v1/key", headers: { authorization: `Bearer ${key}` } }),
|
|
42
|
+
// Particle bills inference tokens; its authenticated model listing performs no generation
|
|
43
|
+
// (https://docs.particle.ai/models, https://docs.particle.ai/pricing).
|
|
44
|
+
particle: (key) => ({ url: "https://api.particle.ai/v1/models", headers: { authorization: `Bearer ${key}` } }),
|
|
42
45
|
};
|
|
43
46
|
/** A key not checked, by key id, and why: OpenAI answers 401 (missing_scope) to a restricted key that works but may not
|
|
44
47
|
* list models, which the 401 rule would refuse. */
|
package/dist/learn/audit.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Workspace } from "../workspace/index.js";
|
|
|
2
2
|
import type { AuditLoop } from "../learning-setting.js";
|
|
3
3
|
import type { RunLaunch } from "../run-launch.js";
|
|
4
4
|
import { AUDITS_FILE, type FolderChange, type FolderRead } from "./folder.js";
|
|
5
|
-
import { type PromotionRecord } from "./promote.js";
|
|
5
|
+
import { type CostStop, type PromotionRecord, type ServingState } from "./promote.js";
|
|
6
6
|
export { AUDITS_FILE };
|
|
7
7
|
/** The newest rows the ledger keeps: twice the widest window a definition may set (AUDIT_MAX), and a file well under the
|
|
8
8
|
* folder's file cap (a line is a few hundred bytes); with them, the started lines of theirs, and every open one. */
|
|
@@ -107,11 +107,11 @@ export type AuditLine = {
|
|
|
107
107
|
};
|
|
108
108
|
export declare function auditLineOf(rows: readonly AuditRow[], workflow: string, digest: string, promotedAt: string | null, loop: Pick<AuditLoop, "hold_window" | "hold_disagree">): AuditLine;
|
|
109
109
|
/** What the promotions read says of each learned workflow beside what serves (learn/promote.ts servingOf, in its order):
|
|
110
|
-
* `state` (
|
|
111
|
-
*
|
|
112
|
-
*
|
|
110
|
+
* `state` (learn/promote.ts servingStateOf with the money rule's decision, `costStop`: the word the learning view's
|
|
111
|
+
* `status` says too), its newest decided check's numbers, and its audit line over the rows of the serving (else the
|
|
112
|
+
* newest) revision's newest promotion (the ones the hold rule counts). */
|
|
113
113
|
export type ServingLine = {
|
|
114
|
-
readonly state:
|
|
114
|
+
readonly state: ServingState;
|
|
115
115
|
readonly check: {
|
|
116
116
|
readonly n: number;
|
|
117
117
|
readonly agreed: number;
|
|
@@ -120,4 +120,4 @@ export type ServingLine = {
|
|
|
120
120
|
} | null;
|
|
121
121
|
readonly audit: AuditLine | null;
|
|
122
122
|
};
|
|
123
|
-
export declare function servingLinesOf(records: readonly PromotionRecord[], rows: readonly AuditRow[], loop: Pick<AuditLoop, "hold_window" | "hold_disagree"
|
|
123
|
+
export declare function servingLinesOf(records: readonly PromotionRecord[], rows: readonly AuditRow[], loop: Pick<AuditLoop, "hold_window" | "hold_disagree">, costStop: CostStop): ServingLine[];
|
package/dist/learn/audit.js
CHANGED
|
@@ -11,7 +11,7 @@ import { createHash } from "node:crypto";
|
|
|
11
11
|
import { COMPUTER_TOOLS } from "@parcha/agentrun-kernel/kernel";
|
|
12
12
|
import { pinAnnotations, toolClassOf, toolWord } from "./replay-calls.js";
|
|
13
13
|
import { AUDITS_FILE, readLearning } from "./folder.js";
|
|
14
|
-
import { promotionStartOf, servingOf } from "./promote.js";
|
|
14
|
+
import { promotionStartOf, servingOf, servingStateOf } from "./promote.js";
|
|
15
15
|
export { AUDITS_FILE };
|
|
16
16
|
/** The newest rows the ledger keeps: twice the widest window a definition may set (AUDIT_MAX), and a file well under the
|
|
17
17
|
* folder's file cap (a line is a few hundred bytes); with them, the started lines of theirs, and every open one. */
|
|
@@ -140,18 +140,14 @@ export function auditLineOf(rows, workflow, digest, promotedAt, loop) {
|
|
|
140
140
|
const counted = windowOf(rows, workflow, digest, promotedAt, loop);
|
|
141
141
|
return { window: loop.hold_window, disagree: loop.hold_disagree, rows: counted.length, disagreed: counted.filter((row) => row.agreed === false).length };
|
|
142
142
|
}
|
|
143
|
-
export function servingLinesOf(records, rows, loop) {
|
|
143
|
+
export function servingLinesOf(records, rows, loop, costStop) {
|
|
144
144
|
return servingOf(records).map(({ workflow, digest }) => {
|
|
145
145
|
const own = records.filter((one) => one.workflow === workflow);
|
|
146
146
|
const newest = own.at(-1);
|
|
147
|
-
const state = newest?.decided === "replaying" ? "checking"
|
|
148
|
-
: digest !== null ? "serving"
|
|
149
|
-
: newest?.decided === "hold" && (newest.check?.stopped || newest.audit?.stopped) ? "stopped"
|
|
150
|
-
: "held";
|
|
151
147
|
const checked = own.findLast((one) => one.check?.n !== undefined)?.check;
|
|
152
148
|
const at = digest ?? newest?.digest;
|
|
153
149
|
return {
|
|
154
|
-
state,
|
|
150
|
+
state: servingStateOf(records, workflow, costStop),
|
|
155
151
|
check: checked ? { n: checked.n, agreed: checked.agreed ?? 0, alone: checked.alone ?? 0, attempt: checked.attempt } : null,
|
|
156
152
|
audit: at === undefined ? null : auditLineOf(rows, workflow, at, promotionStartOf(records, workflow, at)?.at ?? null, loop),
|
|
157
153
|
};
|
package/dist/learn/check.d.ts
CHANGED
|
@@ -1,44 +1,21 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
3
|
-
/** A note's bytes as the note cap counts them: all of `text` but the `compiled_into` line the host adds when a learned
|
|
4
|
-
* workflow is compiled from it (notes.ts compiledLineBytes). A note at the cap stays one once marked: it retires,
|
|
5
|
-
* restores, and a later note supersedes it through the grader, each checked against `note`. A run never sets the line
|
|
6
|
-
* (checkProposal refuses it), so a run's note is counted whole. */
|
|
7
|
-
export declare const noteBytes: (text: string) => number;
|
|
8
|
-
/** Byte caps (UTF-8) and counts. Over a cap is refused, never cut. */
|
|
1
|
+
import { type DraftDecisions, type DraftDryRun, type DraftReader } from "./workflow-draft.js";
|
|
2
|
+
/** Byte caps (UTF-8). Over a cap is refused, never cut. */
|
|
9
3
|
export declare const CAPS: Readonly<{
|
|
10
|
-
/** One
|
|
11
|
-
note: 4096;
|
|
12
|
-
/** One note a run proposes: the note cap less HOST_LINES, so a run's note stays within `note` once the host merges
|
|
13
|
-
* it, and a person can still retire it and a later run supersede it, each read and checked against `note`. */
|
|
14
|
-
runNote: number;
|
|
15
|
-
/** New notes in one run. */
|
|
16
|
-
newNotes: 8;
|
|
17
|
-
/** Notes one run's new notes supersede, together. */
|
|
18
|
-
supersedes: 8;
|
|
19
|
-
/** Changed paths in one run; over it nothing else is read. */
|
|
20
|
-
changes: 64;
|
|
21
|
-
/** One skill's SKILL.md, or one workflow draft's workflow.json: one grader reads each whole beside the notes, so the
|
|
22
|
-
* most a run proposes stays within its prompt (grade.ts GRADE_CAPS.prompt). */
|
|
4
|
+
/** One draft's workflow.json. */
|
|
23
5
|
file: 16384;
|
|
24
6
|
/** One draft's README.md, which the host writes from the one-line description its block gives. */
|
|
25
7
|
readme: 1024;
|
|
26
|
-
/** Skills one run adds or changes. */
|
|
27
|
-
skills: 1;
|
|
28
|
-
/** Workflow drafts one run adds or changes. */
|
|
29
|
-
workflows: 1;
|
|
30
8
|
}>;
|
|
31
9
|
/** The rule a problem breaks. SPEC.md lists each. */
|
|
32
|
-
export type Rule = "
|
|
33
|
-
/** One problem with
|
|
10
|
+
export type Rule = "outside" | "file_name" | "file_mode" | "encoding" | "deleted" | "too_large" | "invisible_unicode" | "secret_shape" | "secret_value" | "workflow" | "no_tool_list" | "executable_node" | "front_matter" | "kept";
|
|
11
|
+
/** One problem with a draft, printable as it is. */
|
|
34
12
|
export type Problem = {
|
|
35
13
|
readonly rule: Rule;
|
|
36
14
|
readonly path?: string;
|
|
37
15
|
readonly detail: string;
|
|
38
16
|
};
|
|
39
|
-
/** One file
|
|
40
|
-
*
|
|
41
|
-
* bytes, or only its `size` when that is over the note cap. */
|
|
17
|
+
/** One file a draft adds or changes. `mode` is git's (`100644` a regular file, `120000` a link, `040000` a folder;
|
|
18
|
+
* anything else is not a regular file). A change that is not a deletion carries its bytes. */
|
|
42
19
|
export type Change = {
|
|
43
20
|
readonly path: string;
|
|
44
21
|
readonly status: "added" | "modified" | "deleted";
|
|
@@ -46,58 +23,32 @@ export type Change = {
|
|
|
46
23
|
readonly size?: number;
|
|
47
24
|
readonly bytes?: Uint8Array;
|
|
48
25
|
};
|
|
49
|
-
|
|
50
|
-
* notes. */
|
|
51
|
-
/** What a proposal is checked against: every path at the seed's top, its active notes, and `rules`, when the caller read
|
|
52
|
-
* the active notes' texts, each one's rule (notes.ts ruleOf) to its file: a new note of the same rule is a duplicate. */
|
|
53
|
-
export type Base = {
|
|
54
|
-
readonly files: Iterable<string>;
|
|
55
|
-
readonly active: readonly LearnedNote[];
|
|
56
|
-
readonly rules?: ReadonlyMap<string, string>;
|
|
57
|
-
};
|
|
58
|
-
/** A new note that passed, with its whole text. */
|
|
59
|
-
export type ProposedNote = LearnedNote & {
|
|
60
|
-
readonly text: string;
|
|
61
|
-
};
|
|
62
|
-
export type CheckInput = {
|
|
63
|
-
readonly base: Base;
|
|
26
|
+
export type DraftCheckInput = {
|
|
64
27
|
readonly changes: readonly Change[];
|
|
65
28
|
/** Values the host holds as secrets: a file, or a file's name, that holds one is refused. */
|
|
66
29
|
readonly refuseValues?: readonly string[];
|
|
67
|
-
/** How the run's job ended, its status (`completed`, `failed`, ...). Only a completed run adds or changes a skill:
|
|
68
|
-
* without it, none does. */
|
|
69
|
-
readonly outcome?: string;
|
|
70
30
|
/** The tools a workflow draft may name: the agent's granted tools a workflow's call node runs here (tools.ts
|
|
71
31
|
* learnedWorkflowTools). Without it, a draft that names a tool is refused. */
|
|
72
32
|
readonly tools?: readonly string[];
|
|
73
33
|
/** The agent's granted tools the gate does not allow, with what each is set to (tools.ts learnedDraftTools): a draft
|
|
74
|
-
* whose call node calls one is refused
|
|
34
|
+
* whose call node calls one is refused (workflow-draft.ts gatedNodes). */
|
|
75
35
|
readonly gated?: Readonly<Record<string, string>>;
|
|
76
36
|
/** Where each of `gated`'s denies was set (this agent's settings or this server's), for the refusal's words. */
|
|
77
37
|
readonly deniedBy?: Readonly<Record<string, "agent" | "server" | "default">>;
|
|
78
|
-
/** False for a run of a revision that says `learning: "notes"`: a workflow draft it gives is left out (rule `workflow`,
|
|
79
|
-
* NOTES_ONLY), and its notes and skill go on. */
|
|
80
|
-
readonly workflows?: false;
|
|
81
38
|
/** Explicit host adapter capabilities; absent keeps the managed runner defaults. */
|
|
82
39
|
readonly workflowAdapters?: readonly ("runNode" | "runJudge")[];
|
|
83
|
-
/** The workflow DSL a draft is read with
|
|
84
|
-
readonly dsl
|
|
85
|
-
/** The decision providers a draft's decision nodes may ask, and the gate's setting of each (
|
|
40
|
+
/** The workflow DSL a draft is read with. */
|
|
41
|
+
readonly dsl: DraftReader;
|
|
42
|
+
/** The decision providers a draft's decision nodes may ask, and the gate's setting of each (workflow-draft.ts
|
|
86
43
|
* DraftDecisions, LS-07). Without them, a draft with a decision node is refused. */
|
|
87
44
|
readonly decisions?: DraftDecisions;
|
|
88
|
-
/** Each draft's dry run (
|
|
45
|
+
/** Each draft's dry run (workflow-draft.ts draftDryRun), by its workflow.json's path: one that failed is refused, rule
|
|
89
46
|
* `workflow`, when the draft has no other problem. A draft with none given is checked without one. */
|
|
90
47
|
readonly dryRuns?: Readonly<Record<string, DraftDryRun>>;
|
|
91
|
-
/** The
|
|
92
|
-
*
|
|
48
|
+
/** The drafts' files whose text on main has a status (a person retired it, or it waits for its owner's OK): a run
|
|
49
|
+
* never changes those. A draft's is its README.md. */
|
|
93
50
|
readonly kept?: readonly string[];
|
|
94
51
|
};
|
|
95
|
-
/** `ok` when `problems` is empty; then `notes` are the new notes, each in shape. */
|
|
96
|
-
export type ProposalCheck = {
|
|
97
|
-
readonly ok: boolean;
|
|
98
|
-
readonly problems: Problem[];
|
|
99
|
-
readonly notes: ProposedNote[];
|
|
100
|
-
};
|
|
101
52
|
/** `problem` as it may be printed: its path and detail cut of `values` and of every shape learning refuses, a bank's
|
|
102
53
|
* numbers too (redactLearned: a name refused for one never prints it), whole when over PRINT_MAX. */
|
|
103
54
|
export declare const printable: (problem: Problem, values: readonly string[]) => Problem;
|
|
@@ -135,30 +86,13 @@ export declare function compactStateProblems(doc: unknown): string[];
|
|
|
135
86
|
* H5's judge flagged 149 of 170 answers while 416 of 429 quotes were in the pages, and could not tell the 8 answers
|
|
136
87
|
* quoting text no page held from the rest; code can. One line each, in words the compile retry acts on. */
|
|
137
88
|
export declare function quoteCheckProblems(doc: unknown): string[];
|
|
138
|
-
/** The checks one note's file passes by itself (SPEC.md), as a person writes it through the host: its name, the note cap,
|
|
139
|
-
* UTF-8, hidden characters, secret shapes and the host's values in its name and text, and its front matter. A person
|
|
140
|
-
* may set `status` and `superseded_by`; what a run may not do (edit, delete, set status) is checkProposal's. Every
|
|
141
|
-
* problem is printable. */
|
|
142
|
-
export declare function checkNote(path: string, bytes: Uint8Array, refuseValues?: readonly string[]): {
|
|
143
|
-
problems: Problem[];
|
|
144
|
-
note?: ProposedNote;
|
|
145
|
-
};
|
|
146
|
-
/** Checks what a run proposes against SPEC.md: its notes, and a skill or workflow drafts beside them (learnedChecked).
|
|
147
|
-
* `MEMORY.md` is the host's: a change to it is ignored, never refused. */
|
|
148
89
|
/** What must never be stored, in every change's name and text, whatever the checks would refuse it for first: the
|
|
149
|
-
* name and text scans (nameScanned, textOf) of each change, its text read whole (
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* refuse (propose.ts): an item refused before its text was read hides nothing. */
|
|
90
|
+
* name and text scans (nameScanned, textOf) of each change, its text read whole (a file over its cap, one not a regular
|
|
91
|
+
* file included), printable as checkDraft's are. A text that is not UTF-8 is `encoding`: unread, so never trusted.
|
|
92
|
+
* Empty when nothing in them must be refused. */
|
|
153
93
|
export declare function unstorable(changes: readonly Change[], refuseValues?: readonly string[]): Problem[];
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
export declare function
|
|
159
|
-
/** What stops `notes` from joining `base` as they are: a name `base` holds (`exists`), a `supersedes` that names no
|
|
160
|
-
* active note of `base` or one another new note supersedes too, or more than CAPS.supersedes notes superseded, and an
|
|
161
|
-
* index past INDEX_LINES, counted as the merge makes it (supersededBy: a pending note adds no line and replaces none).
|
|
162
|
-
* The checker asks it of the run's seed, where every new note is active; the host asks it again of main at merge time,
|
|
163
|
-
* with each note as it merges it, since other runs may have merged meanwhile. */
|
|
164
|
-
export declare function mergeProblems(base: Base, notes: readonly LearnedNote[], refuseValues?: readonly string[]): Problem[];
|
|
94
|
+
/** Checks one workflow draft (its workflow.json and README.md, given together by draftFiles) against SPEC.md: each file
|
|
95
|
+
* under workflows/<name>/ (learnedChecked), nothing else, and the two together (a workflow whose files are otherwise in
|
|
96
|
+
* shape with one of them missing names it: restore reads the README). Never throws: a draft it could not read (no
|
|
97
|
+
* workflow DSL, a check that threw) is a problem in words. Every problem printable; none when it passes. */
|
|
98
|
+
export declare function checkDraft(input: DraftCheckInput): Problem[];
|