@theokit/sdk 5.4.0 → 5.6.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 (132) hide show
  1. package/CHANGELOG.md +642 -0
  2. package/dist/{agent-AUVD4TI4.cjs → agent-47NS6ZVL.cjs} +13 -13
  3. package/dist/{agent-AUVD4TI4.cjs.map → agent-47NS6ZVL.cjs.map} +1 -1
  4. package/dist/{agent-C1Efo7PI.d.cts → agent-82d_DrCL.d.cts} +33 -2
  5. package/dist/{agent-Bmy2G_ml.d.ts → agent-G6g-uwcB.d.ts} +33 -2
  6. package/dist/{agent-MNINE73R.js → agent-JJZM2VIK.js} +12 -12
  7. package/dist/{agent-MNINE73R.js.map → agent-JJZM2VIK.js.map} +1 -1
  8. package/dist/{chunk-IKBLU7ZS.js → chunk-2UXQASTX.js} +232 -32
  9. package/dist/chunk-2UXQASTX.js.map +1 -0
  10. package/dist/{chunk-VPK6PHIE.cjs → chunk-52FDUJSV.cjs} +8 -8
  11. package/dist/{chunk-VPK6PHIE.cjs.map → chunk-52FDUJSV.cjs.map} +1 -1
  12. package/dist/{chunk-2XRAWOZZ.js → chunk-5NELQ6LB.js} +65 -3
  13. package/dist/chunk-5NELQ6LB.js.map +1 -0
  14. package/dist/{chunk-3FDU5JFE.cjs → chunk-7IZKTQ5G.cjs} +35 -7
  15. package/dist/chunk-7IZKTQ5G.cjs.map +1 -0
  16. package/dist/{chunk-7SZAV6QG.js → chunk-7MMTZBTT.js} +3 -3
  17. package/dist/{chunk-7SZAV6QG.js.map → chunk-7MMTZBTT.js.map} +1 -1
  18. package/dist/{chunk-SADXXGWU.js → chunk-BZ3YMAMP.js} +3 -3
  19. package/dist/{chunk-NQTNSHSB.cjs.map → chunk-BZ3YMAMP.js.map} +1 -1
  20. package/dist/{chunk-LX7SEXOQ.js → chunk-CA5VUAP3.js} +25 -7
  21. package/dist/chunk-CA5VUAP3.js.map +1 -0
  22. package/dist/{chunk-IU5N5224.cjs → chunk-EIOMN5VA.cjs} +8 -8
  23. package/dist/chunk-EIOMN5VA.cjs.map +1 -0
  24. package/dist/{chunk-KWGSBZ2Q.js → chunk-FPIY5CLV.js} +3 -3
  25. package/dist/{chunk-KWGSBZ2Q.js.map → chunk-FPIY5CLV.js.map} +1 -1
  26. package/dist/{chunk-UALC6Q3J.cjs → chunk-GCHZMH42.cjs} +290 -88
  27. package/dist/chunk-GCHZMH42.cjs.map +1 -0
  28. package/dist/{chunk-NQTNSHSB.cjs → chunk-GFFBXSQT.cjs} +5 -5
  29. package/dist/chunk-GFFBXSQT.cjs.map +1 -0
  30. package/dist/{chunk-J6KZE2ZQ.cjs → chunk-HG4UN4MN.cjs} +4 -4
  31. package/dist/{chunk-J6KZE2ZQ.cjs.map → chunk-HG4UN4MN.cjs.map} +1 -1
  32. package/dist/{chunk-N6OOOYFZ.js → chunk-HUDNLFY4.js} +4 -4
  33. package/dist/chunk-HUDNLFY4.js.map +1 -0
  34. package/dist/{chunk-LOHMT36V.cjs → chunk-LD6HASA5.cjs} +65 -2
  35. package/dist/chunk-LD6HASA5.cjs.map +1 -0
  36. package/dist/{chunk-QATRS7JD.cjs → chunk-MYJGWS2J.cjs} +26 -8
  37. package/dist/chunk-MYJGWS2J.cjs.map +1 -0
  38. package/dist/{chunk-XD3FS5OI.js → chunk-N2KAIZ5D.js} +34 -7
  39. package/dist/chunk-N2KAIZ5D.js.map +1 -0
  40. package/dist/{chunk-HW7SEELD.cjs → chunk-QRVS2PRE.cjs} +31 -8
  41. package/dist/chunk-QRVS2PRE.cjs.map +1 -0
  42. package/dist/{chunk-AYA65JA5.cjs → chunk-RWPLWMCZ.cjs} +25 -9
  43. package/dist/chunk-RWPLWMCZ.cjs.map +1 -0
  44. package/dist/{chunk-WS5ULCL4.js → chunk-STGSMJMJ.js} +3 -3
  45. package/dist/{chunk-WS5ULCL4.js.map → chunk-STGSMJMJ.js.map} +1 -1
  46. package/dist/{chunk-O7L7M42F.js → chunk-T3ZDEYTJ.js} +21 -5
  47. package/dist/chunk-T3ZDEYTJ.js.map +1 -0
  48. package/dist/{chunk-43YXGD3P.cjs → chunk-TY56BKSK.cjs} +8 -4
  49. package/dist/chunk-TY56BKSK.cjs.map +1 -0
  50. package/dist/chunk-UOLBAPDM.js +66 -0
  51. package/dist/chunk-UOLBAPDM.js.map +1 -0
  52. package/dist/{chunk-Z2JFX372.cjs → chunk-VUHXC74Q.cjs} +15 -15
  53. package/dist/{chunk-Z2JFX372.cjs.map → chunk-VUHXC74Q.cjs.map} +1 -1
  54. package/dist/{chunk-NSLHPAC7.js → chunk-X7EUUHXU.js} +6 -5
  55. package/dist/chunk-X7EUUHXU.js.map +1 -0
  56. package/dist/context/index.cjs +7 -7
  57. package/dist/context/index.js +3 -3
  58. package/dist/{context-4AIK26QB.cjs → context-HR4KMXMA.cjs} +7 -7
  59. package/dist/{context-4AIK26QB.cjs.map → context-HR4KMXMA.cjs.map} +1 -1
  60. package/dist/context-J5BJ3LBS.js +6 -0
  61. package/dist/{context-EGM6CHXD.js.map → context-J5BJ3LBS.js.map} +1 -1
  62. package/dist/{cron-DSMdlhyF.d.cts → cron-DWv69ZSD.d.cts} +1 -1
  63. package/dist/{cron-Dcdrdv_T.d.ts → cron-GynWtAax.d.ts} +1 -1
  64. package/dist/cron.cjs +12 -12
  65. package/dist/cron.d.cts +2 -2
  66. package/dist/cron.d.ts +2 -2
  67. package/dist/cron.js +11 -11
  68. package/dist/eval.cjs +11 -11
  69. package/dist/eval.js +10 -10
  70. package/dist/{index-manager-W7FDMGEG.js → index-manager-27WLNQEE.js} +5 -5
  71. package/dist/{index-manager-W7FDMGEG.js.map → index-manager-27WLNQEE.js.map} +1 -1
  72. package/dist/{index-manager-3UNPYH34.cjs → index-manager-BBHDKMQS.cjs} +6 -6
  73. package/dist/{index-manager-3UNPYH34.cjs.map → index-manager-BBHDKMQS.cjs.map} +1 -1
  74. package/dist/index.cjs +274 -40
  75. package/dist/index.cjs.map +1 -1
  76. package/dist/index.d.cts +168 -5
  77. package/dist/index.d.ts +168 -5
  78. package/dist/index.js +246 -23
  79. package/dist/index.js.map +1 -1
  80. package/dist/internal/memory/storage/index.cjs +32 -32
  81. package/dist/internal/memory/storage/index.js +3 -3
  82. package/dist/internal/memory/storage/memory-root.d.cts +27 -0
  83. package/dist/internal/memory/storage/memory-root.d.ts +27 -0
  84. package/dist/internal/persistence/index.cjs +4 -4
  85. package/dist/internal/persistence/index.js +1 -1
  86. package/dist/internal/runtime/compat/foreign-config-sources.d.ts +17 -4
  87. package/dist/internal/runtime/compat/managed-settings.d.ts +80 -0
  88. package/dist/internal/runtime/context/context-discovery-runner.d.ts +14 -0
  89. package/dist/internal/runtime/context/context-discovery.d.ts +37 -0
  90. package/dist/internal/runtime/context/context-manager.d.ts +21 -1
  91. package/dist/internal/runtime/context/yaml-frontmatter.d.ts +6 -3
  92. package/dist/internal/runtime/hooks/hooks-executor.d.ts +23 -1
  93. package/dist/internal/runtime/hooks/hooks-source.d.ts +46 -1
  94. package/dist/internal/runtime/skills/discover-skills.d.ts +4 -0
  95. package/dist/project.cjs +3 -3
  96. package/dist/project.js +1 -1
  97. package/dist/skills.cjs +5 -5
  98. package/dist/skills.js +2 -2
  99. package/dist/subagents-loader-CJFYQQU2.js +7 -0
  100. package/dist/{subagents-loader-AIVDQ2D5.js.map → subagents-loader-CJFYQQU2.js.map} +1 -1
  101. package/dist/subagents-loader-MOO7DC4E.cjs +16 -0
  102. package/dist/{subagents-loader-DN4LETGL.cjs.map → subagents-loader-MOO7DC4E.cjs.map} +1 -1
  103. package/dist/subagents-loader.cjs +4 -4
  104. package/dist/subagents-loader.d.cts +1 -1
  105. package/dist/subagents-loader.d.ts +1 -1
  106. package/dist/subagents-loader.js +3 -3
  107. package/dist/types/agent.d.ts +6 -1
  108. package/dist/types/hooks.d.ts +22 -0
  109. package/docs/error-codes.md +20 -18
  110. package/docs/harness-capability-map.md +9 -1
  111. package/package.json +1 -1
  112. package/dist/chunk-2XRAWOZZ.js.map +0 -1
  113. package/dist/chunk-3FDU5JFE.cjs.map +0 -1
  114. package/dist/chunk-43YXGD3P.cjs.map +0 -1
  115. package/dist/chunk-AYA65JA5.cjs.map +0 -1
  116. package/dist/chunk-HW7SEELD.cjs.map +0 -1
  117. package/dist/chunk-IKBLU7ZS.js.map +0 -1
  118. package/dist/chunk-IU5N5224.cjs.map +0 -1
  119. package/dist/chunk-JNAA4G4H.js +0 -43
  120. package/dist/chunk-JNAA4G4H.js.map +0 -1
  121. package/dist/chunk-LOHMT36V.cjs.map +0 -1
  122. package/dist/chunk-LX7SEXOQ.js.map +0 -1
  123. package/dist/chunk-N6OOOYFZ.js.map +0 -1
  124. package/dist/chunk-NSLHPAC7.js.map +0 -1
  125. package/dist/chunk-O7L7M42F.js.map +0 -1
  126. package/dist/chunk-QATRS7JD.cjs.map +0 -1
  127. package/dist/chunk-SADXXGWU.js.map +0 -1
  128. package/dist/chunk-UALC6Q3J.cjs.map +0 -1
  129. package/dist/chunk-XD3FS5OI.js.map +0 -1
  130. package/dist/context-EGM6CHXD.js +0 -6
  131. package/dist/subagents-loader-AIVDQ2D5.js +0 -7
  132. package/dist/subagents-loader-DN4LETGL.cjs +0 -16
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkUALC6Q3J_cjs = require('./chunk-UALC6Q3J.cjs');
3
+ var chunkGCHZMH42_cjs = require('./chunk-GCHZMH42.cjs');
4
4
  require('./chunk-KVSAY6NZ.cjs');
