@sema-agent/core 7.42.1 → 7.43.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 (84) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/agents/send-message-tool.js +1 -0
  3. package/dist/agents/subagent.d.ts +1 -0
  4. package/dist/agents/subagent.js +5 -3
  5. package/dist/agents/teacher.js +1 -1
  6. package/dist/agents/verify.js +2 -0
  7. package/dist/core/allow-entry.d.ts +50 -31
  8. package/dist/core/allow-entry.js +100 -37
  9. package/dist/core/ask-origin.d.ts +16 -5
  10. package/dist/core/ask-origin.js +11 -3
  11. package/dist/core/ask-unresolvable-notice.d.ts +3 -2
  12. package/dist/core/ask-unresolvable-notice.js +1 -1
  13. package/dist/core/auto-mode.d.ts +5 -4
  14. package/dist/core/auto-mode.js +3 -1
  15. package/dist/core/checkpoint-store.d.ts +18 -7
  16. package/dist/core/checkpoint-store.js +6 -3
  17. package/dist/core/child-clamp-seats.d.ts +15 -1
  18. package/dist/core/child-clamp-seats.js +6 -2
  19. package/dist/core/classifier-unavailable-arm.d.ts +42 -23
  20. package/dist/core/classifier-unavailable-arm.js +14 -3
  21. package/dist/core/decision-receipt.js +2 -0
  22. package/dist/core/gate-lanes.js +37 -29
  23. package/dist/core/hooks.d.ts +6 -1
  24. package/dist/core/hooks.js +3 -0
  25. package/dist/core/mode-policy.d.ts +5 -4
  26. package/dist/core/mode-policy.js +4 -0
  27. package/dist/core/permission-rule-consent.d.ts +3 -2
  28. package/dist/core/permission-rule-consent.js +25 -20
  29. package/dist/core/permission-rule-model.d.ts +47 -7
  30. package/dist/core/permission-rule-model.js +80 -6
  31. package/dist/core/permission-rules.d.ts +8 -2
  32. package/dist/core/permission-rules.js +26 -9
  33. package/dist/core/runner/classifier-ladder.d.ts +10 -8
  34. package/dist/core/runner/classifier-ladder.js +3 -1
  35. package/dist/core/runner/denial-limit-arms.d.ts +25 -8
  36. package/dist/core/runner/denial-limit-arms.js +24 -10
  37. package/dist/core/runner/gate-exit.js +2 -1
  38. package/dist/core/runner/permission-rule-lanes.d.ts +2 -2
  39. package/dist/core/runner/permission-rule-lanes.js +8 -2
  40. package/dist/core/runner/prepare-ask-lane.d.ts +3 -0
  41. package/dist/core/runner/prepare-ask-lane.js +2 -1
  42. package/dist/core/runner/prepare-caps-and-workflow.d.ts +2 -3
  43. package/dist/core/runner/prepare-caps-and-workflow.js +3 -2
  44. package/dist/core/runner/prepare-config-doors.d.ts +3 -0
  45. package/dist/core/runner/prepare-config-doors.js +6 -5
  46. package/dist/core/runner/prepare-gate-stations.js +1 -1
  47. package/dist/core/runner/prepare-inherited-gate.d.ts +7 -5
  48. package/dist/core/runner/prepare-inherited-gate.js +5 -3
  49. package/dist/core/runner/prepare-park-ask.d.ts +4 -4
  50. package/dist/core/runner/prepare-park-ask.js +2 -4
  51. package/dist/core/runner/prepare-policy-chain.d.ts +7 -1
  52. package/dist/core/runner/prepare-policy-chain.js +59 -38
  53. package/dist/core/runner/prepare-project-context.js +6 -2
  54. package/dist/core/runner/prepare-task.js +6 -6
  55. package/dist/core/runner/prepare-wiring-manifest.d.ts +6 -5
  56. package/dist/core/runner/prepare-wiring-manifest.js +8 -9
  57. package/dist/core/runner/resume-checkpoint-screen.js +1 -1
  58. package/dist/core/runner/synthetic-tools.d.ts +3 -2
  59. package/dist/core/runner/synthetic-tools.js +1 -1
  60. package/dist/core/session-policy-store.d.ts +3 -3
  61. package/dist/core/session-policy-store.js +18 -4
  62. package/dist/core/skill-grant-binding.d.ts +44 -0
  63. package/dist/core/skill-grant-binding.js +22 -0
  64. package/dist/core/skill-grant.d.ts +59 -28
  65. package/dist/core/skill-grant.js +96 -23
  66. package/dist/core/task-spec.d.ts +14 -1
  67. package/dist/core/tighten-task-spec.d.ts +2 -0
  68. package/dist/core/tighten-task-spec.js +3 -0
  69. package/dist/core/tool-name-aliases.d.ts +35 -5
  70. package/dist/core/tool-name-aliases.js +29 -4
  71. package/dist/core/tool-policy.d.ts +10 -0
  72. package/dist/core/tool-policy.js +9 -2
  73. package/dist/core/tool-spec.d.ts +7 -0
  74. package/dist/core/wiring-manifest.d.ts +56 -14
  75. package/dist/core/wiring-manifest.js +29 -4
  76. package/dist/index.d.ts +3 -2
  77. package/dist/index.js +2 -2
  78. package/dist/orchestration/run-workflow-tool.d.ts +4 -0
  79. package/dist/orchestration/run-workflow-tool.js +1 -1
  80. package/dist/orchestration/workflow-primitives.d.ts +3 -1
  81. package/dist/orchestration/workflow-primitives.js +6 -6
  82. package/package.json +1 -1
  83. package/test/export-surface.snapshot.json +11 -1
  84. package/wire-changes/core@7.43.0.json +985 -0
