@staix/agent-hub 0.35.0 → 0.37.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.
Files changed (165) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +25 -4
  3. package/THIRD_PARTY_NOTICES.md +0 -18
  4. package/docs/agent-notes/README.md +71 -1
  5. package/docs/agent-notes/adapters.md +5 -2
  6. package/docs/agent-notes/bus.md +1 -0
  7. package/docs/agent-notes/daemon.md +7 -6
  8. package/docs/agent-notes/local-worker.md +1 -0
  9. package/docs/agent-notes/models.md +5 -3
  10. package/docs/agent-notes/tasks.md +9 -2
  11. package/docs/agent-notes/tests.md +1 -1
  12. package/docs/contracts/companion-cli-v1.json +70 -0
  13. package/docs/design/adapters.md +115 -2
  14. package/docs/design/agent-hub-architecture.md +10 -2
  15. package/docs/design/bus.md +8 -0
  16. package/docs/design/execution-reference.md +171 -11
  17. package/docs/design/guidance-experiments.md +438 -0
  18. package/docs/design/guidance-probes.md +802 -0
  19. package/docs/design/model-routes.md +1053 -0
  20. package/docs/design/supervision.md +121 -0
  21. package/docs/design/task-board.md +111 -0
  22. package/docs/dogfood.md +24 -15
  23. package/docs/events.md +20 -1
  24. package/docs/memory.md +3 -3
  25. package/docs/operations.md +366 -133
  26. package/docs/profiles.md +2 -2
  27. package/docs/quickstart.md +114 -3
  28. package/docs/research.md +5 -3
  29. package/docs/sdlc.md +113 -7
  30. package/docs/security.md +88 -6
  31. package/docs/specs/2026-09-19-agent-hub-design.md +14 -11
  32. package/docs/specs/2026-10-04-switchyard-source-port-design.md +3 -1
  33. package/docs/verification/2026-10-25-qwen-dual-output-t0.md +22 -0
  34. package/docs/verification/2026-11-08-qwen-0269-model-setter-1317.md +25 -11
  35. package/docs/verification/2026-11-09-qwen-0270-acp.md +181 -0
  36. package/docs/verification/2026-11-09-qwen-0270-model-setter-1317.md +61 -0
  37. package/docs/verification/2026-11-10-0.36.0.md +59 -0
  38. package/docs/verification/2026-11-10-claude-implementer-2.1.322.md +59 -0
  39. package/docs/verification/2026-11-10-qwen-0270-dual-output.md +367 -0
  40. package/docs/verification/2026-11-10-qwen-0271-dual-output.md +101 -0
  41. package/docs/verification/2026-11-11-0.37.0.md +40 -0
  42. package/docs/verification/2026-11-11-guidance-probe-t2-1226.md +153 -0
  43. package/docs/verification/2026-11-11-qwen-setter-suggestions-off.md +167 -0
  44. package/docs/verification/claude-shell-wrapper-native.py +1 -1
  45. package/docs/verified.json +27 -27
  46. package/package.json +3 -4
  47. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  48. package/plugins/agent-hub/kimi-hook.js +3570 -1800
  49. package/plugins/agent-hub/server.js +4112 -1913
  50. package/src/adapters/channel-peer.ts +7 -1
  51. package/src/adapters/claude-channel.ts +7 -4
  52. package/src/adapters/compat.ts +10 -10
  53. package/src/adapters/local-probe.ts +174 -0
  54. package/src/adapters/local-worker.ts +233 -22
  55. package/src/adapters/qwen-dual.ts +324 -44
  56. package/src/cli/console-state.ts +25 -6
  57. package/src/cli/console-versions.ts +99 -0
  58. package/src/cli/console.ts +13 -1
  59. package/src/cli/guidance.ts +67 -0
  60. package/src/cli/help.ts +12 -4
  61. package/src/cli/identity.ts +10 -3
  62. package/src/cli/init-prompt.ts +15 -2
  63. package/src/cli/init-required-checks.ts +122 -0
  64. package/src/cli/init-settings.ts +10 -4
  65. package/src/cli/init.ts +39 -3
  66. package/src/cli/install-paths.ts +7 -2
  67. package/src/cli/lineage.ts +78 -0
  68. package/src/cli/main.ts +171 -14
  69. package/src/cli/runtime-version-warning.ts +2 -2
  70. package/src/cli/sdlc-output.ts +9 -5
  71. package/src/cli/setup-research.ts +10 -0
  72. package/src/hub/autonomy-defaults.ts +20 -9
  73. package/src/hub/board.ts +346 -4
  74. package/src/hub/build-entry.ts +11 -0
  75. package/src/hub/bus.ts +12 -0
  76. package/src/hub/ci-watch.ts +4 -4
  77. package/src/hub/config-apply.ts +6 -3
  78. package/src/hub/config-trust.ts +7 -1
  79. package/src/hub/control-client.ts +5 -2
  80. package/src/hub/daemon.ts +508 -26
  81. package/src/hub/delivery-hints.ts +4 -2
  82. package/src/hub/delivery-journal.ts +50 -2
  83. package/src/hub/delivery-public.ts +51 -0
  84. package/src/hub/dogfood-profile.ts +8 -4
  85. package/src/hub/events.ts +3 -2
  86. package/src/hub/execution-lineage-owner.ts +272 -0
  87. package/src/hub/execution-lineage.ts +52 -8
  88. package/src/hub/execution-links.ts +85 -0
  89. package/src/hub/guidance-probe-store.ts +713 -0
  90. package/src/hub/guidance-probes.ts +358 -0
  91. package/src/hub/guidance-variants.ts +398 -0
  92. package/src/hub/handoff.ts +1 -0
  93. package/src/hub/hub-tools.ts +43 -2
  94. package/src/hub/inference.ts +18 -5
  95. package/src/hub/manager.ts +44 -2
  96. package/src/hub/memory-policy.ts +2 -2
  97. package/src/hub/operational-authority.ts +13 -1
  98. package/src/hub/peers.ts +6 -1
  99. package/src/hub/planning.ts +1 -1
  100. package/src/hub/ports.ts +1 -1
  101. package/src/hub/progress.ts +47 -23
  102. package/src/hub/report.ts +2 -0
  103. package/src/hub/research.ts +1 -0
  104. package/src/hub/restart.ts +20 -0
  105. package/src/hub/roles.ts +26 -0
  106. package/src/hub/routing.ts +4 -1
  107. package/src/hub/sdlc-merge.ts +39 -1
  108. package/src/hub/sdlc-release-authorization.ts +139 -17
  109. package/src/hub/sdlc-release-policy.ts +100 -0
  110. package/src/hub/sdlc-release.ts +60 -8
  111. package/src/hub/sdlc.ts +62 -11
  112. package/src/hub/settings.ts +2 -0
  113. package/src/hub/supervision-proposals.ts +405 -0
  114. package/src/hub/supervision-rules.ts +388 -0
  115. package/src/hub/supervision.ts +2 -0
  116. package/src/hub/task-approval.ts +2 -2
  117. package/src/hub/task-repository.ts +5 -0
  118. package/src/hub/tasks.ts +917 -53
  119. package/src/local/probe-errors.ts +28 -0
  120. package/src/local/probe-sandbox.ts +224 -0
  121. package/src/local/probe-types.ts +108 -0
  122. package/src/local/probe-workspace.ts +237 -0
  123. package/src/local/sandbox.ts +71 -2
  124. package/src/local/tools.ts +135 -9
  125. package/src/memory/capture.ts +2 -2
  126. package/src/models/relay.ts +9 -2
  127. package/src/models/route/advisor-trigger.ts +88 -0
  128. package/src/models/route/config.ts +39 -8
  129. package/src/models/route/conversation-view.ts +179 -0
  130. package/src/models/route/decision-evidence.ts +1 -1
  131. package/src/models/route/decision.ts +193 -26
  132. package/src/models/route/escalation-control.ts +30 -0
  133. package/src/models/route/hub-prompts.ts +97 -0
  134. package/src/models/route/judge-choice.ts +155 -0
  135. package/src/models/route/judge-replies.ts +102 -0
  136. package/src/models/route/labels.ts +14 -70
  137. package/src/models/route/observation-signals.ts +250 -0
  138. package/src/models/route/plan-execute-choice.ts +27 -0
  139. package/src/models/route/relay-selector.ts +10 -9
  140. package/src/models/route/runtime.ts +129 -60
  141. package/src/models/route/stage-diagnostics.ts +22 -0
  142. package/src/models/route/stage-evidence.ts +55 -0
  143. package/src/models/route/stage-fallback.ts +58 -0
  144. package/src/models/route/stage-input.ts +155 -0
  145. package/src/models/route/stage.ts +5 -147
  146. package/src/models/route/turn-state.ts +77 -0
  147. package/src/omniroute/client.ts +3 -0
  148. package/src/ui/guidance-panel.ts +156 -0
  149. package/src/ui/guidance-view.ts +43 -0
  150. package/src/ui/lineage-view.ts +34 -0
  151. package/src/ui/plugin.ts +141 -27
  152. package/src/version.ts +4 -0
  153. package/templates/adec/README.md +32 -0
  154. package/templates/adec/ahub.plan-execute.json +23 -0
  155. package/templates/adec/ahub.stage.json +23 -0
  156. package/LICENSES/Apache-2.0.txt +0 -204
  157. package/src/models/route/advisor.ts +0 -102
  158. package/src/models/route/escalation.ts +0 -82
  159. package/src/models/route/judge.ts +0 -23
  160. package/src/models/route/normalize.ts +0 -103
  161. package/src/models/route/plan-execute.ts +0 -52
  162. package/src/models/route/prompts.ts +0 -8
  163. package/src/models/route/signals.ts +0 -247
  164. package/src/models/route/state.ts +0 -54
  165. package/src/models/route/text.ts +0 -61
