openplanr 3.0.1 → 3.1.1

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 (232) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +1 -1
  3. package/dist/cli/commands/doctor.d.ts.map +1 -1
  4. package/dist/cli/commands/doctor.js +24 -1
  5. package/dist/cli/commands/doctor.js.map +1 -1
  6. package/dist/cli/commands/init-deterministic.d.ts.map +1 -1
  7. package/dist/cli/commands/init-deterministic.js +49 -6
  8. package/dist/cli/commands/init-deterministic.js.map +1 -1
  9. package/dist/dashboard/.vite/manifest.json +2 -2
  10. package/dist/dashboard/assets/{index-Bk8DyO_2.css → index-BU5fzjyz.css} +1 -1
  11. package/dist/dashboard/assets/index-G7ygVDGg.js +572 -0
  12. package/dist/dashboard/assets/index-G7ygVDGg.js.map +1 -0
  13. package/dist/dashboard/dashboard-manifest.json +14 -14
  14. package/dist/dashboard/index.html +2 -2
  15. package/dist/models/types.d.ts +0 -46
  16. package/dist/models/types.d.ts.map +1 -1
  17. package/dist/services/capability-map-service.d.ts +4 -0
  18. package/dist/services/capability-map-service.d.ts.map +1 -1
  19. package/dist/services/capability-map-service.js +7 -1
  20. package/dist/services/capability-map-service.js.map +1 -1
  21. package/dist/services/claude-plugin-service.d.ts +6 -1
  22. package/dist/services/claude-plugin-service.d.ts.map +1 -1
  23. package/dist/services/claude-plugin-service.js +54 -15
  24. package/dist/services/claude-plugin-service.js.map +1 -1
  25. package/dist/services/config-service.d.ts +24 -1
  26. package/dist/services/config-service.d.ts.map +1 -1
  27. package/dist/services/config-service.js +69 -2
  28. package/dist/services/config-service.js.map +1 -1
  29. package/dist/services/git-service.d.ts +5 -0
  30. package/dist/services/git-service.d.ts.map +1 -1
  31. package/dist/services/git-service.js +27 -0
  32. package/dist/services/git-service.js.map +1 -1
  33. package/dist/services/global-install-service.d.ts +24 -0
  34. package/dist/services/global-install-service.d.ts.map +1 -0
  35. package/dist/services/global-install-service.js +68 -0
  36. package/dist/services/global-install-service.js.map +1 -0
  37. package/dist/services/linear-pull-service.d.ts.map +1 -1
  38. package/dist/services/linear-pull-service.js +1 -2
  39. package/dist/services/linear-pull-service.js.map +1 -1
  40. package/dist/services/pipeline-package-service.d.ts +2 -0
  41. package/dist/services/pipeline-package-service.d.ts.map +1 -1
  42. package/dist/services/pipeline-package-service.js +2 -1
  43. package/dist/services/pipeline-package-service.js.map +1 -1
  44. package/dist/services/runtime-change-summary.d.ts.map +1 -1
  45. package/dist/services/runtime-change-summary.js +4 -0
  46. package/dist/services/runtime-change-summary.js.map +1 -1
  47. package/dist/services/runtime-manager-service.d.ts.map +1 -1
  48. package/dist/services/runtime-manager-service.js +14 -3
  49. package/dist/services/runtime-manager-service.js.map +1 -1
  50. package/dist/services/spec-service.d.ts.map +1 -1
  51. package/dist/services/spec-service.js +11 -22
  52. package/dist/services/spec-service.js.map +1 -1
  53. package/dist/services/upgrade-service.d.ts +15 -1
  54. package/dist/services/upgrade-service.d.ts.map +1 -1
  55. package/dist/services/upgrade-service.js +105 -14
  56. package/dist/services/upgrade-service.js.map +1 -1
  57. package/dist/templates/rules/shared/capability-map.md.hbs +2 -2
  58. package/lib/host-packages/adapter-registry.json +5 -5
  59. package/lib/host-packages/capability-map.json +89 -29
  60. package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
  61. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
  62. package/lib/host-packages/claude/openplanr/.openplanr-content.json +69 -37
  63. package/lib/host-packages/claude/openplanr/CONNECTORS.md +62 -0
  64. package/lib/host-packages/claude/openplanr/README.md +1 -1
  65. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +1 -1
  66. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs +259 -36
  67. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +54 -54
  68. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
  69. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +259 -36
  70. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +4 -4
  71. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  72. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +43 -24
  73. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +279 -58
  74. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +50 -42
  75. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +282 -146
  76. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +949 -316
  77. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +143 -87
  78. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +930 -183
  79. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +17 -15
  80. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +375 -191
  81. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +140 -105
  82. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +23 -23
  83. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +4 -4
  84. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +259 -36
  85. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +4 -4
  86. package/lib/host-packages/claude/openplanr/skills/connect/SKILL.md +60 -0
  87. package/lib/host-packages/claude/openplanr/skills/connect/references/connectors.md +62 -0
  88. package/lib/host-packages/claude/openplanr/skills/openplanr/SKILL.md +4 -0
  89. package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +4 -1
  90. package/lib/host-packages/claude/openplanr/skills/plan/scripts/planning-ids.mjs +49 -3
  91. package/lib/host-packages/claude/openplanr/skills/share/SKILL.md +87 -0
  92. package/lib/host-packages/claude/openplanr/skills/share/references/connectors.md +62 -0
  93. package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +6 -3
  94. package/lib/host-packages/claude/openplanr/skills/ship/scripts/discover-verification.mjs +2 -1
  95. package/lib/host-packages/claude/openplanr/skills/sprint/SKILL.md +15 -6
  96. package/lib/host-packages/claude/openplanr/skills/sprint/references/connectors.md +62 -0
  97. package/lib/host-packages/claude/openplanr/skills/sprint/references/tracker-connections.md +9 -13
  98. package/lib/host-packages/claude/openplanr/skills/status/SKILL.md +14 -3
  99. package/lib/host-packages/claude/openplanr/skills/status/references/connectors.md +62 -0
  100. package/lib/host-packages/claude/openplanr/skills/status/references/tracker-connections.md +9 -13
  101. package/lib/host-packages/claude/openplanr/skills/sync/SKILL.md +25 -10
  102. package/lib/host-packages/claude/openplanr/skills/sync/references/connectors.md +62 -0
  103. package/lib/host-packages/claude/openplanr/skills/sync/references/tracker-connections.md +9 -13
  104. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +68 -36
  105. package/lib/host-packages/cursor/openplanr/CONNECTORS.md +62 -0
  106. package/lib/host-packages/cursor/openplanr/manifest.json +4 -2
  107. package/lib/host-packages/cursor/openplanr/rules/planr-connect/references/connectors.md +62 -0
  108. package/lib/host-packages/cursor/openplanr/rules/planr-connect.mdc +58 -0
  109. package/lib/host-packages/cursor/openplanr/rules/planr-openplanr.mdc +4 -0
  110. package/lib/host-packages/cursor/openplanr/rules/planr-plan/scripts/planning-ids.mjs +49 -3
  111. package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +4 -1
  112. package/lib/host-packages/cursor/openplanr/rules/planr-share/references/connectors.md +62 -0
  113. package/lib/host-packages/cursor/openplanr/rules/planr-share.mdc +85 -0
  114. package/lib/host-packages/cursor/openplanr/rules/planr-ship/scripts/discover-verification.mjs +2 -1
  115. package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +6 -3
  116. package/lib/host-packages/cursor/openplanr/rules/planr-sprint/references/connectors.md +62 -0
  117. package/lib/host-packages/cursor/openplanr/rules/planr-sprint/references/tracker-connections.md +9 -13
  118. package/lib/host-packages/cursor/openplanr/rules/planr-sprint.mdc +15 -6
  119. package/lib/host-packages/cursor/openplanr/rules/planr-status/references/connectors.md +62 -0
  120. package/lib/host-packages/cursor/openplanr/rules/planr-status/references/tracker-connections.md +9 -13
  121. package/lib/host-packages/cursor/openplanr/rules/planr-status.mdc +14 -3
  122. package/lib/host-packages/cursor/openplanr/rules/planr-sync/references/connectors.md +62 -0
  123. package/lib/host-packages/cursor/openplanr/rules/planr-sync/references/tracker-connections.md +9 -13
  124. package/lib/host-packages/cursor/openplanr/rules/planr-sync.mdc +25 -10
  125. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +1 -1
  126. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs +259 -36
  127. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +54 -54
  128. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
  129. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +259 -36
  130. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +4 -4
  131. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  132. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +43 -24
  133. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +279 -58
  134. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +50 -42
  135. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +282 -146
  136. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +949 -316
  137. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +143 -87
  138. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +930 -183
  139. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +17 -15
  140. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +375 -191
  141. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +140 -105
  142. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +23 -23
  143. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +4 -4
  144. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +259 -36
  145. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +4 -4
  146. package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
  147. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
  148. package/lib/host-packages/openai/openplanr/.openplanr-content.json +87 -39
  149. package/lib/host-packages/openai/openplanr/CONNECTORS.md +62 -0
  150. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +1 -1
  151. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs +259 -36
  152. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/notices/THIRD_PARTY_NOTICES.txt +54 -54
  153. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
  154. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +259 -36
  155. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +4 -4
  156. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  157. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +43 -24
  158. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +279 -58
  159. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +50 -42
  160. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +282 -146
  161. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +949 -316
  162. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +143 -87
  163. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +930 -183
  164. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +17 -15
  165. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +375 -191
  166. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +140 -105
  167. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +23 -23
  168. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +4 -4
  169. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +259 -36
  170. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +4 -4
  171. package/lib/host-packages/openai/openplanr/skills/connect/SKILL.md +59 -0
  172. package/lib/host-packages/openai/openplanr/skills/connect/agents/openai.yaml +6 -0
  173. package/lib/host-packages/openai/openplanr/skills/connect/openplanr.skill.json +37 -0
  174. package/lib/host-packages/openai/openplanr/skills/connect/references/connectors.md +62 -0
  175. package/lib/host-packages/openai/openplanr/skills/openplanr/SKILL.md +4 -0
  176. package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +4 -1
  177. package/lib/host-packages/openai/openplanr/skills/plan/scripts/planning-ids.mjs +49 -3
  178. package/lib/host-packages/openai/openplanr/skills/share/SKILL.md +86 -0
  179. package/lib/host-packages/openai/openplanr/skills/share/agents/openai.yaml +6 -0
  180. package/lib/host-packages/openai/openplanr/skills/share/openplanr.skill.json +37 -0
  181. package/lib/host-packages/openai/openplanr/skills/share/references/connectors.md +62 -0
  182. package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +6 -3
  183. package/lib/host-packages/openai/openplanr/skills/ship/scripts/discover-verification.mjs +2 -1
  184. package/lib/host-packages/openai/openplanr/skills/sprint/SKILL.md +15 -6
  185. package/lib/host-packages/openai/openplanr/skills/sprint/openplanr.skill.json +11 -0
  186. package/lib/host-packages/openai/openplanr/skills/sprint/references/connectors.md +62 -0
  187. package/lib/host-packages/openai/openplanr/skills/sprint/references/tracker-connections.md +9 -13
  188. package/lib/host-packages/openai/openplanr/skills/status/SKILL.md +14 -3
  189. package/lib/host-packages/openai/openplanr/skills/status/openplanr.skill.json +11 -0
  190. package/lib/host-packages/openai/openplanr/skills/status/references/connectors.md +62 -0
  191. package/lib/host-packages/openai/openplanr/skills/status/references/tracker-connections.md +9 -13
  192. package/lib/host-packages/openai/openplanr/skills/sync/SKILL.md +25 -10
  193. package/lib/host-packages/openai/openplanr/skills/sync/openplanr.skill.json +11 -0
  194. package/lib/host-packages/openai/openplanr/skills/sync/references/connectors.md +62 -0
  195. package/lib/host-packages/openai/openplanr/skills/sync/references/tracker-connections.md +9 -13
  196. package/lib/json-schema.mjs +313 -36
  197. package/lib/schemas/v1.0.0/spec.schema.json +120 -0
  198. package/lib/schemas/v1.0.0/story.schema.json +95 -0
  199. package/lib/schemas/v1.0.0/task.schema.json +171 -0
  200. package/lib/schemas/v1.7.0/spec.schema.json +117 -0
  201. package/lib/schemas/v1.7.0/story.schema.json +107 -0
  202. package/lib/schemas/v1.7.0/task.schema.json +217 -0
  203. package/package.json +31 -31
  204. package/dist/dashboard/assets/index-n08LJ6bK.js +0 -557
  205. package/dist/dashboard/assets/index-n08LJ6bK.js.map +0 -1
  206. package/dist/services/audit-log-service.d.ts +0 -47
  207. package/dist/services/audit-log-service.d.ts.map +0 -1
  208. package/dist/services/audit-log-service.js +0 -211
  209. package/dist/services/audit-log-service.js.map +0 -1
  210. package/dist/services/delta-apply-service.d.ts +0 -16
  211. package/dist/services/delta-apply-service.d.ts.map +0 -1
  212. package/dist/services/delta-apply-service.js +0 -74
  213. package/dist/services/delta-apply-service.js.map +0 -1
  214. package/dist/services/evidence-verifier.d.ts +0 -71
  215. package/dist/services/evidence-verifier.d.ts.map +0 -1
  216. package/dist/services/evidence-verifier.js +0 -174
  217. package/dist/services/evidence-verifier.js.map +0 -1
  218. package/dist/services/revise-apply-service.d.ts +0 -55
  219. package/dist/services/revise-apply-service.d.ts.map +0 -1
  220. package/dist/services/revise-apply-service.js +0 -265
  221. package/dist/services/revise-apply-service.js.map +0 -1
  222. package/dist/services/revise-cache-service.d.ts +0 -46
  223. package/dist/services/revise-cache-service.d.ts.map +0 -1
  224. package/dist/services/revise-cache-service.js +0 -89
  225. package/dist/services/revise-cache-service.js.map +0 -1
  226. package/dist/services/revise-plan-service.d.ts +0 -38
  227. package/dist/services/revise-plan-service.d.ts.map +0 -1
  228. package/dist/services/revise-plan-service.js +0 -153
  229. package/dist/services/revise-plan-service.js.map +0 -1
  230. /package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-runtime-support-336900df0d39.mjs → design-runtime-support-e34c388a8e59.mjs} +0 -0
  231. /package/lib/host-packages/cursor/openplanr/runtime/design/scripts/{design-runtime-support-336900df0d39.mjs → design-runtime-support-e34c388a8e59.mjs} +0 -0
  232. /package/lib/host-packages/openai/openplanr/runtime/design/scripts/{design-runtime-support-336900df0d39.mjs → design-runtime-support-e34c388a8e59.mjs} +0 -0