5
5
  require('./chunk-DZG77WU7.cjs');
6
6
  require('./chunk-BUUUWQMB.cjs');
7
- require('./chunk-Z2JFX372.cjs');
8
- require('./chunk-3FDU5JFE.cjs');
7
+ require('./chunk-VUHXC74Q.cjs');
8
+ require('./chunk-7IZKTQ5G.cjs');
9
9
  require('./chunk-BV2MWEMV.cjs');
10
10
  require('./chunk-D6POWE7E.cjs');
11
11
  require('./chunk-GHX4P3V2.cjs');
12
12
  require('./chunk-TMKTSYDS.cjs');
13
- require('./chunk-NQTNSHSB.cjs');
13
+ require('./chunk-GFFBXSQT.cjs');
14
14
  require('./chunk-7FDKWDA2.cjs');
15
15
  require('./chunk-C4ZQPWXJ.cjs');
16
16
  require('./chunk-FUSDYC2B.cjs');
@@ -19,7 +19,7 @@ require('./chunk-24SYBZPL.cjs');
19
19
  require('./chunk-QOGNZMHD.cjs');
20
20
  require('./chunk-YIFFF23U.cjs');
21
21
  require('./chunk-2ZPEDVLM.cjs');
22
- require('./chunk-IU5N5224.cjs');
22
+ require('./chunk-EIOMN5VA.cjs');
23
23
  require('./chunk-KRD3GQAA.cjs');
