open-agents-ai 0.187.433 → 0.187.435

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
@@ -514275,30 +514275,94 @@ var init_embeddingAligner = __esm({
514275
514275
  }
514276
514276
  });
514277
514277
 
514278
+ // packages/memory/dist/crl/memory.js
514279
+ var init_memory4 = __esm({
514280
+ "packages/memory/dist/crl/memory.js"() {
514281
+ "use strict";
514282
+ init_episodeStore();
514283
+ init_crl();
514284
+ }
514285
+ });
514286
+
514278
514287
  // packages/memory/dist/crl/index.js
514279
514288
  var CRL_SYMBOLS, SYMBOL_MEANINGS, CRLParser, CRLEncoder, CRLDecoder, CRLTemplateResolver, CRL;
514280
514289
  var init_crl = __esm({
514281
514290
  "packages/memory/dist/crl/index.js"() {
514282
514291
  "use strict";
514292
+ init_memory4();
514283
514293
  CRL_SYMBOLS = {
514284
- // Logical operators
514294
+ // Logical operators (Core)
514285
514295
  THEREFORE: "∴",
514296
+ // Conclusion marker (SymbCoT)
514286
514297
  BECAUSE: "∵",
514298
+ // Premise marker
514287
514299
  EQUIVALENT: "≡",
514300
+ // Definition/bidirectional
514301
+ DEFINITION: ":=",
514302
+ // Definitional equality
514288
514303
  IMPLIES: "→",
514304
+ // Forward implication
514289
514305
  BICONDITIONAL: "↔",
514306
+ // Mutual implication
514307
+ STRONG_IMPLIES: "⟹",
514308
+ // Logical entailment (Aristotle)
514309
+ STRONG_IMPLIED_BY: "⟸",
514310
+ // Reverse entailment
514311
+ STRONG_BICONDITIONAL: "⟺",
514312
+ // Logical equivalence
514290
514313
  NOT: "¬",
514314
+ // Negation
514291
514315
  AND: "∧",
514316
+ // Conjunction
514292
514317
  OR: "∨",
514318
+ // Disjunction
514293
514319
  XOR: "⊕",
514320
+ // Exclusive or
514321
+ TRUE: "⊤",
514322
+ // Tautology (LogicReward verification)
514323
+ FALSE: "⊥",
514324
+ // Contradiction
514325
+ // Proof Theory / Metalogical (Aristotle framework)
514326
+ PROVABLE: "⊢",
514327
+ // Syntactic derivability
514328
+ NOT_PROVABLE: "⊣",
514329
+ // Refutation
514330
+ MODELS: "⊨",
514331
+ // Semantic entailment
514332
+ NOT_MODELS: "⊭",
514333
+ // Semantic refutation
514334
+ FORCES: "⊩",
514335
+ // Kripke semantics
514336
+ NOT_PROVE: "⊬",
514337
+ // Underivability
514338
+ END_PROOF: "∎",
514339
+ // QED/tombstone
514340
+ NOTE: "※",
514341
+ // Annotation marker
514294
514342
  // Relational operators
514295
514343
  ELEMENT_OF: "∈",
514296
514344
  NOT_ELEMENT_OF: "∉",
514297
514345
  PROPER_SUBSET: "⊂",
514298
514346
  SUBSET_OR_EQUAL: "⊆",
514347
+ PROPER_SUPERSET: "⊃",
514348
+ SUPERSET_OR_EQUAL: "⊇",
514299
514349
  UNION: "∪",
514300
514350
  INTERSECTION: "∩",
514351
+ SET_DIFFERENCE: "∖",
514352
+ SYMMETRIC_DIFF: "△",
514301
514353
  EMPTY: "∅",
514354
+ POWER_SET: "℘",
514355
+ // Comparison operators
514356
+ EQUAL: "=",
514357
+ NOT_EQUAL: "≠",
514358
+ APPROXIMATELY: "≈",
514359
+ PROPORTIONAL: "∝",
514360
+ LESS_THAN: "<",
514361
+ GREATER_THAN: ">",
514362
+ LESS_OR_EQUAL: "≤",
514363
+ GREATER_OR_EQUAL: "≥",
514364
+ MUCH_LESS: "≪",
514365
+ MUCH_GREATER: "≫",
514302
514366
  // Temporal/Sequential
514303
514367
  THEN: "⇒",
514304
514368
  FROM: "⇐",
@@ -514306,54 +514370,109 @@ var init_crl = __esm({
514306
514370
  CYCLE: "↻",
514307
514371
  NEXT: "⏵",
514308
514372
  PREVIOUS: "⏴",
514309
- // Modal/Evidential
514373
+ // Modal/Evidential (MuSLR multimodal grounding)
514310
514374
  POSSIBLE: "◇",
514375
+ DIAMOND: "◊",
514376
+ // Possibility (alt)
514311
514377
  NECESSARY: "□",
514378
+ BOX: "◻",
514379
+ // Necessity (alt)
514312
514380
  OBSERVED: "⊙",
514381
+ // Empirical evidence
514313
514382
  UNCERTAIN: "?",
514314
514383
  CRITICAL: "!",
514315
514384
  APPROXIMATE: "~",
514385
+ NOT_POSSIBLE: "⟐",
514386
+ // Impossibility
514387
+ NOT_NECESSARY: "⟏",
514388
+ // Contingency
514316
514389
  // Quantifiers
514317
514390
  FOR_ALL: "∀",
514318
514391
  EXISTS: "∃",
514319
514392
  NOT_EXISTS: "∄",
514393
+ UNIQUE_EXISTS: "∃!",
514394
+ // Exactly one
514320
514395
  AGGREGATE: "∑",
514321
- PRODUCT: "∏"
514396
+ PRODUCT: "∏",
514397
+ MOST: "∀∃"
514398
+ // Majority quantifier
514322
514399
  };
514323
514400
  SYMBOL_MEANINGS = {
514401
+ // Logical operators (Core)
514324
514402
  "∴": "therefore",
514325
514403
  "∵": "because",
514326
514404
  "≡": "equivalent",
514405
+ ":=": "definition",
514327
514406
  "→": "implies",
514328
514407
  "↔": "biconditional",
514408
+ "⟹": "strong_implies",
514409
+ "⟸": "strong_implied_by",
514410
+ "⟺": "strong_biconditional",
514329
514411
  "¬": "not",
514330
514412
  "∧": "and",
514331
514413
  "∨": "or",
514332
514414
  "⊕": "xor",
514415
+ "⊤": "true",
514416
+ "⊥": "false",
514417
+ // Proof Theory / Metalogical (Aristotle framework)
514418
+ "⊢": "provable",
514419
+ "⊣": "not_provable",
514420
+ "⊨": "models",
514421
+ "⊭": "not_models",
514422
+ "⊩": "forces",
514423
+ "⊬": "not_prove",
514424
+ "∎": "end_proof",
514425
+ "※": "note",
514426
+ // Relational operators
514333
514427
  "∈": "element_of",
514334
514428
  "∉": "not_element_of",
514335
514429
  "⊂": "proper_subset",
514336
514430
  "⊆": "subset_or_equal",
514431
+ "⊃": "proper_superset",
514432
+ "⊇": "superset_or_equal",
514337
514433
  "∪": "union",
514338
514434
  "∩": "intersection",
514435
+ "∖": "set_difference",
514436
+ "△": "symmetric_difference",
514339
514437
  "∅": "empty",
514438
+ "℘": "power_set",
514439
+ // Comparison operators
514440
+ "=": "equal",
514441
+ "≠": "not_equal",
514442
+ "≈": "approximately",
514443
+ "∝": "proportional",
514444
+ "<": "less_than",
514445
+ ">": "greater_than",
514446
+ "≤": "less_or_equal",
514447
+ "≥": "greater_or_equal",
514448
+ "≪": "much_less",
514449
+ "≫": "much_greater",
514450
+ // Temporal/Sequential
514340
514451
  "⇒": "then",
514341
514452
  "⇐": "from",
514342
514453
  "⟳": "loop",
514343
514454
  "↻": "cycle",
514344
514455
  "⏵": "next",
514345
514456
  "⏴": "previous",
514457
+ // Modal/Evidential (MuSLR multimodal grounding)
514346
514458
  "◇": "possible",
514459
+ "◊": "diamond",
514347
514460
  "□": "necessary",
514461
+ "◻": "box",
514348
514462
  "⊙": "observed",
514349
514463
  "?": "uncertain",
514350
514464
  "!": "critical",
514351
514465
  "~": "approximate",
514466
+ "⟐": "not_possible",
514467
+ "⟏": "not_necessary",
514468
+ // Quantifiers
514352
514469
  "∀": "for_all",
514353
514470
  "∃": "exists",
514354
514471
  "∄": "not_exists",
514472
+ "∃!": "unique_exists",
514355
514473
  "∑": "aggregate",
514356
- "∏": "product"
514474
+ "∏": "product",
514475
+ "∀∃": "most"
514357
514476
  };
514358
514477
  CRLParser = class {
514359
514478
  pos = 0;
@@ -514543,28 +514662,74 @@ var init_crl = __esm({
514543
514662
  peek(offset = 0) {
514544
514663
  return this.input[this.pos + offset] || "";
514545
514664
  }
514665
+ // Extended quantifiers per LogicReward (ICLR 2026)
514546
514666
  isQuantifier(char) {
514547
- return ["∀", "∃", "∄", "∑", "∏"].includes(char);
514667
+ return ["∀", "∃", "∄", "∃!", "∑", "∏", "∀∃"].includes(char);
514548
514668
  }
514669
+ // Extended operators per Aristotle (ACL 2025) and MuSLR (NeurIPS 2025)
514549
514670
  isOperator(char) {
514550
514671
  return [
514551
514672
  "∴",
514552
514673
  "∵",
514553
514674
  "≡",
514675
+ ":=",
514554
514676
  "→",
514555
514677
  "↔",
514678
+ "⟹",
514679
+ "⟸",
514680
+ "⟺",
514556
514681
  "¬",
514557
514682
  "∧",
514558
514683
  "∨",
514559
514684
  "⊕",
514685
+ "⊤",
514686
+ "⊥",
514687
+ "⊢",
514688
+ "⊣",
514689
+ "⊨",
514690
+ "⊭",
514691
+ "⊩",
514692
+ "⊬",
514693
+ "∎",
514694
+ "※",
514560
514695
  "∈",
514561
514696
  "∉",
514562
514697
  "⊂",
514563
514698
  "⊆",
514699
+ "⊃",
514700
+ "⊇",
514564
514701
  "∪",
514565
514702
  "∩",
514703
+ "∖",
514704
+ "△",
514705
+ "∅",
514706
+ "℘",
514707
+ "=",
514708
+ "≠",
514709
+ "≈",
514710
+ "∝",
514711
+ "<",
514712
+ ">",
514713
+ "≤",
514714
+ "≥",
514715
+ "≪",
514716
+ "≫",
514566
514717
  "⇒",
514567
- "⇐"
514718
+ "⇐",
514719
+ "⟳",
514720
+ "↻",
514721
+ "⏵",
514722
+ "⏴",
514723
+ "◇",
514724
+ "◊",
514725
+ "□",
514726
+ "◻",
514727
+ "⊙",
514728
+ "?",
514729
+ "!",
514730
+ "~",
514731
+ "⟐",
514732
+ "⟏"
514568
514733
  ].includes(char);
514569
514734
  }
514570
514735
  };
@@ -514574,9 +514739,13 @@ var init_crl = __esm({
514574
514739
  * Encode natural language text to CRL
514575
514740
  */
514576
514741
  encode(text) {
514577
- const concepts = this.extractConcepts(text);
514578
- const relations = this.extractRelations(text, concepts);
514579
- return this.buildExpression(concepts, relations);
514742
+ let result = this.compress(text);
514743
+ const concepts = this.extractConcepts(result);
514744
+ const relations = this.extractRelations(result, concepts);
514745
+ if (relations.length > 0) {
514746
+ return this.buildExpression(concepts, relations);
514747
+ }
514748
+ return result;
514580
514749
  }
514581
514750
  /**
514582
514751
  * Extract key concepts from text
@@ -514777,13 +514946,16 @@ var init_crl = __esm({
514777
514946
  "⇒": "then",
514778
514947
  "⇐": "from"
514779
514948
  };
514780
- const from3 = this.renderConcept(node.from);
514781
- const to = this.renderConcept(node.to);
514949
+ const from3 = node.from ? this.renderConcept(node.from) : "";
514950
+ const to = node.to ? this.renderConcept(node.to) : "";
514782
514951
  const op = operatorMeanings[node.operator] || node.operator;
514783
514952
  if (node.edgeType) {
514784
514953
  return `${from3} ${node.edgeType} ${to}`;
514785
514954
  }
514786
- return `${from3} ${op} ${to}`;
514955
+ if (from3 && to) {
514956
+ return `${from3} ${op} ${to}`;
514957
+ }
514958
+ return op;
514787
514959
  }
514788
514960
  /**
514789
514961
  * Expand CRL symbols to natural language
@@ -514832,25 +515004,24 @@ var init_crl = __esm({
514832
515004
  });
514833
515005
  }
514834
515006
  resolveTemplate(template, context2) {
514835
- const parts = template.split(/[:|→]/);
514836
- const variable = parts[0].trim();
514837
- const defaultValue = parts[1]?.trim();
514838
- const typeAnnotation = parts[2]?.trim();
514839
515007
  let value2;
514840
- if (variable.startsWith("ctx:")) {
514841
- const ctxVar = variable.substring(5);
515008
+ if (template.startsWith("ctx:")) {
515009
+ const ctxVar = template.substring(4);
514842
515010
  value2 = context2[ctxVar];
514843
- } else if (variable.startsWith("mem:")) {
514844
- const memVar = variable.substring(4);
515011
+ } else if (template.startsWith("mem:")) {
515012
+ const memVar = template.substring(4);
514845
515013
  const memArray = context2.memories?.[memVar];
514846
515014
  value2 = memArray?.join(", ");
514847
- } else if (variable.startsWith("state:")) {
514848
- const stateVar = variable.substring(6);
515015
+ } else if (template.startsWith("state:")) {
515016
+ const stateVar = template.substring(6);
514849
515017
  value2 = context2.state?.[stateVar];
514850
515018
  } else {
514851
- value2 = context2.variables?.[variable];
515019
+ const parts = template.split(/[:|→]/);
515020
+ const variable = parts[0].trim();
515021
+ const defaultValue = parts[1]?.trim();
515022
+ value2 = context2.variables?.[variable] || defaultValue;
514852
515023
  }
514853
- return value2 || defaultValue || `[${variable}]`;
515024
+ return value2 || `[${template}]`;
514854
515025
  }
514855
515026
  };
514856
515027
  CRL = {
@@ -514887,8 +515058,8 @@ var init_crl = __esm({
514887
515058
  /**
514888
515059
  * Resolve templates with context
514889
515060
  */
514890
- resolve(crl, context2) {
514891
- return this.resolver.resolve(crl, context2);
515061
+ resolve(template, context2) {
515062
+ return this.resolver.resolve(template, context2);
514892
515063
  }
514893
515064
  };
514894
515065
  }
@@ -535566,7 +535737,7 @@ ${CONTENT_BG_SEQ}`);
535566
535737
  const w = getTermWidth();
535567
535738
  const pos = this.rowPositions(rows);
535568
535739
  const inputWrap = this.wrapInput(w);
535569
- const cursorRow = pos.inputStartRow + inputWrap.cursorRow;
535740
+ const cursorRow = pos.inputStartRow + 1 + inputWrap.cursorRow;
535570
535741
  const cursorCol = inputWrap.cursorCol;
535571
535742
  if (process.env.OA_DEBUG_CURSOR === "1") {
535572
535743
  console.error(`[CURSOR DEBUG] parkCursorInInput: row=${cursorRow}, col=${cursorCol}, inputStartRow=${pos.inputStartRow}, cursorRow=${inputWrap.cursorRow}, writeDepth=${this.writeDepth}`);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.433",
3
+ "version": "0.187.435",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "open-agents-ai",
9
- "version": "0.187.433",
9
+ "version": "0.187.435",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.433",
3
+ "version": "0.187.435",
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/index.js",