omnius 1.0.953 → 1.0.955

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 (45) hide show
  1. package/dist/_types/execution/native-file-write-observation.d.ts +19 -0
  2. package/dist/_types/execution/native-memory-view-provider.d.ts +84 -0
  3. package/dist/_types/execution/shell-runs.d.ts +4 -0
  4. package/dist/_types/execution/tool-output-spool.d.ts +61 -0
  5. package/dist/_types/execution/tools/file-write.d.ts +53 -0
  6. package/dist/_types/execution/types.d.ts +34 -0
  7. package/dist/_types/execution/work-mode-capability.d.ts +23 -0
  8. package/dist/_types/memory/candidateCoverage.d.ts +23 -0
  9. package/dist/_types/memory/embeddings.d.ts +1 -1
  10. package/dist/_types/memory/memoryCapability.d.ts +259 -0
  11. package/dist/_types/memory/memorySourceResolver.d.ts +131 -0
  12. package/dist/_types/memory/memoryTypes.d.ts +16 -0
  13. package/dist/_types/memory/structuredMemoryStore.d.ts +63 -6
  14. package/dist/_types/memory/unifiedMemoryStore.d.ts +12 -1
  15. package/dist/_types/orchestrator/agenticRunner.d.ts +236 -48
  16. package/dist/_types/orchestrator/authored-instruction-context.d.ts +59 -0
  17. package/dist/_types/orchestrator/authored-instruction-revisions.d.ts +56 -0
  18. package/dist/_types/orchestrator/authored-instruction-sources.d.ts +60 -0
  19. package/dist/_types/orchestrator/auxiliary-context-operation.d.ts +196 -0
  20. package/dist/_types/orchestrator/brokered-tool-composition.d.ts +141 -0
  21. package/dist/_types/orchestrator/completionReadiness.d.ts +2 -2
  22. package/dist/_types/orchestrator/confined-composition-worker.d.ts +45 -0
  23. package/dist/_types/orchestrator/contentAddressedArtifactStore.d.ts +173 -0
  24. package/dist/_types/orchestrator/contextWindowDump.d.ts +4 -0
  25. package/dist/_types/orchestrator/explicit-work-mode.d.ts +92 -0
  26. package/dist/_types/orchestrator/interruption-lifecycle.d.ts +3 -0
  27. package/dist/_types/orchestrator/memory-capability-context.d.ts +49 -0
  28. package/dist/_types/orchestrator/owned-inference-wait.d.ts +123 -0
  29. package/dist/_types/orchestrator/owned-model-wait.d.ts +26 -0
  30. package/dist/_types/orchestrator/provider-context-contract.d.ts +78 -0
  31. package/dist/_types/orchestrator/request-tool-capabilities.d.ts +52 -0
  32. package/dist/_types/orchestrator/structured-memory-extraction-worker.d.ts +20 -0
  33. package/dist/_types/orchestrator/structuredMemoryInference.d.ts +12 -0
  34. package/dist/_types/orchestrator/successful-procedure-memory.d.ts +35 -0
  35. package/dist/api/py-embed.js +70 -17
  36. package/dist/index.js +2 -2
  37. package/dist/library.js +115267 -108004
  38. package/dist/memory-maintenance-worker.js +486 -81
  39. package/dist/omni-setup-worker.js +83 -30
  40. package/dist/tui/native/worker.js +3 -1
  41. package/dist/update-worker-runtime.js +270 -126
  42. package/docs/DISCOVERY.json +63 -0
  43. package/docs/DISCOVERY.md +1 -0
  44. package/npm-shrinkwrap.json +2 -2
  45. package/package.json +1 -1
@@ -33,6 +33,30 @@ export interface SuccessfulProcedureDeliveryFile extends SuccessfulProcedureFile
33
33
  /** Exact operation payload hash, including the actual rendered chunk. */
34
34
  expectedTextSha256: string;
35
35
  }