24
24
  require('./chunk-RQMCOFAI.cjs');
25
25
  require('./chunk-MUUQ2WFJ.cjs');
@@ -28,8 +28,8 @@ require('./chunk-YSTXFWQE.cjs');
28
28
  require('./chunk-FRITRLZQ.cjs');
29
29
  require('./chunk-NQTD6QOW.cjs');
30
30
  require('./chunk-NINIJCHU.cjs');
31
- require('./chunk-QATRS7JD.cjs');
32
- require('./chunk-LOHMT36V.cjs');
31
+ require('./chunk-MYJGWS2J.cjs');
32
+ require('./chunk-LD6HASA5.cjs');
33
33
  require('./chunk-IJ7M6GOG.cjs');
34
34
  require('./chunk-7A6535RA.cjs');
35
35
  require('./chunk-SA6K24NB.cjs');
@@ -43,9 +43,9 @@ require('./chunk-BJUJT5ED.cjs');
43
43
  require('./chunk-ZF2LDKQQ.cjs');
44
44
  require('./chunk-HCT4HPCL.cjs');
45
45
  require('./chunk-JLRLCBJ4.cjs');
46
- require('./chunk-AYA65JA5.cjs');
47
- require('./chunk-43YXGD3P.cjs');
48
- require('./chunk-HW7SEELD.cjs');
46
+ require('./chunk-RWPLWMCZ.cjs');
47
+ require('./chunk-TY56BKSK.cjs');
48
+ require('./chunk-QRVS2PRE.cjs');
49
49
  require('./chunk-ATT276RD.cjs');
