@parcha/agentrun-serve 0.1.0-beta.54 → 0.1.0-beta.56

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.
Files changed (234) hide show
  1. package/CHANGELOG.md +142 -2
  2. package/README.md +310 -98
  3. package/dist/adapters.d.ts +11 -0
  4. package/dist/adapters.js +49 -0
  5. package/dist/agent-package.d.ts +3 -3
  6. package/dist/agent-package.js +6 -13
  7. package/dist/agents-store.js +6 -5
  8. package/dist/answer-json.d.ts +6 -2
  9. package/dist/answer-json.js +22 -4
  10. package/dist/api-only.d.ts +16 -4
  11. package/dist/api-only.js +23 -7
  12. package/dist/calendar/tools.js +3 -2
  13. package/dist/chatgpt-plan.d.ts +16 -1
  14. package/dist/chatgpt-plan.js +116 -12
  15. package/dist/claude-login.d.ts +34 -5
  16. package/dist/claude-login.js +31 -7
  17. package/dist/claude-sign-in.d.ts +35 -0
  18. package/dist/claude-sign-in.js +90 -0
  19. package/dist/cli.js +5 -3
  20. package/dist/composio-made.d.ts +26 -1
  21. package/dist/composio-made.js +39 -2
  22. package/dist/composio-preset.d.ts +3 -2
  23. package/dist/composio-preset.js +46 -14
  24. package/dist/computer-held-routes.js +2 -3
  25. package/dist/computer-setting.d.ts +4 -2
  26. package/dist/computer-setting.js +0 -2
  27. package/dist/computers-running.d.ts +8 -0
  28. package/dist/computers-running.js +27 -0
  29. package/dist/console/assets/backend-Boh7tC4i.js +166 -0
  30. package/dist/console/assets/index-CQ3cJRzI.js +746 -0
  31. package/dist/console/assets/index-DKkaS3a0.css +1 -0
  32. package/dist/console/index.html +2 -2
  33. package/dist/docker-host-addresses.d.ts +23 -3
  34. package/dist/docker-host-addresses.js +90 -18
  35. package/dist/exa-keyless.d.ts +2 -3
  36. package/dist/exa-keyless.js +43 -127
  37. package/dist/firecrawl-keyless.d.ts +41 -0
  38. package/dist/firecrawl-keyless.js +152 -0
  39. package/dist/handed-secret.d.ts +3 -1
  40. package/dist/handed-secret.js +4 -2
  41. package/dist/harness-keys.d.ts +98 -0
  42. package/dist/harness-keys.js +247 -0
  43. package/dist/harness-recipe-entry.d.ts +14 -9
  44. package/dist/harness-recipe-entry.js +25 -14
  45. package/dist/harness-table.d.ts +16 -1
  46. package/dist/harness-table.js +19 -7
  47. package/dist/harness.d.ts +4 -0
  48. package/dist/harness.js +12 -1
  49. package/dist/host-check.d.ts +6 -0
  50. package/dist/host-check.js +10 -0
  51. package/dist/import-summary.d.ts +1 -1
  52. package/dist/import-summary.js +1 -1
  53. package/dist/import.d.ts +5 -5
  54. package/dist/import.js +54 -67
  55. package/dist/key-refusal.d.ts +21 -5
  56. package/dist/key-refusal.js +231 -37
  57. package/dist/keyless-mcp.d.ts +36 -0
  58. package/dist/keyless-mcp.js +127 -0
  59. package/dist/learn/audit.d.ts +3 -3
  60. package/dist/learn/audit.js +3 -3
  61. package/dist/learn/commit.d.ts +8 -7
  62. package/dist/learn/commit.js +60 -20
  63. package/dist/learn/compile.d.ts +4 -3
  64. package/dist/learn/compile.js +7 -5
  65. package/dist/learn/folder.d.ts +16 -3
  66. package/dist/learn/folder.js +46 -13
  67. package/dist/learn/promote.d.ts +37 -13
  68. package/dist/learn/promote.js +112 -40
  69. package/dist/learn/secrets.d.ts +20 -10
  70. package/dist/learn/secrets.js +44 -176
  71. package/dist/learning-routes.d.ts +22 -17
  72. package/dist/learning-routes.js +40 -39
  73. package/dist/learning.js +2 -2
  74. package/dist/llms.txt +1 -1
  75. package/dist/manifest.d.ts +10 -0
  76. package/dist/manifest.js +30 -0
  77. package/dist/mcp-pin-first.d.ts +4 -2
  78. package/dist/mcp-pin-first.js +5 -2
  79. package/dist/mcp-secret-writes.d.ts +16 -7
  80. package/dist/mcp-secret-writes.js +35 -27
  81. package/dist/mcp-servers-store.d.ts +30 -6
  82. package/dist/mcp-servers-store.js +112 -28
  83. package/dist/mcp-sources.d.ts +10 -2
  84. package/dist/mcp-sources.js +9 -2
  85. package/dist/mcp-store.d.ts +13 -7
  86. package/dist/mcp-store.js +12 -9
  87. package/dist/model-form.d.ts +3 -2
  88. package/dist/model-form.js +11 -7
  89. package/dist/model.d.ts +20 -4
  90. package/dist/model.js +68 -9
  91. package/dist/native/history.d.ts +1 -1
  92. package/dist/native/history.js +2 -2
  93. package/dist/ollama-provider.d.ts +92 -0
  94. package/dist/ollama-provider.js +495 -0
  95. package/dist/openapi/agentrun-v2.openapi.json +2 -2
  96. package/dist/openapi.d.ts +3 -3
  97. package/dist/openapi.js +197 -55
  98. package/dist/page.d.ts +11 -3
  99. package/dist/page.js +22 -7
  100. package/dist/place-offers.d.ts +25 -1
  101. package/dist/place-offers.js +62 -8
  102. package/dist/print.js +1 -1
  103. package/dist/purged-workflow.d.ts +35 -7
  104. package/dist/purged-workflow.js +73 -26
  105. package/dist/redact/match.d.ts +74 -0
  106. package/dist/redact/match.js +771 -0
  107. package/dist/run-computer.d.ts +2 -0
  108. package/dist/run-computer.js +2 -0
  109. package/dist/run-files.d.ts +4 -0
  110. package/dist/run-files.js +4 -0
  111. package/dist/run-keys.d.ts +2 -4
  112. package/dist/run-keys.js +6 -7
  113. package/dist/run-launch.d.ts +4 -0
  114. package/dist/run-launch.js +4 -0
  115. package/dist/run-reads-over-store.d.ts +3 -2
  116. package/dist/run-reads-over-store.js +66 -2
  117. package/dist/run-secrets.js +5 -2
  118. package/dist/run-timeline-served.d.ts +1 -1
  119. package/dist/run-timeline-served.js +4 -4
  120. package/dist/runner/adapter-loop.d.ts +9 -3
  121. package/dist/runner/adapter-loop.js +34 -15
  122. package/dist/runner/adapter-run-spec.d.ts +3 -0
  123. package/dist/runner/adapter-run-spec.js +9 -4
  124. package/dist/runner/audit.js +8 -4
  125. package/dist/runner/beside.d.ts +2 -1
  126. package/dist/runner/beside.js +13 -5
  127. package/dist/runner/claim-secrets.d.ts +5 -8
  128. package/dist/runner/claim-secrets.js +6 -0
  129. package/dist/runner/cli-run-spec.d.ts +1 -1
  130. package/dist/runner/cli-run-spec.js +41 -7
  131. package/dist/runner/harness-loops.d.ts +22 -9
  132. package/dist/runner/harness-loops.js +21 -11
  133. package/dist/runner/held.d.ts +3 -0
  134. package/dist/runner/learning-end.d.ts +1 -1
  135. package/dist/runner/learning-end.js +8 -3
  136. package/dist/runner/loop-contract.d.ts +9 -4
  137. package/dist/runner/main.js +12 -6
  138. package/dist/runner/mcp-claim.d.ts +3 -0
  139. package/dist/runner/mcp-claim.js +26 -2
  140. package/dist/runner/mcp-run.d.ts +3 -0
  141. package/dist/runner/mcp-run.js +2 -1
  142. package/dist/runner/metrics.d.ts +10 -10
  143. package/dist/runner/metrics.js +19 -38
  144. package/dist/runner/model-route.d.ts +3 -0
  145. package/dist/runner/model-route.js +6 -2
  146. package/dist/runner/presence.d.ts +4 -3
  147. package/dist/runner/presence.js +4 -2
  148. package/dist/runner/promotion.d.ts +15 -9
  149. package/dist/runner/promotion.js +25 -15
  150. package/dist/runner/run-child-host.d.ts +2 -0
  151. package/dist/runner/run-child-host.js +19 -9
  152. package/dist/runner/run-child.js +3 -1
  153. package/dist/runner/runner.d.ts +4 -0
  154. package/dist/runner/runner.js +33 -3
  155. package/dist/runner/sdk-loop.js +2 -0
  156. package/dist/runner/workflow-loop.d.ts +2 -2
  157. package/dist/runner/workflow-loop.js +1 -2
  158. package/dist/runner/workflow-spec.d.ts +1 -1
  159. package/dist/runner/workflow-spec.js +6 -6
  160. package/dist/sdk/check.d.ts +4 -1
  161. package/dist/sdk/check.js +2 -1
  162. package/dist/sdk/runs.d.ts +2 -2
  163. package/dist/sdk/runs.js +8 -6
  164. package/dist/secret-cut.js +2 -1
  165. package/dist/secret-writes.d.ts +3 -2
  166. package/dist/secret-writes.js +1 -1
  167. package/dist/server.d.ts +49 -10
  168. package/dist/server.js +324 -118
  169. package/dist/standard-webhooks.d.ts +11 -0
  170. package/dist/standard-webhooks.js +20 -2
  171. package/dist/store/dialect.d.ts +3 -0
  172. package/dist/store/dialect.js +1 -0
  173. package/dist/store/index.d.ts +2 -2
  174. package/dist/store/index.js +1 -1
  175. package/dist/store/postgres/dialect.js +3 -0
  176. package/dist/store/schema.js +5 -2
  177. package/dist/store/sqlite/store.js +133 -47
  178. package/dist/store/store.d.ts +64 -15
  179. package/dist/store/store.js +7 -0
  180. package/dist/store-reads/journal.d.ts +7 -2
  181. package/dist/store-reads/journal.js +9 -6
  182. package/dist/store-reads/learning.d.ts +12 -9
  183. package/dist/store-reads/learning.js +18 -24
  184. package/dist/store-view.d.ts +0 -5
  185. package/dist/store-view.js +10 -9
  186. package/dist/template-eval.d.ts +51 -6
  187. package/dist/template-eval.js +177 -53
  188. package/dist/template-import.js +4 -2
  189. package/dist/templates.d.ts +5 -3
  190. package/dist/templates.js +19 -40
  191. package/dist/timeline/index.d.ts +1 -1
  192. package/dist/timeline/index.js +1 -1
  193. package/dist/timeline/labels.d.ts +2 -2
  194. package/dist/timeline/labels.js +2 -2
  195. package/dist/timeline/timeline.d.ts +14 -9
  196. package/dist/timeline/timeline.js +15 -7
  197. package/dist/tool-gate.js +3 -1
  198. package/dist/tool-plane.d.ts +17 -9
  199. package/dist/tool-plane.js +38 -17
  200. package/dist/tools.js +2 -2
  201. package/dist/trigger-launch-hook.d.ts +16 -8
  202. package/dist/trigger-launch-hook.js +32 -23
  203. package/dist/trigger-targets.d.ts +18 -8
  204. package/dist/trigger-targets.js +42 -19
  205. package/dist/triggers.d.ts +85 -23
  206. package/dist/triggers.js +303 -96
  207. package/dist/validate.js +1 -1
  208. package/dist/web-fake.js +3 -3
  209. package/dist/web-fetch-direct.d.ts +4 -0
  210. package/dist/web-fetch-direct.js +8 -1
  211. package/dist/web-fetch.d.ts +12 -3
  212. package/dist/web-fetch.js +47 -14
  213. package/dist/web-search.d.ts +33 -4
  214. package/dist/web-search.js +100 -41
  215. package/dist/webhooks.js +4 -5
  216. package/dist/workspace/computer-deps.d.ts +2 -1
  217. package/dist/workspace/computer-deps.js +5 -4
  218. package/dist/workspace/computer-for-claim.d.ts +8 -2
  219. package/dist/workspace/computer-for-claim.js +28 -9
  220. package/dist/workspace/computer-janitor.d.ts +15 -7
  221. package/dist/workspace/computer-janitor.js +33 -8
  222. package/dist/workspace/computer-kept.d.ts +52 -4
  223. package/dist/workspace/computer-kept.js +118 -6
  224. package/dist/workspace/run-end-computers.d.ts +5 -1
  225. package/dist/workspace/run-end-computers.js +27 -1
  226. package/dist/wrapped.d.ts +57 -0
  227. package/dist/wrapped.js +51 -0
  228. package/launcher/agentrun-serve +5 -1
  229. package/package.json +17 -13
  230. package/templates/README.md +10 -9
  231. package/dist/console/assets/index-B_85An2t.js +0 -745
  232. package/dist/console/assets/index-n1YsbnYh.css +0 -1
  233. package/dist/import-sources.d.ts +0 -116
  234. package/dist/import-sources.js +0 -693
