@hearsay-tools/squawk 0.18.0-dev.7050 → 0.18.0-dev.7059
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/ci-wait/tools.d.ts +4 -4
- package/dist/contract/index.js +11 -0
- package/dist/contract/runner-skills.d.ts +11 -0
- package/dist/contract/runs.d.ts +33 -18
- package/dist/core/agent-runner.d.ts +2 -0
- package/dist/core/agent-runner.js +1 -0
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/claude-cli-runner.d.ts +2 -4
- package/dist/core/claude-cli-runner.js +5 -5
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/codex-app-server-runner.js +8 -8
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/omp-runner.js +16 -2
- package/dist/core/omp-runner.js.map +1 -1
- package/dist/core/opencode-server-runner.js +6 -6
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-args.d.ts +2 -0
- package/dist/core/pi-args.js +8 -0
- package/dist/core/pi-args.js.map +1 -0
- package/dist/core/pi-runner.js +23 -10
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/pi-skill-catalog.js +2 -2
- package/dist/core/pi-skill-catalog.js.map +1 -1
- package/dist/core/runner-skill-reference.d.ts +20 -0
- package/dist/core/runner-skill-reference.js +36 -0
- package/dist/core/runner-skill-reference.js.map +1 -0
- package/dist/core/skill-trigger.d.ts +6 -2
- package/dist/core/skill-trigger.js +10 -4
- package/dist/core/skill-trigger.js.map +1 -1
- package/dist/delegation/conversations.d.ts +6 -0
- package/dist/delegation/routes.d.ts +9 -9
- package/dist/delegation/service.d.ts +1 -1
- package/dist/delegation/service.js +8 -4
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +11 -11
- package/dist/headless-run.js +3 -1
- package/dist/headless-run.js.map +1 -1
- package/dist/planner.d.ts +2 -2
- package/dist/planner.js +11 -7
- package/dist/planner.js.map +1 -1
- package/dist/runs/run-exits.d.ts +16 -0
- package/dist/runs/store.d.ts +8 -1
- package/dist/serve-command.js +6 -2
- package/dist/serve-command.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/runner-skills.d.ts +14 -0
- package/dist/server/runner-skills.js +19 -0
- package/dist/server/runner-skills.js.map +1 -0
- package/dist/server/server-deps.d.ts +1 -1
- package/dist/server/server-deps.js +3 -0
- package/dist/server/server-deps.js.map +1 -1
- package/dist/server/server.d.ts +458 -250
- package/dist/server/server.js +22 -17
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-run-options.d.ts +3 -0
- package/dist/server/start-run-options.js +5 -2
- package/dist/server/start-run-options.js.map +1 -1
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/task-cli/cli.js +30 -24
- package/dist/task-cli/cli.js.map +1 -1
- package/dist/workflows/continuation-admission.d.ts +4 -0
- package/dist/workflows/run/compose.js +4 -5
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/continuation-session.d.ts +0 -7
- package/dist/workflows/run/continuation-session.js +39 -122
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/input-delivery.d.ts +8 -1
- package/dist/workflows/run/input-delivery.js +64 -38
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/dist/workflows/run/launch-context.d.ts +1 -1
- package/dist/workflows/run/launch-context.js +5 -6
- package/dist/workflows/run/launch-context.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +21 -19
- package/dist/workflows/run/launch-read-resolver.js +16 -25
- package/dist/workflows/run/launch-read-resolver.js.map +1 -1
- package/dist/workflows/run/native-skill-input-queue.d.ts +59 -0
- package/dist/workflows/run/native-skill-input-queue.js +157 -0
- package/dist/workflows/run/native-skill-input-queue.js.map +1 -0
- package/dist/workflows/run/prompts.js +1 -1
- package/dist/workflows/run/prompts.js.map +1 -1
- package/dist/workflows/run/queued-input.js +9 -0
- package/dist/workflows/run/queued-input.js.map +1 -1
- package/dist/workflows/run/run-memory.d.ts +5 -0
- package/dist/workflows/run/run-memory.js +1 -1
- package/dist/workflows/run/run-memory.js.map +1 -1
- package/dist/workflows/run/run-skills.d.ts +23 -105
- package/dist/workflows/run/run-skills.js +83 -209
- package/dist/workflows/run/run-skills.js.map +1 -1
- package/dist/workflows/run/step-session.d.ts +2 -2
- package/dist/workflows/run/step-session.js +39 -40
- package/dist/workflows/run/step-session.js.map +1 -1
- package/dist/workflows/run/turn-bookkeeping.d.ts +2 -2
- package/dist/workflows/run/turn-bookkeeping.js +2 -2
- package/dist/workflows/run/turn-bookkeeping.js.map +1 -1
- package/dist/workflows/run/turn-settler.d.ts +2 -1
- package/dist/workflows/run/turn-settler.js +5 -1
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/types.d.ts +5 -5
- package/dist/workflows/run/wait-engine.d.ts +3 -0
- package/dist/workflows/run.d.ts +28 -0
- package/dist/workflows/run.js +12 -2
- package/dist/workflows/run.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-omp-rpc.mjs +21 -5
- package/scripts/mock-pi-rpc.mjs +4 -4
- package/web/dist/assets/{activity-motion-DAjCyDzm.js → activity-motion-xKVlnR0q.js} +1 -1
- package/web/dist/assets/{activity-route-6spKzFa-.js → activity-route-KsJ3FdWd.js} +1 -1
- package/web/dist/assets/{agent-accounts-BiXu1qX6.js → agent-accounts-CEmxoU4C.js} +1 -1
- package/web/dist/assets/attention-D0gSE5Rr.js +1 -0
- package/web/dist/assets/{commit-diff-panel-uoyOydBG.js → commit-diff-panel-DGjLiAVs.js} +1 -1
- package/web/dist/assets/{diff-BefwAEc1.js → diff-CsyHTaL2.js} +2 -2
- package/web/dist/assets/{diff-view-CXtKy-02.js → diff-view-lTo0JT2v.js} +1 -1
- package/web/dist/assets/{file-preview-TYTU1SBo.js → file-preview-Dq54dro7.js} +1 -1
- package/web/dist/assets/{git-toolbar-BwD-ShUL.js → git-toolbar-ChgRC3vR.js} +1 -1
- package/web/dist/assets/{github-DKC9GSOG.js → github-BnwdgVET.js} +1 -1
- package/web/dist/assets/{global-activity-route-BnUvjKgI.js → global-activity-route-lHJSxyik.js} +1 -1
- package/web/dist/assets/{index-C6UoXbYK.js → index-ZXr4fght.js} +4 -4
- package/web/dist/assets/{preview-pane-connected-ZAr18goj.js → preview-pane-connected-Cpc-OIBO.js} +1 -1
- package/web/dist/assets/{project-router-znDYCNAi.js → project-router-RpJixuMl.js} +1 -1
- package/web/dist/assets/project-scope-context-Cs9K5L24.js +4 -0
- package/web/dist/assets/{prompt-template-menu-Z7WYlxLR.js → prompt-template-menu-35CQbC0C.js} +1 -1
- package/web/dist/assets/{queries-LH_fzdoQ.js → queries-CU1rdCnf.js} +1 -1
- package/web/dist/assets/{reference-chip-DB4j8hzM.js → reference-chip-CZ88WX7M.js} +1 -1
- package/web/dist/assets/{repo-git-Y7MKcjLs.js → repo-git-BQRXiSQc.js} +1 -1
- package/web/dist/assets/{report-reader-CIcjK2_U.js → report-reader-B90i10fL.js} +1 -1
- package/web/dist/assets/{reports-SBr0VYKU.js → reports-DHccd243.js} +1 -1
- package/web/dist/assets/{run-header-BSohU_tW.js → run-header-B1Mhp48O.js} +1 -1
- package/web/dist/assets/{skills-B_NKCTPq.js → skills-9eRk7nNW.js} +1 -1
- package/web/dist/assets/{tab-link-C5SNXkMO.js → tab-link-BT6RV1JN.js} +1 -1
- package/web/dist/assets/{task-changes-Ozgv3HxN.js → task-changes-D0x55i9H.js} +1 -1
- package/web/dist/assets/{task-commits-BxAERDIz.js → task-commits-yRo6PLOs.js} +1 -1
- package/web/dist/assets/{task-files-V84lmxj2.js → task-files-DxDEn0jU.js} +1 -1
- package/web/dist/assets/{task-github-item-CByJ7mYg.js → task-github-item-aysyirC9.js} +1 -1
- package/web/dist/assets/{task-thread-C6v4ddX-.js → task-thread-CFw63WOG.js} +1 -1
- package/web/dist/assets/{thread-state-ni3Us7DE.js → thread-state-CbZJSZ8d.js} +1 -1
- package/web/dist/assets/{use-desktop-CsZKGRsr.js → use-desktop-DXVYKnpA.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-W5nhKd6-.js → use-hand-to-agent-state-CPCd0vCN.js} +1 -1
- package/web/dist/assets/{useInfiniteQuery-DZDwRft0.js → useInfiniteQuery-hcJtqg7r.js} +1 -1
- package/web/dist/assets/useQuery-DeFHpzJJ.js +1 -0
- package/web/dist/assets/{workflows-Cb0BDqy5.js → workflows-DMUcQeqG.js} +1 -1
- package/web/dist/assets/{ws-ClC12aJd.js → ws-DUd04kII.js} +1 -1
- package/web/dist/index.html +12 -12
- package/web/dist/assets/attention-D4F-L5Pd.js +0 -1
- package/web/dist/assets/project-scope-context-D8RGERU-.js +0 -4
- package/web/dist/assets/useQuery-BTWv1-sJ.js +0 -1
|
@@ -1,114 +1,32 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import {
|
|
1
|
+
import type { RunnerSkill } from '../../contract/index.js';
|
|
2
|
+
import type { ContentBlock, RunnerId, SkillTrigger } from '../../core/agent-runner.ts';
|
|
3
|
+
import { type SkillCatalogQuery } from '../../core/runner-skill-catalog.ts';
|
|
4
4
|
import type { ActiveRun } from '../active-run.ts';
|
|
5
|
-
import type { RunModuleContext } from './types.ts';
|
|
6
|
-
/**
|
|
7
|
-
export declare class SkillTeamView {
|
|
8
|
-
#private;
|
|
9
|
-
constructor(skill: Skill);
|
|
10
|
-
get repo(): string;
|
|
11
|
-
get ref(): string;
|
|
12
|
-
get path(): string;
|
|
13
|
-
get dir(): boolean;
|
|
14
|
-
get commit(): string | undefined;
|
|
15
|
-
}
|
|
16
|
-
/** Each getter reads the shared entry, without granting writes to that entry. */
|
|
17
|
-
export declare class SkillView {
|
|
18
|
-
#private;
|
|
19
|
-
constructor(skill: Skill);
|
|
20
|
-
get name(): string;
|
|
21
|
-
get description(): string | undefined;
|
|
22
|
-
get interactive(): true | undefined;
|
|
23
|
-
get body(): string;
|
|
24
|
-
get path(): string;
|
|
25
|
-
get source(): Skill['source'];
|
|
26
|
-
get team(): SkillTeamView | undefined;
|
|
27
|
-
}
|
|
5
|
+
import type { RunModuleContext, StepProfile } from './types.ts';
|
|
6
|
+
/** The exact list this runner process saw when it opened. Only RunSkills writes it. */
|
|
28
7
|
export declare class SkillsGroup {
|
|
29
8
|
#private;
|
|
30
9
|
constructor();
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
get
|
|
35
|
-
/** The install a live `/name` started after its message went out (hearsay-tools/cezarion#1408); tests await it. */
|
|
36
|
-
get liveSkillProvisioning(): Promise<void> | undefined;
|
|
10
|
+
get catalog(): readonly Readonly<RunnerSkill>[];
|
|
11
|
+
get query(): Readonly<SkillCatalogQuery> | undefined;
|
|
12
|
+
get account(): string;
|
|
13
|
+
get unavailableReason(): string | undefined;
|
|
37
14
|
}
|
|
38
15
|
export declare function createSkillsGroup(): SkillsGroup;
|
|
39
|
-
export type SkillReadPhase = 'step-open' | 'continue' | 'live-input';
|
|
40
|
-
interface RunSkillsHost {
|
|
41
|
-
builtinSkills(): Skill[];
|
|
42
|
-
workerExecutionStopped(runId: string): boolean;
|
|
43
|
-
isCurrentState(runId: string, state: ActiveRun): boolean;
|
|
44
|
-
flushAgentInputs(runId: string): void;
|
|
45
|
-
}
|
|
46
16
|
export declare class RunSkills {
|
|
47
17
|
private readonly context;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
* `state.skills.catalog`. The registry is discovered when the run starts or continues, so a team skill
|
|
63
|
-
* switched off since then is still in `state.skills.catalog`; every prompt a step, a Continue or a live
|
|
64
|
-
* `/name` builds reads this instead. A caller that already read the off-list passes it as
|
|
65
|
-
* `disabled`, so that both see one list. A team source disabled since then
|
|
66
|
-
* (hearsay-tools/cezarion#279) drops its skills here too.
|
|
67
|
-
*/
|
|
68
|
-
enabledSkills(state: ActiveRun, disabled?: ReturnType<typeof atStepOpen.disabledSkills>, phase?: SkillReadPhase): Skill[];
|
|
69
|
-
/**
|
|
70
|
-
* A live `/name` message already carries the skill's body, and `sendMessage` answers
|
|
71
|
-
* synchronously, so its files and companions install after the message went out (hearsay-tools/cezarion#1408).
|
|
72
|
-
* When anything new landed, or a team skill's files went to a cache copy the message could not
|
|
73
|
-
* name, one durable agent input says what and where. Whether a runner's native lookup sees a skill
|
|
74
|
-
* added mid-session is not relied on: that input is the delivery for every runner. Nothing
|
|
75
|
-
* new: no input. A run that stopped, or moved to another session, gets none.
|
|
76
|
-
*/
|
|
77
|
-
provisionLiveSlashSkill(runId: string, state: ActiveRun, blocks: ContentBlock[]): void;
|
|
78
|
-
/**
|
|
79
|
-
* Provision the step skill and leading registry slash skill for start, Continue, recovery and
|
|
80
|
-
* live input, and at a step's start every registry skill its prompt names as a typed `/name`
|
|
81
|
-
* (hearsay-tools/cezarion#1672). Native slashes that are not registry skills install nothing.
|
|
82
|
-
*
|
|
83
|
-
* The run's OWN task worktree gets every root and the companions their bodies name
|
|
84
|
-
* (`provisionSkills`): links to local and global skills, generated `SKILL.md` files, and marked
|
|
85
|
-
* team copies, in `.claude/skills` and `.agents/skills`, recorded in the
|
|
86
|
-
* worktree's git dir and kept out of git by a worktree-local `.gitignore`. The project's
|
|
87
|
-
* off-list (`disabledTeamSkills`) is read fresh on every pass and applied to the saved
|
|
88
|
-
* registry, the roots and the team list alike: a team skill switched off for the project is
|
|
89
|
-
* never installed, not even for a skill that runs it, and a switch-off made after the run
|
|
90
|
-
* started holds for the next step, a live `/name` and Continue. Copies a pass installed before
|
|
91
|
-
* the switch stay in the worktree until the task ends: Squawk removes nothing mid-task.
|
|
92
|
-
*
|
|
93
|
-
* Any other cwd — worktree off, a non-git project, a Continue whose worktree is gone — is the
|
|
94
|
-
* main checkout or unknown, where those directories are LOCAL skills to `discoverSkills` that
|
|
95
|
-
* would shadow the team source for every later run. A selected or leading-slash directory team
|
|
96
|
-
* root gets a per-commit cache copy there instead, and nothing else is installed: a skill only
|
|
97
|
-
* the prompt names gets nothing there, like a companion. So does a worktree where no copy of
|
|
98
|
-
* it landed, such as one whose agent dirs both link out of it; one that took only some
|
|
99
|
-
* copies names the first that landed, since the runner's own dir may be the one skipped.
|
|
100
|
-
* Returns the step-start notes and, per team root, the directory its prompt must name.
|
|
101
|
-
*/
|
|
102
|
-
provisionRunSkills(runId: string, state: ActiveRun, wanted: {
|
|
103
|
-
stepSkill?: string | undefined;
|
|
104
|
-
slash?: string | undefined;
|
|
105
|
-
prompt?: string;
|
|
106
|
-
}, phase?: SkillReadPhase): Promise<{
|
|
107
|
-
notes: string[];
|
|
108
|
-
filesDir: Map<string, string>;
|
|
109
|
-
installed: string[];
|
|
110
|
-
}>;
|
|
111
|
-
/** `cwd` is the run's recorded task worktree, and not the project root. Unresolvable means no. */
|
|
112
|
-
private isOwnTaskWorktree;
|
|
18
|
+
constructor(context: RunModuleContext);
|
|
19
|
+
private catalog;
|
|
20
|
+
loadRunSkills(state: ActiveRun, runner: RunnerId, profile: StepProfile): Promise<void>;
|
|
21
|
+
enabledSkills(state: ActiveRun): readonly RunnerSkill[];
|
|
22
|
+
selectedSkill(state: ActiveRun, id: string | undefined, path: string | undefined, args: string): SkillTrigger | undefined;
|
|
23
|
+
/** The list is re-read only for a live reader; other sessions retain their opening list. */
|
|
24
|
+
private inputSkills;
|
|
25
|
+
/** Resolve at transport release, including for messages held during a turn. */
|
|
26
|
+
nativeInput(runId: string, state: ActiveRun, blocks: ContentBlock[]): Promise<ContentBlock[]>;
|
|
27
|
+
/** Opening commands use the list this process just read, without a second probe. */
|
|
28
|
+
openingInput(runId: string, state: ActiveRun, blocks: ContentBlock[]): Promise<ContentBlock[]>;
|
|
29
|
+
private resolveInput;
|
|
30
|
+
private noteNewSkill;
|
|
31
|
+
private note;
|
|
113
32
|
}
|
|
114
|
-
export {};
|
|
@@ -1,232 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { materializeSkillToCache, TEAM_SKILL_AGENT_DIRS } from '../../skills-remote.js';
|
|
6
|
-
import { MAX_SKILL_CLOSURE, namesSkillCommand, provisionSkills } from '../../skills-provision.js';
|
|
7
|
-
import { atStepOpen, atTaskHead, atContinue, atLiveInput } from './launch-read-resolver.js';
|
|
1
|
+
import { RunnerSkillCatalog } from '../../core/runner-skill-catalog.js';
|
|
2
|
+
import { RUNNER_FACTS } from '../../core/runner-facts.js';
|
|
3
|
+
import { resolveRunnerSkill } from '../../core/runner-skill-reference.js';
|
|
4
|
+
import { atStepOpen } from './launch-read-resolver.js';
|
|
8
5
|
import { leadingSlashSkillName } from './prompts.js';
|
|
9
|
-
/** A live team record view. Shared catalog records remain owned by discovery. */
|
|
10
|
-
export class SkillTeamView {
|
|
11
|
-
#skill;
|
|
12
|
-
constructor(skill) { this.#skill = skill; Object.freeze(this); }
|
|
13
|
-
get repo() { return this.#skill.team.repo; }
|
|
14
|
-
get ref() { return this.#skill.team.ref; }
|
|
15
|
-
get path() { return this.#skill.team.path; }
|
|
16
|
-
get dir() { return this.#skill.team.dir; }
|
|
17
|
-
get commit() { return this.#skill.team.commit; }
|
|
18
|
-
}
|
|
19
|
-
/** Each getter reads the shared entry, without granting writes to that entry. */
|
|
20
|
-
export class SkillView {
|
|
21
|
-
#skill;
|
|
22
|
-
#team;
|
|
23
|
-
constructor(skill) {
|
|
24
|
-
this.#skill = skill;
|
|
25
|
-
this.#team = new SkillTeamView(skill);
|
|
26
|
-
Object.freeze(this);
|
|
27
|
-
}
|
|
28
|
-
get name() { return this.#skill.name; }
|
|
29
|
-
get description() { return this.#skill.description; }
|
|
30
|
-
get interactive() { return this.#skill.interactive; }
|
|
31
|
-
get body() { return this.#skill.body; }
|
|
32
|
-
get path() { return this.#skill.path; }
|
|
33
|
-
get source() { return this.#skill.source; }
|
|
34
|
-
get team() { return this.#skill.team ? this.#team : undefined; }
|
|
35
|
-
}
|
|
36
6
|
let skillsWrites;
|
|
7
|
+
/** The exact list this runner process saw when it opened. Only RunSkills writes it. */
|
|
37
8
|
export class SkillsGroup {
|
|
38
|
-
#catalog;
|
|
39
|
-
#
|
|
9
|
+
#catalog = Object.freeze([]);
|
|
10
|
+
#query;
|
|
11
|
+
#account = 'default';
|
|
12
|
+
#unavailableReason;
|
|
40
13
|
constructor() { Object.freeze(this); }
|
|
41
|
-
/** Registry snapshot used to expand `/skill` follow-ups before a backend can
|
|
42
|
-
* mistake them for its own slash commands (hearsay-tools/cezarion#676). Only `RunSkills.loadRunSkills` writes it,
|
|
43
|
-
* and only `RunSkills.enabledSkills` reads it. */
|
|
44
14
|
get catalog() { return this.#catalog; }
|
|
45
|
-
|
|
46
|
-
get
|
|
15
|
+
get query() { return this.#query; }
|
|
16
|
+
get account() { return this.#account; }
|
|
17
|
+
get unavailableReason() { return this.#unavailableReason; }
|
|
47
18
|
static {
|
|
48
|
-
skillsWrites = {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
19
|
+
skillsWrites = { catalog(group, catalog, query, account, unavailableReason) {
|
|
20
|
+
group.#catalog = Object.freeze(catalog.map(skill => Object.freeze({ ...skill })));
|
|
21
|
+
group.#query = Object.freeze({ ...query });
|
|
22
|
+
group.#account = account;
|
|
23
|
+
group.#unavailableReason = unavailableReason;
|
|
24
|
+
} };
|
|
52
25
|
}
|
|
53
26
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Object.freeze(type);
|
|
57
|
-
}
|
|
27
|
+
Object.freeze(SkillsGroup.prototype);
|
|
28
|
+
Object.freeze(SkillsGroup);
|
|
58
29
|
export function createSkillsGroup() { return new SkillsGroup(); }
|
|
59
|
-
const skillReads = (phase) => phase === 'continue' ? atContinue : phase === 'live-input' ? atLiveInput : atStepOpen;
|
|
60
30
|
export class RunSkills {
|
|
61
31
|
context;
|
|
62
|
-
|
|
63
|
-
constructor(context, host) {
|
|
32
|
+
constructor(context) {
|
|
64
33
|
this.context = context;
|
|
65
|
-
this.host = host;
|
|
66
34
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return (phase === 'continue' ? atContinue : atTaskHead).registry(this.context.repoRoot, this.host.builtinSkills(), this.context.home);
|
|
35
|
+
catalog() {
|
|
36
|
+
return this.context.skillCatalog ??= new RunnerSkillCatalog({ adapters: {} });
|
|
70
37
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
38
|
+
async loadRunSkills(state, runner, profile) {
|
|
39
|
+
const query = atStepOpen.skillQuery(state, runner, profile);
|
|
40
|
+
const list = await this.catalog().get(query);
|
|
41
|
+
skillsWrites.catalog(state.skills, list.skills, query, atStepOpen.skillAccount(profile), list.source === 'unavailable' ? list.reason ?? `${runner} skill discovery is temporarily unavailable` : undefined);
|
|
42
|
+
}
|
|
43
|
+
enabledSkills(state) { return atStepOpen.sessionSkills(state); }
|
|
44
|
+
selectedSkill(state, id, path, args) {
|
|
45
|
+
if (!id)
|
|
46
|
+
return undefined;
|
|
47
|
+
const query = state.skills.query;
|
|
48
|
+
if (!query)
|
|
49
|
+
throw new Error('Runner skill list has not been read');
|
|
50
|
+
if (state.skills.unavailableReason)
|
|
51
|
+
throw new Error(`${query.runner} account "${state.skills.account}" skill "${id}": runner skill list is unavailable: ${state.skills.unavailableReason}. Selected path: ${path ?? '(name only)'}. Listed paths: (unavailable)`);
|
|
52
|
+
const result = resolveRunnerSkill(this.enabledSkills(state), { id, path }, { ...query, account: state.skills.account });
|
|
53
|
+
if (result.error !== undefined)
|
|
54
|
+
throw new Error(result.error);
|
|
55
|
+
return { id: result.skill.id, ...(result.skill.path ? { path: result.skill.path } : {}), args };
|
|
89
56
|
}
|
|
90
|
-
/**
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const reads = skillReads(phase);
|
|
100
|
-
const off = disabled === undefined ? reads.disabledSkills(reads.projectUiStateSync(this.context.repoRoot)) : disabled;
|
|
101
|
-
return reads.enabledSkills(state, this.context.repoRoot, off);
|
|
57
|
+
/** The list is re-read only for a live reader; other sessions retain their opening list. */
|
|
58
|
+
async inputSkills(state) {
|
|
59
|
+
const query = state.skills.query;
|
|
60
|
+
if (!query)
|
|
61
|
+
return this.enabledSkills(state);
|
|
62
|
+
if (RUNNER_FACTS[query.runner].skillsSeenBySession !== 'live')
|
|
63
|
+
return this.enabledSkills(state);
|
|
64
|
+
this.catalog().invalidate(query);
|
|
65
|
+
return (await this.catalog().get(query)).skills;
|
|
102
66
|
}
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
* When anything new landed, or a team skill's files went to a cache copy the message could not
|
|
107
|
-
* name, one durable agent input says what and where. Whether a runner's native lookup sees a skill
|
|
108
|
-
* added mid-session is not relied on: that input is the delivery for every runner. Nothing
|
|
109
|
-
* new: no input. A run that stopped, or moved to another session, gets none.
|
|
110
|
-
*/
|
|
111
|
-
provisionLiveSlashSkill(runId, state, blocks) {
|
|
112
|
-
const first = blocks.find((block) => block.type === 'text');
|
|
113
|
-
const name = first?.type === 'text' ? leadingSlashSkillName(first.text) : undefined;
|
|
114
|
-
if (!name)
|
|
115
|
-
return;
|
|
116
|
-
const session = state.liveSession.session;
|
|
117
|
-
skillsWrites.provisioning(state.skills, (async () => {
|
|
118
|
-
const { filesDir, installed } = await this.provisionRunSkills(runId, state, { slash: name }, 'live-input');
|
|
119
|
-
const dir = filesDir.get(name);
|
|
120
|
-
if (installed.length === 0 && !dir)
|
|
121
|
-
return;
|
|
122
|
-
if (state.liveSession.cancelled || !this.host.isCurrentState(runId, state) || state.liveSession.session !== session)
|
|
123
|
-
return;
|
|
124
|
-
const text = [
|
|
125
|
-
...(installed.length ? [`Skills installed for /${name}: ${installed.join(', ')}.`] : []),
|
|
126
|
-
...(dir ? [`Skill files for /${name} are at ${dir}.`] : []),
|
|
127
|
-
].join(' ');
|
|
128
|
-
// The durable queue delivers it at the runner's next opportunity: several runners refuse
|
|
129
|
-
// agent input while the human message is in flight, and a restart replays it.
|
|
130
|
-
const input = { id: randomUUID(), parentRunId: runId, source: 'lifecycle', text, createdAt: new Date().toISOString() };
|
|
131
|
-
this.context.store.commitAgentInputs(runId, enqueueAgentInput(this.context.store.getRun(runId), input));
|
|
132
|
-
this.context.store.appendEvent(runId, { type: 'agent-input', input });
|
|
133
|
-
this.host.flushAgentInputs(runId);
|
|
134
|
-
})().catch(() => undefined));
|
|
67
|
+
/** Resolve at transport release, including for messages held during a turn. */
|
|
68
|
+
async nativeInput(runId, state, blocks) {
|
|
69
|
+
return this.resolveInput(runId, state, blocks, true);
|
|
135
70
|
}
|
|
136
|
-
/**
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
* Any other cwd — worktree off, a non-git project, a Continue whose worktree is gone — is the
|
|
152
|
-
* main checkout or unknown, where those directories are LOCAL skills to `discoverSkills` that
|
|
153
|
-
* would shadow the team source for every later run. A selected or leading-slash directory team
|
|
154
|
-
* root gets a per-commit cache copy there instead, and nothing else is installed: a skill only
|
|
155
|
-
* the prompt names gets nothing there, like a companion. So does a worktree where no copy of
|
|
156
|
-
* it landed, such as one whose agent dirs both link out of it; one that took only some
|
|
157
|
-
* copies names the first that landed, since the runner's own dir may be the one skipped.
|
|
158
|
-
* Returns the step-start notes and, per team root, the directory its prompt must name.
|
|
159
|
-
*/
|
|
160
|
-
async provisionRunSkills(runId, state, wanted, phase = 'step-open') {
|
|
161
|
-
const notes = [];
|
|
162
|
-
const filesDir = new Map();
|
|
163
|
-
const wantedNames = [...new Set([wanted.stepSkill, wanted.slash].filter((name) => Boolean(name)))];
|
|
164
|
-
// Stop can land during an earlier await (Continue's team-cache wait): a stopped run writes
|
|
165
|
-
// nothing, here or between the pass's own steps.
|
|
166
|
-
const stopped = () => Boolean(state.liveSession.cancelled) || this.host.workerExecutionStopped(runId);
|
|
167
|
-
// The off-list as it is now, applied to every input: the saved registry predates a switch
|
|
168
|
-
// made during the run, so it is filtered as well as the fresh team list.
|
|
169
|
-
const reads = skillReads(phase);
|
|
170
|
-
const disabled = reads.disabledSkills(await reads.projectUiState(this.context.repoRoot));
|
|
171
|
-
const registry = this.enabledSkills(state, disabled, phase);
|
|
172
|
-
// A skill the prompt names as `/name` is a root after the selected ones, so a capped closure
|
|
173
|
-
// never leaves it out (hearsay-tools/cezarion#1672). It installs only in the task worktree, like a companion.
|
|
174
|
-
const named = registry.filter((skill) => namesSkillCommand(wanted.prompt ?? '', skill.name)).map((skill) => skill.name);
|
|
175
|
-
const roots = [...new Set([...wantedNames, ...named])]
|
|
176
|
-
.flatMap((name) => registry.filter((skill) => skill.name === name).slice(0, 1));
|
|
177
|
-
if (roots.length === 0 || stopped())
|
|
178
|
-
return { notes, filesDir, installed: [] };
|
|
179
|
-
const teamRoots = roots.filter((skill) => wantedNames.includes(skill.name) && skill.source === 'team' && skill.team?.dir);
|
|
180
|
-
const cacheCopy = async (skill) => {
|
|
181
|
-
const dir = await materializeSkillToCache(skill, this.context.home).catch(() => null);
|
|
182
|
-
if (!dir)
|
|
183
|
-
return;
|
|
184
|
-
notes.push(`team skill "${skill.name}" materialized to ${dir}`);
|
|
185
|
-
filesDir.set(skill.name, dir);
|
|
186
|
-
};
|
|
187
|
-
if (!this.isOwnTaskWorktree(runId, state.liveSession.cwd)) {
|
|
188
|
-
for (const skill of teamRoots)
|
|
189
|
-
await cacheCopy(skill);
|
|
190
|
-
return { notes, filesDir, installed: [] };
|
|
191
|
-
}
|
|
192
|
-
const team = reads.teamSkills(this.context.repoRoot, this.context.home);
|
|
193
|
-
const catalog = [...registry, ...reads.filterSkills(team, disabled)];
|
|
194
|
-
const result = await provisionSkills(state.liveSession.cwd, roots, catalog, { cancelled: stopped, home: this.context.home });
|
|
195
|
-
if (stopped())
|
|
196
|
-
return { notes, filesDir, installed: [] };
|
|
197
|
-
for (const skill of teamRoots) {
|
|
198
|
-
const written = result.teamCopies[skill.name] ?? [];
|
|
199
|
-
if (written.length === TEAM_SKILL_AGENT_DIRS.length) {
|
|
200
|
-
notes.push(`team skill "${skill.name}" materialized to .claude/skills/${skill.name}/ and .agents/skills/${skill.name}/`);
|
|
201
|
-
}
|
|
202
|
-
else if (written.length > 0) {
|
|
203
|
-
notes.push(`team skill "${skill.name}" materialized to ${written.map((dir) => `${relative(state.liveSession.cwd, dir)}/`).join(' and ')}`);
|
|
204
|
-
filesDir.set(skill.name, written[0]);
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
await cacheCopy(skill);
|
|
208
|
-
}
|
|
71
|
+
/** Opening commands use the list this process just read, without a second probe. */
|
|
72
|
+
openingInput(runId, state, blocks) {
|
|
73
|
+
return this.resolveInput(runId, state, blocks, false);
|
|
74
|
+
}
|
|
75
|
+
async resolveInput(runId, state, blocks, live) {
|
|
76
|
+
const index = blocks.findIndex(block => block.type === 'text');
|
|
77
|
+
const first = blocks[index];
|
|
78
|
+
const id = first?.type === 'text' ? leadingSlashSkillName(first.text) : undefined;
|
|
79
|
+
if (!id || first?.type !== 'text' || !state.skills.query)
|
|
80
|
+
return blocks;
|
|
81
|
+
const skills = live ? await this.inputSkills(state) : this.enabledSkills(state);
|
|
82
|
+
if (!skills.some(skill => skill.id === id)) {
|
|
83
|
+
if (live)
|
|
84
|
+
await this.noteNewSkill(runId, state, id);
|
|
85
|
+
return blocks;
|
|
209
86
|
}
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
212
|
-
|
|
213
|
-
|
|
87
|
+
const result = resolveRunnerSkill(skills, { id }, { ...state.skills.query, account: state.skills.account });
|
|
88
|
+
if (result.error !== undefined) {
|
|
89
|
+
this.note(runId, result.error);
|
|
90
|
+
return blocks;
|
|
214
91
|
}
|
|
215
|
-
|
|
92
|
+
const args = first.text.replace(/^\/[\w:.-]+(?:[ \t]+)?/, '');
|
|
93
|
+
return [{ type: 'skill', id: result.skill.id, ...(result.skill.path ? { path: result.skill.path } : {}), args }, ...blocks.filter((_, at) => at !== index)];
|
|
216
94
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
catch {
|
|
226
|
-
return undefined;
|
|
227
|
-
} };
|
|
228
|
-
const dir = real(cwd);
|
|
229
|
-
return dir !== undefined && dir === real(worktreePath) && dir !== real(this.context.repoRoot);
|
|
95
|
+
async noteNewSkill(runId, state, id) {
|
|
96
|
+
const query = state.skills.query;
|
|
97
|
+
if (!query || RUNNER_FACTS[query.runner].skillsSeenBySession === 'live')
|
|
98
|
+
return;
|
|
99
|
+
this.catalog().invalidate(query);
|
|
100
|
+
const fresh = await this.catalog().get(query);
|
|
101
|
+
if (fresh.skills.some(skill => skill.id === id))
|
|
102
|
+
this.note(runId, `Skill "${id}" is available after the next Continue.`);
|
|
230
103
|
}
|
|
104
|
+
note(runId, message) { this.context.store.appendEvent(runId, { type: 'note', message }); }
|
|
231
105
|
}
|
|
232
106
|
//# sourceMappingURL=run-skills.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-skills.js","sourceRoot":"","sources":["../../../src/workflows/run/run-skills.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-skills.js","sourceRoot":"","sources":["../../../src/workflows/run/run-skills.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAA0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AO,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QACjC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAC9C,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;YAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,EAAE,yCAAyC,CAAC,CAAC;IAC3H,CAAC;IAEO,IAAI,CAAC,KAAa,EAAE,OAAe,IAAU,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;CACzH"}
|
|
@@ -49,8 +49,8 @@ export declare class StepSession {
|
|
|
49
49
|
attachments?: PersistedAttachment[],
|
|
50
50
|
/** Worktree setup's paragraph for the agent (#917) — appended to the opening message. */
|
|
51
51
|
openingNote?: string): Promise<string | null>;
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
private openingSkill;
|
|
53
|
+
/** A fresh step's arguments, before the open-waits footer and session context. */
|
|
54
54
|
private stepOpening;
|
|
55
55
|
/** Start a fresh step's session. A throw revokes the tools this launch was given and returns its
|
|
56
56
|
* message as the step's error. */
|