package/src/ui/plugin.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { guidancePanelAssets } from "./guidance-panel.ts";
2
+ import { guidanceLines } from "./guidance-view.ts";
1
3
  /**
2
4
  * acon console plugin for agent-hub (#935, plan entelecheia/ai-workspace#60 §2.5).
3
5
  *
@@ -15,6 +17,8 @@ import { Registry } from "../hub/registry.ts";
15
17
  import { projectConsole, type Lifecycle, type ManagerOptions } from "../hub/manager.ts";
16
18
  // lifecycle.ts reaches the whole daemon; it is imported only when a project is inspected, started or stopped.
17
19
  import { DASHBOARD_VIEWS, renderDashboard } from "../hub/ui.ts";
20
+ import { parseLineageResult } from "../hub/execution-lineage.ts";
21
+ import { executionLineageLines } from "./lineage-view.ts";
18
22
  import { officeModel, type OfficeScene } from "./office-model.ts";
19
23
  import { personEvidence, questionItem, QUESTION_ITEM, type InboxAnswers, type QuestionRowView } from "./plugin-questions.ts";
20
24
  import { canPublishResults, receiptEvidence, resultItem, RESULT_ACTIONS, RESULT_ITEM, type ResultAction, type ResultRowView } from "./plugin-results.ts";
@@ -61,9 +65,13 @@ const QUESTION_ACTIONS = ["answer"] as const;
61
65
  /** #1054 T6: the receipt actions, advertised so acon lets the inbox and the page send them, never forwarded: `action()` checks the console's person meta, then calls the dedicated `projectConsole(...).receipt` port (`receiptVerb`). */
62
66
  const RESULT_ADVERTISED = RESULT_ACTIONS;
63
67
  const REVIEW_ACTIONS = ["review_comment_put", "review_comment_delete", "review_comment_send"] as const;
64
- const INBOX_VERBS = ["approve", "deny", "open"] as const;
68
+ /** #1221 T2 AC5: the two verbs an advisory supervision row offers; both reach the hub's own `decide`, as the person. */
69
+ const SUPERVISION_VERBS = ["supervision_accept", "supervision_dismiss"] as const;
70
+ const SUPERVISION_ITEM = /^supervision:([^:]+):(sup-[0-9a-f]{12})$/;
71
+ const INBOX_VERBS = ["approve", "deny", "open", ...SUPERVISION_VERBS] as const;
65
72
  /** Outward or destructive: answered needsConfirm first (agent-console AGENTS.md); previews are read-only and stay direct. */
