@sema-agent/core 5.45.0 → 5.46.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 (69) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/agents/subagent.js +1 -1
  3. package/dist/core/checkpoint-store.d.ts +12 -0
  4. package/dist/core/hooks.d.ts +9 -2
  5. package/dist/core/hooks.js +6 -5
  6. package/dist/core/memory-engine/content-origin.d.ts +3 -1
  7. package/dist/core/memory-engine/engine.d.ts +50 -3
  8. package/dist/core/memory-engine/engine.js +194 -32
  9. package/dist/core/memory-engine/export-bundle.d.ts +10 -1
  10. package/dist/core/memory-engine/export-bundle.js +21 -0
  11. package/dist/core/memory-engine/file-backend.d.ts +33 -4
  12. package/dist/core/memory-engine/file-backend.js +165 -39
  13. package/dist/core/memory-engine/frontmatter.d.ts +42 -1
  14. package/dist/core/memory-engine/frontmatter.js +141 -1
  15. package/dist/core/memory-engine/header-hints.d.ts +17 -0
  16. package/dist/core/memory-engine/header-hints.js +6 -0
  17. package/dist/core/memory-engine/index.d.ts +4 -3
  18. package/dist/core/memory-engine/index.js +3 -2
  19. package/dist/core/memory-engine/layout.d.ts +25 -2
  20. package/dist/core/memory-engine/layout.js +25 -12
  21. package/dist/core/memory-engine/memory-backend-contract.js +65 -0
  22. package/dist/core/memory-engine/sync-client.d.ts +1 -1
  23. package/dist/core/memory-engine/sync-client.js +33 -1
  24. package/dist/core/memory-engine/tools.d.ts +7 -0
  25. package/dist/core/memory-engine/tools.js +3 -0
  26. package/dist/core/memory-engine/types.d.ts +75 -1
  27. package/dist/core/memory-engine/types.js +1 -1
  28. package/dist/core/reminder-mint.d.ts +70 -0
  29. package/dist/core/reminder-mint.js +25 -0
  30. package/dist/core/runner/git-status-frame.d.ts +3 -14
  31. package/dist/core/runner/git-status-frame.js +39 -14
  32. package/dist/core/runner/prepare-config-doors.d.ts +4 -0
  33. package/dist/core/runner/prepare-config-doors.js +15 -0
  34. package/dist/core/runner/prepare-hands-readface.d.ts +5 -11
  35. package/dist/core/runner/prepare-hands-readface.js +26 -0
  36. package/dist/core/runner/prepare-memory.d.ts +11 -0
  37. package/dist/core/runner/prepare-memory.js +12 -10
  38. package/dist/core/runner/prepare-task.d.ts +22 -1
  39. package/dist/core/runner/prepare-task.js +48 -13
  40. package/dist/core/runner/runtask.js +62 -55
  41. package/dist/core/side-query.d.ts +11 -1
  42. package/dist/core/side-query.js +3 -0
  43. package/dist/core/types.d.ts +47 -7
  44. package/dist/engine/harness/types.d.ts +46 -1
  45. package/dist/engine/harness/types.js +11 -0
  46. package/dist/engine/session/import-validate.js +6 -1
  47. package/dist/engine/session/session.d.ts +20 -0
  48. package/dist/engine/session/session.js +26 -1
  49. package/dist/index.d.ts +2 -1
  50. package/dist/index.js +2 -1
  51. package/dist/orchestration/run-workflow-tool.d.ts +16 -0
  52. package/dist/orchestration/run-workflow-tool.js +23 -3
  53. package/dist/orchestration/workflow-governance.d.ts +8 -1
  54. package/dist/prompt-assembly/epoch.js +2 -0
  55. package/dist/prompt-assembly/types.d.ts +6 -0
  56. package/dist/prompts/default.d.ts +13 -1
  57. package/dist/prompts/default.js +5 -1
  58. package/dist/tools/fs/fs-bash.d.ts +4 -0
  59. package/dist/tools/fs/fs-bash.js +1 -1
  60. package/dist/tools/fs/fs-read.d.ts +1 -1
  61. package/dist/tools/fs/fs-read.js +8 -7
  62. package/dist/tools/fs/fs-shared.d.ts +10 -4
  63. package/dist/tools/fs/fs-shared.js +6 -3
  64. package/dist/tools/fs/gh-rate-limit.d.ts +4 -1
  65. package/dist/tools/fs/gh-rate-limit.js +3 -2
  66. package/dist/tools/fs/index.d.ts +10 -2
  67. package/dist/tools/fs/index.js +2 -1
  68. package/package.json +1 -1
  69. package/test/export-surface.snapshot.json +12 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_comment": "design/87 L3 — frozen public export surface of src/index.ts (name -> kind). DO NOT edit by hand to silence a red test. A removed/changed entry = a SemVer-BREAKING change; bump MAJOR and update this fixture in the SAME commit (design/87 §4.2 / §5.2). Regenerate via REGEN in test/export-surface.test.ts.",