36
+ export interface HistoricalProcedureContextV1 {
37
+ schema: "omnius.procedure-history-context.v1";
38
+ runtimeFingerprint?: string;
39
+ /** Only the last request catalogue, never a version attestation for prior actions. */
40
+ lastRequest?: {
41
+ logicalRequestId: string;
42
+ catalogueSha256: string;
43
+ };
44
+ usedTools: Array<{
45
+ tool: string;
46
+ revisionStatus: "unknown";
47
+ }>;
48
+ exceptions: string[];
49
+ exceptionCoverage: "not_recorded" | "recorded_only";
50
+ }
51
+ export declare function buildHistoricalProcedureContext(input: {
52
+ runtimeFingerprint?: string;
53
+ lastRequest?: {
54
+ logicalRequestId?: string;
55
+ catalogueSha256?: string;
56
+ } | null;
57
+ usedTools: string[];
58
+ exceptions?: string[];
59
+ }): HistoricalProcedureContextV1;
36
60
  export interface SuccessfulProcedureInput {
37
61
  scope: UserTaskNoteScope;
38
62
  runId: string;
@@ -42,6 +66,7 @@ export interface SuccessfulProcedureInput {
42
66
  preconditions: string[];
43
67
  actions: SuccessfulProcedureAction[];
44
68
  trace: SuccessfulProcedureFile;
69
+ historicalContext?: HistoricalProcedureContextV1;
45
70
  completion: {
46
71
  terminalReceipt: SuccessfulProcedureFile;
47
72
  providerDelivery?: {
@@ -97,6 +122,16 @@ export declare class SuccessfulProcedureMemory {
97
122
  runOnce(signal?: AbortSignal): Promise<MemoryWorkerRunResult>;
98
123
  };
99
124
  record(input: SuccessfulProcedureInput): Promise<boolean>;
125
+ /** Explicit native view: existing records only, no embedding, access writes or workers. */
126
+ nativeCases(input: {
127
+ scope: UserTaskNoteScope;
128
+ query: string;
129
+ limit?: number;
130
+ }): Array<{
131
+ id: string;
132
+ version: string;
133
+ text: string;
134
+ }>;
100
135
  recall(input: {
101
136
  scope: UserTaskNoteScope;
102
137
  query: string;
@@ -80996,13 +80996,13 @@ ${lanes.join("\n")}
80996
80996
  if (!headMessage2 && maybeSuppress) {
80997
80997
  const savedErrorState = captureErrorCalculationState();
80998
80998
  reportRelationError(headMessage2, source2, target2);
80999
- let canonical;
80999
+ let canonical2;
81000
81000
  if (errorInfo && errorInfo !== savedErrorState.errorInfo) {
81001
- canonical = { code: errorInfo.code, messageText: errorInfo.messageText };
81001
+ canonical2 = { code: errorInfo.code, messageText: errorInfo.messageText };
81002
81002
  }
81003
81003
  resetErrorInfo(savedErrorState);
81004
- if (canonical && errorInfo) {
81005
- errorInfo.canonicalHead = canonical;
81004
+ if (canonical2 && errorInfo) {
81005
+ errorInfo.canonicalHead = canonical2;
81006
81006
  }
81007
81007
  lastSkippedInfo = [source2, target2];
81008
81008
  return;
@@ -248919,6 +248919,9 @@ var runContextStorage = new AsyncLocalStorage2();
248919
248919
  // packages/execution/dist/index.js
248920
248920
  init_network_egress_policy();
248921
248921
 
248922
+ // packages/execution/dist/tool-output-spool.js
248923
+ var TOOL_OUTPUT_LIMITS = Object.freeze({ perProcessBytes: 16 * 1024 * 1024, workspaceBytes: 256 * 1024 * 1024, pageBytes: 65536, entries: 4096 });
248924
+
248922
248925
  // packages/execution/dist/shell-run-control.js
248923
248926
  init_process_lifecycle();
248924
248927
  init_process_kill();
@@ -248930,6 +248933,18 @@ init_process_lifecycle();
248930
248933
  // packages/execution/dist/tools/desktop-control.js
248931
248934
  init_system_deps();
248932
248935
 
248936
+ // packages/execution/dist/tools/change-log.js
248937
+ import { randomBytes } from "node:crypto";
248938
+ var _sessionId = `session-${Date.now()}-${randomBytes(3).toString("hex")}`;
248939
+
248940
+ // packages/execution/dist/tools/text-encoding.js
248941
+ import { TextDecoder as TextDecoder2 } from "node:util";
248942
+ var UTF8_DECODER = new TextDecoder2("utf-8", { fatal: true });
248943
+
248944
+ // packages/execution/dist/tools/file-mutation.js
248945
+ import { TextDecoder as TextDecoder3 } from "node:util";
248946
+ var utf8 = new TextDecoder3("utf-8", { fatal: true, ignoreBOM: true });
248947
+
248933
248948
  // packages/execution/dist/tools/archive-extract.js
248934
248949
  init_process_async();
248935
248950
  var EXTRACT = String.raw`
@@ -249069,18 +249084,6 @@ except BaseException as error:
249069
249084
  sys.exit(1)
249070
249085
  `;
249071
249086
 
249072
- // packages/execution/dist/tools/change-log.js
249073
- import { randomBytes } from "node:crypto";
249074
- var _sessionId = `session-${Date.now()}-${randomBytes(3).toString("hex")}`;
249075
-
249076
- // packages/execution/dist/tools/text-encoding.js
249077
- import { TextDecoder as TextDecoder2 } from "node:util";
249078
- var UTF8_DECODER = new TextDecoder2("utf-8", { fatal: true });
249079
-
249080
- // packages/execution/dist/tools/file-mutation.js
249081
- import { TextDecoder as TextDecoder3 } from "node:util";
249082
- var utf8 = new TextDecoder3("utf-8", { fatal: true, ignoreBOM: true });
249083
-
249084
249087
  // packages/execution/dist/tools/grep-search.js
249085
249088
  import { execFile as execFile2 } from "node:child_process";
249086
249089
  import { promisify as promisify2 } from "node:util";
@@ -297075,6 +297078,57 @@ except Exception as exc:
297075
297078
  sys.exit(1)
297076
297079
  `;
297077
297080
 
297081
+ // packages/memory/dist/memoryCapability.js
297082
+ import { createHash as createHash2, randomUUID as randomUUID2 } from "node:crypto";
297083
+ var MEMORY_NAMESPACES = Object.freeze({
297084
+ projectUnified: "project_unified_memory",
297085
+ projectLegacy: "project_legacy_memory",
297086
+ telegramChat: "telegram_chat",
297087
+ task: "task_evidence",
297088
+ structured: "structured_records",
297089
+ folds: "context_folds",
297090
+ procedures: "successful_procedures"
297091
+ });
297092
+ var MEMORY_CONTRACT_LIMITS = Object.freeze({
297093
+ scopes: 64,
297094
+ scopeIds: 256,
297095
+ matches: 100,
297096
+ branches: 16,
297097
+ stages: 64,
297098
+ sourceRefs: 512,
297099
+ spans: 128,
297100
+ parents: 128,
297101
+ textChars: 65536,
297102
+ fieldChars: 512,
297103
+ routes: 32,
297104
+ traceBytes: 262144
297105
+ });
297106
+ var MemoryContractError = class extends Error {
297107
+ code;
297108
+ constructor(code) {
297109
+ super(`Memory contract: ${code}`);
297110
+ this.code = code;
297111
+ this.name = "MemoryContractError";
297112
+ }
297113
+ };
297114
+ var record = (x) => !!x && typeof x === "object" && !Array.isArray(x);
297115
+ function canonical(value, depth = 0) {
297116
+ if (depth > 32)
297117
+ throw new MemoryContractError("value_depth_exceeded");
297118
+ if (value === null || typeof value === "string" || typeof value === "boolean")
297119
+ return JSON.stringify(value);
297120
+ if (typeof value === "number" && Number.isFinite(value))
297121
+ return JSON.stringify(value);
297122
+ if (Array.isArray(value))
297123
+ return `[${value.map((v) => canonical(v, depth + 1)).join(",")}]`;
297124
+ if (record(value) && (Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null))
297125
+ return `{${Object.keys(value).filter((k) => value[k] !== void 0).sort().map((k) => `${JSON.stringify(k)}:${canonical(value[k], depth + 1)}`).join(",")}}`;
297126
+ throw new MemoryContractError("non_json_value");
297127
+ }
297128
+ var memoryContentHash = (value) => createHash2("sha256").update(value).digest("hex");
297129
+ var stableMemoryHash = (value) => memoryContentHash(canonical(value));
297130
+ var UNBOUND = stableMemoryHash({ memoryBinding: "unavailable" });
297131
+
297078
297132
  // packages/memory/dist/virtualMemory.js
297079
297133
  var DEFAULT_CAPACITIES = {
297080
297134
  L0: 8e3,
@@ -298158,7 +298212,6 @@ var CONSTANTS = {
298158
298212
  };
298159
298213
 
298160
298214
  // packages/execution/dist/tools/repl.js
298161
- init_process_kill();
298162
298215
  init_process_lifecycle();
298163
298216
 
298164
298217
  // packages/execution/dist/index.js
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/index.js
3
- size: 41538921 bytes
4
- sha256: 5f8ede02921852c73302df1303393e8eb88a3a4a4ec576b45f993f33b138dde7
3
+ size: 42390118 bytes
4
+ sha256: 93fa66e706c9c55d0cb17f47117a55a0f13c7d4bb639f4cb18cbd2bc754f6d42