@@ -0,0 +1,57 @@
1
+ import type { Wrapped } from "@parcha/agentrun-import";
2
+ /** `wrapped` (the import package's) as GET /v2/wrapped serves it, and the runs imported from each source (`imported`). */
3
+ export declare function wrappedView(wrapped: Wrapped, imported: readonly {
4
+ source: string;
5
+ runs: number;
6
+ }[], unreadFiles?: number): {
7
+ year: number;
8
+ sessions: number;
9
+ turns: number;
10
+ requests: number;
11
+ tokens: {
12
+ input: number;
13
+ output: number;
14
+ cache_read: number;
15
+ cache_write: number;
16
+ };
17
+ cost_usd: number;
18
+ unpriced_requests: number;
19
+ days: {
20
+ day: string;
21
+ requests: number;
22
+ tokens: number;
23
+ }[];
24
+ hours: number[];
25
+ weekdays: number[];
26
+ active_ms: number;
27
+ harnesses: {
28
+ harness: string;
29
+ sessions: number;
30
+ requests: number;
31
+ tokens: number;
32
+ }[];
33
+ models: {
34
+ model: string;
35
+ requests: number;
36
+ tokens: number;
37
+ cost_usd: number;
38
+ }[];
39
+ sources: {
40
+ source: string;
41
+ sessions: number;
42
+ requests: number;
43
+ }[];
44
+ imported: {
45
+ source: string;
46
+ runs: number;
47
+ }[];
48
+ unread_files: number;
49
+ };
50
+ type Read = {
51
+ wrapped: Wrapped;
52
+ unread: number;
53
+ };
54
+ /** The year's wrappedHome over this machine's home, shared by the reads of the minute, and how many session files it could
55
+ * not read (one gone since it was listed, or one this user cannot open): the numbers are short by those, and say so. */
56
+ export declare function readWrapped(year: number, now?: number): Promise<Read>;
57
+ export {};
@@ -0,0 +1,51 @@
1
+ // GET /v2/wrapped: a year of the work under this machine's home (Claude Code, Codex, pi and every other source the import
2
+ // package reads), as numbers. The import package's wrappedHome does the reading; this is its answer in the API's words,
3
+ // with the runs imported here beside it. Numbers and names only: no prompt, title, path or project is in it.
4
+ import { homedir } from "node:os";
5
+ const total = ({ input, output, cacheRead, cacheWrite }) => input + output + cacheRead + cacheWrite;
6
+ /** `wrapped` (the import package's) as GET /v2/wrapped serves it, and the runs imported from each source (`imported`). */
7
+ export function wrappedView(wrapped, imported, unreadFiles = 0) {
8
+ const { input, output, cacheRead, cacheWrite } = wrapped.tokens;
9
+ return {
10
+ year: wrapped.year,
11
+ sessions: wrapped.sessions,
12
+ turns: wrapped.turns,
13
+ requests: wrapped.requests,
14
+ tokens: { input, output, cache_read: cacheRead, cache_write: cacheWrite },
15
+ cost_usd: wrapped.cost,
16
+ unpriced_requests: wrapped.unpricedRequests,
17
+ days: wrapped.days,
18
+ hours: wrapped.hours,
19
+ weekdays: wrapped.weekdays,
20
+ active_ms: wrapped.activeMs,
21
+ harnesses: wrapped.harnesses,
22
+ models: wrapped.models.map(({ model, requests, tokens, cost }) => ({ model, requests, tokens: total(tokens), cost_usd: cost })),
23
+ sources: wrapped.sources,
24
+ imported: imported.map(({ source, runs }) => ({ source, runs })),
25
+ unread_files: unreadFiles,
26
+ };
27
+ }
28
+ /** A year read lately is not read again for a minute: a whole home is a long read, and the page asks for it on every open.
29
+ * A read still going is shared however long it takes; its minute starts when it ends. */
30
+ const KEEP_MS = 60_000;
31
+ const kept = new Map();
32
+ /** The year's wrappedHome over this machine's home, shared by the reads of the minute, and how many session files it could
33
+ * not read (one gone since it was listed, or one this user cannot open): the numbers are short by those, and say so. */
34
+ export function readWrapped(year, now = Date.now()) {
35
+ const home = homedir();
36
+ const key = `${home}:${year}`;
37
+ const held = kept.get(key);
38
+ if (held && (held.at === undefined || now - held.at < KEEP_MS))
39
+ return held.read;
40
+ const failures = [];
41
+ const read = import("@parcha/agentrun-import").then(async ({ wrappedHome }) => ({ wrapped: await wrappedHome(home, year, { failures }), unread: failures.length }));
42
+ const entry = { read };
43
+ kept.set(key, entry);
44
+ read.then(() => {
45
+ entry.at = Date.now();
46
+ }, () => {
47
+ if (kept.get(key) === entry)
48
+ kept.delete(key);
49
+ });
50
+ return read;
51
+ }
@@ -26,6 +26,10 @@
26
26
  # BROWSERBASE_PROJECT_ID is no secret, but a tool key's field: every field a person may save is on this list, so a
