omnius 1.0.990 → 1.0.992

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 (54) hide show
  1. package/.aiwg/addons/omnius-docs/README.md +3 -0
  2. package/.aiwg/addons/omnius-docs/skills/omnius-task-graph/SKILL.md +42 -0
  3. package/dist/_types/execution/native-memory-view-provider.d.ts +5 -1
  4. package/dist/_types/execution/nol/worker-assets.d.ts +2 -0
  5. package/dist/_types/memory/immutableEvidenceStore.d.ts +4 -1
  6. package/dist/_types/memory/memoryCapability.d.ts +2 -0
  7. package/dist/_types/memory/structuredMemoryStore.d.ts +3 -1
  8. package/dist/_types/orchestrator/agenticRunner.d.ts +25 -11
  9. package/dist/_types/orchestrator/completionFinalization.d.ts +19 -1
  10. package/dist/_types/orchestrator/contentAddressedArtifactStore.d.ts +1 -4
  11. package/dist/_types/orchestrator/historicalToolObservation.d.ts +36 -0
  12. package/dist/_types/orchestrator/interruption-lifecycle.d.ts +3 -0
  13. package/dist/_types/orchestrator/native-provider-delivery.d.ts +3 -0
  14. package/dist/_types/orchestrator/semanticVerification.d.ts +8 -1
  15. package/dist/_types/orchestrator/structured-memory-extraction-worker.d.ts +1 -0
  16. package/dist/_types/orchestrator/successful-procedure-memory.d.ts +7 -0
  17. package/dist/_types/orchestrator/task-recall-review-evidence.d.ts +37 -0
  18. package/dist/_types/orchestrator/taskRequirementReview.d.ts +3 -0
  19. package/dist/_types/orchestrator/taskSemanticAdmission.d.ts +9 -0
  20. package/dist/_types/orchestrator/taskWorkPlan.d.ts +4 -1
  21. package/dist/api/py-embed.js +3 -0
  22. package/dist/assets/nol-task-memory-promotion-worker.py +240 -0
  23. package/dist/index.js +2 -2
  24. package/dist/library.d.ts +1 -0
  25. package/dist/library.js +22592 -20124
  26. package/dist/memory-maintenance-worker.js +4255 -4252
  27. package/dist/nol/task-memory-promotion.d.ts +240 -0
  28. package/dist/omni-setup-worker.js +3 -0
  29. package/dist/postinstall-daemon.cjs +3 -0
  30. package/dist/preinstall.cjs +5 -0
  31. package/dist/tui/native/worker.js +40 -1
  32. package/dist/update-worker-runtime.js +24374 -8901
  33. package/dist/update-worker.js +35 -9
  34. package/docs/DISCOVERY.json +637 -1
  35. package/docs/DISCOVERY.md +16 -0
  36. package/docs/guides/system-tray.md +6 -0
  37. package/docs/reference/slash-commands.md +59 -2
  38. package/docs/reference/task-observability.md +27 -0
  39. package/docs/work-orders/WO-behavioral-memory-graph-20261123.md +122 -0
  40. package/docs/work-orders/WO-native-agent-collaboration-20261124.md +96 -0
  41. package/docs/work-orders/WO-telegram-admin-command-and-artifact-20261124.md +117 -0
  42. package/docs/work-orders/WO-telegram-ellipsis-and-stale-release-20261124.md +129 -0
  43. package/docs/work-orders/WO-telegram-live-worker-view-20261124.md +114 -0
  44. package/docs/work-orders/WO-telegram-long-horizon-continuity-20261123.md +43 -0
  45. package/docs/work-orders/WO-telegram-model-source-and-broker-capacity-20261124.md +68 -0
  46. package/docs/work-orders/WO-update-publish-provenance-20261125.md +79 -0
  47. package/docs/work-orders/WO-verified-update-transaction-20261124.md +46 -0
  48. package/docs/work-orders/human-memory-task-recall/README.md +57 -0
  49. package/docs/work-orders/human-memory-task-recall/WO-01-task-board.md +320 -0
  50. package/docs/work-orders/human-memory-task-recall/WO-02-consolidation.md +95 -0
  51. package/docs/work-orders/human-memory-task-recall/WO-03-promotion.md +226 -0
  52. package/docs/work-orders/human-memory-task-recall/WO-04-qualification.md +580 -0
  53. package/npm-shrinkwrap.json +8 -8
  54. package/package.json +8 -3