@@ -1,7 +1,7 @@
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
3
  "_tierComment": "#435 v1 — machine-readable layering of the public surface: stable = demonstrated by README.md / src/examples; internal = an `Internal`-marked name or a runner/engine deep-subtree declaration (the model seam src/engine/llm is excluded — it is the BYOM contract, not an engine internal); advanced = a supported export the front door does not walk you through. THIS IS AN INITIAL HEURISTIC, derived mechanically and expected to be refined ticket by ticket: no human reviewed these 1700+ entries one by one, and nothing here claims otherwise. Known bias: a short or English-word export name (ok, err, Result, Usage) can match ordinary prose in README.md and land `stable` on a coincidence. Every export MUST carry a tier — a new export with no row fails the gate in export-surface.test.ts.",
4
- "count": 2593,
4
+ "count": 2598,
5
5
  "exports": {
6
6
  "A2ATaskState": "type",
7
7
  "A2ATaskStateReversal": "type",
@@ -24,6 +24,7 @@
24
24
  "ALLOW_RULE_MEMBERS": "variable",
25
25
  "ANNOUNCEMENTS_FILE": "variable",
26
26
  "APPROVAL_CARD_REQUIRED_KEYS": "variable",
27
+ "APPROVAL_REACH": "variable",
27
28
  "APPROVER_ATTRIBUTION_MAX_CHARS": "variable",
28
29
  "ARTIFACT_ACTIONS": "variable",
29
30
  "ARTIFACT_ACTION_CONCURRENCY_SAFE": "variable",
@@ -100,6 +101,7 @@
100
101
  "AllowRuleShadow": "interface",
101
102
  "AnthropicBrainConfig": "interface",
102
103
  "AppendLog": "class",
104
+ "ApprovalReach": "type",
103
105
  "ApprovalSeatOutcome": "type",
104
106
  "Arbitration": "type",
105
107
  "ArtifactAction": "type",
@@ -210,6 +212,7 @@
210
212
  "BeforeWriteHook": "type",
211
213
  "BeforeWriteRequest": "interface",
212
214
  "BeforeWriteResult": "type",
215
+ "BoundSkillGrants": "interface",
213
216
  "Brain": "interface",
214
217
  "BrainError": "class",
215
218
  "BrainErrorCode": "type",
@@ -1767,6 +1770,7 @@
1767
1770
  "WriteProtectionViewAbsence": "interface",
1768
1771
  "WriteReceipt": "interface",
1769
1772
  "XARGS_READ_ONLY_TARGETS": "variable",
1773
+ "abortedSeatDeny": "function",
1770
1774
  "ackAdoptionConfig": "function",
1771
1775
  "acquireCcLock": "function",
1772
1776
  "addDotsOf": "function",
@@ -2123,6 +2127,7 @@
2123
2127
  "inspectDegenerate": "function",
2124
2128
  "isAbsoluteForFamily": "function",
2125
2129
  "isAliasModelId": "function",
2130
+ "isApprovalReach": "function",
2126
2131
  "isAskClass": "function",
2127
2132
  "isAskOrigin": "function",
2128
2133
  "isAutoModeClassifierFallback": "function",
@@ -2619,6 +2624,7 @@
2619
2624
  "ALLOW_RULE_MEMBERS": "advanced",
2620
2625
  "ANNOUNCEMENTS_FILE": "advanced",
2621
2626
  "APPROVAL_CARD_REQUIRED_KEYS": "internal",
2627
+ "APPROVAL_REACH": "advanced",
2622
2628
  "APPROVER_ATTRIBUTION_MAX_CHARS": "advanced",
2623
2629
  "ARTIFACT_ACTIONS": "advanced",
2624
2630
  "ARTIFACT_ACTION_CONCURRENCY_SAFE": "advanced",
@@ -2695,6 +2701,7 @@
2695
2701
  "AllowRuleShadow": "advanced",
2696
2702
  "AnthropicBrainConfig": "advanced",
2697
2703
  "AppendLog": "advanced",
2704
+ "ApprovalReach": "advanced",
2698
2705
  "ApprovalSeatOutcome": "advanced",
2699
2706
  "Arbitration": "advanced",
2700
2707
  "ArtifactAction": "advanced",
@@ -2805,6 +2812,7 @@
2805
2812
  "BeforeWriteHook": "stable",
2806
2813
  "BeforeWriteRequest": "advanced",
2807
2814
  "BeforeWriteResult": "advanced",
2815
+ "BoundSkillGrants": "advanced",
2808
2816
  "Brain": "stable",
2809
2817
  "BrainError": "advanced",
2810
2818
  "BrainErrorCode": "advanced",
@@ -4362,6 +4370,7 @@
4362
4370
  "WriteProtectionViewAbsence": "advanced",
4363
4371
  "WriteReceipt": "internal",
4364
4372
  "XARGS_READ_ONLY_TARGETS": "advanced",
4373
+ "abortedSeatDeny": "advanced",
4365
4374
  "ackAdoptionConfig": "advanced",
4366
4375
  "acquireCcLock": "advanced",
4367
4376
  "addDotsOf": "advanced",
@@ -4718,6 +4727,7 @@
4718
4727
  "inspectDegenerate": "advanced",
4719
4728
  "isAbsoluteForFamily": "advanced",
4720
4729
  "isAliasModelId": "advanced",
4730
+ "isApprovalReach": "advanced",
4721
4731
  "isAskClass": "advanced",
4722
4732
  "isAskOrigin": "advanced",
4723
4733
  "isAutoModeClassifierFallback": "advanced",