omnius 1.0.711 → 1.0.712

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/index.js CHANGED
@@ -661213,116 +661213,6 @@ function parseMemoryCompilationProposal(value2) {
661213
661213
  confidence: confidence2
661214
661214
  };
661215
661215
  }
661216
- function boundedIdSchema(ids) {
661217
- return ids.length > 0 ? { type: "string", enum: ids } : { type: "string", minLength: 1, maxLength: 256 };
661218
- }
661219
- function memoryCompilationProposalResponseFormat(input) {
661220
- const changeId = boundedIdSchema(input.mutableIds);
661221
- const candidateId = boundedIdSchema(input.candidateIds);
661222
- const claimId = boundedIdSchema(input.claimIds);
661223
- const baseProperties = {
661224
- id: changeId,
661225
- rationale: { type: "string", minLength: 1, maxLength: 1e3 }
661226
- };
661227
- const changeSchema = (disposition, properties = {}, required = []) => ({
661228
- type: "object",
661229
- additionalProperties: false,
661230
- properties: {
661231
- ...baseProperties,
661232
- disposition: { const: disposition },
661233
- ...properties
661234
- },
661235
- required: ["id", "disposition", "rationale", ...required]
661236
- });
661237
- const changeSchemas = [
661238
- changeSchema("retain_partial", {
661239
- spans: {
661240
- type: "array",
661241
- minItems: 1,
661242
- maxItems: 256,
661243
- items: {
661244
- type: "object",
661245
- additionalProperties: false,
661246
- properties: {
661247
- start: { type: "integer", minimum: 1 },
661248
- end: { type: "integer", minimum: 1 }
661249
- },
661250
- required: ["start", "end"]
661251
- }
661252
- }
661253
- }, ["spans"]),
661254
- changeSchema("retain_reference"),
661255
- changeSchema("compact_event", {
661256
- event: {
661257
- type: "object",
661258
- additionalProperties: false,
661259
- properties: {
661260
- type: { type: "string", minLength: 1, maxLength: 128 },
661261
- message: { type: "string", minLength: 1, maxLength: 2e3 }
661262
- },
661263
- required: ["type", "message"]
661264
- }
661265
- }, ["event"]),
661266
- changeSchema("compact_summary", { summary: { type: "string", minLength: 1, maxLength: 4e3 } }, ["summary"]),
661267
- ...input.archivableIds.length > 0 ? [
661268
- changeSchema("archive", {
661269
- id: boundedIdSchema(input.archivableIds),
661270
- archiveReason: {
661271
- type: "string",
661272
- enum: ["completed", "superseded", "noise"]
661273
- }
661274
- }, ["archiveReason"])
661275
- ] : []
661276
- ];
661277
- return {
661278
- type: "json_schema",
661279
- json_schema: {
661280
- name: "memory_compilation_proposal_v1",
661281
- strict: true,
661282
- schema: {
661283
- type: "object",
661284
- additionalProperties: false,
661285
- properties: {
661286
- proposalVersion: { const: 1 },
661287
- decision: { type: "string", enum: ["compact", "hold"] },
661288
- requestFingerprint: { const: input.requestFingerprint },
661289
- changes: {
661290
- type: "array",
661291
- maxItems: input.mutableIds.length,
661292
- items: {
661293
- oneOf: changeSchemas
661294
- }
661295
- },
661296
- supersede: {
661297
- type: "array",
661298
- maxItems: input.candidateIds.length,
661299
- items: {
661300
- type: "object",
661301
- additionalProperties: false,
661302
- properties: { old: candidateId, next: candidateId },
661303
- required: ["old", "next"]
661304
- }
661305
- },
661306
- unresolvedClaims: {
661307
- type: "array",
661308
- maxItems: input.claimIds.length,
661309
- items: claimId
661310
- },
661311
- confidence: { type: "number", minimum: 0, maximum: 1 }
661312
- },
661313
- required: [
661314
- "proposalVersion",
661315
- "decision",
661316
- "requestFingerprint",
661317
- "changes",
661318
- "supersede",
661319
- "unresolvedClaims",
661320
- "confidence"
661321
- ]
661322
- }
661323
- }
661324
- };
661325
- }
661326
661216
  async function analyzeMemoryDelta(backend, input) {
661327
661217
  const candidatePayload = input.candidates.map((record) => ({
661328
661218
  id: record.id,
@@ -661504,13 +661394,12 @@ Repair attempt ${attempt}: the prior response failed ${lastRepairFailure}. Retur
661504
661394
  preferNativeOllamaChat: true,
661505
661395
  numCtx: input.budget.modelContextTokens,
661506
661396
  poolQueueTimeoutMs: Math.min(MEMORY_COMPILER_POOL_QUEUE_TIMEOUT_MS, remainingMs),
661507
- responseFormat: memoryCompilationProposalResponseFormat({
661508
- requestFingerprint: input.budget.requestFingerprint,
661509
- candidateIds: input.candidates.map((record) => record.id),
661510
- mutableIds: mutableRecords.map((record) => record.id),
661511
- archivableIds: mutableRecords.filter((record) => record.authority !== "tool_data").map((record) => record.id),
661512
- claimIds: input.candidates.filter((record) => record.kind === "claim").map((record) => record.id)
661513
- })
661397
+ // Ollama's native `format` accepts JSON mode consistently, while its
661398
+ // supported JSON-Schema subset varies by runner. A candidate-scaled
661399
+ // schema can be rejected before generation (HTTP 400), so constrain
661400
+ // syntax here and enforce every semantic/authority invariant in the
661401
+ // strict trusted parser and hydration boundary below.
661402
+ responseFormat: { type: "json_object" }
661514
661403
  });
661515
661404
  } catch (error) {
661516
661405
  lastFailure = "backend_error";
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.711",
3
+ "version": "1.0.712",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.711",
9
+ "version": "1.0.712",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.711",
3
+ "version": "1.0.712",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/library.js",