@@ -0,0 +1,240 @@
1
+ import { type NolArtifactStore } from "../_types/execution/nol/artifacts.js";
2
+ import { type NolArtifactRef, type NolModelManifest, type NolRuntimeBinding } from "../_types/schemas/nol.js";
3
+ import { z } from "zod";
4
+ import type { NolCudaPlacement } from "./cuda-lease.js";
5
+ declare const caseSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ family: z.ZodString;
8
+ template: z.ZodString;
9
+ parents: z.ZodDefault<z.ZodArray<z.ZodString>>;
10
+ nearDuplicates: z.ZodDefault<z.ZodArray<z.ZodString>>;
11
+ split: z.ZodEnum<{
12
+ unrelated: "unrelated";
13
+ training: "training";
14
+ recall: "recall";
15
+ rehearsal: "rehearsal";
16
+ contamination: "contamination";
17
+ }>;
18
+ prompt: z.ZodString;
19
+ expected: z.ZodString;
20
+ }, z.core.$strict>;
21
+ export declare const TaskPromotionCurriculumSchema: z.ZodObject<{
22
+ schema: z.ZodLiteral<"omnius.task-memory-promotion-curriculum.v1">;
23
+ origin: z.ZodLiteral<"operator_authored_synthetic">;
24
+ reviewed: z.ZodLiteral<"credential_and_transcript_free">;
25
+ candidateId: z.ZodString;
26
+ evidenceDigest: z.ZodString;
27
+ cases: z.ZodArray<z.ZodObject<{
28
+ id: z.ZodString;
29
+ family: z.ZodString;
30
+ template: z.ZodString;
31
+ parents: z.ZodDefault<z.ZodArray<z.ZodString>>;
32
+ nearDuplicates: z.ZodDefault<z.ZodArray<z.ZodString>>;
33
+ split: z.ZodEnum<{
34
+ unrelated: "unrelated";
35
+ training: "training";
36
+ recall: "recall";
37
+ rehearsal: "rehearsal";
38
+ contamination: "contamination";
39
+ }>;
40
+ prompt: z.ZodString;
41
+ expected: z.ZodString;
42
+ }, z.core.$strict>>;
43
+ }, z.core.$strict>;
44
+ export declare const TaskPromotionGpuSchema: z.ZodObject<{
45
+ gpuUuid: z.ZodString;
46
+ requestedMiB: z.ZodNumber;
47
+ }, z.core.$strict>;
48
+ export declare const TaskPromotionBoundsSchema: z.ZodObject<{
49
+ rank: z.ZodNumber;
50
+ targetSiteIds: z.ZodArray<z.ZodString>;
51
+ epochs: z.ZodNumber;
52
+ maxSteps: z.ZodNumber;
53
+ maxInputTokens: z.ZodNumber;
54
+ maxOutputTokens: z.ZodNumber;
55
+ maxAdapterBytes: z.ZodNumber;
56
+ timeoutMs: z.ZodNumber;
57
+ learningRate: z.ZodNumber;
58
+ seed: z.ZodNumber;
59
+ }, z.core.$strict>;
60
+ export type TaskPromotionGpu = z.infer<typeof TaskPromotionGpuSchema>;
61
+ export type TaskPromotionBounds = z.infer<typeof TaskPromotionBoundsSchema>;
62
+ export type TaskPromotionExample = z.infer<typeof caseSchema>;
63
+ export interface TaskPromotionCandidateEvidence {
64
+ id: string;
65
+ scopeId: string;
66
+ evidenceDigest: string;
67
+ independentSourceCount: number;
68
+ sources: ReadonlyArray<{
69
+ episodeId: string;
70
+ revision: string;
71
+ contentSha256: string;
72
+ }>;
73
+ }
74
+ interface TaskPromotionAuthority {
75
+ scopeId: string;
76
+ ownerId: string;
77
+ candidateId: string;
78
+ assertOwner(): void;
79
+ readCandidate(): TaskPromotionCandidateEvidence | undefined;
80
+ }
81
+ export interface TaskPromotionPlan {
82
+ schema: "omnius.task-memory-promotion-plan.v1";
83
+ id: string;
84
+ ownerScopeDigest: string;
85
+ candidate: TaskPromotionCandidateEvidence;
86
+ base: NolRuntimeBinding;
87
+ trainerSha256: string;
88
+ gpu: TaskPromotionGpu;
89
+ evaluatorSha256: string;
90
+ bounds: TaskPromotionBounds;
91
+ datasetDigest: string;
92
+ trainingDigest: string;
93
+ targetGeometryDigest: string;
94
+ heldOutDigest: string;
95
+ gate: {
96
+ minimumRecallGain: 1;
97
+ controls: "all_baseline_and_candidate_exact";
98
+ };
99
+ }
100
+ export interface PreparedTaskPromotion {
101
+ plan: TaskPromotionPlan;
102
+ modules: {
103
+ siteId: string;
104
+ path: string;
105
+ shape: number[];
106
+ }[];
107
+ training: TaskPromotionExample[];
108
+ heldOut: TaskPromotionExample[];
109
+ assertCurrent(): void;
110
+ }
111
+ export declare const TASK_PROMOTION_PARAMETER_NAME: RegExp;
112
+ export declare function prepareTaskMemoryPromotion(input: {
113
+ authority: TaskPromotionAuthority;
114
+ model: NolModelManifest;
115
+ binding: NolRuntimeBinding;
116
+ curriculum: unknown;
117
+ bounds: TaskPromotionBounds;
118
+ gpu: TaskPromotionGpu;
119
+ workerSha256: string;
120
+ }): PreparedTaskPromotion;
121
+ export declare const TaskPromotionArtifactSchema: z.ZodObject<{
122
+ schema: z.ZodLiteral<"omnius.task-memory-promotion-artifact.v1">;
123
+ planId: z.ZodString;
124
+ baseModelDigest: z.ZodString;
125
+ bindingDigest: z.ZodString;
126
+ trainingDigest: z.ZodString;
127
+ workerSha256: z.ZodString;
128
+ steps: z.ZodNumber;
129
+ placement: z.ZodObject<{
130
+ schema: z.ZodLiteral<"omnius.nol.cuda-placement.v1">;
131
+ pid: z.ZodNumber;
132
+ startIdentity: z.ZodString;
133
+ gpuUuid: z.ZodString;
134
+ computeCapability: z.ZodNumber;
135
+ checkedAt: z.ZodString;
136
+ }, z.core.$strict>;
137
+ factorHashes: z.ZodRecord<z.ZodString, z.ZodString>;
138
+ config: z.ZodObject<{
139
+ uri: z.ZodString;
140
+ sha256: z.ZodString;
141
+ sizeBytes: z.ZodNumber;
142
+ mediaType: z.ZodString;
143
+ }, z.core.$strict>;
144
+ weights: z.ZodObject<{
145
+ uri: z.ZodString;
146
+ sha256: z.ZodString;
147
+ sizeBytes: z.ZodNumber;
148
+ mediaType: z.ZodString;
149
+ }, z.core.$strict>;
150
+ }, z.core.$strict>;
151
+ export type TaskPromotionArtifact = z.infer<typeof TaskPromotionArtifactSchema>;
152
+ export interface TaskPromotionAdapter {
153
+ receipt: NolArtifactRef;
154
+ artifact: TaskPromotionArtifact;
155
+ }
156
+ export interface TaskPromotionBackend {
157
+ readonly identity: NolRuntimeBinding;
158
+ readonly workerSha256: string;
159
+ readonly gpu: TaskPromotionGpu;
160
+ train(input: {
161
+ plan: TaskPromotionPlan;
162
+ modules: PreparedTaskPromotion["modules"];
163
+ examples: TaskPromotionExample[];
164
+ }, outputDirectory: string, options: {
165
+ signal: AbortSignal;
166
+ assertCurrent(): void;
167
+ }): Promise<{
168
+ steps: number;
169
+ placement: NolCudaPlacement;
170
+ }>;
171
+ generate(input: {
172
+ adapterDirectory?: string;
173
+ prompts: Array<{
174
+ id: string;
175
+ prompt: string;
176
+ }>;
177
+ bounds: TaskPromotionBounds;
178
+ }, options: {
179
+ signal: AbortSignal;
180
+ assertCurrent(): void;
181
+ }): Promise<Array<{
182
+ id: string;
183
+ text: string;
184
+ }>>;
185
+ }
186
+ export declare function readTaskPromotionFile(path: string, maximum: number): Promise<Buffer>;
187
+ export declare function expectedTaskPromotionConfig(prepared: PreparedTaskPromotion): {
188
+ peft_type: string;
189
+ task_type: string;
190
+ target_modules: string;
191
+ r: number;
192
+ lora_alpha: number;
193
+ lora_dropout: number;
194
+ bias: string;
195
+ fan_in_fan_out: boolean;
196
+ inference_mode: boolean;
197
+ init_lora_weights: boolean;
198
+ use_rslora: boolean;
199
+ use_dora: boolean;
200
+ rank_pattern: {};
201
+ alpha_pattern: {};
202
+ };
203
+ export declare function verifyTaskPromotionFactors(weights: Buffer, prepared: PreparedTaskPromotion): Record<string, string>;
204
+ export declare function saveTaskPromotionArtifact(input: {
205
+ config: Buffer;
206
+ weights: Buffer;
207
+ steps: number;
208
+ placement: NolCudaPlacement;
209
+ prepared: PreparedTaskPromotion;
210
+ artifacts: Pick<NolArtifactStore, "putBytes" | "putJson">;
211
+ signal: AbortSignal;
212
+ }): Promise<TaskPromotionAdapter>;
213
+ export interface TaskPromotionQualification {
214
+ schema: "omnius.task-memory-promotion-qualification.v1";
215
+ planId: string;
216
+ adapterSha256: string;
217
+ heldOutDigest: string;
218
+ evidence: Array<{
219
+ id: string;
220
+ split: TaskPromotionExample["split"];
221
+ baseline: boolean;
222
+ candidate: boolean;
223
+ baselineResponseDigest: string;
224
+ candidateResponseDigest: string;
225
+ }>;
226
+ recall: {
227
+ baseline: number;
228
+ candidate: number;
229
+ total: number;
230
+ };
231
+ qualified: boolean;
232
+ }
233
+ export declare function scoreTaskPromotion(prepared: PreparedTaskPromotion, adapter: TaskPromotionAdapter, before: Array<{
234
+ id: string;
235
+ text: string;
236
+ }>, after: Array<{
237
+ id: string;
238
+ text: string;
239
+ }>): TaskPromotionQualification;
240
+ export {};
@@ -298704,6 +298704,9 @@ var memoryContentHash = (value) => createHash2("sha256").update(value).digest("h
298704
298704
  var stableMemoryHash = (value) => memoryContentHash(canonical(value));
298705
298705
  var UNBOUND = stableMemoryHash({ memoryBinding: "unavailable" });
298706
298706
 
298707
+ // packages/memory/dist/taskRecallMemory.js
298708
+ var MAX_SOURCE_BYTES2 = 256 * 1024;
298709
+
298707
298710
  // packages/memory/dist/virtualMemory.js
298708
298711
  var DEFAULT_CAPACITIES = {
298709
298712
  L0: 8e3,
@@ -1192,6 +1192,9 @@ function repairBrokenWrappers() {
1192
1192
  }
1193
1193
 
1194
1194
  function main() {
1195
+ if (process.env.npm_lifecycle_event === "postinstall" && process.env.npm_config_global !== "true") {
1196
+ return safeExit(0);
1197
+ }
1195
1198
  if (!ensureCoreCommandAvailable()) return fatalExit(1);
1196
1199
 
1197
1200
  // The coordinated worker already owns service handoff and verifies the
@@ -26,6 +26,11 @@ if (!NODE_MAJOR || NODE_MAJOR < 22) {
26
26
  process.exit(1);
27
27
  }
28
28
 
29
+ // A local dependency install leaves the installed user service alone.
30
+ if (process.env.npm_lifecycle_event === "preinstall" && process.env.npm_config_global !== "true") {
31
+ process.exit(0);
32
+ }
33
+
29
34
  // A coordinated self-update owns the exact PID/service lifecycle and verifies
30
35
  // the replacement runtime afterward. The generic install hook must not race
31
36
  // it by sweeping the configured port or killing an unattested process.
@@ -6316,6 +6316,39 @@ var InstrumentRail = class extends BoxRenderable9 {
6316
6316
  }
6317
6317
  };
6318
6318
 
6319
+ // packages/cli/src/tui/telegram-native-commands.ts
6320
+ var COMMANDS = [
6321
+ { command: "start", usage: "", description: "Show Telegram bridge and authentication status", menuRun: true },
6322
+ { command: "help", usage: "", description: "Show available Telegram commands", aliases: ["h"], menuRun: true },
6323
+ { command: "commands", usage: "", description: "Browse available Telegram commands", aliases: ["cmds"], menuRun: true },
6324
+ { command: "auth", usage: " <code>", description: "Authenticate with the code from the TUI", aliases: ["authenticate"] },
6325
+ { command: "stats", usage: "", description: "Show Telegram session and inference metrics", aliases: ["metrics"], menuRun: true },
6326
+ { command: "policy", usage: " [channel]", description: "Inspect or configure reply policy for this group" },
6327
+ { command: "reflect", usage: " [status|now|auto on|off]", description: "Run scoped Telegram chat reflection", aliases: ["reflection", "daydream", "dream"] },
6328
+ { command: "remind", usage: " <time> <text>", description: "Set a scoped Telegram reminder", capability: "workspace" },
6329
+ { command: "reminder", usage: " [list|pending|all|seen]", description: "Inspect or update scoped reminders", aliases: ["reminders"], capability: "workspace" },
6330
+ { command: "image", usage: " [list|setup]", description: "Browse image models and generation actions", menuRun: true },
6331
+ { command: "video", usage: " [list|setup]", description: "Browse video models and generation actions", adminOnly: true, menuRun: true },
6332
+ { command: "sound", usage: " [list|setup]", description: "Browse sound models and generation actions", adminOnly: true, menuRun: true },
6333
+ { command: "music", usage: " [list|setup]", description: "Browse music models and generation actions", adminOnly: true, menuRun: true },
6334
+ { command: "models", usage: " [cad|3d]", description: "Browse CAD and 3D models", adminOnly: true, menuRun: true },
6335
+ { command: "call", usage: "", description: "Get or request the active voice call link", capability: "call" },
6336
+ { command: "hangup", usage: "", description: "End an active voice call", adminOnly: true, capability: "hangup" },
6337
+ { command: "tasks", usage: " [list|show|graph|switch]", description: "Inspect saved project tasks and switch context", adminOnly: true, capability: "workspace", globalAdminOnly: true },
6338
+ { command: "agent", usage: " <task>", description: "Request a native sub-agent for a task", adminOnly: true, privateOnly: true, capability: "workspace" },
6339
+ { command: "model", usage: " [list|<model>]", description: "Show or select the Telegram inference model", adminOnly: true, privateOnly: true, capability: "model", menuRun: true },
6340
+ { command: "workmode", usage: " [status|plan|implement|default]", description: "Inspect or set native work permissions", adminOnly: true, privateOnly: true, capability: "workspace" },
6341
+ { command: "pause", usage: "", description: "Pause the current Telegram task", adminOnly: true, capability: "workspace", globalAdminOnly: true },
6342
+ { command: "resume", usage: "", description: "Resume the current Telegram task", adminOnly: true, capability: "workspace", globalAdminOnly: true },
6343
+ { command: "stop", usage: "", description: "Stop the current Telegram task", adminOnly: true, capability: "workspace", globalAdminOnly: true },
6344
+ { command: "tools", usage: " [chat <target>]", description: "Open Telegram tool controls", adminOnly: true, aliases: ["telegram_tools"] },
6345
+ { command: "cancel", usage: "", description: "Clear a pending Telegram generation prompt" },
6346
+ { command: "approve", usage: " <approval-id>", description: "Accept a pending exact Telegram approval", adminOnly: true, privateOnly: true, capability: "workspace", globalAdminOnly: true },
6347
+ { command: "deny", usage: " <approval-id>", description: "Decline a pending exact Telegram approval", adminOnly: true, privateOnly: true, capability: "workspace", globalAdminOnly: true }
6348
+ ];
6349
+ var nativeCommands = COMMANDS.map((entry) => ({ ...entry, canonical: entry.command }));
6350
+ var commandsByName = new Map(nativeCommands.flatMap((entry) => [entry.command, ...entry.aliases ?? []].map((name) => [name, entry])));
6351
+
6319
6352
  // packages/cli/src/tui/command-registry.ts
6320
6353
  var COMMAND_SIGNATURES = [
6321
6354
  ["/workmode plan [--artifact exact/path] | implement | default | status", "Select explicit native work permissions without automatic planning choreography"],
@@ -6586,6 +6619,10 @@ var COMMAND_SIGNATURES = [
6586
6619
  "Resume a paused task or choose a saved project chat"
6587
6620
  ],
6588
6621
  ["/resume <session>", "Resume a saved project chat by id or title"],
6622
+ ["/tasks", "List project tasks and their recorded status"],
6623
+ ["/tasks show <task-id>", "Show a task’s next action, decisions and evidence"],
6624
+ ["/tasks graph <task-id>", "Inspect a task’s recorded dependencies and evidence links"],
6625
+ ["/tasks switch <task-id>", "Select a saved task’s working set"],
6589
6626
  [
6590
6627
  "/destroy processes",
6591
6628
  "Find and kill orphaned Omnius child processes (this project)"
@@ -7037,6 +7074,7 @@ var CATEGORY_OVERRIDES = {
7037
7074
  pause: "session",
7038
7075
  stop: "session",
7039
7076
  resume: "session",
7077
+ tasks: "session",
7040
7078
  new: "session",
7041
7079
  context: "session",
7042
7080
  compact: "session",
@@ -7165,6 +7203,7 @@ var USER_ONLY = /* @__PURE__ */ new Set([
7165
7203
  "cls",
7166
7204
  "q",
7167
7205
  "queue",
7206
+ "tasks",
7168
7207
  "model",
7169
7208
  "endpoint",
7170
7209
  "parallel",
@@ -7333,7 +7372,7 @@ var REST_BLOCKED = /* @__PURE__ */ new Set([
7333
7372
  "paste",
7334
7373
  "indicator"
7335
7374
  ]);
7336
- var LOCAL_TUI_ONLY = /* @__PURE__ */ new Set(["indicator", "compacted", "gpu", "memory", "provider", "enhance", "nol", "workmode"]);
7375
+ var LOCAL_TUI_ONLY = /* @__PURE__ */ new Set(["indicator", "compacted", "gpu", "memory", "provider", "enhance", "nol", "workmode", "tasks"]);
7337
7376
  var CANONICAL_BY_ALIAS = /* @__PURE__ */ new Map();
7338
7377
  for (const [canonical, aliases2] of Object.entries(ALIASES)) {
7339
7378
  for (const alias of aliases2) CANONICAL_BY_ALIAS.set(alias, canonical);