50
50
  require('./chunk-3EE6LVWT.cjs');
51
51
  require('./chunk-ANMJJD6D.cjs');
@@ -61,7 +61,7 @@ require('./chunk-6LHQPOMI.cjs');
61
61
 
62
62
  Object.defineProperty(exports, "Agent", {
63
63
  enumerable: true,
64
- get: function () { return chunkUALC6Q3J_cjs.Agent; }
64
+ get: function () { return chunkGCHZMH42_cjs.Agent; }
65
65
  });
66
- //# sourceMappingURL=agent-AUVD4TI4.cjs.map
67
- //# sourceMappingURL=agent-AUVD4TI4.cjs.map
66
+ //# sourceMappingURL=agent-47NS6ZVL.cjs.map
67
+ //# sourceMappingURL=agent-47NS6ZVL.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-AUVD4TI4.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-47NS6ZVL.cjs"}
@@ -224,6 +224,10 @@ interface Skill$1 {
224
224
  source: string;
225
225
  category?: string;
226
226
  dependencies?: string[];
227
+ /** `disable-model-invocation: true` — the model is never told this skill exists. */
228
+ disableModelInvocation?: boolean;
229
+ /** `user-invocable: false` — carried for a host that has a picker; this SDK has no such surface. */
230
+ userInvocable?: boolean;
227
231
  }
228
232
 