27
27
  # saved one is read by the same name and reaches a run's process over its pipe, as the launcher's does.
28
28
  #
29
+ # COMPOSIO_API_KEY, the Composio account key a Composio MCP server saved with `api_key_env` reads
30
+ # (src/composio-made.ts COMPOSIO_KEY_ENV): only the server's and the runner's own code reads it (a Composio save's calls,
31
+ # a claim's MCP header to Composio's origin), and no run is handed it.
32
+ #
29
33
  # ARCHIL_API_KEY, the Archil account key, and every computer provider's key from E2B_API_KEY to MODAL_TOKEN_SECRET
30
34
  # (src/computer-keys.ts COMPUTER_KEY_NAMES): only the server's and the runner's own code reads one (the Archil claim,
31
35
  # a computer's create), and no run is handed one.
@@ -39,7 +43,7 @@
39
43
  # here. Any other variable named like a key (a KEY, TOKEN, SECRET, PASSWORD, PASSWD, PASS, PAT, CREDENTIAL, CREDENTIALS or
40
44
  # DSN segment, or a last PWD after another) stays in the server's environment, as this list does not take it, and in no
41
45
  # run's: name it here to keep it from the server's too.
42
- SECRETS='AGENTRUN_TOKEN AGENTRUN_TOKENS AGENTRUN_API_KEY AGENTRUN_STORE_URL AGENT_MODEL_API_KEY OPENAI_API_KEY ANTHROPIC_API_KEY BROWSERBASE_API_KEY BROWSERBASE_PROJECT_ID KERNEL_API_KEY OPENROUTER_API_KEY PARTICLE_API_KEY TYPESAFE_API_KEY PARALLEL_API_KEY MONID_API_KEY CURSOR_API_KEY AGENTRUN_SEAL_KEY AGENTRUN_LAUNCH_HOOK_SECRET ARCHIL_API_KEY E2B_API_KEY ORGO_API_KEY PHONE_HARNESS_API_KEY AGENT37_API_KEY AGENT37_SSH_KEY DAYTONA_API_KEY BOXD_API_KEY MORPH_API_KEY SMOLCLOUD_API_KEY GROUNDBOX_API_KEY CLOUDFLARE_RELAY_TOKEN FLY_API_TOKEN MODAL_TOKEN_ID MODAL_TOKEN_SECRET ANTHROPIC_AUTH_TOKEN ANTHROPIC_OAUTH_TOKEN AI_GATEWAY_API_KEY ANT_LING_API_KEY AWS_ACCESS_KEY_ID AWS_BEARER_TOKEN_BEDROCK AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AZURE_OPENAI_API_KEY BASETEN_API_KEY CEREBRAS_API_KEY CLOUDFLARE_API_KEY COPILOT_GITHUB_TOKEN DEEPSEEK_API_KEY FIREWORKS_API_KEY GEMINI_API_KEY GOOGLE_CLOUD_API_KEY GROQ_API_KEY HF_TOKEN KIMI_API_KEY META_API_KEY MINIMAX_API_KEY MINIMAX_CN_API_KEY MISTRAL_API_KEY MOONSHOT_API_KEY NVIDIA_API_KEY OPENCODE_API_KEY QWEN_TOKEN_PLAN_API_KEY QWEN_TOKEN_PLAN_CN_API_KEY RADIUS_API_KEY TOGETHER_API_KEY XAI_API_KEY XIAOMI_API_KEY XIAOMI_TOKEN_PLAN_AMS_API_KEY XIAOMI_TOKEN_PLAN_CN_API_KEY XIAOMI_TOKEN_PLAN_SGP_API_KEY ZAI_API_KEY ZAI_CODING_CN_API_KEY'
46
+ SECRETS='AGENTRUN_TOKEN AGENTRUN_TOKENS AGENTRUN_API_KEY AGENTRUN_STORE_URL AGENT_MODEL_API_KEY OPENAI_API_KEY ANTHROPIC_API_KEY BROWSERBASE_API_KEY BROWSERBASE_PROJECT_ID KERNEL_API_KEY OPENROUTER_API_KEY PARTICLE_API_KEY TYPESAFE_API_KEY PARALLEL_API_KEY MONID_API_KEY CURSOR_API_KEY AGENTRUN_SEAL_KEY AGENTRUN_LAUNCH_HOOK_SECRET COMPOSIO_API_KEY ARCHIL_API_KEY E2B_API_KEY ORGO_API_KEY PHONE_HARNESS_API_KEY AGENT37_API_KEY AGENT37_SSH_KEY DAYTONA_API_KEY BOXD_API_KEY MORPH_API_KEY SMOLCLOUD_API_KEY GROUNDBOX_API_KEY CLOUDFLARE_RELAY_TOKEN FLY_API_TOKEN MODAL_TOKEN_ID MODAL_TOKEN_SECRET ANTHROPIC_AUTH_TOKEN ANTHROPIC_OAUTH_TOKEN AI_GATEWAY_API_KEY ANT_LING_API_KEY AWS_ACCESS_KEY_ID AWS_BEARER_TOKEN_BEDROCK AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AZURE_OPENAI_API_KEY BASETEN_API_KEY CEREBRAS_API_KEY CLOUDFLARE_API_KEY COPILOT_GITHUB_TOKEN DEEPSEEK_API_KEY FIREWORKS_API_KEY GEMINI_API_KEY GOOGLE_CLOUD_API_KEY GROQ_API_KEY HF_TOKEN KIMI_API_KEY META_API_KEY MINIMAX_API_KEY MINIMAX_CN_API_KEY MISTRAL_API_KEY MOONSHOT_API_KEY NVIDIA_API_KEY OPENCODE_API_KEY QWEN_TOKEN_PLAN_API_KEY QWEN_TOKEN_PLAN_CN_API_KEY RADIUS_API_KEY TOGETHER_API_KEY XAI_API_KEY XIAOMI_API_KEY XIAOMI_TOKEN_PLAN_AMS_API_KEY XIAOMI_TOKEN_PLAN_CN_API_KEY XIAOMI_TOKEN_PLAN_SGP_API_KEY ZAI_API_KEY ZAI_CODING_CN_API_KEY'
43
47
  set -eu
