@hearsay-tools/squawk 0.18.0-dev.8411 → 0.18.0-dev.8418
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/automations/tools.d.ts +8 -8
- package/dist/boot.d.ts +1 -1
- package/dist/boot.js +4 -1
- package/dist/boot.js.map +1 -1
- package/dist/built-in-launch-parts.d.ts +16 -0
- package/dist/built-in-launch-parts.js +61 -0
- package/dist/built-in-launch-parts.js.map +1 -0
- package/dist/core/launch-registry.d.ts +50 -0
- package/dist/core/launch-registry.js +60 -0
- package/dist/core/launch-registry.js.map +1 -0
- package/dist/delegation/routes.d.ts +65 -65
- package/dist/plugin/api.d.ts +4 -0
- package/dist/plugin/api.js +10 -1
- package/dist/plugin/api.js.map +1 -1
- package/dist/plugin/cli.js +1 -0
- package/dist/plugin/cli.js.map +1 -1
- package/dist/plugin/index.d.ts +1 -0
- package/dist/plugin/index.js.map +1 -1
- package/dist/server/runs-routes.d.ts +693 -693
- package/dist/server/server.d.ts +34 -34
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/workflows/run/compose.js +1 -2
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/continuation-session.js +10 -9
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/launch-context.d.ts +5 -9
- package/dist/workflows/run/launch-context.js +7 -24
- package/dist/workflows/run/launch-context.js.map +1 -1
- package/dist/workflows/run/session-events.d.ts +16 -8
- package/dist/workflows/run/session-events.js +12 -11
- package/dist/workflows/run/session-events.js.map +1 -1
- package/dist/workflows/run/step-session.js +10 -9
- package/dist/workflows/run/step-session.js.map +1 -1
- package/dist/workflows/run/types.d.ts +3 -2
- package/package.json +4 -4
- package/scripts/benchmark-runtime.ts +3 -0
- package/scripts/measure-transcript-facts-health.mjs +3 -0
- package/web/dist/assets/{accounts-section-D3rKSj1e.js → accounts-section-DmCfsIhE.js} +1 -1
- package/web/dist/assets/{activity-motion-CFgok4CI.js → activity-motion-Dl9i8LMp.js} +1 -1
- package/web/dist/assets/{activity-route-HvdWBepL.js → activity-route-Cu2YIdei.js} +1 -1
- package/web/dist/assets/{agent-config-section-DbmhTCJA.js → agent-config-section-Bzm4-R__.js} +1 -1
- package/web/dist/assets/{agent-defaults-section-5fBA2FMV.js → agent-defaults-section-BKqo164A.js} +1 -1
- package/web/dist/assets/{appearance-ZpysBpxH.js → appearance-BqzgpB-Y.js} +1 -1
- package/web/dist/assets/{automations-route-aINxoEQX.js → automations-route-CUgWc2Qw.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-BzAqXG0p.js → commit-diff-panel-Cm558uOv.js} +1 -1
- package/web/dist/assets/{diff-lVUk7FAR.js → diff-GEuSlT_R.js} +2 -2
- package/web/dist/assets/{diff-view-B5RGiepv.js → diff-view-DLSixc9l.js} +1 -1
- package/web/dist/assets/{file-preview-Bn5u5k1W.js → file-preview-RPc0KAo_.js} +1 -1
- package/web/dist/assets/{git-toolbar-xLFz5nnr.js → git-toolbar-Dd_SYvD0.js} +1 -1
- package/web/dist/assets/{github-DxiILmDg.js → github-CQ7IuYHM.js} +1 -1
- package/web/dist/assets/{global-activity-route-BmqMaZug.js → global-activity-route-BxZ0CMwG.js} +1 -1
- package/web/dist/assets/{index-DndX-kC-.js → index-BRgRv29I.js} +4 -4
- package/web/dist/assets/{markdown-DHYxiDex.js → markdown-CIm2Q7mB.js} +1 -1
- package/web/dist/assets/{notifications-section-xHvjaRxV.js → notifications-section-Cw8yBZWz.js} +1 -1
- package/web/dist/assets/{preview-pane-connected-C5Lsjf2P.js → preview-pane-connected-C3DmH_yh.js} +1 -1
- package/web/dist/assets/{projects-section-0ov7IK9p.js → projects-section-DftkCQ4q.js} +1 -1
- package/web/dist/assets/{prompt-templates-section-DgLWN4ZB.js → prompt-templates-section-CKSYhpin.js} +1 -1
- package/web/dist/assets/{remote-settings-notice-kmlL_JEi.js → remote-settings-notice-C727a84A.js} +1 -1
- package/web/dist/assets/{repo-git-D-L0KYwh.js → repo-git-CfmNmHkb.js} +1 -1
- package/web/dist/assets/{report-reader-Fb02sGC6.js → report-reader-wIj2Yog1.js} +1 -1
- package/web/dist/assets/{reports--yxm1Dbp.js → reports-DSkGAItT.js} +1 -1
- package/web/dist/assets/{resources-section-CZu7afz7.js → resources-section-DaEv2dar.js} +1 -1
- package/web/dist/assets/{run-header-Bajufo9w.js → run-header-CVZ0ZK7C.js} +1 -1
- package/web/dist/assets/{settings-agent-picker-XdHS0cXP.js → settings-agent-picker-DMVlOQzv.js} +1 -1
- package/web/dist/assets/{settings-shell-63smMna1.js → settings-shell-DfnGZk9I.js} +1 -1
- package/web/dist/assets/{sidebar-section-Dgf9Tda6.js → sidebar-section-DYJZAqtU.js} +1 -1
- package/web/dist/assets/{skills-CVoGqJeT.js → skills-CfzNcHh1.js} +1 -1
- package/web/dist/assets/{task-changes-Cd30VNwk.js → task-changes-C1I9CMew.js} +1 -1
- package/web/dist/assets/{task-commits-33kwaiVP.js → task-commits-d_R4H7pu.js} +1 -1
- package/web/dist/assets/{task-files-W2NkAX0s.js → task-files-B2JBO9Dx.js} +1 -1
- package/web/dist/assets/{task-github-item-C7dEQxMN.js → task-github-item-C9HMDHKn.js} +1 -1
- package/web/dist/assets/{task-thread-Bi5cKYmZ.js → task-thread-dKvX9xg6.js} +1 -1
- package/web/dist/assets/{thread-state-DI7JLoTx.js → thread-state-B3HGSNEy.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-B869bBKO.js → use-hand-to-agent-state-DzHDdmHn.js} +1 -1
- package/web/dist/assets/{workflows-CeRdeF9n.js → workflows-DqArthZn.js} +1 -1
- package/web/dist/assets/{workspace-tools-YqTAoyv7.js → workspace-tools-S5KvgCRm.js} +1 -1
- package/web/dist/assets/{worktrees-section-9fwC5DGp.js → worktrees-section-DNFnQfiW.js} +1 -1
- package/web/dist/index.html +1 -1
|
@@ -7,10 +7,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
7
7
|
}[];
|
|
8
8
|
isError: boolean;
|
|
9
9
|
details: {
|
|
10
|
-
ok: false;
|
|
11
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
12
|
-
message: string;
|
|
13
|
-
} | {
|
|
14
10
|
ok: true;
|
|
15
11
|
task: {
|
|
16
12
|
id: string;
|
|
@@ -22,6 +18,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
|
|
|
22
18
|
url?: string | undefined;
|
|
23
19
|
};
|
|
24
20
|
note: string;
|
|
21
|
+
} | {
|
|
22
|
+
ok: false;
|
|
23
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
24
|
+
message: string;
|
|
25
25
|
};
|
|
26
26
|
}>;
|
|
27
27
|
export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof callScheduleTask>>): {
|
|
@@ -31,10 +31,6 @@ export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof
|
|
|
31
31
|
}[];
|
|
32
32
|
isError: boolean;
|
|
33
33
|
details: {
|
|
34
|
-
ok: false;
|
|
35
|
-
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
36
|
-
message: string;
|
|
37
|
-
} | {
|
|
38
34
|
ok: true;
|
|
39
35
|
task: {
|
|
40
36
|
id: string;
|
|
@@ -46,6 +42,10 @@ export declare function formatScheduleTaskTool(answer: Awaited<ReturnType<typeof
|
|
|
46
42
|
url?: string | undefined;
|
|
47
43
|
};
|
|
48
44
|
note: string;
|
|
45
|
+
} | {
|
|
46
|
+
ok: false;
|
|
47
|
+
code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
|
|
48
|
+
message: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
export declare function invokeScheduledTasksTool(input: unknown): Promise<{
|
package/dist/boot.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface BootRuntimeOptions {
|
|
|
26
26
|
/**
|
|
27
27
|
* Register every built-in extension table, load the bundled runners and then the host plugins
|
|
28
28
|
* through the plugin loader, run the optional hook, then seal
|
|
29
|
-
* all
|
|
29
|
+
* all nine registries in this one place. A second call returns the same boot and does not load
|
|
30
30
|
* plugins or run the hook again.
|
|
31
31
|
*/
|
|
32
32
|
export declare function bootRuntime(options?: BootRuntimeOptions): Promise<void>;
|
package/dist/boot.js
CHANGED
|
@@ -27,7 +27,7 @@ let hostPluginsLoaded = false;
|
|
|
27
27
|
/**
|
|
28
28
|
* Register every built-in extension table, load the bundled runners and then the host plugins
|
|
29
29
|
* through the plugin loader, run the optional hook, then seal
|
|
30
|
-
* all
|
|
30
|
+
* all nine registries in this one place. A second call returns the same boot and does not load
|
|
31
31
|
* plugins or run the hook again.
|
|
32
32
|
*/
|
|
33
33
|
export function bootRuntime(options) {
|
|
@@ -46,6 +46,7 @@ async function sealRuntime({ pluginsDir, bundledRunnersDir, beforeSeal }) {
|
|
|
46
46
|
if (!cliCommandsSealed())
|
|
47
47
|
registerBuiltInCliCommands();
|
|
48
48
|
const { registerBuiltInRunSlots, sealBuiltInRunSlots } = await import('./built-in-run-slots.js');
|
|
49
|
+
const { registerBuiltInLaunchParts, sealBuiltInLaunchParts } = await import('./built-in-launch-parts.js');
|
|
49
50
|
const { registerBuiltInStepKinds, sealBuiltInStepKinds } = await import('./workflows/step-kind-registry.js');
|
|
50
51
|
const { registerBuiltInTools, sealBuiltInTools } = await import('./built-in-tools.js');
|
|
51
52
|
const { registerBuiltInWaitKinds, sealBuiltInWaitKinds } = await import('./built-in-wait-kinds.js');
|
|
@@ -53,6 +54,7 @@ async function sealRuntime({ pluginsDir, bundledRunnersDir, beforeSeal }) {
|
|
|
53
54
|
const { sealRunners } = await import('./core/runner-registry.js');
|
|
54
55
|
const loader = await import('./plugin/loader.js');
|
|
55
56
|
registerBuiltInRunSlots();
|
|
57
|
+
registerBuiltInLaunchParts();
|
|
56
58
|
registerBuiltInStepKinds();
|
|
57
59
|
registerBuiltInTools();
|
|
58
60
|
registerBuiltInWaitKinds();
|
|
@@ -67,6 +69,7 @@ async function sealRuntime({ pluginsDir, bundledRunnersDir, beforeSeal }) {
|
|
|
67
69
|
sealBuiltInCliCommands();
|
|
68
70
|
sealRunners();
|
|
69
71
|
sealBuiltInRunSlots();
|
|
72
|
+
sealBuiltInLaunchParts();
|
|
70
73
|
sealBuiltInStepKinds();
|
|
71
74
|
sealBuiltInTools();
|
|
72
75
|
sealBuiltInWaitKinds();
|
package/dist/boot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot.js","sourceRoot":"","sources":["../src/boot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAGpE;;;GAGG;AACH,MAAM,UAAU,WAAW;IACzB,0BAA0B,EAAE,CAAC;IAC7B,sBAAsB,EAAE,CAAC;AAC3B,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,cAAc,CAAC,IAAgB,EAAE,IAAI,GAA2B,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;IACzG,IAAI,CAAC;QACH,OAAO,IAAI,EAAE,CAAC,OAAO,CAAC;IACxB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,oCAAoC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACjI,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAoBD,IAAI,WAAsC,CAAC;AAC3C,kHAAkH;AAClH,IAAI,kBAAgD,CAAC;AACrD,iGAAiG;AACjG,IAAI,iBAAiB,GAAG,KAAK,CAAC;AAE9B;;;;;G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AAG,MAAM,MAAM,CAAC,8BAA8B,CAAC,CAAC;IACnF,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;IAClE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAClD,uBAAuB,EAAE,CAAC;IAC1B,0BAA0B,EAAE,CAAC;IAC7B,wBAAwB,EAAE,CAAC;IAC3B,oBAAoB,EAAE,CAAC;IACvB,wBAAwB,EAAE,CAAC;IAC3B,MAAM,CAAC,kBAAkB,KAAK,iBAAiB,KAAK,SAAS;QAC3D,CAAC,CAAC,MAAM,CAAC,kBAAkB,EAAE;QAC7B,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACxE,IAAI,UAAU,KAAK,SAAS,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACnD,iBAAiB,GAAG,IAAI,CAAC;QACzB,MAAM,MAAM,CAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACrE,CAAC;IACD,MAAM,UAAU,EAAE,EAAE,CAAC;IACrB,sBAAsB,EAAE,CAAC;IACzB,WAAW,EAAE,CAAC;IACd,mBAAmB,EAAE,CAAC;IACtB,sBAAsB,EAAE,CAAC;IACzB,oBAAoB,EAAE,CAAC;IACvB,gBAAgB,EAAE,CAAC;IACnB,oBAAoB,EAAE,CAAC;IACvB,yBAAyB,EAAE,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type LaunchPartDefinition } from './core/launch-registry.ts';
|
|
2
|
+
/** Automations on AND a cockpit attached: the automations part of every session's system prompt. */
|
|
3
|
+
export declare const automationsLaunchPart: LaunchPartDefinition;
|
|
4
|
+
/** The "Project webhooks" part (#1576): the webhooks this project exposes to agents, read from
|
|
5
|
+
* the registry when a session starts. Needs a cockpit to send through; nothing exposed, or an
|
|
6
|
+
* unreadable registry, adds nothing. */
|
|
7
|
+
export declare const webhooksLaunchPart: LaunchPartDefinition;
|
|
8
|
+
/** The run's artifact directory as env, and the artifact contract. */
|
|
9
|
+
export declare const artifactsLaunchPart: LaunchPartDefinition;
|
|
10
|
+
/** The long-command part. Moves into the bundled jobs feature in hearsay-tools/squawk#4314. */
|
|
11
|
+
export declare const jobsLaunchPart: LaunchPartDefinition;
|
|
12
|
+
export declare const BUILT_IN_LAUNCH_PARTS: readonly LaunchPartDefinition[];
|
|
13
|
+
/** Register the built-in launch parts. A second call registers the same objects, which the registry ignores. */
|
|
14
|
+
export declare function registerBuiltInLaunchParts(): void;
|
|
15
|
+
/** Seal after every built-in and extension registration at the boot boundary. */
|
|
16
|
+
export declare function sealBuiltInLaunchParts(): void;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The launch parts that ship with Squawk (spec 2026-11-26-launch-slot-and-bundled-jobs § 2).
|
|
3
|
+
* Each feature adds its system-prompt part, and artifacts its env, through the public launch
|
|
4
|
+
* slot. Their orders keep the default system prompt byte for byte.
|
|
5
|
+
*/
|
|
6
|
+
import { artifactInstructions, provisionArtifactDirectory } from './artifacts/lifecycle.js';
|
|
7
|
+
import { automationsEnabled } from './automations/enabled.js';
|
|
8
|
+
import { automationCliCommand, automationsPrompt } from './automations/prompts.js';
|
|
9
|
+
import { productEnvEntries } from './core/product-env.js';
|
|
10
|
+
import { registerLaunchPart, sealLaunchParts } from './core/launch-registry.js';
|
|
11
|
+
import { jobInstructions } from './jobs/command.js';
|
|
12
|
+
import { agentWebhooksPrompt, webhookCliCommand } from './webhooks/prompt.js';
|
|
13
|
+
import { registryEntry } from './workspace/registry-entry.js';
|
|
14
|
+
import { agentWebhooks } from './workspace/webhooks.js';
|
|
15
|
+
/** Automations on AND a cockpit attached: the automations part of every session's system prompt. */
|
|
16
|
+
export const automationsLaunchPart = {
|
|
17
|
+
id: 'automations',
|
|
18
|
+
order: 10,
|
|
19
|
+
contribute: ({ cockpit }) => (cockpit && automationsEnabled() ? { prompt: automationsPrompt(automationCliCommand()) } : undefined),
|
|
20
|
+
};
|
|
21
|
+
/** The "Project webhooks" part (#1576): the webhooks this project exposes to agents, read from
|
|
22
|
+
* the registry when a session starts. Needs a cockpit to send through; nothing exposed, or an
|
|
23
|
+
* unreadable registry, adds nothing. */
|
|
24
|
+
export const webhooksLaunchPart = {
|
|
25
|
+
id: 'webhooks',
|
|
26
|
+
order: 20,
|
|
27
|
+
async contribute({ cockpit, repoRoot, home }) {
|
|
28
|
+
if (!cockpit)
|
|
29
|
+
return undefined;
|
|
30
|
+
const entry = await registryEntry(cockpit.projectId, repoRoot, home).catch(() => undefined);
|
|
31
|
+
return { prompt: agentWebhooksPrompt(webhookCliCommand(), agentWebhooks(entry)) };
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
/** The run's artifact directory as env, and the artifact contract. */
|
|
35
|
+
export const artifactsLaunchPart = {
|
|
36
|
+
id: 'artifacts',
|
|
37
|
+
order: 30,
|
|
38
|
+
contribute({ dataDir, runId }) {
|
|
39
|
+
const directory = provisionArtifactDirectory(dataDir, runId);
|
|
40
|
+
return { env: productEnvEntries('ARTIFACTS_DIR', directory), prompt: artifactInstructions(directory) };
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
/** The long-command part. Moves into the bundled jobs feature in hearsay-tools/squawk#4314. */
|
|
44
|
+
export const jobsLaunchPart = {
|
|
45
|
+
id: 'jobs',
|
|
46
|
+
order: 40,
|
|
47
|
+
contribute: () => ({ prompt: jobInstructions() }),
|
|
48
|
+
};
|
|
49
|
+
export const BUILT_IN_LAUNCH_PARTS = [
|
|
50
|
+
automationsLaunchPart, webhooksLaunchPart, artifactsLaunchPart, jobsLaunchPart,
|
|
51
|
+
];
|
|
52
|
+
/** Register the built-in launch parts. A second call registers the same objects, which the registry ignores. */
|
|
53
|
+
export function registerBuiltInLaunchParts() {
|
|
54
|
+
for (const part of BUILT_IN_LAUNCH_PARTS)
|
|
55
|
+
registerLaunchPart(part);
|
|
56
|
+
}
|
|
57
|
+
/** Seal after every built-in and extension registration at the boot boundary. */
|
|
58
|
+
export function sealBuiltInLaunchParts() {
|
|
59
|
+
sealLaunchParts();
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=built-in-launch-parts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"built-in-launch-parts.js","sourceRoot":"","sources":["../src/built-in-launch-parts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAA6B,MAAM,2BAA2B,CAAC;AAC3G,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,oGAAoG;AACpG,MAAM,CAAC,MAAM,qBAAqB,GAAyB;IACzD,EAAE,EAAE,aAAa;IACjB,KAAK,EAAE,EAAE;IACT,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,IAAI,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,oBAAoB,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;CACnI,CAAC;AAEF;;yCAEyC;A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B;QAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC;AACrE,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,sBAAsB;IACpC,eAAe,EAAE,CAAC;AACpB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The launch slot (spec 2026-11-26-launch-slot-and-bundled-jobs § 1-3). Features and host plugins
|
|
3
|
+
* register launch parts. Each agent launch resolves them once, in ascending `order`, into session
|
|
4
|
+
* env entries and system-prompt parts. Core knows no feature names.
|
|
5
|
+
*/
|
|
6
|
+
import type { Home } from '../home/home.ts';
|
|
7
|
+
/** The cockpit a launch can reach, or undefined when no cockpit is attached. */
|
|
8
|
+
export type LaunchCockpitAddress = {
|
|
9
|
+
readonly origin: string;
|
|
10
|
+
readonly projectId: string;
|
|
11
|
+
} | undefined;
|
|
12
|
+
/** What a launch part reads. `env` holds the profile env and the entries of earlier parts. */
|
|
13
|
+
export interface LaunchPartContext {
|
|
14
|
+
readonly runId: string;
|
|
15
|
+
readonly dataDir: string;
|
|
16
|
+
readonly repoRoot: string;
|
|
17
|
+
readonly home: Home;
|
|
18
|
+
readonly cockpit: LaunchCockpitAddress;
|
|
19
|
+
readonly env: Readonly<Record<string, string>>;
|
|
20
|
+
}
|
|
21
|
+
/** What one launch part adds to a launch. */
|
|
22
|
+
export interface LaunchPartContribution {
|
|
23
|
+
readonly env?: Readonly<Record<string, string>> | undefined;
|
|
24
|
+
readonly prompt?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface LaunchPartDefinition {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/** Parts run in ascending order; ties keep registration order. Default 100. */
|
|
29
|
+
readonly order?: number | undefined;
|
|
30
|
+
contribute(context: LaunchPartContext): LaunchPartContribution | undefined | Promise<LaunchPartContribution | undefined>;
|
|
31
|
+
}
|
|
32
|
+
/** The merged result of every launch part. */
|
|
33
|
+
export interface ResolvedLaunchParts {
|
|
34
|
+
env: Record<string, string>;
|
|
35
|
+
prompts: string[];
|
|
36
|
+
}
|
|
37
|
+
export declare const DEFAULT_LAUNCH_PART_ORDER = 100;
|
|
38
|
+
/** Throws what `registerLaunchPart` would throw, without writing. */
|
|
39
|
+
export declare function checkLaunchPartRegistration(part: LaunchPartDefinition): void;
|
|
40
|
+
export declare function registerLaunchPart(part: LaunchPartDefinition): void;
|
|
41
|
+
export declare function sealLaunchParts(): void;
|
|
42
|
+
/** Whether the registry is sealed. Never throws. */
|
|
43
|
+
export declare function launchPartsSealed(): boolean;
|
|
44
|
+
/** The registered parts in resolution order. Throws until sealed. */
|
|
45
|
+
export declare function registeredLaunchParts(): LaunchPartDefinition[];
|
|
46
|
+
/**
|
|
47
|
+
* Run every launch part in order. Each part sees the env of the parts before it. A part that
|
|
48
|
+
* throws or rejects is skipped with one warning; the launch goes on without it.
|
|
49
|
+
*/
|
|
50
|
+
export declare function resolveLaunchParts(context: LaunchPartContext, warn?: (message: string) => void): Promise<ResolvedLaunchParts>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createKeyedRegistry } from './registry.js';
|
|
2
|
+
export const DEFAULT_LAUNCH_PART_ORDER = 100;
|
|
3
|
+
const parts = createKeyedRegistry({
|
|
4
|
+
name: 'Launch parts',
|
|
5
|
+
bootHint: 'register every launch part, then call sealLaunchParts() at the runtime boot boundary (boot.ts), or import a testkit that seals it.',
|
|
6
|
+
});
|
|
7
|
+
function checkShape(part) {
|
|
8
|
+
if (typeof part !== 'object' || part === null)
|
|
9
|
+
throw new Error('Launch parts: a launch part must be an object.');
|
|
10
|
+
if (typeof part.id !== 'string' || part.id.length === 0)
|
|
11
|
+
throw new Error(`Launch parts: invalid id ${JSON.stringify(part.id)}.`);
|
|
12
|
+
if (part.order !== undefined && (typeof part.order !== 'number' || !Number.isFinite(part.order))) {
|
|
13
|
+
throw new Error(`Launch parts: '${part.id}' needs a finite number order.`);
|
|
14
|
+
}
|
|
15
|
+
if (typeof part.contribute !== 'function')
|
|
16
|
+
throw new Error(`Launch parts: '${part.id}' needs a contribute function.`);
|
|
17
|
+
}
|
|
18
|
+
/** Throws what `registerLaunchPart` would throw, without writing. */
|
|
19
|
+
export function checkLaunchPartRegistration(part) {
|
|
20
|
+
checkShape(part);
|
|
21
|
+
parts.check(part.id, part);
|
|
22
|
+
}
|
|
23
|
+
export function registerLaunchPart(part) {
|
|
24
|
+
checkShape(part);
|
|
25
|
+
parts.register(part.id, part);
|
|
26
|
+
}
|
|
27
|
+
export function sealLaunchParts() { parts.seal(); }
|
|
28
|
+
/** Whether the registry is sealed. Never throws. */
|
|
29
|
+
export function launchPartsSealed() { return parts.isSealed(); }
|
|
30
|
+
/** The registered parts in resolution order. Throws until sealed. */
|
|
31
|
+
export function registeredLaunchParts() {
|
|
32
|
+
// Array.prototype.sort is stable, so equal orders keep registration order.
|
|
33
|
+
return parts.values().sort((a, b) => (a.order ?? DEFAULT_LAUNCH_PART_ORDER) - (b.order ?? DEFAULT_LAUNCH_PART_ORDER));
|
|
34
|
+
}
|
|
35
|
+
const defaultWarn = (message) => { console.warn(message); };
|
|
36
|
+
/**
|
|
37
|
+
* Run every launch part in order. Each part sees the env of the parts before it. A part that
|
|
38
|
+
* throws or rejects is skipped with one warning; the launch goes on without it.
|
|
39
|
+
*/
|
|
40
|
+
export async function resolveLaunchParts(context, warn = defaultWarn) {
|
|
41
|
+
const ordered = registeredLaunchParts();
|
|
42
|
+
const env = {};
|
|
43
|
+
const prompts = [];
|
|
44
|
+
for (const part of ordered) {
|
|
45
|
+
let contribution;
|
|
46
|
+
try {
|
|
47
|
+
contribution = await part.contribute({ ...context, env: Object.freeze({ ...context.env, ...env }) });
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
warn(`Launch part '${part.id}' failed and was skipped: ${error instanceof Error ? error.message : String(error)}`);
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
if (contribution?.env)
|
|
54
|
+
Object.assign(env, contribution.env);
|
|
55
|
+
if (typeof contribution?.prompt === 'string' && contribution.prompt.length > 0)
|
|
56
|
+
prompts.push(contribution.prompt);
|
|
57
|
+
}
|
|
58
|
+
return { env, prompts };
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=launch-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch-registry.js","sourceRoot":"","sources":["../../src/core/launch-registry.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAkCpD,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAE7C,MAAM,KAAK,GAAG,mBAAmB,CAA+B;IAC9D,IAAI,EAAE,cAAc;IACpB,QAAQ,EAAE,oIAAoI;CAC/I,CAAC,CAAC;AAEH,SAAS,UAAU,CAAC,IAA0B;IAC5C,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACjH,IAAI,OAAO,IAAI,CAAC,EAAE,KAAK,QAAQ,IAAI,IAAI,CAAC,EAAE,CAAC,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACjI,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACjG,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,CAAC,EAAE,gCAAgC,CAAC,CAAC;IAC7E,CAAC;IACD,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,UAAU;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,CAAC,EAAE,gCAAgC,CAAC,CAAC;AACxH,CAAC;AAED,qEAAqE;AACrE,M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AG,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACvG,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,gBAAgB,IAAI,CAAC,EAAE,6BAA6B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACnH,SAAS;QACX,CAAC;QACD,IAAI,YAAY,EAAE,GAAG;YAAE,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;QAC5D,IAAI,OAAO,YAAY,EAAE,MAAM,KAAK,QAAQ,IAAI,YAAY,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IACpH,CAAC;IACD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AAC1B,CAAC"}
|
|
@@ -27,18 +27,6 @@ export declare function delegationFailure(error: unknown): {
|
|
|
27
27
|
export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
|
|
28
28
|
"/list": {
|
|
29
29
|
$get: {
|
|
30
|
-
output: {
|
|
31
|
-
error: string;
|
|
32
|
-
code?: "invalid_input" | undefined;
|
|
33
|
-
};
|
|
34
|
-
outputFormat: "json";
|
|
35
|
-
status: 400;
|
|
36
|
-
input: {
|
|
37
|
-
query: {
|
|
38
|
-
offset?: string | undefined;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
} | {
|
|
42
30
|
output: {
|
|
43
31
|
workers: {
|
|
44
32
|
workerId: string;
|
|
@@ -91,6 +79,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
91
79
|
offset?: string | undefined;
|
|
92
80
|
};
|
|
93
81
|
};
|
|
82
|
+
} | {
|
|
83
|
+
output: {
|
|
84
|
+
error: string;
|
|
85
|
+
code?: "invalid_input" | undefined;
|
|
86
|
+
};
|
|
87
|
+
outputFormat: "json";
|
|
88
|
+
status: 400;
|
|
89
|
+
input: {
|
|
90
|
+
query: {
|
|
91
|
+
offset?: string | undefined;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
} & {
|
|
@@ -677,18 +677,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
677
677
|
} & {
|
|
678
678
|
"/:workerId": {
|
|
679
679
|
$get: {
|
|
680
|
-
output: {
|
|
681
|
-
error: string;
|
|
682
|
-
code?: "invalid_input" | undefined;
|
|
683
|
-
};
|
|
684
|
-
outputFormat: "json";
|
|
685
|
-
status: 400;
|
|
686
|
-
input: {
|
|
687
|
-
param: {
|
|
688
|
-
workerId: string;
|
|
689
|
-
};
|
|
690
|
-
};
|
|
691
|
-
} | {
|
|
692
680
|
output: {
|
|
693
681
|
workerId: string;
|
|
694
682
|
settled: boolean;
|
|
@@ -813,11 +801,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
813
801
|
workerId: string;
|
|
814
802
|
};
|
|
815
803
|
};
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
} & {
|
|
819
|
-
"/:workerId/collect": {
|
|
820
|
-
$post: {
|
|
804
|
+
} | {
|
|
821
805
|
output: {
|
|
822
806
|
error: string;
|
|
823
807
|
code?: "invalid_input" | undefined;
|
|
@@ -828,10 +812,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
828
812
|
param: {
|
|
829
813
|
workerId: string;
|
|
830
814
|
};
|
|
831
|
-
} & {
|
|
832
|
-
json: Record<string, never>;
|
|
833
815
|
};
|
|
834
|
-
}
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
} & {
|
|
819
|
+
"/:workerId/collect": {
|
|
820
|
+
$post: {
|
|
835
821
|
output: {
|
|
836
822
|
workerId: string;
|
|
837
823
|
parentRunId: string;
|
|
@@ -954,11 +940,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
954
940
|
} & {
|
|
955
941
|
json: Record<string, never>;
|
|
956
942
|
};
|
|
957
|
-
}
|
|
958
|
-
};
|
|
959
|
-
} & {
|
|
960
|
-
"/:workerId/steer": {
|
|
961
|
-
$post: {
|
|
943
|
+
} | {
|
|
962
944
|
output: {
|
|
963
945
|
error: string;
|
|
964
946
|
code?: "invalid_input" | undefined;
|
|
@@ -970,11 +952,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
970
952
|
workerId: string;
|
|
971
953
|
};
|
|
972
954
|
} & {
|
|
973
|
-
json:
|
|
974
|
-
text: string;
|
|
975
|
-
};
|
|
955
|
+
json: Record<string, never>;
|
|
976
956
|
};
|
|
977
|
-
}
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
} & {
|
|
960
|
+
"/:workerId/steer": {
|
|
961
|
+
$post: {
|
|
978
962
|
output: {
|
|
979
963
|
workerId: string;
|
|
980
964
|
state: "delivered" | "queued";
|
|
@@ -990,11 +974,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
990
974
|
text: string;
|
|
991
975
|
};
|
|
992
976
|
};
|
|
993
|
-
}
|
|
994
|
-
};
|
|
995
|
-
} & {
|
|
996
|
-
"/:workerId/stop": {
|
|
997
|
-
$post: {
|
|
977
|
+
} | {
|
|
998
978
|
output: {
|
|
999
979
|
error: string;
|
|
1000
980
|
code?: "invalid_input" | undefined;
|
|
@@ -1006,9 +986,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1006
986
|
workerId: string;
|
|
1007
987
|
};
|
|
1008
988
|
} & {
|
|
1009
|
-
json:
|
|
989
|
+
json: {
|
|
990
|
+
text: string;
|
|
991
|
+
};
|
|
1010
992
|
};
|
|
1011
|
-
}
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
} & {
|
|
996
|
+
"/:workerId/stop": {
|
|
997
|
+
$post: {
|
|
1012
998
|
output: {
|
|
1013
999
|
workerId: string;
|
|
1014
1000
|
state: "stopping" | "terminated";
|
|
@@ -1022,11 +1008,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1022
1008
|
} & {
|
|
1023
1009
|
json: Record<string, never>;
|
|
1024
1010
|
};
|
|
1025
|
-
}
|
|
1026
|
-
};
|
|
1027
|
-
} & {
|
|
1028
|
-
"/:workerId/destroy": {
|
|
1029
|
-
$post: {
|
|
1011
|
+
} | {
|
|
1030
1012
|
output: {
|
|
1031
1013
|
error: string;
|
|
1032
1014
|
code?: "invalid_input" | undefined;
|
|
@@ -1038,11 +1020,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1038
1020
|
workerId: string;
|
|
1039
1021
|
};
|
|
1040
1022
|
} & {
|
|
1041
|
-
json:
|
|
1042
|
-
discardWork?: true | undefined;
|
|
1043
|
-
};
|
|
1023
|
+
json: Record<string, never>;
|
|
1044
1024
|
};
|
|
1045
|
-
}
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
} & {
|
|
1028
|
+
"/:workerId/destroy": {
|
|
1029
|
+
$post: {
|
|
1046
1030
|
output: {
|
|
1047
1031
|
workerId: string;
|
|
1048
1032
|
state: "complete" | "incomplete";
|
|
@@ -1071,6 +1055,22 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1071
1055
|
discardWork?: true | undefined;
|
|
1072
1056
|
};
|
|
1073
1057
|
};
|
|
1058
|
+
} | {
|
|
1059
|
+
output: {
|
|
1060
|
+
error: string;
|
|
1061
|
+
code?: "invalid_input" | undefined;
|
|
1062
|
+
};
|
|
1063
|
+
outputFormat: "json";
|
|
1064
|
+
status: 400;
|
|
1065
|
+
input: {
|
|
1066
|
+
param: {
|
|
1067
|
+
workerId: string;
|
|
1068
|
+
};
|
|
1069
|
+
} & {
|
|
1070
|
+
json: {
|
|
1071
|
+
discardWork?: true | undefined;
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
1074
|
} | {
|
|
1075
1075
|
output: {
|
|
1076
1076
|
workerId: string;
|
|
@@ -1106,11 +1106,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1106
1106
|
"/:workerId/diff": {
|
|
1107
1107
|
$get: {
|
|
1108
1108
|
output: {
|
|
1109
|
-
|
|
1110
|
-
|
|
1109
|
+
workerId: string;
|
|
1110
|
+
baselineSha: string;
|
|
1111
|
+
diff: string;
|
|
1112
|
+
truncated: boolean;
|
|
1111
1113
|
};
|
|
1112
1114
|
outputFormat: "json";
|
|
1113
|
-
status:
|
|
1115
|
+
status: 200;
|
|
1114
1116
|
input: {
|
|
1115
1117
|
param: {
|
|
1116
1118
|
workerId: string;
|
|
@@ -1118,13 +1120,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
|
|
|
1118
1120
|
};
|
|
1119
1121
|
} | {
|
|
1120
1122
|
output: {
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
diff: string;
|
|
1124
|
-
truncated: boolean;
|
|
1123
|
+
error: string;
|
|
1124
|
+
code?: "invalid_input" | undefined;
|
|
1125
1125
|
};
|
|
1126
1126
|
outputFormat: "json";
|
|
1127
|
-
status:
|
|
1127
|
+
status: 400;
|
|
1128
1128
|
input: {
|
|
1129
1129
|
param: {
|
|
1130
1130
|
workerId: string;
|
package/dist/plugin/api.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { type AgentToolDefinition } from '../ci-wait/tool-registry.ts';
|
|
8
8
|
import { type CliCommandDefinition } from '../core/cli-registry.ts';
|
|
9
|
+
import { type LaunchPartDefinition } from '../core/launch-registry.ts';
|
|
9
10
|
import type { RunnerDefinition } from '../core/runner-definition.ts';
|
|
10
11
|
import type { RunLifecycleHandlers } from '../runs/lifecycle.ts';
|
|
11
12
|
import { type RunSlots } from '../runs/removal-slots.ts';
|
|
@@ -19,6 +20,8 @@ export interface SquawkPluginApi {
|
|
|
19
20
|
registerStepKind(step: StepKindDefinition): void;
|
|
20
21
|
registerCliCommand(command: CliCommandDefinition): void;
|
|
21
22
|
registerRemovalSlots(slots: Partial<RunSlots>): void;
|
|
23
|
+
/** Add env entries and a system-prompt part to every agent launch. */
|
|
24
|
+
registerLaunchPart(part: LaunchPartDefinition): void;
|
|
22
25
|
onRunLifecycle(handlers: RunLifecycleHandlers): void;
|
|
23
26
|
}
|
|
24
27
|
/** A plugin module's default export. */
|
|
@@ -32,6 +35,7 @@ export interface PluginContributions {
|
|
|
32
35
|
cliCommands: string[];
|
|
33
36
|
removalSlots: number;
|
|
34
37
|
runLifecycleListeners: number;
|
|
38
|
+
launchParts: string[];
|
|
35
39
|
}
|
|
36
40
|
/**
|
|
37
41
|
* Run one plugin's setup and commit what it registered, all or nothing. A setup that throws or
|
package/dist/plugin/api.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { checkAgentToolRegistration, registerAgentTool } from '../ci-wait/tool-registry.js';
|
|
8
8
|
import { checkCliCommandRegistration, registerCliCommand } from '../core/cli-registry.js';
|
|
9
|
+
import { checkLaunchPartRegistration, registerLaunchPart } from '../core/launch-registry.js';
|
|
9
10
|
import { checkRunnerRegistration, registerRunner } from '../core/runner-registry.js';
|
|
10
11
|
import { checkRunLifecycleListenerRegistration, registerRunLifecycleListener } from '../runs/lifecycle-registry.js';
|
|
11
12
|
import { checkRunSlotsRegistration, registerRunSlots } from '../runs/removal-slots.js';
|
|
@@ -33,6 +34,9 @@ const stepKinds = {
|
|
|
33
34
|
const cliCommands = {
|
|
34
35
|
name: 'CLI commands', key: value => value.name, check: checkCliCommandRegistration, commit: registerCliCommand,
|
|
35
36
|
};
|
|
37
|
+
const launchParts = {
|
|
38
|
+
name: 'Launch parts', key: value => value.id, check: checkLaunchPartRegistration, commit: registerLaunchPart,
|
|
39
|
+
};
|
|
36
40
|
function checkKeyed(table, values) {
|
|
37
41
|
const staged = new Map();
|
|
38
42
|
for (const value of values) {
|
|
@@ -73,6 +77,7 @@ function checkStaged(staged) {
|
|
|
73
77
|
checkStagedRequestKinds(staged.waitKinds);
|
|
74
78
|
checkKeyed(stepKinds, staged.stepKinds);
|
|
75
79
|
checkKeyed(cliCommands, staged.cliCommands);
|
|
80
|
+
checkKeyed(launchParts, staged.launchParts);
|
|
76
81
|
for (const slots of staged.removalSlots)
|
|
77
82
|
checkSlots(slots);
|
|
78
83
|
for (const handlers of staged.lifecycle) {
|
|
@@ -92,6 +97,8 @@ function commitStaged(staged) {
|
|
|
92
97
|
stepKinds.commit(value);
|
|
93
98
|
for (const value of staged.cliCommands)
|
|
94
99
|
cliCommands.commit(value);
|
|
100
|
+
for (const value of staged.launchParts)
|
|
101
|
+
launchParts.commit(value);
|
|
95
102
|
for (const slots of staged.removalSlots)
|
|
96
103
|
registerRunSlots(slots);
|
|
97
104
|
for (const handlers of staged.lifecycle)
|
|
@@ -110,6 +117,7 @@ function stagingApi(staged, open) {
|
|
|
110
117
|
registerStepKind: stage(staged.stepKinds),
|
|
111
118
|
registerCliCommand: stage(staged.cliCommands),
|
|
112
119
|
registerRemovalSlots: stage(staged.removalSlots),
|
|
120
|
+
registerLaunchPart: stage(staged.launchParts),
|
|
113
121
|
onRunLifecycle: stage(staged.lifecycle),
|
|
114
122
|
};
|
|
115
123
|
}
|
|
@@ -122,6 +130,7 @@ function contributions(staged) {
|
|
|
122
130
|
cliCommands: staged.cliCommands.map(value => value.name),
|
|
123
131
|
removalSlots: staged.removalSlots.length,
|
|
124
132
|
runLifecycleListeners: staged.lifecycle.length,
|
|
133
|
+
launchParts: staged.launchParts.map(value => value.id),
|
|
125
134
|
};
|
|
126
135
|
}
|
|
127
136
|
/**
|
|
@@ -131,7 +140,7 @@ function contributions(staged) {
|
|
|
131
140
|
* rethrows that error. The api refuses calls once setup has ended. Returns what it committed.
|
|
132
141
|
*/
|
|
133
142
|
export async function runPluginSetup(plugin) {
|
|
134
|
-
const staged = { runners: [], tools: [], waitKinds: [], stepKinds: [], cliCommands: [], removalSlots: [], lifecycle: [] };
|
|
143
|
+
const staged = { runners: [], tools: [], waitKinds: [], stepKinds: [], cliCommands: [], launchParts: [], removalSlots: [], lifecycle: [] };
|
|
135
144
|
let open = true;
|
|
136
145
|
try {
|
|
137
146
|
await plugin(stagingApi(staged, () => open));
|
package/dist/plugin/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/plugin/api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAA4B,MAAM,6BAA6B,CAAC;AACtH,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAA6B,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/plugin/api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAA4B,MAAM,6BAA6B,CAAC;AACtH,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAA6B,MAAM,yBAAyB,CAAC;AACrH,OAAO,EAAE,2BAA2B,EAAE,kBAAkB,EAA6B,MAAM,4BAA4B,CAAC;AAExH,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAErF,OAAO,EAAE,qCAAqC,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AACpH,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAiB,MAAM,0BAA0B,CAAC;AACtG,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAoB,MAAM,wCAAwC,CAAC;AACvH,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAA2B,MAAM,oCAAoC,CAAC;AAkB1H,SAAS,QAAQ,CAAC,QAAgB,EAAE,GAAY;IAC9C,IAA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,MAAM,GAAiB,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACzJ,IAAI,IAAI,GAAG,IAAI,CAAC;IAChB,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/C,CAAC;YAAS,CAAC;QACT,IAAI,GAAG,KAAK,CAAC;IACf,CAAC;IACD,WAAW,CAAC,MAAM,CAAC,CAAC;IACpB,YAAY,CAAC,MAAM,CAAC,CAAC;IACrB,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC"}
|
package/dist/plugin/cli.js
CHANGED
|
@@ -9,6 +9,7 @@ const CONTRIBUTION_LABELS = [
|
|
|
9
9
|
['cliCommands', 'commands'], ['runners', 'runners'], ['agentTools', 'agent tools'],
|
|
10
10
|
['waitKinds', 'wait kinds'], ['stepKinds', 'step kinds'],
|
|
11
11
|
['removalSlots', 'removal slots'], ['runLifecycleListeners', 'run lifecycle listeners'],
|
|
12
|
+
['launchParts', 'launch parts'],
|
|
12
13
|
];
|
|
13
14
|
function contributionLines(contributions) {
|
|
14
15
|
return CONTRIBUTION_LABELS.flatMap(([key, label]) => {
|