229
233
  /**
@@ -384,6 +388,28 @@ interface HookApprovalRequest {
384
388
  readonly event: HookEvent;
385
389
  readonly sourcePath?: string;
386
390
  readonly matcher?: string;
391
+ /**
392
+ * #637 — the timeout the runtime WILL apply, in milliseconds, default already resolved.
393
+ *
394
+ * A config that omits `timeout` still runs under one (30s). Reporting `undefined` there would
395
+ * make a consumer reimplement this package's default in order to compute the same fingerprint,
396
+ * and a default duplicated across a boundary is a default that drifts.
397
+ */
398
+ readonly timeoutMs: number;
399
+ /**
400
+ * #637 — the event key exactly as the config file spelled it (`PreToolUse`), which is NOT
401
+ * `event` (`preToolUse`).
402
+ *
403
+ * A consumer's approval is taken against the file it showed the user, so its stored fingerprint
404
+ * is over the file's vocabulary. Without this the two sides hash different strings and no hook
405
+ * can ever be approved — only refused. The literal key rather than a published mapping table,
406
+ * because a mapping is a second thing to keep in step with the first.
407
+ *
408
+ * `string` and not a union of the keys this SDK currently recognises: the vocabulary belongs to
409
+ * whichever dialect declared the hook, so narrowing it would make adding a dialect a breaking
410
+ * change to this public type. A consumer hashes it; it does not need to switch on it.
411
+ */
412
+ readonly sourceEvent: string;
387
413
  }
388
414
  /**
389
415
  * #631 — a consumer's decision point before this package spawns a hook.
@@ -1029,9 +1055,14 @@ type CompatSource = "claude-code" | "theokit" | CompatSourceAdapter;
1029
1055
  * Reusing the skills you already wrote for another product is a reasonable thing to want, and it is
1030
1056
  * not a reason to hand that product's directory the right to run commands.
1031
1057
  *
1058
+ * `context` is the foreign root's INSTRUCTIONS — `.claude/rules/*.md`. Same risk class as `skills`:
1059
+ * text a cloned repository wrote, entering the system prompt as if the consumer had written it. It
1060
+ * was missing until usetheokit/theokit-sdk#652, so the four surfaces above failed closed while this
1061
+ * one was admitted by a path that consulted no grant at all.
1062
+ *
1032
1063
  * @public
1033
1064
  */
1034
- type CompatSurface = "hooks" | "plugins" | "skills" | "subagents";
1065
+ type CompatSurface = "context" | "hooks" | "plugins" | "skills" | "subagents";
1035
1066
  /**
1036
1067
  * A foreign source admitted to named surfaces only.
1037
1068
  *
@@ -1958,4 +1989,4 @@ interface ListResult<T> {
1958
1989
  nextCursor?: string;
1959
1990
  }
1960
1991
 
1961
- export { type SettingSource as $, type AgentOptions as A, type BudgetTracker as B, type CloudOptions as C, type MemoryProviderAgentRef as D, type MemoryProviderFactory as E, type MemoryProviderHandle as F, type GetAgentOptions as G, type HookName as H, type InlineSkill as I, type MemoryProviderInitOptions as J, type PluginContext as K, type LocalOptions as L, type MemorySettings as M, type PluginHookDisposer as N, type PostAssistantReplyContext as O, type Plugin as P, type PostToolCallContext as Q, type PreToolCallContext as R, type SystemPromptResolver as S, type PreUserSendContext as T, type PreUserSendResult as U, type ProviderTransform as V, type ProviderTransformContext as W, type RecordSessionSummaryArgs as X, type SessionLifecycleContext as Y, type SessionRecord as Z, type SessionStore as _, type AgentDefinition as a, Skill as a0, type SkillsResolver as a1, type SkillsResolverContext as a2, type SystemPromptContext as a3, type SystemPromptMemoryFact as a4, type TelemetrySettings as a5, type ToolCallSummary as a6, type ToolResultTransformContext as a7, type TransformContext as a8, type SkillsSettings as b, type ListAgentsOptions as c, type ListResult as d, type SDKAgentInfo as e, type ListRunsOptions as f, type GetRunOptions as g, type AgentOperationOptions as h, type AgentDescription as i, type ProviderProfile as j, type MemoryProvider as k, type PreToolCallDecision as l, type ActiveMemoryPassArgs as m, type ActiveMemoryPassResult as n, type AgentSubagentDescription as o, type AgentToolDescription as p, type BudgetCheck as q, type BudgetTotal as r, type BudgetUsageEvent as s, type BuiltinToolName as t, type CloudEnv as u, type CloudRepo as v, type CompatSource as w, type CompatSourceAdapter as x, type CompatSurface as y, type CreateSkillSpec as z };
1992
+ export { type SessionStore as $, type AgentOptions as A, type BudgetTracker as B, type CloudOptions as C, type CreateSkillSpec as D, type MemoryProviderAgentRef as E, type MemoryProviderFactory as F, type GetAgentOptions as G, type HookName as H, type InlineSkill as I, type MemoryProviderHandle as J, type MemoryProviderInitOptions as K, type LocalOptions as L, type MemorySettings as M, type PluginContext as N, type PluginHookDisposer as O, type Plugin as P, type PostAssistantReplyContext as Q, type PostToolCallContext as R, type SystemPromptResolver as S, type PreToolCallContext as T, type PreUserSendContext as U, type PreUserSendResult as V, type ProviderTransform as W, type ProviderTransformContext as X, type RecordSessionSummaryArgs as Y, type SessionLifecycleContext as Z, type SessionRecord as _, type AgentDefinition as a, type SettingSource as a0, Skill as a1, type SkillsResolver as a2, type SkillsResolverContext as a3, type SystemPromptContext as a4, type SystemPromptMemoryFact as a5, type TelemetrySettings as a6, type ToolCallSummary as a7, type ToolResultTransformContext as a8, type TransformContext as a9, type SkillsSettings as b, type ListAgentsOptions as c, type ListResult as d, type SDKAgentInfo as e, type ListRunsOptions as f, type GetRunOptions as g, type AgentOperationOptions as h, type AgentDescription as i, type ProviderProfile as j, type Skill$1 as k, type MemoryProvider as l, type PreToolCallDecision as m, type ActiveMemoryPassArgs as n, type ActiveMemoryPassResult as o, type AgentSubagentDescription as p, type AgentToolDescription as q, type BudgetCheck as r, type BudgetTotal as s, type BudgetUsageEvent as t, type BuiltinToolName as u, type CloudEnv as v, type CloudRepo as w, type CompatSource as x, type CompatSourceAdapter as y, type CompatSurface as z };
@@ -224,6 +224,10 @@ interface Skill$1 {
224
224
  source: string;
225
225
  category?: string;
226
226
  dependencies?: string[];
227
+ /** `disable-model-invocation: true` — the model is never told this skill exists. */
228
+ disableModelInvocation?: boolean;
229
+ /** `user-invocable: false` — carried for a host that has a picker; this SDK has no such surface. */
230
+ userInvocable?: boolean;
227
231
  }