@@ -0,0 +1,62 @@
1
+ # Connectors
2
+
3
+ OpenPlanr skills name a kind of service, such as `~~chat`, instead of a product. Connect
4
+ the product your team uses through your host: the vendor publishes the connector, and
5
+ you sign in through the host. OpenPlanr bundles no connectors; they and their credentials
6
+ live in your host. Two optional features need a token: Linear sync (`openplanr linear`) and
7
+ company sign-in (`openplanr company login`). Only when you use them does OpenPlanr store a
8
+ token, in your OS keychain, or in an encrypted file at `~/.planr/credentials.enc` if you set
9
+ `PLANR_CREDENTIAL_FILE_PASSPHRASE`. Tokens are sent only to Linear or to the company server
10
+ you sign in to.
11
+ `openplanr company logout` removes company tokens.
12
+ Every skill also works with nothing connected and reports any remote step it skipped.
13
+
14
+ | Category | Placeholder | Products |
15
+ | --- | --- | --- |
16
+ | Chat | `~~chat` | Slack, Microsoft Teams |
17
+ | Project tracker | `~~project tracker` | Linear, GitHub Issues, Jira, Asana |
18
+ | Source control | `~~source control` | GitHub, GitLab, Bitbucket |
19
+
20
+ Never paste a token into a chat, file or command for OpenPlanr. After you connect a
21
+ service, start a new request so the host loads its tools.
22
+
23
+ ## Chat (`~~chat`)
24
+
25
+ Share a status report, sprint note or release notes as a message draft that you review and send yourself.
26
+
27
+ | Product | Use | Claude Code | Codex | Cursor |
28
+ | --- | --- | --- | --- | --- |
29
+ | Slack | Message drafts | Run `/plugin install slack@claude-plugins-official`, then sign in to Slack from `/mcp`. A workspace admin may need to approve the app. | Install Slack from `/plugins` and sign in when asked. A workspace admin may need to approve the app. | Run `/add-plugin slack`, or install Slack from Customize, then sign in when asked. A workspace admin may need to approve the app. |
30
+
31
+ Message format for Slack, drafting through the connector: standard Markdown, which the connector converts on send ([Slack's messaging guidance](https://github.com/slackapi/slack-mcp-plugin/blob/main/skills/slack-messaging/SKILL.md)): `**bold**`, `_italic_`, `[link text](https://example.com)`, `-` lists, `>` quotes. Do not use mrkdwn's `*bold*` or `<url|text>` here.
32
+
33
+ Message format for Slack, text to paste: Slack mrkdwn ([formatting](https://docs.slack.dev/messaging/formatting-message-text)): `*bold*`, `_italic_`, `<https://example.com|link text>`, lines starting with `•` or `-` for lists, `>` for quotes; no headings or tables; escape `&`, `<` and `>` as `&amp;`, `&lt;` and `&gt;`.
34
+
35
+ Also works with: [Microsoft Teams](https://learn.microsoft.com/en-us/microsoft-copilot-studio/mcp-teams-tools) (read for context). Add the vendor's connector in your host the same way.
36
+
37
+ Verified: [Slack](https://docs.slack.dev/ai/slack-mcp-server) on 2026-10-09, [Microsoft Teams](https://learn.microsoft.com/en-us/microsoft-copilot-studio/mcp-teams-tools) on 2026-10-09.
38
+
39
+ ## Project tracker (`~~project tracker`)
40
+
41
+ Push planning status to linked issues after you approve each change, and read issue state back.
42
+
43
+ | Product | Use | Claude Code | Codex | Cursor |
44
+ | --- | --- | --- | --- | --- |
45
+ | Linear | OpenPlanr syncs with it | Run `/plugin install linear@claude-plugins-official`, then sign in to Linear from `/mcp`. | Install Linear from `/plugins` and sign in when asked. | Run `/add-plugin linear`, or install Linear from Customize, then sign in when asked. |
46
+ | GitHub Issues | OpenPlanr syncs with it | Install the GitHub CLI from cli.github.com and run `gh auth login`. | Install GitHub from `/plugins` and sign in when asked, or install the GitHub CLI and run `gh auth login`. | Install the GitHub CLI from cli.github.com and run `gh auth login`. |
47
+
48
+ Also works with: [Jira](https://support.atlassian.com/atlassian-ai-gateway/docs/get-started-with-the-atlassian-remote-mcp-server/) (read for context), [Asana](https://developers.asana.com/docs/using-asanas-mcp-server) (read for context). Add the vendor's connector in your host the same way.
49
+
50
+ Verified: [Linear](https://linear.app/docs/mcp) on 2026-10-09, [GitHub Issues](https://cli.github.com/manual/gh_auth_login) on 2026-10-09, [Jira](https://support.atlassian.com/atlassian-ai-gateway/docs/get-started-with-the-atlassian-remote-mcp-server/) on 2026-10-09, [Asana](https://developers.asana.com/docs/using-asanas-mcp-server) on 2026-10-09.
51
+
52
+ ## Source control (`~~source control`)
53
+
54
+ Read pull request and branch state for status reports and sprint reviews.
55
+
56
+ | Product | Use | Claude Code | Codex | Cursor |
57
+ | --- | --- | --- | --- | --- |
58
+ | GitHub | Read for context | Install the GitHub CLI from cli.github.com and run `gh auth login`. | Install GitHub from `/plugins` and sign in when asked, or install the GitHub CLI and run `gh auth login`. | Install the GitHub CLI from cli.github.com and run `gh auth login`. |
59
+
60
+ Also works with: [GitLab](https://docs.gitlab.com/user/gitlab_duo/model_context_protocol/mcp_server/) (read for context), [Bitbucket](https://support.atlassian.com/atlassian-ai-gateway/docs/get-started-with-the-atlassian-remote-mcp-server/) (read for context). Add the vendor's connector in your host the same way.
61
+
62
+ Verified: [GitHub](https://cli.github.com/manual/gh_auth_login) on 2026-10-09, [GitLab](https://docs.gitlab.com/user/gitlab_duo/model_context_protocol/mcp_server/) on 2026-10-09, [Bitbucket](https://support.atlassian.com/atlassian-ai-gateway/docs/get-started-with-the-atlassian-remote-mcp-server/) on 2026-10-09.
@@ -17,7 +17,7 @@ Follow with `/planr:plan` to decompose the specification into stories and tasks,
17
17
  ## Install the CLI
18
18
 
19
19
  Several skills call the deterministic `openplanr` CLI from the `openplanr` npm package, which ships
20
- this plugin at the same version (3.0.1):
20
+ this plugin at the same version (3.1.1):
21
21
 
22
22
  ```bash
23
23
  npm install -g openplanr
@@ -1804,7 +1804,7 @@ async function importDesignShareRecovery(file, { input, ...options } = {}) {
1804
1804
  const pending = custody.pendingCreate ?? custody.pendingMutation.body;
1805
1805
  const destination = join3(root, "uploads", custody.id, pending.operationId);
1806
1806
  if (existsSync4(destination)) {
1807
- const { spoolChunkReader: spoolChunkReader2 } = await import("./design-runtime-support-336900df0d39.mjs");
1807
+ const { spoolChunkReader: spoolChunkReader2 } = await import("./design-runtime-support-e34c388a8e59.mjs");
1808
1808
  const reader = spoolChunkReader2(destination, pending);
1809
1809
  for (const part of pending.manifest.chunks) await reader(part.index);
1810
1810
  } else await copyUploadSpool(custody, destination);
@@ -68,17 +68,179 @@ var matchesType = (v, t) => {
68
68
  };
69
69
  var FORMAT_DATE = /^\d{4}-\d{2}-\d{2}$/;
70
70
  var FORMAT_DATETIME = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
71
+ var SUPPORTED_FORMATS = /* @__PURE__ */ new Set(["date", "date-time"]);
72
+ var ANNOTATION_KEYWORDS = [
73
+ "$schema",
74
+ "$id",
75
+ "$defs",
76
+ "$comment",
77
+ "title",
78
+ "description",
79
+ "default",
80
+ "examples",
81
+ "deprecated",
82
+ "readOnly",
83
+ "writeOnly"
84
+ ];
85
+ var VALIDATION_KEYWORDS = [
86
+ "$ref",
87
+ "type",
88
+ "const",
89
+ "enum",
90
+ "minLength",
91
+ "maxLength",
92
+ "pattern",
93
+ "format",
94
+ "minimum",
95
+ "maximum",
96
+ "exclusiveMinimum",
97
+ "minItems",
98
+ "maxItems",
99
+ "prefixItems",
100
+ "items",
101
+ "uniqueItems",
102
+ "contains",
103
+ "minContains",
104
+ "maxContains",
105
+ "required",
106
+ "properties",
107
+ "additionalProperties",
108
+ "maxProperties",
109
+ "dependentRequired",
110
+ "unevaluatedProperties",
111
+ "oneOf",
112
+ "anyOf",
113
+ "allOf",
114
+ "if",
115
+ "then",
116
+ "else",
117
+ "not"
118
+ ];
119
+ var KNOWN_KEYWORDS = /* @__PURE__ */ new Set([...ANNOTATION_KEYWORDS, ...VALIDATION_KEYWORDS]);
120
+ var TYPE_NAMES = /* @__PURE__ */ new Set(["array", "boolean", "integer", "null", "number", "object", "string"]);
121
+ var isSchema = (value) => typeof value === "boolean" || value !== null && typeof value === "object" && !Array.isArray(value);
122
+ var isPlainObject = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
123
+ var isCount = (value) => Number.isSafeInteger(value) && value >= 0;
124
+ var isUniqueStrings = (value) => Array.isArray(value) && value.every((item2) => typeof item2 === "string") && new Set(value).size === value.length;
125
+ var isSchemaArray = (value) => Array.isArray(value) && value.length > 0 && value.every(isSchema);
126
+ var isSchemaMap = (value) => isPlainObject(value) && Object.values(value).every(isSchema);
127
+ var compiledPatterns = /* @__PURE__ */ new Map();
128
+ var MAX_COMPILED_PATTERNS = 1024;
129
+ var tryCompilePattern = (source) => {
130
+ try {
131
+ return new RegExp(source);
132
+ } catch (error) {
133
+ if (error instanceof SyntaxError) return null;
134
+ throw error;
135
+ }
136
+ };
137
+ var compilePattern = (source) => {
138
+ if (!compiledPatterns.has(source)) {
139
+ if (compiledPatterns.size >= MAX_COMPILED_PATTERNS) compiledPatterns.clear();
140
+ compiledPatterns.set(source, tryCompilePattern(source));
141
+ }
142
+ return compiledPatterns.get(source) ?? null;
143
+ };
144
+ var describeValue = (value) => {
145
+ const text3 = String(JSON.stringify(value));
146
+ return text3.length > 80 ? `${text3.slice(0, 77)}...` : text3;
147
+ };
148
+ var KEYWORD_SHAPES = {
149
+ $ref: ["a string", (value) => typeof value === "string"],
150
+ $defs: ["an object of schemas", isSchemaMap],
151
+ type: [
152
+ "a type name or a non-empty array of unique type names",
153
+ (value) => typeof value === "string" && TYPE_NAMES.has(value) || isUniqueStrings(value) && value.length > 0 && value.every((name) => TYPE_NAMES.has(name))
154
+ ],
155
+ enum: ["an array", Array.isArray],
156
+ minLength: ["a non-negative integer", isCount],
157
+ maxLength: ["a non-negative integer", isCount],
158
+ pattern: [
159
+ "a valid regular expression string",
160
+ (value) => typeof value === "string" && compilePattern(value) !== null
161
+ ],
162
+ minimum: ["a finite number", Number.isFinite],
163
+ maximum: ["a finite number", Number.isFinite],
164
+ exclusiveMinimum: ["a finite number", Number.isFinite],
165
+ minItems: ["a non-negative integer", isCount],
166
+ maxItems: ["a non-negative integer", isCount],
167
+ prefixItems: ["a non-empty array of schemas", isSchemaArray],
168
+ items: ["a schema", isSchema],
169
+ uniqueItems: ["a boolean", (value) => typeof value === "boolean"],
170
+ contains: ["a schema", isSchema],
171
+ minContains: ["a non-negative integer", isCount],
172
+ maxContains: ["a non-negative integer", isCount],
173
+ required: ["an array of unique strings", isUniqueStrings],
174
+ properties: ["an object of schemas", isSchemaMap],
175
+ additionalProperties: ["a schema", isSchema],
176
+ maxProperties: ["a non-negative integer", isCount],
177
+ dependentRequired: [
178
+ "an object of unique string arrays",
179
+ (value) => isPlainObject(value) && Object.values(value).every(isUniqueStrings)
180
+ ],
181
+ unevaluatedProperties: ["a schema", isSchema],
182
+ oneOf: ["a non-empty array of schemas", isSchemaArray],
183
+ anyOf: ["a non-empty array of schemas", isSchemaArray],
184
+ allOf: ["a non-empty array of schemas", isSchemaArray],
185
+ if: ["a schema", isSchema],
186
+ then: ["a schema", isSchema],
187
+ else: ["a schema", isSchema],
188
+ not: ["a schema", isSchema]
189
+ };
71
190
  function resolveJsonPointer(root, reference) {
72
191
  if (reference === "#") return root;
73
192
  if (!reference.startsWith("#/")) return null;
74
193
  return reference.slice(2).split("/").map((part) => part.replaceAll("~1", "/").replaceAll("~0", "~")).reduce((value, part) => value?.[part], root);
75
194
  }
195
+ var wellFormedSchemas = /* @__PURE__ */ new WeakSet();
196
+ var isFrozenNode = (schema6) => Object.isFrozen(schema6) && Object.values(schema6).every(Object.isFrozen) && (!isPlainObject(schema6.dependentRequired) || Object.values(schema6.dependentRequired).every(Object.isFrozen));
197
+ var checkSchemaNode = (schema6, path, context) => {
198
+ if (wellFormedSchemas.has(schema6) || context.checkedSchemas.has(schema6)) return;
199
+ context.checkedSchemas.add(schema6);
200
+ const errorCount = context.schemaErrors.length;
201
+ for (const keyword of Object.keys(schema6)) {
202
+ if (!KNOWN_KEYWORDS.has(keyword) && !keyword.startsWith("x-")) {
203
+ context.schemaErrors.push({
204
+ path,
205
+ rule: "unsupported-keyword",
206
+ detail: `schema keyword '${keyword}' is not supported by this validator`
207
+ });
208
+ }
209
+ }
210
+ if (Object.hasOwn(schema6, "format") && !SUPPORTED_FORMATS.has(schema6.format)) {
211
+ context.schemaErrors.push({
212
+ path,
213
+ rule: "unsupported-format",
214
+ detail: `schema format ${JSON.stringify(schema6.format)} is not supported by this validator`
215
+ });
216
+ }
217
+ for (const [keyword, [expected, isValid]] of Object.entries(KEYWORD_SHAPES)) {
218
+ if (Object.hasOwn(schema6, keyword) && !isValid(schema6[keyword])) {
219
+ context.schemaErrors.push({
220
+ path,
221
+ rule: "schema",
222
+ detail: `schema keyword '${keyword}' must be ${expected}, got ${describeValue(schema6[keyword])}`
223
+ });
224
+ }
225
+ }
226
+ if (context.schemaErrors.length === errorCount && isFrozenNode(schema6)) {
227
+ wellFormedSchemas.add(schema6);
228
+ }
229
+ };
230
+ var reportReference = (schema6, path, detail, context) => {
231
+ if (context.reportedReferences.has(schema6)) return;
232
+ context.reportedReferences.add(schema6);
233
+ context.schemaErrors.push({ path, rule: "$ref", detail });
234
+ };
76
235
  var validateNode = (value, schema6, path, errs, context) => {
77
- if (schema6 === true) return;
236
+ const evaluated = /* @__PURE__ */ new Set();
237
+ if (schema6 === true) return evaluated;
78
238
  if (schema6 === false) {
79
239
  errs.push({ path, rule: "schema:false", detail: "value not allowed" });
80
- return;
240
+ return evaluated;
81
241
  }
242
+ if (!isSchema(schema6)) return evaluated;
243
+ checkSchemaNode(schema6, path, context);
82
244
  if (typeof schema6?.$ref === "string") {
83
245
  const reference = schema6.$ref;
84
246
  let resolved;
@@ -92,21 +254,23 @@ var validateNode = (value, schema6, path, errs, context) => {
92
254
  nextRoot = result?.rootSchema ?? resolved;
93
255
  resolvedBase = result?.base ?? resolved?.$id ?? context.base;
94
256
  }
95
- if (!resolved) {
96
- errs.push({ path, rule: "$ref", detail: `could not resolve schema reference ${reference}` });
97
- return;
257
+ if (!isSchema(resolved)) {
258
+ const detail = resolved === void 0 || resolved === null ? `could not resolve schema reference ${reference}` : `schema reference ${reference} resolved to ${typeOf(resolved)}, not a schema`;
259
+ reportReference(schema6, path, detail, context);
260
+ return evaluated;
98
261
  }
99
- const referenceKey = `${context.base ?? "<root>"}:${reference}`;
262
+ const referenceKey = `${path} ${context.base ?? "<root>"}:${reference}`;
100
263
  if (context.referenceStack.includes(referenceKey)) {
101
- errs.push({ path, rule: "$ref", detail: `circular schema reference ${reference}` });
102
- return;
264
+ reportReference(schema6, path, `circular schema reference ${reference}`, context);
265
+ return evaluated;
103
266
  }
104
- validateNode(value, resolved, path, errs, {
267
+ const referenced = validateNode(value, resolved, path, errs, {
105
268
  ...context,
106
269
  rootSchema: nextRoot,
107
270
  base: resolvedBase,
108
271
  referenceStack: [...context.referenceStack, referenceKey]
109
272
  });
273
+ for (const key of referenced) evaluated.add(key);
110
274
  }
111
275
  if (schema6.type !== void 0) {
112
276
  const types = Array.isArray(schema6.type) ? schema6.type : [schema6.type];
@@ -116,7 +280,7 @@ var validateNode = (value, schema6, path, errs, context) => {
116
280
  rule: "type",
117
281
  detail: `expected ${types.join("|")}, got ${typeOf(value)}`
118
282
  });
119
- return;
283
+ return evaluated;
120
284
  }
121
285
  }
122
286
  if (schema6.const !== void 0) {
@@ -152,22 +316,13 @@ var validateNode = (value, schema6, path, errs, context) => {
152
316
  detail: `length ${value.length} > ${schema6.maxLength}`
153
317
  });
154
318
  }
155
- if (typeof schema6.pattern === "string") {
156
- try {
157
- if (!new RegExp(schema6.pattern).test(value)) {
158
- errs.push({
159
- path,
160
- rule: "pattern",
161
- detail: `value ${JSON.stringify(value)} does not match /${schema6.pattern}/`
162
- });
163
- }
164
- } catch (e) {
165
- errs.push({
166
- path,
167
- rule: "pattern",
168
- detail: `invalid regex /${schema6.pattern}/: ${e instanceof Error ? e.message : String(e)}`
169
- });
170
- }
319
+ const pattern = typeof schema6.pattern === "string" ? compilePattern(schema6.pattern) : null;
320
+ if (pattern && !pattern.test(value)) {
321
+ errs.push({
322
+ path,
323
+ rule: "pattern",
324
+ detail: `value ${JSON.stringify(value)} does not match /${schema6.pattern}/`
325
+ });
171
326
  }
172
327
  if (typeof schema6.format === "string") {
173
328
  if (schema6.format === "date" && !FORMAT_DATE.test(value)) {
@@ -192,6 +347,13 @@ var validateNode = (value, schema6, path, errs, context) => {
192
347
  if (typeof schema6.maximum === "number" && value > schema6.maximum) {
193
348
  errs.push({ path, rule: "maximum", detail: `value ${value} > ${schema6.maximum}` });
194
349
  }
350
+ if (typeof schema6.exclusiveMinimum === "number" && value <= schema6.exclusiveMinimum) {
351
+ errs.push({
352
+ path,
353
+ rule: "exclusiveMinimum",
354
+ detail: `value ${value} <= ${schema6.exclusiveMinimum}`
355
+ });
356
+ }
195
357
  }
196
358
  if (Array.isArray(value)) {
197
359
  if (typeof schema6.minItems === "number" && value.length < schema6.minItems) {
@@ -255,8 +417,31 @@ var validateNode = (value, schema6, path, errs, context) => {
255
417
  }
256
418
  }
257
419
  }
420
+ if (typeof schema6.maxProperties === "number" && Object.keys(value).length > schema6.maxProperties) {
421
+ errs.push({
422
+ path,
423
+ rule: "maxProperties",
424
+ detail: `property count ${Object.keys(value).length} > ${schema6.maxProperties}`
425
+ });
426
+ }
427
+ if (schema6.dependentRequired !== null && typeof schema6.dependentRequired === "object") {
428
+ for (const [trigger, dependencies] of Object.entries(schema6.dependentRequired)) {
429
+ if (!Object.hasOwn(value, trigger) || !Array.isArray(dependencies)) continue;
430
+ for (const dependency of dependencies) {
431
+ if (!Object.hasOwn(value, dependency)) {
432
+ errs.push({
433
+ path,
434
+ rule: "dependentRequired",
435
+ detail: `property '${trigger}' requires property '${dependency}'`
436
+ });
437
+ }
438
+ }
439
+ }
440
+ }
258
441
  const props = schema6.properties || {};
259
442
  for (const [k, v] of Object.entries(value)) {
443
+ if (Object.hasOwn(props, k)) evaluated.add(k);
444
+ else if (schema6.additionalProperties !== void 0) evaluated.add(k);
260
445
  if (!Object.hasOwn(props, k)) {
261
446
  if (schema6.additionalProperties === false) {
262
447
  errs.push({ path, rule: "additionalProperties", detail: `unknown property '${k}'` });
@@ -273,8 +458,11 @@ var validateNode = (value, schema6, path, errs, context) => {
273
458
  let matched = 0;
274
459
  for (const sub of schema6.oneOf) {
275
460
  const e = [];
276
- validateNode(value, sub, path, e, context);
277
- if (e.length === 0) matched++;
461
+ const branch = validateNode(value, sub, path, e, context);
462
+ if (e.length === 0) {
463
+ matched++;
464
+ for (const key of branch) evaluated.add(key);
465
+ }
278
466
  }
279
467
  if (matched !== 1) {
280
468
  const titles = schema6.oneOf.map((s) => s.title || "(unnamed)").join(" | ");
@@ -289,8 +477,11 @@ var validateNode = (value, schema6, path, errs, context) => {
289
477
  let matched = 0;
290
478
  for (const sub of schema6.anyOf) {
291
479
  const candidateErrors = [];
292
- validateNode(value, sub, path, candidateErrors, context);
293
- if (candidateErrors.length === 0) matched += 1;
480
+ const branch = validateNode(value, sub, path, candidateErrors, context);
481
+ if (candidateErrors.length === 0) {
482
+ matched += 1;
483
+ for (const key of branch) evaluated.add(key);
484
+ }
294
485
  }
295
486
  if (matched === 0) {
296
487
  const titles = schema6.anyOf.map((sub) => sub.title || "(unnamed)").join(" | ");
@@ -303,14 +494,21 @@ var validateNode = (value, schema6, path, errs, context) => {
303
494
  }
304
495
  if (Array.isArray(schema6.allOf)) {
305
496
  for (const sub of schema6.allOf) {
306
- validateNode(value, sub, path, errs, context);
497
+ for (const key of validateNode(value, sub, path, errs, context)) evaluated.add(key);
307
498
  }
308
499
  }
309
500
  if (schema6.if !== void 0) {
310
501
  const conditionErrors = [];
311
- validateNode(value, schema6.if, path, conditionErrors, context);
312
- const branch = conditionErrors.length === 0 ? schema6.then : schema6.else;
313
- if (branch !== void 0) validateNode(value, branch, path, errs, context);
502
+ const condition = validateNode(value, schema6.if, path, conditionErrors, context);
503
+ const passed = conditionErrors.length === 0;
504
+ if (passed) for (const key of condition) evaluated.add(key);
505
+ const branch = passed ? schema6.then : schema6.else;
506
+ if (branch !== void 0) {
507
+ const branchErrors = [];
508
+ const branchEvaluated = validateNode(value, branch, path, branchErrors, context);
509
+ errs.push(...branchErrors);
510
+ if (branchErrors.length === 0) for (const key of branchEvaluated) evaluated.add(key);
511
+ }
314
512
  }
315
513
  if (schema6.not !== void 0) {
316
514
  const e = [];
@@ -319,6 +517,18 @@ var validateNode = (value, schema6, path, errs, context) => {
319
517
  errs.push({ path, rule: "not", detail: "value matched a forbidden subschema" });
320
518
  }
321
519
  }
520
+ if (schema6.unevaluatedProperties !== void 0 && value !== null && typeof value === "object" && !Array.isArray(value)) {
521
+ for (const [k, v] of Object.entries(value)) {
522
+ if (evaluated.has(k)) continue;
523
+ if (schema6.unevaluatedProperties === false) {
524
+ errs.push({ path, rule: "unevaluatedProperties", detail: `unevaluated property '${k}'` });
525
+ } else {
526
+ validateNode(v, schema6.unevaluatedProperties, `${path}.${k}`, errs, context);
527
+ }
528
+ evaluated.add(k);
529
+ }
530
+ }
531
+ return evaluated;
322
532
  };
323
533
  var validateJson = (value, schema6, {
324
534
  resolveRef,
@@ -328,13 +538,26 @@ var validateJson = (value, schema6, {
328
538
  )
329
539
  } = {}) => {
330
540
  const errs = [];
541
+ const schemaErrors = [];
542
+ if (!isSchema(schema6)) {
543
+ return [
544
+ {
545
+ path: "$",
546
+ rule: "schema",
547
+ detail: `expected a schema object or boolean, got ${typeOf(schema6)}`
548
+ }
549
+ ];
550
+ }
331
551
  validateNode(value, schema6, "$", errs, {
332
552
  rootSchema: schema6,
333
553
  resolveRef,
334
554
  base,
335
- referenceStack: []
555
+ referenceStack: [],
556
+ schemaErrors,
557
+ checkedSchemas: /* @__PURE__ */ new WeakSet(),
558
+ reportedReferences: /* @__PURE__ */ new WeakSet()
336
559
  });
337
- return errs;
560
+ return [...schemaErrors, ...errs];
338
561
  };
339
562
 
340
563
  // packages/protocol/src/enterprise-contract-validation.mjs