66
- const CONFIRMED = new Set(["review_comment_delete", "review_comment_send", "stop", "permit", "setting", "setting_undo", "setting_reload", "config_edit_apply", "start_peer", "backlog_split", "send", "approve", "deny", "worktree_override_set", "worktrees_refresh_prs"]);
73
+ // A supervision acceptance runs the proposal's existing action, so it is confirmed like an approval; a dismissal runs nothing and is not.
74
+ const CONFIRMED = new Set(["review_comment_delete", "review_comment_send", "stop", "permit", "setting", "setting_undo", "setting_reload", "config_edit_apply", "start_peer", "backlog_split", "send", "approve", "deny", "worktree_override_set", "worktrees_refresh_prs", "supervision_accept"]);
67
75
  const fingerprintOf = (input: Record<string, unknown>) => {
68
76
  const { confirmed: _c, fingerprint: _f, reason: _r, ...rest } = input;
69
77
  return createHash("sha256").update(JSON.stringify(Object.keys(rest).sort().map((key) => [key, rest[key]]))).digest("hex");
@@ -151,6 +159,8 @@ ${body}
151
159
  }
152
160
 
153
161
  interface ProjectRow { id: string; root: string; state: string; instanceId: string | null }
162
+ /** #1220 T3: the closed lineage selectors a page may send; the manager refuses anything else, and `after` is the shell's own field. */
163
+ const LINEAGE_QUERY = ["taskId", "attemptId", "root", "task", "cursor", "nodes", "edges", "bytes"] as const;
154
164
  /** #727: the inbox reply is bounded; `more` counts what was left out. Most urgent first: a decision waits on the person, then a review, a result, a candidate, an alert. */
155
165
  const INBOX_MAX_ITEMS = 50;
156
166
  const INBOX_GROUP_RANK: Record<InboxItem["group"], number> = { decision: 0, review: 1, result: 2, candidate: 3, alert: 4 };
@@ -167,12 +177,21 @@ function lazyLifecycle(): Lifecycle {
167
177
  }
168
178
 
169
179
  /** Build the provider over an injectable registry and lifecycle (tests use a temp home and fakes). */