44
48
  # Each secret out of the environment and into an unexported variable of this shell (agentrun_secret_<NAME>).
45
49
  for name in $SECRETS; do
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-serve",
3
- "version": "0.1.0-beta.54",
3
+ "version": "0.1.0-beta.56",
4
4
  "description": "The AgentRun server: the /v2 API and console over one store, with runners that run your agents; the deployable process of the AgentRun platform.",
5
5
  "keywords": [
6
6
  "agentrun",
@@ -30,6 +30,10 @@
30
30
  "types": "./dist/conformance.d.ts",
31
31
  "default": "./dist/conformance.js"
32
32
  },
33
+ "./manifest": {
34
+ "types": "./dist/manifest.d.ts",
35
+ "default": "./dist/manifest.js"
36
+ },
33
37
  "./package.json": "./package.json"
34
38
  },
35
39
  "bin": {
@@ -62,18 +66,18 @@
62
66
  "@earendil-works/pi-coding-agent": "1.5.2",
63
67
  "@modelcontextprotocol/client": "2.4.0",
64
68
  "@modelcontextprotocol/server": "2.4.0",
65
- "@parcha/agentrun-computer": "0.1.0-beta.54",
66
- "@parcha/agentrun-decisions": "0.1.0-beta.54",
67
- "@parcha/agentrun-dsl": "0.1.0-beta.54",
68
- "@parcha/agentrun-harness-acp": "0.1.0-beta.54",
69
- "@parcha/agentrun-harness-claude": "0.1.0-beta.54",
70
- "@parcha/agentrun-harness-codex": "0.1.0-beta.54",
71
- "@parcha/agentrun-jev": "0.1.0-beta.54",
72
- "@parcha/agentrun-kernel": "0.1.0-beta.54",
73
- "@parcha/pi-browser": "0.1.0-beta.54",
74
- "@secretlint/core": "13.1.0",
75
- "@secretlint/profiler": "13.1.0",
76
- "@secretlint/secretlint-rule-preset-recommend": "13.1.0",
69
+ "@parcha/agentrun-computer": "0.1.0-beta.56",
70
+ "@parcha/agentrun-decisions": "0.1.0-beta.56",
71
+ "@parcha/agentrun-dsl": "0.1.0-beta.56",
72
+ "@parcha/agentrun-harness-acp": "0.1.0-beta.56",
73
+ "@parcha/agentrun-harness-claude": "0.1.0-beta.56",
74
+ "@parcha/agentrun-harness-codex": "0.1.0-beta.56",
75
+ "@parcha/agentrun-import": "0.1.0-beta.56",
76
+ "@parcha/agentrun-jev": "0.1.0-beta.56",
77
+ "@parcha/agentrun-kernel": "0.1.0-beta.56",
78
+ "@parcha/pi-browser": "0.1.0-beta.56",
79
+ "@secretlint/core": "14.1.0",
80
+ "@secretlint/profiler": "14.1.0",
77
81
  "croner": "11.0.0",
78
82
  "disk": "1.12.0",
79
83
  "fast-xml-parser": "4.5.7",
@@ -272,13 +272,13 @@ case's `max_cost_usd`, and each `llm` grade is a run of its own, capped at $0.50
272
272
  |---|---|
273
273
  | `--case NAME` | A case to run; repeat it. Without one, every case. |
274
274
  | `--runs N` | Runs of each case, in place of each case's `runs`. |
275
- | `--server URL` | Run on that server instead, with its token as the CLI finds one (`AGENTRUN_API_KEY`, the CLI's config, or the data directory's for the server on this machine). The token goes to the runner over the launcher's pipe and is never printed. |
275
+ | `--server URL` | Run on that server instead, with its token as the CLI finds one (`AGENTRUN_API_KEY`, the CLI's config, or the data directory's for the server on this machine). The token goes to the runner over the launcher's pipe and is never printed. An eval's runs carry no `keys`, so on a server started with `AGENTRUN_RUN_KEYS=1` that lacks a tool key the package declares, the eval stops at the first case's apply, before any run, names the key and exits 2. |
276
276
  | `--on-data DIR` | Run the eval's own server on DIR, a stopped server's data folder, in place of a temp one: the runs use what that server keeps (its ChatGPT sign-in, so a package is measured on the owner's plan), and every case's fakes still bind (`now`, `email`, `calendar`, `web`, `monid`). The agents the eval made are archived there, and the folder stays, its tool settings as they were (the agent's own pin holds a pinned write, as on `--server`). Refused with `--server`, while another server holds DIR, when DIR's server has work of its own (an enabled trigger, a run not ended) that the eval's server and runner would take up, for an email case when DIR's server keeps an email account, which the case's fake mailbox would replace, and for a calendar case when DIR's server keeps a calendar. A case that fakes an MCP server DIR's server keeps by the same name fails, as on `--server`. |
277
277
  | `--grader-model PROVIDER/MODEL` | The `llm` graders' model. Absent: the server's default. |
278
278
  | `--report FILE` | The whole report as JSON: per case, per run and per grader, its pass, its reason and its cost. A summary goes to stdout either way, progress to stderr. |
279
279
  | `--faux MODULE` | Answer every model request from the module, as the server's `--faux` does: no key, no network. |
280
280
 
281
- It exits 0 when every case passed, 1 when one failed, and 2 when nothing ran: a flag, the package or a case is wrong.
281
+ It exits 0 when every case passed, 1 when one failed, and 2 when nothing ran: a flag, the package or a case is wrong, or the server would refuse every run.
282
282
  A Ctrl-C cancels the run in progress and cleans up as the end does (a second one leaves at once), and exits 130 with no
283
283
  report.
284
284
  Before anything runs, every case named is read and checked whole: the prompt's front matter, `case.yaml` against the
@@ -319,14 +319,15 @@ and runs on the eval's own server.
319
319
  A case passes when every grader passes on every run.
320
320
 
321
321
  **The output check.** A package with `output` holds every completed run to its schema with no grader file: the run
322
- fails when the server's own read of its answer sets `result.output_error` (its last fenced `json` block missing, not
323
- JSON, or refused by the schema, after the runner's one retry). The report lists it as the grader `output`.
322
+ fails when the server's own read of its answer sets `result.output_error` (its json block missing, not JSON, or refused
323
+ by the schema, after the runner's one retry). The json block is the answer's last fenced `json` block, or the whole
324
+ answer when it is one JSON object and nothing else. The report lists it as the grader `output`.
324
325
 
325
326
  **The graders**, as the runner reads them:
326
327
 
327
328
  - `regex`: `pattern` with `flags` (some of `i`, `m`, `s`, `u`, `v`) over the whole answer, or over `target`, a field of
328
- the last `json` block (`a.b` for a nested one; a string as it is, anything else as its JSON). An answer with no such
329
- field fails the grader, whatever `expect` says.
329
+ the answer's json block (`a.b` for a nested one; a string as it is, anything else as its JSON). An answer with no
330
+ such field fails the grader, whatever `expect` says.
330
331
  - `tool_used`: the calls of `tool` (or any of `tools`) by gate name (`write`, `web_fetch`, `mcp:<server>/<tool>`,
331
332
  `monid:<provider>/<endpoint>`). A monid endpoint is one the package's `tools` grants by name: a provider's wildcard
332
333
  (`monid:<provider>/*`) is filled from monid's listing when the agent is saved, so the eval cannot check a name under
@@ -340,12 +341,12 @@ JSON, or refused by the schema, after the runner's one retry). The report lists
340
341
  - `llm`: a run of a grader agent on the same server, with no tools, a fixed instruction and the `--grader-model`. It is
341
342
  given the rubric, the run's input, its answer, its tool calls and the calls each fake received, and with `target`
342
343
  that field besides (the whole answer stays, for anything else the rubric checks). Each call shows its arguments as
343
- `tool_used` reads them, its status, and its result's first 8,000 characters through the same redaction. The prompt
344
+ `tool_used` reads them, its status, and its result whole to 120,000 characters through the same redaction. The prompt
344
345
  stays under 120,000 characters: past that, the two call lists share what the rest leaves, the longest results (and a
345
346
  fake's longest arguments) lose their middle first (marked), then the middle calls, and each list's first line says
346
347
  what was cut. The rubric, task and answer are never cut, so they alone can pass the cap. Never another grader, the case's
347
- description or anything the case expects. It answers `{pass, reason}` in a fenced `json` block; any other answer
348
- fails the grader.
348
+ description or anything the case expects. It answers `{pass, reason}` in a fenced `json` block, or as that one
349
+ object alone; any other answer fails the grader.
349
350
 
350
351
  The report gives each run's cost and each `llm` grade's, as their run records say, and the total.
351
352