3
- "count": 1606,
3
+ "count": 1617,
4
4
  "exports": {
5
5
  "A2ATaskState": "type",
6
6
  "A2ATaskStateReversal": "type",
@@ -437,6 +437,7 @@
437
437
  "MEMORY_INDEX_MAX_BYTES": "variable",
438
438
  "MEMORY_INDEX_MAX_LINES": "variable",
439
439
  "MEMORY_INSTRUCTION_TEMPLATE": "variable",
440
+ "MEMORY_ORIGIN_CAUSES": "variable",
440
441
  "MEMORY_PREFERENCE_DISCIPLINE": "variable",
441
442
  "MEMORY_READONLY_NOTICE": "variable",
442
443
  "MEMORY_RECALL_DISCIPLINE": "variable",
@@ -476,6 +477,7 @@
476
477
  "MemoryEntry": "interface",
477
478
  "MemoryEntryFrontmatter": "interface",
478
479
  "MemoryEntryHeader": "interface",
480
+ "MemoryEntryOrigin": "interface",
479
481
  "MemoryErasureAttestation": "interface",
480
482
  "MemoryExportBundle": "interface",
481
483
  "MemoryExportSnapshot": "interface",
@@ -487,6 +489,7 @@
487
489
  "MemoryNoteHeader": "interface",
488
490
  "MemoryNoteRecord": "interface",
489
491
  "MemoryNoteType": "type",
492
+ "MemoryOriginCause": "type",
490
493
  "MemoryPromptArtifactStore": "class",
491
494
  "MemoryPromptSourceStateStore": "class",
492
495
  "MemoryReadDetails": "type",
@@ -1173,6 +1176,7 @@
1173
1176
  "clearStaleToolResults": "function",
1174
1177
  "collectBelowFrontier": "function",
1175
1178
  "combinePolicies": "function",
1179
+ "committedOriginOf": "function",
1176
1180
  "compileReadDeny": "function",
1177
1181
  "compileWriteProtection": "function",
1178
1182
  "complianceCallDenial": "function",
@@ -1344,6 +1348,7 @@
1344
1348
  "inspectDegenerate": "function",
1345
1349
  "isApprovalSettledBy": "function",
1346
1350
  "isDelegatedAgentTerminal": "function",
1351
+ "isInstructionEntry": "function",
1347
1352
  "isIsolated": "function",
1348
1353
  "isModelGatedForClass": "function",
1349
1354
  "isPersonalScope": "function",
@@ -1358,6 +1363,7 @@
1358
1363
  "isTerminalWorkflowStatus": "function",
1359
1364
  "isThinkingLevel": "function",
1360
1365
  "isValidCronExpr": "function",
1366
+ "isValidReminderMark": "function",
1361
1367
  "isWslBashLauncher": "function",
1362
1368
  "isolationPermitsAutoAccept": "function",
1363
1369
  "jaccardDistance": "function",
@@ -1392,7 +1398,9 @@
1392
1398
  "migrateScope": "function",
1393
1399
  "mintCheckpointId": "function",
1394
1400
  "mintCheckpointToken": "function",
1401
+ "mintReminderMark": "function",
1395
1402
  "mintRuleTicket": "function",
1403
+ "mintSystemReminder": "function",
1396
1404
  "missingRestoreSurface": "function",
1397
1405
  "modelCostToPricing": "function",
1398
1406
  "mysqlQuery": "function",
@@ -1405,8 +1413,10 @@
1405
1413
  "normalizeRules": "function",
1406
1414
  "normalizeToolResultProvenance": "function",
1407
1415
  "ok": "function",
1416
+ "openSystemReminder": "function",
1408
1417
  "orgRuleStatePersistenceOf": "function",
1409
1418
  "orgRuleVerdictFor": "function",
1419
+ "originEquals": "function",
1410
1420
  "oversizeJournalResult": "function",
1411
1421
  "parseAllowRuleText": "function",
1412
1422
  "parseAutoModeResponse": "function",
@@ -1463,6 +1473,7 @@
1463
1473
  "releaseSessionRetainLedger": "function",
1464
1474
  "remainingBudgetMicroUsd": "function",
1465
1475
  "remainingTokens": "function",
1476
+ "reminderMarkDeclaration": "function",
1466
1477
  "removePersistedRule": "function",
1467
1478
  "renderAnnouncements": "function",
1468
1479
  "renderAutoModeAction": "function",