228
232
 
229
233
  /**
@@ -384,6 +388,28 @@ interface HookApprovalRequest {
384
388
  readonly event: HookEvent;
385
389
  readonly sourcePath?: string;
386
390
  readonly matcher?: string;
391
+ /**
392
+ * #637 — the timeout the runtime WILL apply, in milliseconds, default already resolved.
393
+ *
394
+ * A config that omits `timeout` still runs under one (30s). Reporting `undefined` there would
395
+ * make a consumer reimplement this package's default in order to compute the same fingerprint,
396
+ * and a default duplicated across a boundary is a default that drifts.
397
+ */
398
+ readonly timeoutMs: number;
399
+ /**
400
+ * #637 — the event key exactly as the config file spelled it (`PreToolUse`), which is NOT
401
+ * `event` (`preToolUse`).
402
+ *
403
+ * A consumer's approval is taken against the file it showed the user, so its stored fingerprint
404
+ * is over the file's vocabulary. Without this the two sides hash different strings and no hook
405
+ * can ever be approved — only refused. The literal key rather than a published mapping table,
406
+ * because a mapping is a second thing to keep in step with the first.
407
+ *
408
+ * `string` and not a union of the keys this SDK currently recognises: the vocabulary belongs to
409
+ * whichever dialect declared the hook, so narrowing it would make adding a dialect a breaking
410
+ * change to this public type. A consumer hashes it; it does not need to switch on it.
411
+ */
412
+ readonly sourceEvent: string;
387
413
  }