170
- export function createProvider(options: { visualPolicy?: (cwd: string) => Promise<DeliverablePorts>; visualRead?: typeof import("../hub/visual-assets.ts").readVisualAsset; home: string; registry?: Registry; lifecycle?: Lifecycle; log?: (line: string) => void; spaceBudgetMs?: number; features?: readonly string[]; forwardTimeoutMs?: ManagerOptions["forwardTimeoutMs"]; inboxFreshMs?: number; inboxStaleMs?: number; inboxProjectBudgetMs?: number }): ConsoleProvider {
180
+ export function createProvider(options: { visualPolicy?: (cwd: string) => Promise<DeliverablePorts>; visualRead?: typeof import("../hub/visual-assets.ts").readVisualAsset; home: string; registry?: Registry; lifecycle?: Lifecycle; log?: (line: string) => void; spaceBudgetMs?: number; runningFreshMs?: number; features?: readonly string[]; forwardTimeoutMs?: ManagerOptions["forwardTimeoutMs"]; inboxFreshMs?: number; inboxStaleMs?: number; inboxProjectBudgetMs?: number }): ConsoleProvider {
171
181
  const registry = options.registry ?? new Registry(join(options.home, "registry.db"));
172
182
  const owned = !options.registry;
173
183
  const lifecycle = options.lifecycle ?? lazyLifecycle();
174
- const { list, act, answer, receipt, consoleControl } = projectConsole({ registry, lifecycle, home: options.home, forwardTimeoutMs: options.forwardTimeoutMs });
175
- const assets = panelAssets();
184
+ const { list, act, answer, receipt, consoleControl, lineage, guidance } = projectConsole({ registry, lifecycle, home: options.home, forwardTimeoutMs: options.forwardTimeoutMs });
185
+ const dashboard = panelAssets(), guide = guidancePanelAssets();
186
+ const assets = { css: `${dashboard.css}\n${guide.css}`, js: `${dashboard.js.replace("export default (host) => {", "const createDashboard = (host) => {")}\n${guide.js.replace("export default (host) => {", "const createGuidance = (host) => {")}\nexport default (host) => {
187
+ const dashboardMount = host.mount.ownerDocument.createElement('div'), guidanceMount = host.mount.ownerDocument.createElement('div');
188
+ dashboardMount.hidden = true; guidanceMount.hidden = true; host.mount.append(dashboardMount, guidanceMount);
189
+ const dashboard = createDashboard({...host,mount:dashboardMount}), guidance = createGuidance({...host,mount:guidanceMount});
190
+ return { show(panel,params) { const guide = panel === 'guidance'; dashboardMount.hidden = guide; guidanceMount.hidden = !guide;
191
+ if (guide) { dashboard.hide(); guidance.show(panel,params); } else { guidance.hide(); dashboard.show(panel,params); } },
192
+ hide() { dashboard.hide(); guidance.hide(); dashboardMount.hidden = true; guidanceMount.hidden = true; },
193
+ destroy() { dashboard.destroy(); guidance.destroy(); dashboardMount.remove(); guidanceMount.remove(); } };
194
+ };` };
176
195
  const seen = new Map<string, string>(); // inbox item id -> first-seen ISO time, so `at` stays stable
177
196
 
178
197
  async function running(): Promise<ProjectRow[]> {
@@ -184,14 +203,23 @@ export function createProvider(options: { visualPolicy?: (cwd: string) => Promis
184
203
  * One listing is in flight at a time and both callers join it, so a listing that hangs is asked once, not once per poll. A listing that finishes after its budget still becomes the fallback.
185
204
  */
186
205
  let lastRunning: ProjectRow[] = [];
187
- let listingFlight: Promise<ProjectRow[]> | undefined;
188
- function runningWithin(ms: number): Promise<ProjectRow[]> {
189
- if (!listingFlight) {
190
- const flight: Promise<ProjectRow[]> = running().then((rows) => { lastRunning = rows; return rows; }, () => lastRunning)
191
- .finally(() => { if (listingFlight === flight) listingFlight = undefined; });
192
- listingFlight = flight;
206
+ const RUNNING_FRESH_MS = options.runningFreshMs ?? 10_000;
207
+ let runningCache: { generation: number; at: number } | undefined;
208
+ let listingFlight: { generation: number; promise: Promise<ProjectRow[]> } | undefined;
209
+ function runningWithin(ms: number, cached = false): Promise<ProjectRow[]> {
210
+ const generation = inboxGeneration;
211
+ const reusable = runningCache?.generation === generation;
212
+ if (cached && reusable && Date.now() - runningCache!.at < RUNNING_FRESH_MS) return Promise.resolve(lastRunning);
213
+ if (!listingFlight || listingFlight.generation !== generation) {
214
+ const promise: Promise<ProjectRow[]> = running().then((rows) => {
215
+ if (generation === inboxGeneration) { lastRunning = rows; runningCache = { generation, at: Date.now() }; }
216
+ return rows;
217
+ }, () => lastRunning).finally(() => { if (listingFlight?.promise === promise) listingFlight = undefined; });
218
+ listingFlight = { generation, promise };
193
219
  }
194
- return within(listingFlight, ms).then((rows) => rows ?? lastRunning);
220
+ // Space reuses an expired listing while its one refresh runs; the inbox keeps its existing bounded refresh path.
221
+ if (cached && reusable) return Promise.resolve(lastRunning);
222
+ return within(listingFlight.promise, ms).then((rows) => rows ?? lastRunning);
195
223
  }
196
224
  /**
197
225
  * #727: one project's items from its last answer, reused for a project that did not answer in time, so a slow daemon neither blanks its rows nor restarts their `at`.
@@ -279,6 +307,20 @@ export function createProvider(options: { visualPolicy?: (cwd: string) => Promis
279
307
  items.push({ id, group: "review", kind: "review", title: `#${t.id} ${t.title}`.slice(0, 200), ...(t.owner ? { actor: t.owner } : {}), project: name, at,
280
308
  chip: { text: "review", tone: "neutral" }, verbs: [{ id: "open", label: "Open board", primary: true }], link: { panel: "board", params: { project: project.id } } });
281
309
  }
310
+ // #1221 T2 AC5: an advisory supervision proposal. The hub sends this field only in advisory mode, and it never
311
+ // carries a private task or task text; the row offers the hub's own two verbs and nothing else.
312
+ const advisory = snap.supervision as { mode?: string; proposals?: { id: string; task: number; rule: string; action: string; reason: string; created?: number }[] } | undefined;
313
+ for (const p of advisory?.mode === "advisory" && Array.isArray(advisory.proposals) ? advisory.proposals : []) {
314
+ if (!p || typeof p.id !== "string" || !/^sup-[0-9a-f]{12}$/.test(p.id) || !Number.isSafeInteger(p.task)) continue;
315
+ const id = `supervision:${project.id}:${p.id}`;
316
+ const at = typeof p.created === "number" ? new Date(p.created).toISOString() : (seen.get(id) ?? new Date().toISOString());
317
+ seen.set(id, at);
318
+ items.push({ id, group: "candidate", kind: "supervision", title: `#${p.task}: ${String(p.action).slice(0, 32)}`.slice(0, 200),
319
+ detail: `${String(p.rule).slice(0, 64)} (${String(p.reason).slice(0, 64)})`, project: name, at,
320
+ chip: { text: "supervision", tone: "neutral" },
321
+ verbs: [{ id: "supervision_accept", label: "Accept", primary: true }, { id: "supervision_dismiss", label: "Dismiss" }],
322
+ link: { panel: "board", params: { project: project.id } } });
323
+ }
282
324
  if (generation === inboxGeneration) lastProjectItems.set(project.id, { generation, items: items.slice(firstItem) });
283
325
  }
284
326
  for (const id of lastProjectItems.keys()) if (!projects.some((project) => project.id === id)) lastProjectItems.delete(id);
@@ -324,7 +366,9 @@ export function createProvider(options: { visualPolicy?: (cwd: string) => Promis
324
366
  * `previous`, as the dashboard keeps it, so desk slots and message arcs persist across polls. A restarted daemon
325
367
  * (new instanceId) restarts its event sequence at zero, so its previous model is dropped.
326
368
  */
327
- const offices = new Map<string, { instanceId: string | null; model: OfficeScene }>();
369
+ const offices = new Map<string, { instanceId: string | null; cursor: number; model: OfficeScene }>();
370
+ const officeFlights = new Map<string, { instanceId: string | null; generation: number; promise: Promise<Record<string, unknown> | null> }>();
371
+ let spaceFlight: { generation: number; promise: Promise<{ scene: ReturnType<typeof mergeSpaces>; cursor: number }> } | undefined;
328
372
  /**
329
373
  * acon wants a snapshot within 5 s. The project listing asks every daemon for its status, so it gets its own budget and
330
374
  * falls back to the last listing; projects are then read concurrently, and one that has not answered is left out of this poll.
@@ -335,22 +379,61 @@ export function createProvider(options: { visualPolicy?: (cwd: string) => Promis
335
379
  const late = new Promise<null>((resolve) => { timer = setTimeout(() => resolve(null), ms); });
336
380
  try { return await Promise.race([work, late]); } catch { return null; } finally { clearTimeout(timer); }
337
381
  };
338
- async function space() {
339
- const projects = await runningWithin(Math.round(SPACE_BUDGET_MS / 2));
340
- for (const id of offices.keys()) if (!projects.some((p) => p.id === id)) offices.delete(id);
382
+ function officeSnapshot(project: ProjectRow, after: number, generation: number) {
383
+ let flight = officeFlights.get(project.id);
384
+ if (!flight || flight.instanceId !== project.instanceId || flight.generation !== generation) {
385
+ const promise: Promise<Record<string, unknown> | null> = Promise.resolve(act({ action: "snapshot", after, projectId: project.id, instanceId: project.instanceId, view: "office" }) as Promise<Record<string, unknown>>)
386
+ .then(value => value, () => null)
387
+ .finally(() => { if (officeFlights.get(project.id)?.promise === promise) officeFlights.delete(project.id); });
388
+ flight = { instanceId: project.instanceId, generation, promise };
389
+ officeFlights.set(project.id, flight);
390
+ }
391
+ return within(flight.promise, SPACE_BUDGET_MS);
392
+ }
393
+ async function spaceComputation(generation: number) {
394
+ const projects = await runningWithin(Math.round(SPACE_BUDGET_MS / 2), true);
395
+ const previous = new Map(offices);
341
396
  const scenes = [];
342
- const snaps = await Promise.all(projects.map((project) =>
343
- within(act({ action: "snapshot", after: 0, projectId: project.id, instanceId: project.instanceId, view: "office" }) as Promise<Record<string, unknown>>, SPACE_BUDGET_MS)));
397
+ const cursors: (string | number | null)[][] = [];
398
+ const next = new Map<string, { instanceId: string | null; cursor: number; model: OfficeScene }>();
399
+ const snaps = await Promise.all(projects.map(project => officeSnapshot(project,
400
+ previous.get(project.id)?.instanceId === project.instanceId ? previous.get(project.id)!.cursor : 0, generation)));
344
401
  for (const [i, project] of projects.entries()) {
345
402
  const snap = snaps[i];
346
- if (!snap || snap.ok === false) continue;
347
- const cached = offices.get(project.id);
348
- const model = officeModel(snap as never, cached?.instanceId === project.instanceId ? cached.model : null, { cols: 4, now: Date.now() });
349
- offices.set(project.id, { instanceId: project.instanceId, model });
403
+ const cached = previous.get(project.id);
404
+ const sameInstance = cached?.instanceId === project.instanceId;
405
+ // A timeout omits this project's outward scene, but retains its baseline for the next valid reply.
406
+ // A known refusal or a restarted instance gets no such fallback.
407
+ if (!snap) { if (sameInstance) next.set(project.id, cached!); continue; }
408
+ if (snap.ok === false) continue;
409
+ // Event cursors do not cover every public status/privacy field on older daemons. Only an explicit
410
+ // unchanged reply permits model reuse; a full reply is always screened by the unchanged #264 mapper.
411
+ if (snap.changed === false && !sameInstance) continue;
412
+ const model = snap.changed === false ? cached!.model
413
+ : officeModel(snap as never, sameInstance ? cached!.model : null, { cols: 4, now: Date.now() });
414
+ const cursor = Number.isSafeInteger(snap.cursor) && Number(snap.cursor) >= 0 ? Number(snap.cursor) : 0;
415
+ next.set(project.id, { instanceId: project.instanceId, cursor, model });
416
+ cursors.push([project.id, project.instanceId, cursor]);
350
417
  const label = projects.length > 1 ? (project.root.split("/").filter(Boolean).pop() ?? project.id) : undefined;
418
+ // Keep the wall clock here even when the model is reused: message arcs expire without a daemon event.
351
419
  scenes.push(officeSpace(model, { id: project.id, ...(label ? { label } : {}) }, Date.now()));
352
420
  }
353
- return mergeSpaces(scenes);
421
+ const scene = mergeSpaces(scenes);
422
+ if (generation !== inboxGeneration) return { scene, cursor: 0 };
423
+ const fingerprint = createHash("sha256").update(JSON.stringify([projects.map(p => [p.id, p.instanceId, p.root]), cursors, scene])).digest("hex");
424
+ // Thirteen hex digits fit exactly in a safe integer; provider reopen cannot alias a local counter's first value.
425
+ const cursor = Number.parseInt(fingerprint.slice(0, 13), 16) || 1;
426
+ offices.clear(); for (const [id, entry] of next) offices.set(id, entry);
427
+ return { scene, cursor };
428
+ }
429
+ async function space(after: number) {
430
+ if (!spaceFlight || spaceFlight.generation !== inboxGeneration) {
431
+ const generation = inboxGeneration;
432
+ const promise = spaceComputation(generation).finally(() => { if (spaceFlight?.promise === promise) spaceFlight = undefined; });
433
+ spaceFlight = { generation, promise };
434
+ }
435
+ const value = await spaceFlight.promise;
436
+ return after > 0 && after === value.cursor ? { changed: false, cursor: value.cursor } : value;
354
437
  }
355
438
 
356
439
  /**
@@ -388,8 +471,21 @@ export function createProvider(options: { visualPolicy?: (cwd: string) => Promis
388
471
  return { ok: true, message: name === "result_seen" ? "Marked read" : name === "results_read_all" ? `Marked ${Number(result.marked) || 0} read` : "Marked unread again" };
389
472
  }
390
473
 
391
- /** approve/deny resolve to the hub's own `permit` with the request's option; nothing else is reachable from an item. */
474
+ /**
475
+ * approve/deny resolve to the hub's own `permit` with the request's option, and a supervision verb to the hub's own
476
+ * `supervision` action as the person; nothing else is reachable from an item, and the page never names the task, the
477
+ * actor or the action.
478
+ */
392
479
  async function inboxVerb(input: Record<string, unknown>): Promise<ActionResult> {
480
+ const supervision = typeof input.id === "string" ? SUPERVISION_ITEM.exec(input.id) : null;
481
+ if (supervision && (input.action === "supervision_accept" || input.action === "supervision_dismiss")) {
482
+ const project = (await running()).find((p) => p.id === supervision[1]);
483
+ if (!project) return { ok: false, error: "project is not running" };
484
+ const result = await act({ action: "supervision", projectId: project.id, instanceId: project.instanceId, id: supervision[2], verb: input.action === "supervision_accept" ? "accept" : "dismiss" }) as Record<string, unknown>;
485
+ if (result.ok !== true) return { ok: false, error: String(result.error ?? "the supervision decision was refused") };
486
+ const receipt = result.receipt as { outcome?: string; detail?: string } | undefined;
487
+ return { ok: true, message: input.action === "supervision_dismiss" ? "Dismissed" : receipt?.outcome === "ran" ? "Accepted and run" : receipt?.outcome === "unknown" ? "Accepted; the outcome is unconfirmed, check the task" : "Accepted" };
488
+ }
393
489
  const m = typeof input.id === "string" ? /^perm:([^:]+):(.+)$/.exec(input.id) : null;
394
490
  if (input.action === "open") return { ok: true, message: typeof input.id === "string" && (input.id.startsWith("worktrees:") || input.id.startsWith("question:") || input.id.startsWith("result:")) ? `Open the Agents panel to ${input.id.startsWith("question:") ? "answer" : input.id.startsWith("result:") ? "read the result" : "review the shelf"}.` : "Open the Board panel to review." };
395
491
  if (!m) return { ok: false, error: "unknown inbox item" };
@@ -414,7 +510,24 @@ export function createProvider(options: { visualPolicy?: (cwd: string) => Promis
414
510
  return await consoleControl({ projectId, instanceId }, input.panel, payload);
415
511
  }
416
512
  if (input.panel === "inbox") return { ...await inboxSnapshot() };
417
- if (input.panel === "space") return { scene: await space() };
513
+ if (input.panel === "space") return await space(input.after);
514
+ // #1220 T3: the execution-lineage read (AC5). A provider port, not a panel id: the shell's own panels are
515
+ // DASHBOARD_VIEWS and neither that list nor the dashboard's action list grows. Reading executes nothing, and
516
+ // an unavailable or unsupported source stays a refusal here rather than an empty successful graph.
517
+ if (input.panel === "guidance") {
518
+ const { panel: _panel, after: _after, projectId, instanceId, op, ...query } = input;
519
+ if (op !== "list" && op !== "show") return { ok: false, panel: "guidance", error: "guidance console is read-only; select list/show and a current task scope" };
520
+ const result = await guidance({ projectId, instanceId }, op, query);
521
+ if (!result.ok || !("guidance" in result) || !result.guidance) return { ok: false, panel: "guidance", error: "error" in result ? result.error : "guidance read unavailable" };
522
+ return { ok: true, panel: "guidance", guidance: result.guidance, lines: guidanceLines(result.guidance) };
523
+ }
524
+ if (input.panel === "lineage") {
525
+ const query = Object.fromEntries(LINEAGE_QUERY.filter((key) => input[key] !== undefined).map((key) => [key, input[key]]));
526
+ const reply = await lineage({ projectId: input.projectId, instanceId: input.instanceId }, query);
527
+ if (reply.ok === false) return { ok: false, panel: "lineage", error: String(reply.error ?? "lineage read failed") };
528
+ try { const page = parseLineageResult(reply.lineage); return { ok: true, panel: "lineage", lineage: page, lines: executionLineageLines(page) }; }
529
+ catch (error) { return { ok: false, panel: "lineage", error: (error as Error).message }; }
530
+ }
418
531
  const view = (DASHBOARD_VIEWS as readonly string[]).includes(String(input.view)) ? input.view : (DASHBOARD_VIEWS as readonly string[]).includes(input.panel) ? input.panel : undefined;
419
532
  if (typeof input.projectId !== "string" || typeof input.instanceId !== "string") {
420
533
  // A bare panel poll (the shell's own, and conformance) gets the listing; the dashboard polls with a project.
@@ -508,6 +621,7 @@ export function createProvider(options: { visualPolicy?: (cwd: string) => Promis
508
621
  const preview = name === "review_comment_delete" ? [`Delete or dismiss this review comment on task #${String(input.task ?? "?")}.`]
509
622
  : name === "approve" || name === "deny" ? [`${name === "approve" ? "Allow" : "Deny"} this tool request once.`]
510
623
  : name === "send" ? [`Send a message as you${target ? ` in ${target}` : ""}.`]
624
+ : name === "supervision_accept" ? [`Accept a supervision proposal${target ? ` in ${target}` : ""} and run the action it names once.`]
511
625
  : [`Run ${name}${target ? ` in ${target}` : ""}.`];
512
626
  return { ok: false, needsConfirm: true, preview, fingerprint, verb: name === "approve" ? "Allow once" : name === "deny" ? "Deny" : name };
513
627
  }
@@ -516,7 +630,7 @@ export function createProvider(options: { visualPolicy?: (cwd: string) => Promis
516
630
  return await consoleControl({ projectId, instanceId }, name as typeof REVIEW_ACTIONS[number], payload, meta) as ActionResult;
517
631
  }
518
632
  const { confirmed: _c, fingerprint: _f, ...forward } = input;
519
- if (name === "approve" || name === "deny" || name === "open") return await inboxVerb(forward);
633
+ if (name === "approve" || name === "deny" || name === "open" || (SUPERVISION_VERBS as readonly string[]).includes(name)) return await inboxVerb(forward);
520
634
  const result = await act(forward) as Record<string, unknown>;
521
635
  return (result.ok === false ? { ok: false, error: String(result.error ?? "action failed"), ...(result.unconfirmed === true ? { unconfirmed: true as const } : {}) } : { ...result, ok: true }) as ActionResult;
522
636
  }
@@ -525,7 +639,7 @@ export function createProvider(options: { visualPolicy?: (cwd: string) => Promis
525
639
  const plugin: ConsolePlugin = {
526
640
  manifest: {
527
641
  api: 1, tool: "ahub", version, title: "agent-hub", icon: "agents", pollMs: 2000,
528
- panels: DASHBOARD_VIEWS.map((id, order) => ({ id, title: TITLES[id], order })),
642
+ panels: [...DASHBOARD_VIEWS.map((id, order) => ({ id, title: TITLES[id], order })), { id: "guidance", title: "Guidance", order: DASHBOARD_VIEWS.length }],
529
643
  capabilities: { actions: [...FORWARDED, ...INBOX_VERBS, ...QUESTION_ACTIONS, ...RESULT_ADVERTISED, ...REVIEW_ACTIONS], confirm: true, multiProject: true, inbox: true, space: true },
530
644
  },
531
645
  async open(ctx) { return createProvider({ home: ctx.home, log: ctx.log, features: ctx.features }); },
package/src/version.ts CHANGED
@@ -2,3 +2,7 @@ import pkg from "../package.json";
2
2
 
3
3
  /** The one version. `scripts/build.mjs` stamps it into the plugin manifest and the bundle, and `--check` fails when they differ. */
4
4
  export const VERSION: string = pkg.version;
5
+
6
+ const SEMVER = /^[0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z]+(?:[.-][0-9A-Za-z]+)*)?(?:\+[0-9A-Za-z]+(?:[.-][0-9A-Za-z]+)*)?$/;
7
+ /** A version another process reported, kept only when it is a plain semver of at most 64 characters; anything else is unknown, never shown. Display only (#1385). */
8
+ export const displayVersion = (value: unknown): string | undefined => typeof value === "string" && value.length <= 64 && SEMVER.exec(value)?.[0] === value ? value : undefined;
@@ -0,0 +1,32 @@
1
+ # ADEc policy examples
2
+
3
+ These are editable examples for the separately operated `adec` service. They
4
+ follow the public policy schema at [agent-decide commit 008548c5](https://github.com/STAIxBWLB/agent-decide/blob/008548c57d3b0983719826aae36288dc5e3bad31/src/policy.ts): `policyId`, `provider`, `instructions`, `candidates`, `default`, `contextLimit`, and `minMargin`.
5
+
6
+ Before a person copies a file into their ADEc policy directory, replace the
7
+ provider and every `replace-me-*` alias or effort with values that exist in
8
+ their own ADEc configuration and match the hub route's allowed candidate
9
+ pairs. Keep `default` equal to one candidate pair. `ahub.stage` uses `none`
10
+ effort for both options, matching the stage route contract. The plan/execute
11
+ `edit-effort` token is only a syntactically valid placeholder.
12
+
13
+ Every candidate sets `onPrem` explicitly to `false`. A person must verify a
14
+ model's actual serving location before changing this to `true`; a loopback hub
15
+ endpoint alone does not establish that the model itself is on-prem. Until then,
16
+ these examples are not suitable for sensitive routes that require an on-prem
17
+ candidate.
18
+
19
+ The `contextLimit` value `20000` and `minMargin` value `0.05` are example
20
+ settings, not measured or calibrated defaults. ADEc's `minMargin` is independent
21
+ of the hub's `ambiguous_band`.
22
+
23
+ Both policies are for model/effort selection only. They do not authorize or
24
+ apply a selection. The host keeps its existing route, phase transition, review
25
+ and escalation rules, and executes its existing fallback in `shadow` mode.
26
+ Decision mode remains off unless a person explicitly configures `shadow`.
27
+ `enforce` is refused. The hub does not access the ADEc home; the person owns
28
+ local policy placement and service configuration.
29
+
30
+ No provider, alias, effort, latency gain, live model behavior, or production
31
+ readiness is established by these examples. The manual model-routing receipt
32
+ and live benchmark remain unrun.
@@ -0,0 +1,23 @@
1
+ {
2
+ "policyId": "ahub.plan-execute",
3
+ "provider": "replace-me-provider",
4
+ "instructions": "Choose one model/effort pair from the supplied options for the already-determined planning or execution phase, using only the bounded host-route evidence. This is a shadow recommendation: the hub owns phase transitions, execution authority, and the actual fallback model. Do not decide whether planning is complete, authorize work, infer privacy authority, select a peer, or add options.",
5
+ "candidates": [
6
+ {
7
+ "alias": "replace-me-efficient",
8
+ "efforts": ["edit-effort"],
9
+ "onPrem": false
10
+ },
11
+ {
12
+ "alias": "replace-me-capable",
13
+ "efforts": ["edit-effort"],
14
+ "onPrem": false
15
+ }
16
+ ],
17
+ "default": {
18
+ "alias": "replace-me-efficient",
19
+ "effort": "edit-effort"
20
+ },
21
+ "contextLimit": 20000,
22
+ "minMargin": 0.05
23
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "policyId": "ahub.stage",
3
+ "provider": "replace-me-provider",
4
+ "instructions": "Choose one model/effort pair from the supplied options using only the bounded stage evidence. This is a shadow recommendation: the hub keeps its deterministic tier and may ignore the choice. Do not infer task actions, phase transitions, approvals, escalation, peer assignment, privacy authority, or new options.",
5
+ "candidates": [
6
+ {
7
+ "alias": "replace-me-efficient",
8
+ "efforts": ["none"],
9
+ "onPrem": false
10
+ },
11
+ {
12
+ "alias": "replace-me-capable",
13
+ "efforts": ["none"],
14
+ "onPrem": false
15
+ }
16
+ ],
17
+ "default": {
18
+ "alias": "replace-me-efficient",
19
+ "effort": "none"
20
+ },
21
+ "contextLimit": 20000,
22
+ "minMargin": 0.05
23
+ }
@@ -1,204 +0,0 @@
1
- Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
-
3
-
4
- Apache License
5
- Version 2.0, January 2004
6
- http://www.apache.org/licenses/
7
-
8
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
9
-
10
- 1. Definitions.
11
-
12
- "License" shall mean the terms and conditions for use, reproduction,
13
- and distribution as defined by Sections 1 through 9 of this document.
14
-
15
- "Licensor" shall mean the copyright owner or entity authorized by
16
- the copyright owner that is granting the License.
17
-
18
- "Legal Entity" shall mean the union of the acting entity and all
19
- other entities that control, are controlled by, or are under common
20
- control with that entity. For the purposes of this definition,
21
- "control" means (i) the power, direct or indirect, to cause the
22
- direction or management of such entity, whether by contract or
23
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
24
- outstanding shares, or (iii) beneficial ownership of such entity.
25
-
26
- "You" (or "Your") shall mean an individual or Legal Entity
27
- exercising permissions granted by this License.
28
-
29
- "Source" form shall mean the preferred form for making modifications,
30
- including but not limited to software source code, documentation
31
- source, and configuration files.
32
-
33
- "Object" form shall mean any form resulting from mechanical
34
- transformation or translation of a Source form, including but
35
- not limited to compiled object code, generated documentation,
36
- and conversions to other media types.
37
-
38
- "Work" shall mean the work of authorship, whether in Source or
39
- Object form, made available under the License, as indicated by a
40
- copyright notice that is included in or attached to the work
41
- (an example is provided in the Appendix below).
42
-
43
- "Derivative Works" shall mean any work, whether in Source or Object
44
- form, that is based on (or derived from) the Work and for which the
45
- editorial revisions, annotations, elaborations, or other modifications
46
- represent, as a whole, an original work of authorship. For the purposes
47
- of this License, Derivative Works shall not include works that remain
48
- separable from, or merely link (or bind by name) to the interfaces of,
49
- the Work and Derivative Works thereof.
50
-
51
- "Contribution" shall mean any work of authorship, including
52
- the original version of the Work and any modifications or additions
53
- to that Work or Derivative Works thereof, that is intentionally
54
- submitted to Licensor for inclusion in the Work by the copyright owner
55
- or by an individual or Legal Entity authorized to submit on behalf of
56
- the copyright owner. For the purposes of this definition, "submitted"
57
- means any form of electronic, verbal, or written communication sent
58
- to the Licensor or its representatives, including but not limited to
59
- communication on electronic mailing lists, source code control systems,
60
- and issue tracking systems that are managed by, or on behalf of, the
61
- Licensor for the purpose of discussing and improving the Work, but
62
- excluding communication that is conspicuously marked or otherwise
63
- designated in writing by the copyright owner as "Not a Contribution."
64
-
65
- "Contributor" shall mean Licensor and any individual or Legal Entity
66
- on behalf of whom a Contribution has been received by Licensor and
67
- subsequently incorporated within the Work.
68
-
69
- 2. Grant of Copyright License. Subject to the terms and conditions of
70
- this License, each Contributor hereby grants to You a perpetual,
71
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
- copyright license to reproduce, prepare Derivative Works of,
73
- publicly display, publicly perform, sublicense, and distribute the
74
- Work and such Derivative Works in Source or Object form.
75
-
76
- 3. Grant of Patent License. Subject to the terms and conditions of
77
- this License, each Contributor hereby grants to You a perpetual,
78
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
- (except as stated in this section) patent license to make, have made,
80
- use, offer to sell, sell, import, and otherwise transfer the Work,
81
- where such license applies only to those patent claims licensable
82
- by such Contributor that are necessarily infringed by their
83
- Contribution(s) alone or by combination of their Contribution(s)
84
- with the Work to which such Contribution(s) was submitted. If You
85
- institute patent litigation against any entity (including a
86
- cross-claim or counterclaim in a lawsuit) alleging that the Work
87
- or a Contribution incorporated within the Work constitutes direct
88
- or contributory patent infringement, then any patent licenses
89
- granted to You under this License for that Work shall terminate
90
- as of the date such litigation is filed.
91
-
92
- 4. Redistribution. You may reproduce and distribute copies of the
93
- Work or Derivative Works thereof in any medium, with or without
94
- modifications, and in Source or Object form, provided that You
95
- meet the following conditions:
96
-
97
- (a) You must give any other recipients of the Work or
98
- Derivative Works a copy of this License; and
99
-
100
- (b) You must cause any modified files to carry prominent notices
101
- stating that You changed the files; and
102
-
103
- (c) You must retain, in the Source form of any Derivative Works
104
- that You distribute, all copyright, patent, trademark, and
105
- attribution notices from the Source form of the Work,
106
- excluding those notices that do not pertain to any part of
107
- the Derivative Works; and
108
-
109
- (d) If the Work includes a "NOTICE" text file as part of its
110
- distribution, then any Derivative Works that You distribute must
111
- include a readable copy of the attribution notices contained
112
- within such NOTICE file, excluding those notices that do not
113
- pertain to any part of the Derivative Works, in at least one
114
- of the following places: within a NOTICE text file distributed
115
- as part of the Derivative Works; within the Source form or
116
- documentation, if provided along with the Derivative Works; or,
117
- within a display generated by the Derivative Works, if and
118
- wherever such third-party notices normally appear. The contents
119
- of the NOTICE file are for informational purposes only and
120
- do not modify the License. You may add Your own attribution
121
- notices within Derivative Works that You distribute, alongside
122
- or as an addendum to the NOTICE text from the Work, provided
123
- that such additional attribution notices cannot be construed
124
- as modifying the License.
125
-
126
- You may add Your own copyright statement to Your modifications and
127
- may provide additional or different license terms and conditions
128
- for use, reproduction, or distribution of Your modifications, or
129
- for any such Derivative Works as a whole, provided Your use,
130
- reproduction, and distribution of the Work otherwise complies with
131
- the conditions stated in this License.
132
-
133
- 5. Submission of Contributions. Unless You explicitly state otherwise,
134
- any Contribution intentionally submitted for inclusion in the Work
135
- by You to the Licensor shall be under the terms and conditions of
136
- this License, without any additional terms or conditions.
137
- Notwithstanding the above, nothing herein shall supersede or modify
138
- the terms of any separate license agreement you may have executed
139
- with Licensor regarding such Contributions.
140
-
141
- 6. Trademarks. This License does not grant permission to use the trade
142
- names, trademarks, service marks, or product names of the Licensor,
143
- except as required for reasonable and customary use in describing the
144
- origin of the Work and reproducing the content of the NOTICE file.
145
-
146
- 7. Disclaimer of Warranty. Unless required by applicable law or
147
- agreed to in writing, Licensor provides the Work (and each
148
- Contributor provides its Contributions) on an "AS IS" BASIS,
149
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
150
- implied, including, without limitation, any warranties or conditions
151
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
152
- PARTICULAR PURPOSE. You are solely responsible for determining the
153
- appropriateness of using or redistributing the Work and assume any
154
- risks associated with Your exercise of permissions under this License.
155
-
156
- 8. Limitation of Liability. In no event and under no legal theory,
157
- whether in tort (including negligence), contract, or otherwise,
158
- unless required by applicable law (such as deliberate and grossly
159
- negligent acts) or agreed to in writing, shall any Contributor be
160
- liable to You for damages, including any direct, indirect, special,
161
- incidental, or consequential damages of any character arising as a
162
- result of this License or out of the use or inability to use the
163
- Work (including but not limited to damages for loss of goodwill,
164
- work stoppage, computer failure or malfunction, or any and all
165
- other commercial damages or losses), even if such Contributor
166
- has been advised of the possibility of such damages.
167
-
168
- 9. Accepting Warranty or Additional Liability. While redistributing
169
- the Work or Derivative Works thereof, You may choose to offer,
170
- and charge a fee for, acceptance of support, warranty, indemnity,
171
- or other liability obligations and/or rights consistent with this
172
- License. However, in accepting such obligations, You may act only
173
- on Your own behalf and on Your sole responsibility, not on behalf
174
- of any other Contributor, and only if You agree to indemnify,
175
- defend, and hold each Contributor harmless for any liability
176
- incurred by, or claims asserted against, such Contributor by reason
177
- of your accepting any such warranty or additional liability.
178
-
179
- END OF TERMS AND CONDITIONS
180
-
181
- APPENDIX: How to apply the Apache License to your work.
182
-
183
- To apply the Apache License to your work, attach the following
184
- boilerplate notice, with the fields enclosed by brackets "[]"
185
- replaced with your own identifying information. (Don't include
186
- the brackets!) The text should be enclosed in the appropriate
187
- comment syntax for the file format. We also recommend that a
188
- file or class name and description of purpose be included on the
189
- same "printed page" as the copyright notice for easier
190
- identification within third-party archives.
191
-
192
- Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
193
-
194
- Licensed under the Apache License, Version 2.0 (the "License");
195
- you may not use this file except in compliance with the License.
196
- You may obtain a copy of the License at
197
-
198
- http://www.apache.org/licenses/LICENSE-2.0
199
-
200
- Unless required by applicable law or agreed to in writing, software
201
- distributed under the License is distributed on an "AS IS" BASIS,
202
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
- See the License for the specific language governing permissions and
204
- limitations under the License.