@hearsay-tools/squawk 0.18.0-dev.7509 → 0.18.0-dev.7522
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/dist/agent-config/catalog.js +1 -1
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/service.d.ts +2 -1
- package/dist/agent-config/service.js +1 -1
- package/dist/agent-config/service.js.map +1 -1
- package/dist/automations/service.d.ts +14 -14
- package/dist/automations/service.js +2 -2
- package/dist/automations/service.js.map +1 -1
- package/dist/automations/store.js +6 -1
- package/dist/automations/store.js.map +1 -1
- package/dist/automations/task-template.js +2 -1
- package/dist/automations/task-template.js.map +1 -1
- package/dist/automations/tool-adapter.js +17 -8
- package/dist/automations/tool-adapter.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +8 -8
- package/dist/ci-wait/controller.js +1 -1
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +2 -2
- package/dist/contract/activity.d.ts +7 -49
- package/dist/contract/agent-config.d.ts +2 -14
- package/dist/contract/agent-profiles.d.ts +13 -91
- package/dist/contract/automation-requests.d.ts +6 -42
- package/dist/contract/automation-storage.d.ts +6 -42
- package/dist/contract/automation-tool.d.ts +6 -42
- package/dist/contract/automations.d.ts +18 -126
- package/dist/contract/config-requests.d.ts +2 -14
- package/dist/contract/delegation.d.ts +8 -56
- package/dist/contract/discovery.d.ts +8 -56
- package/dist/contract/health.d.ts +3 -25
- package/dist/contract/index.d.ts +1 -1
- package/dist/contract/index.js +1983 -1985
- package/dist/contract/per-runner-optional-strings.d.ts +3 -8
- package/dist/contract/provider-requests.d.ts +5 -35
- package/dist/contract/query-requests.d.ts +4 -7
- package/dist/contract/run-requests.d.ts +1 -7
- package/dist/contract/runner-skills.d.ts +2 -14
- package/dist/contract/runner.d.ts +5 -9
- package/dist/contract/runners.d.ts +144 -0
- package/dist/contract/runs.d.ts +22 -154
- package/dist/contract/workflow-file.d.ts +1 -7
- package/dist/contract/workflows.d.ts +9 -44
- package/dist/contract/workspace-events.d.ts +4 -28
- package/dist/contract/workspace.d.ts +23 -151
- package/dist/core/backend-detect.d.ts +2 -1
- package/dist/core/backend-detect.js.map +1 -1
- package/dist/core/provider-availability.d.ts +3 -1
- package/dist/core/provider-availability.js +1 -0
- package/dist/core/provider-availability.js.map +1 -1
- package/dist/core/runner-definition.d.ts +28 -2
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/core/runner-fields.d.ts +26 -0
- package/dist/core/runner-fields.js +49 -0
- package/dist/core/runner-fields.js.map +1 -0
- package/dist/core/runner-model-catalog.d.ts +2 -1
- package/dist/core/runner-model-catalog.js +2 -2
- package/dist/core/runner-model-catalog.js.map +1 -1
- package/dist/core/runner-registry.d.ts +22 -1
- package/dist/core/runner-registry.js +32 -1
- package/dist/core/runner-registry.js.map +1 -1
- package/dist/core/ui-events.d.ts +3 -4
- package/dist/core/ui-events.js.map +1 -1
- package/dist/delegation/cli.js +6 -0
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/routes.d.ts +19 -19
- package/dist/delegation/routes.js +2 -2
- package/dist/delegation/routes.js.map +1 -1
- package/dist/delegation/service.js +3 -2
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +21 -21
- package/dist/discovery/choices.d.ts +3 -2
- package/dist/discovery/choices.js +2 -2
- package/dist/discovery/choices.js.map +1 -1
- package/dist/discovery/cli.js +4 -1
- package/dist/discovery/cli.js.map +1 -1
- package/dist/runners/agent-config-notes.d.ts +5 -0
- package/dist/runners/agent-config-notes.js +6 -0
- package/dist/runners/agent-config-notes.js.map +1 -0
- package/dist/runners/claude/config-files.d.ts +3 -0
- package/dist/runners/claude/config-files.js +14 -0
- package/dist/runners/claude/config-files.js.map +1 -1
- package/dist/runners/claude/definition.js +4 -2
- package/dist/runners/claude/definition.js.map +1 -1
- package/dist/runners/claude/display.d.ts +12 -0
- package/dist/runners/claude/display.js +13 -0
- package/dist/runners/claude/display.js.map +1 -0
- package/dist/runners/claude/models.js +7 -0
- package/dist/runners/claude/models.js.map +1 -1
- package/dist/runners/codex/config-files.d.ts +3 -0
- package/dist/runners/codex/config-files.js +15 -0
- package/dist/runners/codex/config-files.js.map +1 -1
- package/dist/runners/codex/definition.js +4 -2
- package/dist/runners/codex/definition.js.map +1 -1
- package/dist/runners/codex/display.d.ts +12 -0
- package/dist/runners/codex/display.js +13 -0
- package/dist/runners/codex/display.js.map +1 -0
- package/dist/runners/codex/models.js +2 -0
- package/dist/runners/codex/models.js.map +1 -1
- package/dist/runners/omp/config-files.d.ts +3 -0
- package/dist/runners/omp/config-files.js +15 -0
- package/dist/runners/omp/config-files.js.map +1 -1
- package/dist/runners/omp/definition.js +4 -2
- package/dist/runners/omp/definition.js.map +1 -1
- package/dist/runners/omp/display.d.ts +11 -0
- package/dist/runners/omp/display.js +12 -0
- package/dist/runners/omp/display.js.map +1 -0
- package/dist/runners/omp/models.js +2 -0
- package/dist/runners/omp/models.js.map +1 -1
- package/dist/runners/opencode/config-files.d.ts +3 -0
- package/dist/runners/opencode/config-files.js +15 -0
- package/dist/runners/opencode/config-files.js.map +1 -1
- package/dist/runners/opencode/definition.js +4 -2
- package/dist/runners/opencode/definition.js.map +1 -1
- package/dist/runners/opencode/display.d.ts +11 -0
- package/dist/runners/opencode/display.js +12 -0
- package/dist/runners/opencode/display.js.map +1 -0
- package/dist/runners/opencode/models.js +2 -0
- package/dist/runners/opencode/models.js.map +1 -1
- package/dist/runners/pi/config-files.d.ts +3 -0
- package/dist/runners/pi/config-files.js +16 -0
- package/dist/runners/pi/config-files.js.map +1 -1
- package/dist/runners/pi/definition.js +4 -2
- package/dist/runners/pi/definition.js.map +1 -1
- package/dist/runners/pi/display.d.ts +12 -0
- package/dist/runners/pi/display.js +13 -0
- package/dist/runners/pi/display.js.map +1 -0
- package/dist/runners/pi/models.js +2 -0
- package/dist/runners/pi/models.js.map +1 -1
- package/dist/runs/legacy-run-rows.d.ts +24 -4
- package/dist/runs/legacy-run-rows.js +104 -29
- package/dist/runs/legacy-run-rows.js.map +1 -1
- package/dist/runs/run-exits.d.ts +16 -16
- package/dist/runs/store.d.ts +8 -35
- package/dist/runs/store.js +20 -21
- package/dist/runs/store.js.map +1 -1
- package/dist/server/activity-routes.d.ts +2 -2
- package/dist/server/open-in-targets.js +2 -2
- package/dist/server/open-in-targets.js.map +1 -1
- package/dist/server/provider-action-gate.d.ts +5 -2
- package/dist/server/provider-action-gate.js +9 -6
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/provider-auth-runtime.js +2 -2
- package/dist/server/provider-auth-runtime.js.map +1 -1
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/runner-skills.js +3 -1
- package/dist/server/runner-skills.js.map +1 -1
- package/dist/server/runners-routes.d.ts +51 -0
- package/dist/server/runners-routes.js +23 -0
- package/dist/server/runners-routes.js.map +1 -0
- package/dist/server/server-deps.d.ts +2 -1
- package/dist/server/server-deps.js +1 -3
- package/dist/server/server-deps.js.map +1 -1
- package/dist/server/server.d.ts +377 -463
- package/dist/server/server.js +34 -31
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-run-options.d.ts +3 -1
- package/dist/server/start-run-options.js +2 -1
- package/dist/server/start-run-options.js.map +1 -1
- package/dist/server/validators.d.ts +6 -3
- package/dist/server/validators.js +21 -12
- package/dist/server/validators.js.map +1 -1
- package/dist/server/workspace-config-patch.js +2 -1
- package/dist/server/workspace-config-patch.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/workflows/continuation-admission.d.ts +3 -3
- package/dist/workflows/continuation-admission.js +2 -2
- package/dist/workflows/continuation-admission.js.map +1 -1
- package/dist/workflows/load.js +8 -0
- package/dist/workflows/load.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +8 -8
- package/dist/workflows/run/launch-read-resolver.js +6 -6
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/queued-revival.d.ts +1 -1
- package/dist/workflows/run/queued-revival.js +5 -0
- package/dist/workflows/run/queued-revival.js.map +1 -1
- package/dist/workflows/run/run-line.d.ts +3 -0
- package/dist/workflows/run/run-line.js +11 -7
- package/dist/workflows/run/run-line.js.map +1 -1
- package/dist/workflows/run/usage-accounting.js +2 -2
- package/dist/workflows/run/usage-accounting.js.map +1 -1
- package/dist/workflows/run/wait-engine.d.ts +3 -3
- package/dist/workflows/run-scheduling.js +3 -3
- package/dist/workflows/run-scheduling.js.map +1 -1
- package/dist/workflows/run.d.ts +1 -1
- package/package.json +4 -4
- package/web/dist/assets/activity-motion-C3PyGX1i.js +2 -0
- package/web/dist/assets/{activity-route-CYetaRaf.js → activity-route-CBE9suPx.js} +1 -1
- package/web/dist/assets/attention-BOjuMCaW.js +1 -0
- package/web/dist/assets/{commit-diff-panel-D5MXcWp1.js → commit-diff-panel-BHLfoc5K.js} +1 -1
- package/web/dist/assets/diff-CPP5-PAO.js +3 -0
- package/web/dist/assets/{diff-view-De-FaJNL.js → diff-view-pVNE2LKd.js} +4 -4
- package/web/dist/assets/{file-preview-XuT7ByQJ.js → file-preview-Dnl25_Yq.js} +2 -2
- package/web/dist/assets/{git-toolbar-Cnxtcw27.js → git-toolbar-B8j0rXz_.js} +1 -1
- package/web/dist/assets/{github-4ugOBSSl.js → github-Bk_W_P7M.js} +1 -1
- package/web/dist/assets/{global-activity-route-B0RZF0VZ.js → global-activity-route-B3Bg4j74.js} +1 -1
- package/web/dist/assets/index-BUcVG7uX.js +14 -0
- package/web/dist/assets/{markdown-D9-0R3BD.js → markdown-DZFo50wI.js} +3 -3
- package/web/dist/assets/picker-pill-Bhsrt_K5.js +15 -0
- package/web/dist/assets/preview-pane-connected-B887FUPw.js +3 -0
- package/web/dist/assets/{project-router-D7rZ5E-b.js → project-router-lPPUPPDI.js} +1 -1
- package/web/dist/assets/project-scope-context-Xjbxntpg.js +4 -0
- package/web/dist/assets/prompt-template-menu-Cl8ES_lT.js +1 -0
- package/web/dist/assets/queries-D5f-3moU.js +1 -0
- package/web/dist/assets/{reference-chip-BEkQoiWt.js → reference-chip-BPdU-pFz.js} +1 -1
- package/web/dist/assets/repo-git-DkdZ-lHF.js +1 -0
- package/web/dist/assets/{report-reader-Buf2_ONr.js → report-reader-ClrhPnHJ.js} +1 -1
- package/web/dist/assets/{reports-bWP2ZBOP.js → reports-CNDxM3-h.js} +1 -1
- package/web/dist/assets/run-header-CGu_4msV.js +2 -0
- package/web/dist/assets/runners-Dc2_oqXR.js +1 -0
- package/web/dist/assets/skills-rESbVzy9.js +1 -0
- package/web/dist/assets/{tab-link-C_n2wSwD.js → tab-link-rmg3phtM.js} +1 -1
- package/web/dist/assets/task-changes-BqMvI8iD.js +1 -0
- package/web/dist/assets/{task-commits-4ClywWZW.js → task-commits-B0vE6rWz.js} +1 -1
- package/web/dist/assets/{task-files-DIQ_8hh_.js → task-files-5YPOAXtn.js} +1 -1
- package/web/dist/assets/{task-github-item-D4zs5cvm.js → task-github-item-D6VreAoa.js} +1 -1
- package/web/dist/assets/task-thread-DO2BE7tp.js +9 -0
- package/web/dist/assets/thread-state-Cn5cetra.js +4 -0
- package/web/dist/assets/{use-desktop-Dq3Z-pSO.js → use-desktop-R2WTomyJ.js} +1 -1
- package/web/dist/assets/use-hand-to-agent-state-B277xMq3.js +1 -0
- package/web/dist/assets/{useInfiniteQuery-BiIzSoTr.js → useInfiniteQuery-C05yR_S9.js} +1 -1
- package/web/dist/assets/useQuery-7jNqNIJb.js +1 -0
- package/web/dist/assets/{workflows-DX9Mpt9Q.js → workflows-fZms9I7r.js} +3 -3
- package/web/dist/assets/{ws-B3I-G6Q4.js → ws-wEXmfalm.js} +1 -1
- package/web/dist/index.html +13 -14
- package/dist/contract/runner-facts.d.ts +0 -51
- package/web/dist/assets/activity-motion-mnPv6Dpn.js +0 -2
- package/web/dist/assets/agent-accounts-9EM12D_s.js +0 -1
- package/web/dist/assets/attention-DjHSGsbe.js +0 -1
- package/web/dist/assets/diff-CbzFxE4W.js +0 -3
- package/web/dist/assets/index-S6DMaCB8.js +0 -14
- package/web/dist/assets/picker-pill-CFcrs68V.js +0 -15
- package/web/dist/assets/preview-pane-connected-B1Eo_Q-v.js +0 -3
- package/web/dist/assets/project-scope-context-DYV7r53s.js +0 -4
- package/web/dist/assets/prompt-template-menu-DYoBkQJP.js +0 -1
- package/web/dist/assets/queries-Bp7cia4e.js +0 -1
- package/web/dist/assets/repo-git-CPKuF-zu.js +0 -1
- package/web/dist/assets/run-header-masTwuK9.js +0 -2
- package/web/dist/assets/runner-facts-BpvNgJqf.js +0 -1
- package/web/dist/assets/skills-BUL45j_L.js +0 -1
- package/web/dist/assets/task-changes-rmp95PMX.js +0 -1
- package/web/dist/assets/task-thread-CdBfevnO.js +0 -9
- package/web/dist/assets/thread-state-3Um_4g0a.js +0 -4
- package/web/dist/assets/use-hand-to-agent-state-BxJSA8sR.js +0 -1
- package/web/dist/assets/useQuery-BfBOHv1O.js +0 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { ConfigFileDef } from '../../core/runner-config-files.ts';
|
|
2
|
+
import type { RunnerAgentConfig } from '../../contract/index.js';
|
|
2
3
|
/**
|
|
3
4
|
* The Codex runner's native config files for Settings → Agent config. Data only: importing it
|
|
4
5
|
* loads no adapter. Order is presentation order: user → project → local, so the scope ladder
|
|
5
6
|
* reads top (broad) to bottom (specific).
|
|
6
7
|
*/
|
|
7
8
|
export declare const CODEX_CONFIG_FILES: readonly ConfigFileDef[];
|
|
9
|
+
/** The Codex tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
10
|
+
export declare const CODEX_AGENT_CONFIG: RunnerAgentConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
|
+
import { EDITOR_PLUS_COMMIT_NOTE } from '../agent-config-notes.js';
|
|
2
3
|
import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
|
|
3
4
|
const CODEX_CONFIG_DOCS = 'https://developers.openai.com/codex/config-reference';
|
|
4
5
|
const CODEX_AGENTS_DOCS = 'https://developers.openai.com/codex/guides/agents-md';
|
|
@@ -55,4 +56,18 @@ export const CODEX_CONFIG_FILES = [
|
|
|
55
56
|
// <repo>/AGENTS.md, shared with Codex, OpenCode, Pi and OMP: the catalog lists it once.
|
|
56
57
|
PROJECT_AGENTS_FILE,
|
|
57
58
|
];
|
|
59
|
+
/** The Codex tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
60
|
+
export const CODEX_AGENT_CONFIG = {
|
|
61
|
+
label: 'Codex',
|
|
62
|
+
note: EDITOR_PLUS_COMMIT_NOTE,
|
|
63
|
+
groups: [
|
|
64
|
+
{ id: 'settings', label: 'Settings' },
|
|
65
|
+
{
|
|
66
|
+
id: 'mcp',
|
|
67
|
+
label: 'MCP',
|
|
68
|
+
note: 'Inside config.toml under [mcp_servers.<id>] — the same file as Codex’s settings.',
|
|
69
|
+
},
|
|
70
|
+
{ id: 'memory', label: 'Memory & instructions' },
|
|
71
|
+
],
|
|
72
|
+
};
|
|
58
73
|
//# sourceMappingURL=config-files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/codex/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/codex/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,iBAAiB,GAAG,sDAAsD,CAAC;AACjF,MAAM,iBAAiB,GAAG,sDAAsD,CAAC;AAEjF;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B;IAC1D,kBAAkB;IACl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B;IAED,wFAAwF;IACxF,mBAAmB;CACpB,CAAC;AAEF,yGAAyG;AACzG,MAAM,CAAC,MAAM,kBAAkB,GAAsB;IACnD,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE;QACN,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;QACrC;YACE,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,kFAAkF;SACzF;QACD,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,uBAAuB,EAAE;KACjD;CACF,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { defineRunner } from '../../core/runner-definition.js';
|
|
|
2
2
|
import { productEnv } from '../../core/product-env.js';
|
|
3
3
|
import { CODEX_FACTS } from './facts.js';
|
|
4
4
|
import { CODEX_MODELS } from './models.js';
|
|
5
|
-
import { CODEX_CONFIG_FILES } from './config-files.js';
|
|
5
|
+
import { CODEX_AGENT_CONFIG, CODEX_CONFIG_FILES } from './config-files.js';
|
|
6
6
|
import { CODEX_EXTRA_TOOLS } from './extra-tools.js';
|
|
7
7
|
import { CODEX_SPEC_SUPPORT } from './spec-support.js';
|
|
8
8
|
import { CODEX_DETECTION } from './detection.js';
|
|
@@ -11,6 +11,7 @@ import { CODEX_LOGIN } from './login.js';
|
|
|
11
11
|
import { CODEX_ACCOUNTS } from './accounts.js';
|
|
12
12
|
import { CODEX_ENV } from './env.js';
|
|
13
13
|
import { CODEX_MOCK } from './mock.js';
|
|
14
|
+
import { CODEX_DISPLAY } from './display.js';
|
|
14
15
|
/** The Codex runner. */
|
|
15
16
|
export const codexRunner = defineRunner({
|
|
16
17
|
id: 'codex',
|
|
@@ -25,12 +26,13 @@ export const codexRunner = defineRunner({
|
|
|
25
26
|
},
|
|
26
27
|
loadModelCatalog: async () => (await import('./codex-model-catalog.js')).discoverCodexModels,
|
|
27
28
|
loadSkillCatalog: async () => (await import('./codex-skill-catalog.js')).discoverCodexSkills,
|
|
28
|
-
configFiles: CODEX_CONFIG_FILES,
|
|
29
|
+
configFiles: { files: CODEX_CONFIG_FILES, agentConfig: CODEX_AGENT_CONFIG },
|
|
29
30
|
extraTools: CODEX_EXTRA_TOOLS,
|
|
30
31
|
login: { ...CODEX_LOGIN, executable: () => productEnv('CODEX_BIN') ?? 'codex' },
|
|
31
32
|
accounts: CODEX_ACCOUNTS,
|
|
32
33
|
env: CODEX_ENV,
|
|
33
34
|
mock: CODEX_MOCK,
|
|
34
35
|
loadLogin: async () => ({ parse: (await import('./login-probe.js')).parseCodexStatus }),
|
|
36
|
+
display: CODEX_DISPLAY,
|
|
35
37
|
});
|
|
36
38
|
//# sourceMappingURL=definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/codex/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/codex/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,kBA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O,EAAE;IAC/E,QAAQ,EAAE,cAAc;IACxB,GAAG,EAAE,SAAS;IACd,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACvF,OAAO,EAAE,aAAa;CACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** How the cockpit and server messages name the Codex runner (its `display` part). */
|
|
2
|
+
export declare const CODEX_DISPLAY: {
|
|
3
|
+
readonly displayName: 'Codex';
|
|
4
|
+
readonly modelListName: 'Codex';
|
|
5
|
+
readonly modelIdScope: 'own';
|
|
6
|
+
readonly pickerLabel: 'codex';
|
|
7
|
+
readonly pickerDescription: 'OpenAI Codex (app-server)';
|
|
8
|
+
readonly icon: 'sparkles';
|
|
9
|
+
readonly installHint: 'npm i -g @openai/codex';
|
|
10
|
+
readonly loginCommand: 'codex login';
|
|
11
|
+
readonly accountFolderExample: '~/.codex-second';
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** How the cockpit and server messages name the Codex runner (its `display` part). */
|
|
2
|
+
export const CODEX_DISPLAY = {
|
|
3
|
+
displayName: 'Codex',
|
|
4
|
+
modelListName: 'Codex',
|
|
5
|
+
modelIdScope: 'own',
|
|
6
|
+
pickerLabel: 'codex',
|
|
7
|
+
pickerDescription: 'OpenAI Codex (app-server)',
|
|
8
|
+
icon: 'sparkles',
|
|
9
|
+
installHint: 'npm i -g @openai/codex',
|
|
10
|
+
loginCommand: 'codex login',
|
|
11
|
+
accountFolderExample: '~/.codex-second',
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../src/runners/codex/display.ts"],"names":[],"mappings":"AAEA,sFAAsF;AACtF,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,WAAW,EAAE,OAAO;IACpB,aAAa,EAAE,OAAO;IACtB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,OAAO;IACpB,iBAAiB,EAAE,2BAA2B;IAC9C,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,aAAa;IAC3B,oBAAoB,EAAE,iBAAiB;CACP,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** The Codex runner's model data. Data only: importing it loads no adapter. */
|
|
2
2
|
export const CODEX_MODELS = {
|
|
3
|
+
suggested: [{ id: '', label: 'auto', desc: 'Use your Codex default model' }],
|
|
4
|
+
retired: [],
|
|
3
5
|
known: ['gpt-5.1-codex', 'gpt-5.1-codex-mini', 'gpt-5-codex'],
|
|
4
6
|
// Codex selects the provider from model_provider in config.toml. A foreign
|
|
5
7
|
// explicit prefix is accepted only when the caller proves it matches that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/codex/models.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,MAAM,CAAC,MAAM,YAAY,GAAoB;IAC3C,KAAK,EAAE,CAAC,eAAe,EAAE,oBAAoB,EAAE,aAAa,CAAC;IAC7D,2EAA2E;IAC3E,0EAA0E;IAC1E,2EAA2E;IAC3E,KAAK,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE;CACrC,CAAC"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/codex/models.ts"],"names":[],"mappings":"AAEA,+EAA+E;AAC/E,MAAM,CAAC,MAAM,YAAY,GAAoB;IAC3C,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC;IAC5E,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,CAAC,eAAe,EAAE,oBAAoB,EAAE,aAAa,CAAC;IAC7D,2EAA2E;IAC3E,0EAA0E;IAC1E,2EAA2E;IAC3E,KAAK,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE;CACrC,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { ConfigFileDef } from '../../core/runner-config-files.ts';
|
|
2
|
+
import type { RunnerAgentConfig } from '../../contract/index.js';
|
|
2
3
|
/**
|
|
3
4
|
* The OMP runner's native config files for Settings → Agent config. Data only: importing it
|
|
4
5
|
* loads no adapter. Order is presentation order: user → project → local, so the scope ladder
|
|
5
6
|
* reads top (broad) to bottom (specific).
|
|
6
7
|
*/
|
|
7
8
|
export declare const OMP_CONFIG_FILES: readonly ConfigFileDef[];
|
|
9
|
+
/** The OMP tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
10
|
+
export declare const OMP_AGENT_CONFIG: RunnerAgentConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
|
+
import { EDITOR_PLUS_COMMIT_NOTE } from '../agent-config-notes.js';
|
|
2
3
|
import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
|
|
3
4
|
const OMP_CONFIG_DOCS = 'https://github.com/can1357/oh-my-pi/blob/main/docs/config-usage.md';
|
|
4
5
|
const OMP_MCP_DOCS = 'https://github.com/can1357/oh-my-pi/blob/main/docs/mcp-config.md';
|
|
@@ -84,4 +85,18 @@ export const OMP_CONFIG_FILES = [
|
|
|
84
85
|
// <repo>/AGENTS.md, shared with Codex, OpenCode, Pi and OMP: the catalog lists it once.
|
|
85
86
|
PROJECT_AGENTS_FILE,
|
|
86
87
|
];
|
|
88
|
+
/** The OMP tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
89
|
+
export const OMP_AGENT_CONFIG = {
|
|
90
|
+
label: 'OMP',
|
|
91
|
+
note: EDITOR_PLUS_COMMIT_NOTE,
|
|
92
|
+
groups: [
|
|
93
|
+
{ id: 'settings', label: 'Settings' },
|
|
94
|
+
{
|
|
95
|
+
id: 'mcp',
|
|
96
|
+
label: 'MCP',
|
|
97
|
+
note: 'A dedicated mcp.json (key: mcpServers) at ~/.omp/agent and in the project’s .omp/ folder.',
|
|
98
|
+
},
|
|
99
|
+
{ id: 'memory', label: 'Memory & instructions' },
|
|
100
|
+
],
|
|
101
|
+
};
|
|
87
102
|
//# sourceMappingURL=config-files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/omp/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/omp/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,eAAe,GAAG,oEAAoE,CAAC;AAC7F,MAAM,YAAY,GAAG,kEAAkE,CAAC;AAExF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA6B;IACxD,sDAAsD;IACtD,sFAAsF;IACtF,oGAAoG;IACpG,2FAA2F;IAC3F,qGAAqG;IACrG,kGAAkG;IAClG,4FAA4F;IAC5F,gGAAgG;IAChG,wFAAwF;IACxF;QACE,EAAE,EAAE,mBAAmB;QACvB,OAAO,EAAE,CAAC,KAAK,CAAC;QAChB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC;QACtD,KAAK,EAAE,yBAAyB;QAChC,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,cAAc;QACvB,UAA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QACd,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC;QACrD,KAAK,EAAE,wBAAwB;QAC/B,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,cAAc;QACvB,UAAU,EACR,qTAAqT;QACvT,OAAO,EAAE,eAAe;KACzB;IAED,wFAAwF;IACxF,mBAAmB;CACpB,CAAC;AAEF,uGAAuG;AACvG,MAAM,CAAC,MAAM,gBAAgB,GAAsB;IACjD,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE;QACN,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;QACrC;YACE,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,2FAA2F;SAClG;QACD,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,uBAAuB,EAAE;KACjD;CACF,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { defineRunner } from '../../core/runner-definition.js';
|
|
|
2
2
|
import { productEnv } from '../../core/product-env.js';
|
|
3
3
|
import { OMP_FACTS } from './facts.js';
|
|
4
4
|
import { OMP_MODELS } from './models.js';
|
|
5
|
-
import { OMP_CONFIG_FILES } from './config-files.js';
|
|
5
|
+
import { OMP_AGENT_CONFIG, OMP_CONFIG_FILES } from './config-files.js';
|
|
6
6
|
import { OMP_EXTRA_TOOLS } from './extra-tools.js';
|
|
7
7
|
import { OMP_SPEC_SUPPORT } from './spec-support.js';
|
|
8
8
|
import { OMP_DETECTION } from './detection.js';
|
|
@@ -11,6 +11,7 @@ import { OMP_LOGIN } from './login.js';
|
|
|
11
11
|
import { OMP_ACCOUNTS } from './accounts.js';
|
|
12
12
|
import { OMP_ENV } from './env.js';
|
|
13
13
|
import { OMP_MOCK } from './mock.js';
|
|
14
|
+
import { OMP_DISPLAY } from './display.js';
|
|
14
15
|
/** The OMP runner. */
|
|
15
16
|
export const ompRunner = defineRunner({
|
|
16
17
|
id: 'omp',
|
|
@@ -28,12 +29,13 @@ export const ompRunner = defineRunner({
|
|
|
28
29
|
},
|
|
29
30
|
loadModelCatalog: async () => (await import('./omp-model-catalog.js')).discoverOmpModels,
|
|
30
31
|
loadSkillCatalog: async () => (await import('./omp-skill-catalog.js')).discoverOmpSkills,
|
|
31
|
-
configFiles: OMP_CONFIG_FILES,
|
|
32
|
+
configFiles: { files: OMP_CONFIG_FILES, agentConfig: OMP_AGENT_CONFIG },
|
|
32
33
|
extraTools: OMP_EXTRA_TOOLS,
|
|
33
34
|
login: { ...OMP_LOGIN, executable: () => productEnv('OMP_BIN') ?? 'omp' },
|
|
34
35
|
accounts: OMP_ACCOUNTS,
|
|
35
36
|
env: OMP_ENV,
|
|
36
37
|
mock: OMP_MOCK,
|
|
37
38
|
loadLogin: async () => ({ parse: (await import('./login-probe.js')).parseOmpStatus }),
|
|
39
|
+
display: OMP_DISPLAY,
|
|
38
40
|
});
|
|
39
41
|
//# sourceMappingURL=definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/omp/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/omp/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAA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IACxF,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC,CAAC,iBAAiB;IACxF,WAAW,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,gBAAgB,EAAE;IACvE,UAAU,EAAE,eAAe;IAC3B,KAAK,EAAE,EAAE,GAAG,SAAS,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,KAAK,EAAE;IACzE,QAAQ,EAAE,YAAY;IACtB,GAAG,EAAE,OAAO;IACZ,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;IACrF,OAAO,EAAE,WAAW;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** How the cockpit and server messages name the OMP runner (its `display` part). */
|
|
2
|
+
export declare const OMP_DISPLAY: {
|
|
3
|
+
readonly displayName: 'OMP';
|
|
4
|
+
readonly modelListName: 'OMP';
|
|
5
|
+
readonly modelIdScope: 'provider-spanning';
|
|
6
|
+
readonly pickerLabel: 'OMP';
|
|
7
|
+
readonly pickerDescription: 'Oh My Pi CLI (provider/model)';
|
|
8
|
+
readonly icon: 'bot';
|
|
9
|
+
readonly installHint: 'https://omp.sh';
|
|
10
|
+
readonly loginCommand: 'omp login';
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** How the cockpit and server messages name the OMP runner (its `display` part). */
|
|
2
|
+
export const OMP_DISPLAY = {
|
|
3
|
+
displayName: 'OMP',
|
|
4
|
+
modelListName: 'OMP',
|
|
5
|
+
modelIdScope: 'provider-spanning',
|
|
6
|
+
pickerLabel: 'OMP',
|
|
7
|
+
pickerDescription: 'Oh My Pi CLI (provider/model)',
|
|
8
|
+
icon: 'bot',
|
|
9
|
+
installHint: 'https://omp.sh',
|
|
10
|
+
loginCommand: 'omp login',
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../src/runners/omp/display.ts"],"names":[],"mappings":"AAEA,oFAAoF;AACpF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW,EAAE,KAAK;IAClB,aAAa,EAAE,KAAK;IACpB,YAAY,EAAE,mBAAmB;IACjC,WAAW,EAAE,KAAK;IAClB,iBAAiB,EAAE,+BAA+B;IAClD,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,gBAAgB;IAC7B,YAAY,EAAE,WAAW;CACO,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** The OMP runner's model data. Data only: importing it loads no adapter. */
|
|
2
2
|
export const OMP_MODELS = {
|
|
3
|
+
suggested: [{ id: '', label: 'auto', desc: 'Use your OMP default model' }],
|
|
4
|
+
retired: [],
|
|
3
5
|
// omp lists nothing for pi's reason: `provider/model` ids with no default provider, so the
|
|
4
6
|
// structural check in `modelConflictsWithRunner` guards it without vendor knowledge.
|
|
5
7
|
known: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/omp/models.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,MAAM,CAAC,MAAM,UAAU,GAAoB;IACzC,2FAA2F;IAC3F,qFAAqF;IACrF,KAAK,EAAE,EAAE;IACT,+FAA+F;IAC/F,KAAK,EAAE,EAAE;CACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/omp/models.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,MAAM,CAAC,MAAM,UAAU,GAAoB;IACzC,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,EAAE,CAAC;IAC1E,OAAO,EAAE,EAAE;IACX,2FAA2F;IAC3F,qFAAqF;IACrF,KAAK,EAAE,EAAE;IACT,+FAA+F;IAC/F,KAAK,EAAE,EAAE;CACV,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { ConfigFileDef } from '../../core/runner-config-files.ts';
|
|
2
|
+
import type { RunnerAgentConfig } from '../../contract/index.js';
|
|
2
3
|
/**
|
|
3
4
|
* The OpenCode runner's native config files for Settings → Agent config. Data only: importing it
|
|
4
5
|
* loads no adapter. Order is presentation order: user → project → local, so the scope ladder
|
|
5
6
|
* reads top (broad) to bottom (specific).
|
|
6
7
|
*/
|
|
7
8
|
export declare const OPENCODE_CONFIG_FILES: readonly ConfigFileDef[];
|
|
9
|
+
/** The OpenCode tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
10
|
+
export declare const OPENCODE_AGENT_CONFIG: RunnerAgentConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
|
+
import { EDITOR_PLUS_COMMIT_NOTE } from '../agent-config-notes.js';
|
|
2
3
|
import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
|
|
3
4
|
const OPENCODE_CONFIG_DOCS = 'https://opencode.ai/docs/config/';
|
|
4
5
|
const OPENCODE_RULES_DOCS = 'https://opencode.ai/docs/rules/';
|
|
@@ -54,4 +55,18 @@ export const OPENCODE_CONFIG_FILES = [
|
|
|
54
55
|
// <repo>/AGENTS.md, shared with Codex, OpenCode, Pi and OMP: the catalog lists it once.
|
|
55
56
|
PROJECT_AGENTS_FILE,
|
|
56
57
|
];
|
|
58
|
+
/** The OpenCode tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
59
|
+
export const OPENCODE_AGENT_CONFIG = {
|
|
60
|
+
label: 'OpenCode',
|
|
61
|
+
note: EDITOR_PLUS_COMMIT_NOTE,
|
|
62
|
+
groups: [
|
|
63
|
+
{ id: 'settings', label: 'Settings' },
|
|
64
|
+
{
|
|
65
|
+
id: 'mcp',
|
|
66
|
+
label: 'MCP',
|
|
67
|
+
note: 'Under the "mcp" key in opencode.json — the same file as OpenCode’s settings.',
|
|
68
|
+
},
|
|
69
|
+
{ id: 'memory', label: 'Memory & instructions' },
|
|
70
|
+
],
|
|
71
|
+
};
|
|
57
72
|
//# sourceMappingURL=config-files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/opencode/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/opencode/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,oBAAoB,GAAG,kCAAkC,CAAC;AAChE,MAAM,mBAAmB,GAAG,iCAAiC,CAAC;AAE9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA6B;IAC7D,qBAAqB;IACrB;QACE,EAAE,EAAE,sBAAsB;QAC1B,OAAO,EAAE,CAAC,UAAU,CAAC;QACrB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC;QACpE,KAAK,EAAE,kCAAkC;QACzC,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,OAAO;QACjB,aAAa,EAAE,CAAC;QAChB,UAAU,EACR,oKAAoK;QACt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';
|
|
|
2
2
|
import { productEnv } from '../../core/product-env.js';
|
|
3
3
|
import { OPENCODE_FACTS } from './facts.js';
|
|
4
4
|
import { OPENCODE_MODELS } from './models.js';
|
|
5
|
-
import { OPENCODE_CONFIG_FILES } from './config-files.js';
|
|
5
|
+
import { OPENCODE_AGENT_CONFIG, OPENCODE_CONFIG_FILES } from './config-files.js';
|
|
6
6
|
import { OPENCODE_EXTRA_TOOLS } from './extra-tools.js';
|
|
7
7
|
import { OPENCODE_SPEC_SUPPORT } from './spec-support.js';
|
|
8
8
|
import { OPENCODE_DETECTION } from './detection.js';
|
|
@@ -11,6 +11,7 @@ import { OPENCODE_LOGIN } from './login.js';
|
|
|
11
11
|
import { OPENCODE_ACCOUNTS } from './accounts.js';
|
|
12
12
|
import { OPENCODE_ENV } from './env.js';
|
|
13
13
|
import { OPENCODE_MOCK } from './mock.js';
|
|
14
|
+
import { OPENCODE_DISPLAY } from './display.js';
|
|
14
15
|
/** The OpenCode runner. */
|
|
15
16
|
export const opencodeRunner = defineRunner({
|
|
16
17
|
id: 'opencode',
|
|
@@ -25,12 +26,13 @@ export const opencodeRunner = defineRunner({
|
|
|
25
26
|
},
|
|
26
27
|
loadModelCatalog: async () => (await import('./opencode-model-catalog.js')).discoverOpencodeModels,
|
|
27
28
|
loadSkillCatalog: async () => (await import('./opencode-skill-catalog.js')).discoverOpencodeSkills,
|
|
28
|
-
configFiles: OPENCODE_CONFIG_FILES,
|
|
29
|
+
configFiles: { files: OPENCODE_CONFIG_FILES, agentConfig: OPENCODE_AGENT_CONFIG },
|
|
29
30
|
extraTools: OPENCODE_EXTRA_TOOLS,
|
|
30
31
|
login: { ...OPENCODE_LOGIN, executable: () => productEnv('OPENCODE_BIN') ?? 'opencode' },
|
|
31
32
|
accounts: OPENCODE_ACCOUNTS,
|
|
32
33
|
env: OPENCODE_ENV,
|
|
33
34
|
mock: OPENCODE_MOCK,
|
|
34
35
|
loadLogin: async () => ({ parse: (await import('./login-probe.js')).parseOpenCodeStatus }),
|
|
36
|
+
display: OPENCODE_DISPLAY,
|
|
35
37
|
});
|
|
36
38
|
//# sourceMappingURL=definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/opencode/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/opencode/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EA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
2
|
+
export declare const OPENCODE_DISPLAY: {
|
|
3
|
+
readonly displayName: 'OpenCode';
|
|
4
|
+
readonly modelListName: 'OpenCode';
|
|
5
|
+
readonly modelIdScope: 'provider-spanning';
|
|
6
|
+
readonly pickerLabel: 'opencode';
|
|
7
|
+
readonly pickerDescription: 'OpenCode (serve)';
|
|
8
|
+
readonly icon: 'bot';
|
|
9
|
+
readonly installHint: 'https://opencode.ai';
|
|
10
|
+
readonly loginCommand: 'opencode auth login';
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** How the cockpit and server messages name the OpenCode runner (its `display` part). */
|
|
2
|
+
export const OPENCODE_DISPLAY = {
|
|
3
|
+
displayName: 'OpenCode',
|
|
4
|
+
modelListName: 'OpenCode',
|
|
5
|
+
modelIdScope: 'provider-spanning',
|
|
6
|
+
pickerLabel: 'opencode',
|
|
7
|
+
pickerDescription: 'OpenCode (serve)',
|
|
8
|
+
icon: 'bot',
|
|
9
|
+
installHint: 'https://opencode.ai',
|
|
10
|
+
loginCommand: 'opencode auth login',
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../src/runners/opencode/display.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,WAAW,EAAE,UAAU;IACvB,aAAa,EAAE,UAAU;IACzB,YAAY,EAAE,mBAAmB;IACjC,WAAW,EAAE,UAAU;IACvB,iBAAiB,EAAE,kBAAkB;IACrC,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,qBAAqB;CACH,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** The OpenCode runner's model data. Data only: importing it loads no adapter. */
|
|
2
2
|
export const OPENCODE_MODELS = {
|
|
3
|
+
suggested: [{ id: '', label: 'auto', desc: 'Use your OpenCode default model' }],
|
|
4
|
+
retired: [],
|
|
3
5
|
known: [],
|
|
4
6
|
// opencode selects across providers, so a bare model is ambiguous: reject it
|
|
5
7
|
// loudly rather than let the server pick a default the user never asked for.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/opencode/models.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC9C,KAAK,EAAE,EAAE;IACT,6EAA6E;IAC7E,6EAA6E;IAC7E,KAAK,EAAE,EAAE;CACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/opencode/models.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC9C,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC;IAC/E,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE;IACT,6EAA6E;IAC7E,6EAA6E;IAC7E,KAAK,EAAE,EAAE;CACV,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { ConfigFileDef } from '../../core/runner-config-files.ts';
|
|
2
|
+
import type { RunnerAgentConfig } from '../../contract/index.js';
|
|
2
3
|
/**
|
|
3
4
|
* The pi runner's native config files for Settings → Agent config. Data only: importing it
|
|
4
5
|
* loads no adapter. Order is presentation order: user → project → local, so the scope ladder
|
|
5
6
|
* reads top (broad) to bottom (specific).
|
|
6
7
|
*/
|
|
7
8
|
export declare const PI_CONFIG_FILES: readonly ConfigFileDef[];
|
|
9
|
+
/** The Pi tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
10
|
+
export declare const PI_AGENT_CONFIG: RunnerAgentConfig;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { join } from 'node:path';
|
|
2
|
+
import { EDITOR_PLUS_COMMIT_NOTE } from '../agent-config-notes.js';
|
|
2
3
|
import { PROJECT_AGENTS_FILE } from '../project-agents-file.js';
|
|
3
4
|
const PI_SETTINGS_DOCS = 'https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/docs/settings.md';
|
|
4
5
|
const PI_CONTEXT_FILES_DOCS = 'https://github.com/badlogic/pi-mono/blob/main/packages/coding-agent/README.md#context-files';
|
|
@@ -56,4 +57,19 @@ export const PI_CONFIG_FILES = [
|
|
|
56
57
|
// <repo>/AGENTS.md, shared with Codex, OpenCode, Pi and OMP: the catalog lists it once.
|
|
57
58
|
PROJECT_AGENTS_FILE,
|
|
58
59
|
];
|
|
60
|
+
/** The Pi tab of Settings → Agent config (the `agentConfig` of its `configFiles` part). Data only. */
|
|
61
|
+
export const PI_AGENT_CONFIG = {
|
|
62
|
+
label: 'Pi',
|
|
63
|
+
note: EDITOR_PLUS_COMMIT_NOTE,
|
|
64
|
+
groups: [
|
|
65
|
+
{ id: 'settings', label: 'Settings' },
|
|
66
|
+
{
|
|
67
|
+
id: 'mcp',
|
|
68
|
+
label: 'MCP',
|
|
69
|
+
note: 'Pi ships no MCP client, so it has no MCP file to edit.',
|
|
70
|
+
empty: 'Nothing to list: Pi’s README says "No MCP." Give Pi tools as CLI programs with a README (Pi skills), or install a Pi extension that adds MCP support and configure servers there.',
|
|
71
|
+
},
|
|
72
|
+
{ id: 'memory', label: 'Memory & instructions' },
|
|
73
|
+
],
|
|
74
|
+
};
|
|
59
75
|
//# sourceMappingURL=config-files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/pi/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"config-files.js","sourceRoot":"","sources":["../../../src/runners/pi/config-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE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I,EAAE,QAAQ;QACd,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,CAAC;QACpD,KAAK,EAAE,uBAAuB;QAC9B,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,cAAc;QACvB,UAAU,EACR,4MAA4M;QAC9M,OAAO,EAAE,qBAAqB;KAC/B;IAED,wFAAwF;IACxF,mBAAmB;CACpB,CAAC;AAEF,sGAAsG;AACtG,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE;QACN,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;QACrC;YACE,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,wDAAwD;YAC9D,KAAK,EAAE,mLAAmL;SAC3L;QACD,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,uBAAuB,EAAE;KACjD;CACF,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { defineRunner } from '../../core/runner-definition.js';
|
|
|
2
2
|
import { productEnv } from '../../core/product-env.js';
|
|
3
3
|
import { PI_FACTS } from './facts.js';
|
|
4
4
|
import { PI_MODELS } from './models.js';
|
|
5
|
-
import { PI_CONFIG_FILES } from './config-files.js';
|
|
5
|
+
import { PI_AGENT_CONFIG, PI_CONFIG_FILES } from './config-files.js';
|
|
6
6
|
import { PI_EXTRA_TOOLS } from './extra-tools.js';
|
|
7
7
|
import { PI_SPEC_SUPPORT } from './spec-support.js';
|
|
8
8
|
import { PI_DETECTION } from './detection.js';
|
|
@@ -11,6 +11,7 @@ import { PI_LOGIN } from './login.js';
|
|
|
11
11
|
import { PI_ACCOUNTS } from './accounts.js';
|
|
12
12
|
import { PI_ENV } from './env.js';
|
|
13
13
|
import { PI_MOCK } from './mock.js';
|
|
14
|
+
import { PI_DISPLAY } from './display.js';
|
|
14
15
|
/** The Pi runner. */
|
|
15
16
|
export const piRunner = defineRunner({
|
|
16
17
|
id: 'pi',
|
|
@@ -25,12 +26,13 @@ export const piRunner = defineRunner({
|
|
|
25
26
|
},
|
|
26
27
|
loadModelCatalog: async () => (await import('./pi-model-catalog.js')).discoverPiModels,
|
|
27
28
|
loadSkillCatalog: async () => (await import('./pi-skill-catalog.js')).discoverPiSkills,
|
|
28
|
-
configFiles: PI_CONFIG_FILES,
|
|
29
|
+
configFiles: { files: PI_CONFIG_FILES, agentConfig: PI_AGENT_CONFIG },
|
|
29
30
|
extraTools: PI_EXTRA_TOOLS,
|
|
30
31
|
login: { ...PI_LOGIN, executable: () => productEnv('PI_BIN') ?? 'pi' },
|
|
31
32
|
accounts: PI_ACCOUNTS,
|
|
32
33
|
env: PI_ENV,
|
|
33
34
|
mock: PI_MOCK,
|
|
34
35
|
loadLogin: async () => ({ parse: (await import('./login-probe.js')).parsePiStatus }),
|
|
36
|
+
display: PI_DISPLAY,
|
|
35
37
|
});
|
|
36
38
|
//# sourceMappingURL=definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/pi/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/runners/pi/definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC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AC,CAAC,gBAAgB;IACtF,WAAW,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE;IACrE,UAAU,EAAE,cAAc;IAC1B,KAAK,EAAE,EAAE,GAAG,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE;IACtE,QAAQ,EAAE,WAAW;IACrB,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;IACpF,OAAO,EAAE,UAAU;CACpB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** How the cockpit and server messages name the Pi runner (its `display` part). */
|
|
2
|
+
export declare const PI_DISPLAY: {
|
|
3
|
+
readonly displayName: 'pi';
|
|
4
|
+
readonly modelListName: 'Pi';
|
|
5
|
+
readonly modelIdScope: 'provider-spanning';
|
|
6
|
+
readonly pickerLabel: 'pi';
|
|
7
|
+
readonly pickerDescription: 'pi CLI (provider/model)';
|
|
8
|
+
readonly icon: 'bot';
|
|
9
|
+
readonly installHint: 'https://github.com/badlogic/pi-mono';
|
|
10
|
+
readonly loginCommand: 'pi /login';
|
|
11
|
+
readonly accountFolderExample: '~/.pi-second/agent';
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** How the cockpit and server messages name the Pi runner (its `display` part). */
|
|
2
|
+
export const PI_DISPLAY = {
|
|
3
|
+
displayName: 'pi',
|
|
4
|
+
modelListName: 'Pi',
|
|
5
|
+
modelIdScope: 'provider-spanning',
|
|
6
|
+
pickerLabel: 'pi',
|
|
7
|
+
pickerDescription: 'pi CLI (provider/model)',
|
|
8
|
+
icon: 'bot',
|
|
9
|
+
installHint: 'https://github.com/badlogic/pi-mono',
|
|
10
|
+
loginCommand: 'pi /login',
|
|
11
|
+
accountFolderExample: '~/.pi-second/agent',
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=display.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.js","sourceRoot":"","sources":["../../../src/runners/pi/display.ts"],"names":[],"mappings":"AAEA,mFAAmF;AACnF,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,mBAAmB;IACjC,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,yBAAyB;IAC5C,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,qCAAqC;IAClD,YAAY,EAAE,WAAW;IACzB,oBAAoB,EAAE,oBAAoB;CACV,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** The pi runner's model data. Data only: importing it loads no adapter. */
|
|
2
2
|
export const PI_MODELS = {
|
|
3
|
+
suggested: [{ id: '', label: 'auto', desc: 'Use your pi default model' }],
|
|
4
|
+
retired: [],
|
|
3
5
|
// pi lists nothing for the same reason OpenCode does (#794), plus one of its own: it picks a
|
|
4
6
|
// model with the canonical `provider/model` convention and has no default provider, so the
|
|
5
7
|
// structural check in `modelConflictsWithRunner` already guards it without vendor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/pi/models.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC,6FAA6F;IAC7F,2FAA2F;IAC3F,kFAAkF;IAClF,wFAAwF;IACxF,8FAA8F;IAC9F,+EAA+E;IAC/E,KAAK,EAAE,EAAE;IACT,2EAA2E;IAC3E,4EAA4E;IAC5E,4EAA4E;IAC5E,KAAK,EAAE,EAAE;CACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/runners/pi/models.ts"],"names":[],"mappings":"AAEA,4EAA4E;AAC5E,MAAM,CAAC,MAAM,SAAS,GAAoB;IACxC,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;IACzE,OAAO,EAAE,EAAE;IACX,6FAA6F;IAC7F,2FAA2F;IAC3F,kFAAkF;IAClF,wFAAwF;IACxF,8FAA8F;IAC9F,+EAA+E;IAC/E,KAAK,EAAE,EAAE;IACT,2EAA2E;IAC3E,4EAA4E;IAC5E,4EAA4E;IAC5E,KAAK,EAAE,EAAE;CACV,CAAC"}
|
|
@@ -2,18 +2,38 @@ import type { parseRunRecords } from './store.ts';
|
|
|
2
2
|
import type { RunRowInput } from './run-database.ts';
|
|
3
3
|
/** The read-time upgrades of a stored record, in place, before the schema reads it. */
|
|
4
4
|
export declare function upgradeLegacyRunRow(row: Record<string, unknown>): void;
|
|
5
|
+
/** Runners Squawk no longer ships (hearsay-tools/squawk#3715). A run saved on one still opens,
|
|
6
|
+
* lists and shows its transcript. */
|
|
7
|
+
export declare const REMOVED_RUNNER_IDS: readonly string[];
|
|
8
|
+
/** Whether a run's `removedRunner` names a runner that this process did not register, not a retired
|
|
9
|
+
* one: such a run waits, untouched, for a process that registers its runner. */
|
|
10
|
+
export declare function waitsForUnregisteredRunner(run: {
|
|
11
|
+
removedRunner?: string | undefined;
|
|
12
|
+
}): boolean;
|
|
13
|
+
/** Whether a saved runner id parses: a legacy id, a registered id, or, in a process that registered
|
|
14
|
+
* no runner, a built-in id. */
|
|
15
|
+
export declare function readableSavedRunner(id: string): boolean;
|
|
5
16
|
/**
|
|
6
17
|
* A run saved on a removed runner, or with any step or workflow-definition step on one, is read as
|
|
7
18
|
* `removedRunner`; a removed `runner` is cleared. Its steps on that runner keep no backend and no
|
|
8
19
|
* session, only `removedBackend`, so a Continue knows that step holds the latest work and opens a
|
|
9
20
|
* new session for it. A definition step on that runner keeps its prompt, skill and checks, and
|
|
10
|
-
* loses the runner and the model, effort and account that belonged to it.
|
|
11
|
-
* row stores the fold
|
|
21
|
+
* loses the runner and the model, effort and account that belonged to it. For a retired runner the
|
|
22
|
+
* next write of the row stores the fold; for an unregistered one it puts the removed fields back
|
|
23
|
+
* (`withKeptFields`), where the write has not set them.
|
|
12
24
|
*/
|
|
13
25
|
export declare function upgradeRemovedRunner(row: Record<string, unknown>): void;
|
|
14
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* `onto` (by default `raw` itself) with the fields that the fold of `raw`, an unregistered runner's
|
|
28
|
+
* row, removed put back: for the raw extras of its row (raw-record.ts), so the next write keeps
|
|
29
|
+
* them unless it sets them itself, and for the stored JSON of an imported `runs.json` entry. `onto`
|
|
30
|
+
* itself when no such fold ran.
|
|
31
|
+
*/
|
|
32
|
+
export declare function withKeptFields(raw: unknown, onto?: unknown): unknown;
|
|
33
|
+
/** A settled row's stored summary skips the record parse; it folds the same way, and a runner that
|
|
34
|
+
* is registered again reads as before. */
|
|
15
35
|
export declare function upgradeRemovedRunnerSummary(row: Record<string, unknown>): void;
|
|
16
|
-
/** A saved worker-result snapshot names the runner the worker ran on; a
|
|
36
|
+
/** A saved worker-result snapshot names the runner the worker ran on; a retired one is dropped. */
|
|
17
37
|
export declare function upgradeRemovedRunnerResult(file: unknown): unknown;
|
|
18
38
|
/**
|
|
19
39
|
* A row saved before the `workflowCursor` fact (ADR 0064) names its CI or provider-retry step as
|