@vincemakes/kiso-subagent-ext 0.48.0 → 0.50.0

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/index.d.ts CHANGED
@@ -19,6 +19,15 @@ export interface SubagentTasks {
19
19
  readonly agent: { readonly role: string; readonly session: string };
20
20
  readonly exec: (dir: string) => { readonly file: string; readonly args: readonly string[] };
21
21
  }): Promise<{ readonly id: string }>;
22
+ /** 0.49.0 A: the join waits for its children and claims what ended
23
+ * (`agentJoin`); the person's key and a steer reach it as a detach. */
24
+ awaitSettled(
25
+ id: string,
26
+ until: "end" | "ready",
27
+ ms: number,
28
+ opts?: { readonly executionId?: string; readonly signal?: AbortSignal; readonly agentJoin?: boolean },
29
+ ): Promise<{ readonly info: { readonly outputPath: string; readonly state: { readonly kind: string; readonly exitCode?: number | null } }; readonly settled: boolean; readonly claimed: boolean }>;
30
+ registerDetachable?(executionId: string, detachable: { readonly startedAt: number; detach(by: "person" | "steer"): void }): () => void;
22
31
  }
23
32
 
24
33
  export interface SubagentHost {
@@ -26,9 +35,49 @@ export interface SubagentHost {
26
35
  readonly tasks?: (sessionId: string | undefined) => SubagentTasks | undefined;
27
36
  /** Live background children per session (default 20). */
28
37
  readonly backgroundMax?: number;
29
- /** A background child's model requests before its wrap-up (default 32). */
38
+ /** A reader child's model requests before its wrap-up (default 32) —
39
+ * in the background, and (0.49.0) in the foreground too. */
30
40
  readonly backgroundMaxTurns?: number;
41
+ /** 0.49.0: the conversation's live binding — the configured profile its
42
+ * session is bound to (null when none can be named) and the effort it
43
+ * runs at. A child whose task names no model, with no subagents.model
44
+ * configured, runs on this profile at this effort. */
45
+ readonly currentBinding?: (sessionId: string | undefined) => SubagentBinding | null;
46
+ /** 0.49.0 A: how long a foreground reader delegation waits for its
47
+ * children before they continue as a background group (default 60000,
48
+ * the shell's foreground wait). Nothing is killed when it passes. */
49
+ readonly joinMs?: number;
50
+ /** 0.49.0 B: live writers (implementer, verifier) per session (default 4). */
51
+ readonly writerMax?: number;
52
+ /** 0.49.0 B: a writer's model requests before its wrap-up (default 128;
53
+ * a writer also keeps its wall clock). */
54
+ readonly writerMaxTurns?: number;
55
+ /** 0.49.0 B: the most a writer's working-tree snapshot may copy (default
56
+ * 50 MiB); over it the delegation is refused, never run from HEAD. */
57
+ readonly snapshotMaxBytes?: number;
58
+ }
59
+
60
+ /** 0.49.0 B: collect a writer whose process ended — its patch, the
61
+ * versions it changed, the child's acceptance, a verifier behind it — and
62
+ * record `collected`, last. The host's TaskManager calls it (its `collect`
63
+ * option) with the manager that starts a verifier behind it. */
64
+ export function collectWriter(
65
+ info: { readonly id: string; readonly outputPath: string; readonly executionId?: string; readonly stoppedBy?: string; readonly agent?: { readonly role: string; readonly session: string } },
66
+ manager: SubagentTasks,
67
+ ): Promise<void>;
68
+
69
+ export interface SubagentBinding {
70
+ readonly profile: string | null;
71
+ readonly model?: string;
72
+ readonly reasoning?: { readonly thinking: string; readonly effort: string };
31
73
  }
32
74
 
33
75
  declare const createSubagentExtension: (host?: SubagentHost) => KisoExtension | Promise<KisoExtension>;
34
76
  export default createSubagentExtension;
77
+
78
+ /** 0.49.0 B6.1: a writer's private workspace — the person's working tree
79
+ * at dispatch (uncommitted edits and untracked files, never ignored ones)
80
+ * in a task-private repository that borrows the person's objects
81
+ * read-only; nothing is written into the person's repository. Throws a
82
+ * refusal over `maxBytes`, or when the tree would not hold still. */
83
+ export function snapshotWorkspace(parentCwd: string, ws: string, maxBytes?: number): { readonly root: string; readonly head: string; readonly base: string; readonly cwd: string; readonly sub: string };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vincemakes/kiso-subagent-ext",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "description": "kiso official subagent extension \u2014 child kiso processes with role policies, kernel untouched",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,7 +23,7 @@
23
23
  "test": "vitest run"
24
24
  },
25
25
  "devDependencies": {
26
- "@vincemakes/kiso-core": "0.48.0",
26
+ "@vincemakes/kiso-core": "0.50.0",
27
27
  "@types/node": "^26.1.2",
28
28
  "typescript": "^5.7.2",
29
29
  "vitest": "^3.0.0"