@theokit/sdk 3.1.1 → 3.2.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 (38) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/a2a/index.cjs +152 -35
  3. package/dist/a2a/index.cjs.map +1 -1
  4. package/dist/a2a/index.js +152 -35
  5. package/dist/a2a/index.js.map +1 -1
  6. package/dist/{cron-C2jWAvlQ.d.cts → cron-4u1UdmgC.d.cts} +1 -1
  7. package/dist/{cron-BLRe166v.d.ts → cron-DuhVPer6.d.ts} +1 -1
  8. package/dist/cron.cjs +152 -35
  9. package/dist/cron.cjs.map +1 -1
  10. package/dist/cron.d.cts +2 -2
  11. package/dist/cron.d.ts +2 -2
  12. package/dist/cron.js +152 -35
  13. package/dist/cron.js.map +1 -1
  14. package/dist/{errors-D_Bfo30u.d.ts → errors-_fPS0X80.d.ts} +1 -1
  15. package/dist/{errors-DZpCGlYv.d.cts → errors-jxK4yfp5.d.cts} +1 -1
  16. package/dist/errors.d.cts +2 -2
  17. package/dist/eval.cjs +152 -35
  18. package/dist/eval.cjs.map +1 -1
  19. package/dist/eval.js +152 -35
  20. package/dist/eval.js.map +1 -1
  21. package/dist/index.cjs +152 -35
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +6 -6
  24. package/dist/index.d.ts +6 -6
  25. package/dist/index.js +152 -35
  26. package/dist/index.js.map +1 -1
  27. package/dist/internal/runtime/context/context-discovery.d.ts +1 -1
  28. package/dist/internal/runtime/context/context-glob.d.ts +1 -0
  29. package/dist/internal/runtime/context/context-manager.d.ts +18 -1
  30. package/dist/internal/runtime/context/context-mdc-parser.d.ts +7 -6
  31. package/dist/internal/runtime/context/context-rules-frontmatter.d.ts +30 -0
  32. package/dist/internal/runtime/context/context-yaml-lite.d.ts +26 -0
  33. package/dist/project.cjs.map +1 -1
  34. package/dist/project.js.map +1 -1
  35. package/dist/{run-CLXKMRgq.d.cts → run-CrHz9BAP.d.cts} +9 -0
  36. package/dist/{run-CLXKMRgq.d.ts → run-CrHz9BAP.d.ts} +9 -0
  37. package/dist/types/run.d.ts +9 -0
  38. package/package.json +3 -3
@@ -1242,6 +1242,15 @@ interface SendOptions {
1242
1242
  * - `[t1, t2]` → use exactly these tools for this run
1243
1243
  */
1244
1244
  tools?: CustomTool[];
1245
+ /**
1246
+ * The set of repo-relative file paths in scope for THIS send (local runtime).
1247
+ * Declares "which files am I working on" so path-scoped rule files
1248
+ * (`.theokit/rules/*.md` with `paths:`/`globs:`, and `.cursor/rules/*.mdc`
1249
+ * globs) activate when a pattern matches one of these paths. `alwaysApply`
1250
+ * rules load regardless. Omit ⇒ only unconditional rules load (the create-time
1251
+ * snapshot is untouched). Matching is glob-based (`**`, `*`, `?`).
1252
+ */
1253
+ contextPaths?: readonly string[];
1245
1254
  onStep?: (args: {
1246
1255
  step: ConversationStep;
1247
1256
  }) => void | Promise<void>;
@@ -334,6 +334,15 @@ export interface SendOptions {
334
334
  * - `[t1, t2]` → use exactly these tools for this run
335
335
  */
336
336
  tools?: CustomTool[];
337
+ /**
338
+ * The set of repo-relative file paths in scope for THIS send (local runtime).
339
+ * Declares "which files am I working on" so path-scoped rule files
340
+ * (`.theokit/rules/*.md` with `paths:`/`globs:`, and `.cursor/rules/*.mdc`
341
+ * globs) activate when a pattern matches one of these paths. `alwaysApply`
342
+ * rules load regardless. Omit ⇒ only unconditional rules load (the create-time
343
+ * snapshot is untouched). Matching is glob-based (`**`, `*`, `?`).
344
+ */
345
+ contextPaths?: readonly string[];
337
346
  onStep?: (args: {
338
347
  step: ConversationStep;
339
348
  }) => void | Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theokit/sdk",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "TypeScript SDK for the Theo agent harness — same surface, local or cloud.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/usetheo/theokit-sdk#readme",
@@ -365,8 +365,8 @@
365
365
  "typedoc": "^0.28.19",
366
366
  "ws": "^8.18.0",
367
367
  "zod": "^4.0.0",
368
- "@theokit/sdk-handoff": "0.1.0",
369
- "@theokit/sdk-memory": "0.2.0"
368
+ "@theokit/sdk-memory": "0.2.0",
369
+ "@theokit/sdk-handoff": "0.1.0"
370
370
  },
371
371
  "scripts": {
372
372
  "build": "tsup && cp src/internal/providers/provider-catalog.json dist/provider-catalog.json",