388
414
  /**
389
415
  * #631 — a consumer's decision point before this package spawns a hook.
@@ -1029,9 +1055,14 @@ type CompatSource = "claude-code" | "theokit" | CompatSourceAdapter;
1029
1055
  * Reusing the skills you already wrote for another product is a reasonable thing to want, and it is
1030
1056
  * not a reason to hand that product's directory the right to run commands.
1031
1057
  *
1058
+ * `context` is the foreign root's INSTRUCTIONS — `.claude/rules/*.md`. Same risk class as `skills`:
1059
+ * text a cloned repository wrote, entering the system prompt as if the consumer had written it. It
1060
+ * was missing until usetheokit/theokit-sdk#652, so the four surfaces above failed closed while this
1061
+ * one was admitted by a path that consulted no grant at all.
1062
+ *
1032
1063
  * @public
1033
1064
  */
1034
- type CompatSurface = "hooks" | "plugins" | "skills" | "subagents";
1065
+ type CompatSurface = "context" | "hooks" | "plugins" | "skills" | "subagents";
1035
1066
  /**
1036
1067
  * A foreign source admitted to named surfaces only.
1037
1068
  *
@@ -1958,4 +1989,4 @@ interface ListResult<T> {
1958
1989
  nextCursor?: string;
1959
1990
  }
1960
1991
 
1961
- export { type SettingSource as $, type AgentOptions as A, type BudgetTracker as B, type CloudOptions as C, type MemoryProviderAgentRef as D, type MemoryProviderFactory as E, type MemoryProviderHandle as F, type GetAgentOptions as G, type HookName as H, type InlineSkill as I, type MemoryProviderInitOptions as J, type PluginContext as K, type LocalOptions as L, type MemorySettings as M, type PluginHookDisposer as N, type PostAssistantReplyContext as O, type Plugin as P, type PostToolCallContext as Q, type PreToolCallContext as R, type SystemPromptResolver as S, type PreUserSendContext as T, type PreUserSendResult as U, type ProviderTransform as V, type ProviderTransformContext as W, type RecordSessionSummaryArgs as X, type SessionLifecycleContext as Y, type SessionRecord as Z, type SessionStore as _, type AgentDefinition as a, Skill as a0, type SkillsResolver as a1, type SkillsResolverContext as a2, type SystemPromptContext as a3, type SystemPromptMemoryFact as a4, type TelemetrySettings as a5, type ToolCallSummary as a6, type ToolResultTransformContext as a7, type TransformContext as a8, type SkillsSettings as b, type ListAgentsOptions as c, type ListResult as d, type SDKAgentInfo as e, type ListRunsOptions as f, type GetRunOptions as g, type AgentOperationOptions as h, type AgentDescription as i, type ProviderProfile as j, type MemoryProvider as k, type PreToolCallDecision as l, type ActiveMemoryPassArgs as m, type ActiveMemoryPassResult as n, type AgentSubagentDescription as o, type AgentToolDescription as p, type BudgetCheck as q, type BudgetTotal as r, type BudgetUsageEvent as s, type BuiltinToolName as t, type CloudEnv as u, type CloudRepo as v, type CompatSource as w, type CompatSourceAdapter as x, type CompatSurface as y, type CreateSkillSpec as z };
1992
+ export { type SessionStore as $, type AgentOptions as A, type BudgetTracker as B, type CloudOptions as C, type CreateSkillSpec as D, type MemoryProviderAgentRef as E, type MemoryProviderFactory as F, type GetAgentOptions as G, type HookName as H, type InlineSkill as I, type MemoryProviderHandle as J, type MemoryProviderInitOptions as K, type LocalOptions as L, type MemorySettings as M, type PluginContext as N, type PluginHookDisposer as O, type Plugin as P, type PostAssistantReplyContext as Q, type PostToolCallContext as R, type SystemPromptResolver as S, type PreToolCallContext as T, type PreUserSendContext as U, type PreUserSendResult as V, type ProviderTransform as W, type ProviderTransformContext as X, type RecordSessionSummaryArgs as Y, type SessionLifecycleContext as Z, type SessionRecord as _, type AgentDefinition as a, type SettingSource as a0, Skill as a1, type SkillsResolver as a2, type SkillsResolverContext as a3, type SystemPromptContext as a4, type SystemPromptMemoryFact as a5, type TelemetrySettings as a6, type ToolCallSummary as a7, type ToolResultTransformContext as a8, type TransformContext as a9, type SkillsSettings as b, type ListAgentsOptions as c, type ListResult as d, type SDKAgentInfo as e, type ListRunsOptions as f, type GetRunOptions as g, type AgentOperationOptions as h, type AgentDescription as i, type ProviderProfile as j, type Skill$1 as k, type MemoryProvider as l, type PreToolCallDecision as m, type ActiveMemoryPassArgs as n, type ActiveMemoryPassResult as o, type AgentSubagentDescription as p, type AgentToolDescription as q, type BudgetCheck as r, type BudgetTotal as s, type BudgetUsageEvent as t, type BuiltinToolName as u, type CloudEnv as v, type CloudRepo as w, type CompatSource as x, type CompatSourceAdapter as y, type CompatSurface as z };
@@ -1,14 +1,14 @@
1
- export { Agent } from './chunk-IKBLU7ZS.js';
1
+ export { Agent } from './chunk-2UXQASTX.js';
2
2
  import './chunk-K2VMFZQ5.js';
3
3
  import './chunk-2QKV4CGK.js';
4
4
  import './chunk-K2BQQ445.js';
5
- import './chunk-7SZAV6QG.js';
6
- import './chunk-XD3FS5OI.js';
5
+ import './chunk-7MMTZBTT.js';
6
+ import './chunk-N2KAIZ5D.js';
7
7
  import './chunk-2SFBB54R.js';
8
8
  import './chunk-55GB6JYQ.js';
9
9
  import './chunk-H73MEMQB.js';
10
10
  import './chunk-OR6XIWLB.js';
11
- import './chunk-SADXXGWU.js';
11
+ import './chunk-BZ3YMAMP.js';
12
12
  import './chunk-AAEZSPTC.js';
13
13
  import './chunk-KZSKIUXZ.js';
14
14
  import './chunk-UBR5PWD7.js';
@@ -17,7 +17,7 @@ import './chunk-XB4GI5RZ.js';
17
17
  import './chunk-24MGQDK3.js';
18
18
  import './chunk-2WXHA33T.js';
19
19
  import './chunk-HKCKOAIO.js';
20
- import './chunk-N6OOOYFZ.js';
20
+ import './chunk-HUDNLFY4.js';
21
21
  import './chunk-KVNWIAO4.js';
22
22
  import './chunk-SVQIW5RJ.js';
23
23
  import './chunk-FD2UT76F.js';
@@ -26,8 +26,8 @@ import './chunk-FJWQP6EE.js';
26
26
  import './chunk-NAF4L3T6.js';
27
27
  import './chunk-CFE6QF2Q.js';
28
28
  import './chunk-6X6ID4MO.js';
29
- import './chunk-LX7SEXOQ.js';
30
- import './chunk-2XRAWOZZ.js';
29
+ import './chunk-CA5VUAP3.js';
30
+ import './chunk-5NELQ6LB.js';
31
31
  import './chunk-SAGRF4IB.js';
32
32
  import './chunk-EH6XD3FY.js';
33
33
  import './chunk-UKMBRMGT.js';
@@ -41,9 +41,9 @@ import './chunk-TA3K7SBK.js';
41
41
  import './chunk-Q5EWJPRY.js';
42
42
  import './chunk-EIQFAOFD.js';
43
43
  import './chunk-3JHIFQ4I.js';
44
- import './chunk-O7L7M42F.js';
45
- import './chunk-NSLHPAC7.js';
46
- import './chunk-JNAA4G4H.js';
44
+ import './chunk-T3ZDEYTJ.js';
45
+ import './chunk-X7EUUHXU.js';
46
+ import './chunk-UOLBAPDM.js';
47
47
  import './chunk-6M2OIS4Y.js';
48
48
  import './chunk-R7WIIPUR.js';
49
49
  import './chunk-XYFGKVZ7.js';
@@ -54,5 +54,5 @@ import './chunk-V22DZIXO.js';
54
54
  import './chunk-NJWYQWDL.js';
55
55
  import './chunk-ALUN2B4W.js';
56
56
  import './chunk-CZJ6Q7CW.js';
57
- //# sourceMappingURL=agent-MNINE73R.js.map
58
- //# sourceMappingURL=agent-MNINE73R.js.map
57
+ //# sourceMappingURL=agent-JJZM2VIK.js.map
58
+ //# sourceMappingURL=agent-JJZM2VIK.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-MNINE73R.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"agent-JJZM2VIK.js"}