@haibun/core 4.0.0-alpha.1 → 4.0.0-alpha.3

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 (297) hide show
  1. package/build/currentVersion.d.ts +1 -1
  2. package/build/currentVersion.js +1 -1
  3. package/build/index.d.ts +1 -1
  4. package/build/index.d.ts.map +1 -1
  5. package/build/index.js +1 -1
  6. package/build/index.js.map +1 -1
  7. package/build/kireji/converter.d.ts +2 -2
  8. package/build/kireji/converter.d.ts.map +1 -1
  9. package/build/kireji/converter.js +12 -9
  10. package/build/kireji/converter.js.map +1 -1
  11. package/build/kireji/withAction.d.ts +16 -4
  12. package/build/kireji/withAction.d.ts.map +1 -1
  13. package/build/kireji/withAction.js +40 -11
  14. package/build/kireji/withAction.js.map +1 -1
  15. package/build/lib/EventLogger.d.ts +5 -5
  16. package/build/lib/EventLogger.d.ts.map +1 -1
  17. package/build/lib/EventLogger.js +39 -37
  18. package/build/lib/EventLogger.js.map +1 -1
  19. package/build/lib/PhaseRunner.d.ts +3 -3
  20. package/build/lib/PhaseRunner.d.ts.map +1 -1
  21. package/build/lib/PhaseRunner.js +7 -5
  22. package/build/lib/PhaseRunner.js.map +1 -1
  23. package/build/lib/astepper.d.ts +90 -13
  24. package/build/lib/astepper.d.ts.map +1 -1
  25. package/build/lib/astepper.js +35 -6
  26. package/build/lib/astepper.js.map +1 -1
  27. package/build/lib/base-prompt-manager.d.ts +1 -1
  28. package/build/lib/base-prompt-manager.d.ts.map +1 -1
  29. package/build/lib/base-prompt-manager.js.map +1 -1
  30. package/build/lib/capture-locator.d.ts +1 -1
  31. package/build/lib/capture-locator.d.ts.map +1 -1
  32. package/build/lib/capture-locator.js +5 -5
  33. package/build/lib/capture-locator.js.map +1 -1
  34. package/build/lib/core/flow-runner.d.ts +8 -7
  35. package/build/lib/core/flow-runner.d.ts.map +1 -1
  36. package/build/lib/core/flow-runner.js +42 -71
  37. package/build/lib/core/flow-runner.js.map +1 -1
  38. package/build/lib/core-domains.d.ts +2 -2
  39. package/build/lib/core-domains.d.ts.map +1 -1
  40. package/build/lib/core-domains.js +17 -18
  41. package/build/lib/core-domains.js.map +1 -1
  42. package/build/lib/defs.d.ts +2 -13
  43. package/build/lib/defs.d.ts.map +1 -1
  44. package/build/lib/defs.js.map +1 -1
  45. package/build/lib/document-content.d.ts +18 -0
  46. package/build/lib/document-content.d.ts.map +1 -0
  47. package/build/lib/document-content.js +158 -0
  48. package/build/lib/document-content.js.map +1 -0
  49. package/build/lib/domains.d.ts +31 -0
  50. package/build/lib/domains.d.ts.map +1 -0
  51. package/build/lib/domains.js +105 -0
  52. package/build/lib/domains.js.map +1 -0
  53. package/build/lib/execution.d.ts +304 -0
  54. package/build/lib/execution.d.ts.map +1 -0
  55. package/build/lib/execution.js +23 -0
  56. package/build/lib/execution.js.map +1 -0
  57. package/build/lib/feature-variables.d.ts +22 -49
  58. package/build/lib/feature-variables.d.ts.map +1 -1
  59. package/build/lib/feature-variables.js +143 -210
  60. package/build/lib/feature-variables.js.map +1 -1
  61. package/build/lib/features.d.ts +2 -2
  62. package/build/lib/features.d.ts.map +1 -1
  63. package/build/lib/features.js +13 -17
  64. package/build/lib/features.js.map +1 -1
  65. package/build/lib/fixme.d.ts.map +1 -1
  66. package/build/lib/host-id.d.ts +44 -0
  67. package/build/lib/host-id.d.ts.map +1 -0
  68. package/build/lib/host-id.js +51 -0
  69. package/build/lib/host-id.js.map +1 -0
  70. package/build/lib/http-observations.d.ts +15 -2
  71. package/build/lib/http-observations.d.ts.map +1 -1
  72. package/build/lib/http-observations.js +40 -23
  73. package/build/lib/http-observations.js.map +1 -1
  74. package/build/lib/hypermedia.d.ts +62 -0
  75. package/build/lib/hypermedia.d.ts.map +1 -0
  76. package/build/lib/hypermedia.js +228 -0
  77. package/build/lib/hypermedia.js.map +1 -0
  78. package/build/lib/namedVars.d.ts +2 -2
  79. package/build/lib/namedVars.d.ts.map +1 -1
  80. package/build/lib/namedVars.js +25 -30
  81. package/build/lib/namedVars.js.map +1 -1
  82. package/build/lib/node-http-events.d.ts +3 -3
  83. package/build/lib/node-http-events.d.ts.map +1 -1
  84. package/build/lib/node-http-events.js +26 -26
  85. package/build/lib/node-http-events.js.map +1 -1
  86. package/build/lib/populateActionArgs.d.ts +4 -4
  87. package/build/lib/populateActionArgs.d.ts.map +1 -1
  88. package/build/lib/populateActionArgs.js +4 -6
  89. package/build/lib/populateActionArgs.js.map +1 -1
  90. package/build/lib/prompter.d.ts.map +1 -1
  91. package/build/lib/prompter.js +10 -7
  92. package/build/lib/prompter.js.map +1 -1
  93. package/build/lib/quad-store.d.ts +34 -10
  94. package/build/lib/quad-store.d.ts.map +1 -1
  95. package/build/lib/quad-store.js +169 -21
  96. package/build/lib/quad-store.js.map +1 -1
  97. package/build/lib/quad-types.d.ts +80 -9
  98. package/build/lib/quad-types.d.ts.map +1 -1
  99. package/build/lib/quad-types.js +46 -2
  100. package/build/lib/quad-types.js.map +1 -1
  101. package/build/lib/readline-prompter.d.ts +1 -1
  102. package/build/lib/readline-prompter.js +4 -4
  103. package/build/lib/remote-stepper-proxy.d.ts +56 -0
  104. package/build/lib/remote-stepper-proxy.d.ts.map +1 -0
  105. package/build/lib/remote-stepper-proxy.js +123 -0
  106. package/build/lib/remote-stepper-proxy.js.map +1 -0
  107. package/build/lib/resolver-features.d.ts +1 -1
  108. package/build/lib/resolver-features.d.ts.map +1 -1
  109. package/build/lib/resolver-features.js +2 -2
  110. package/build/lib/resolver-features.js.map +1 -1
  111. package/build/lib/resources.d.ts +461 -0
  112. package/build/lib/resources.d.ts.map +1 -0
  113. package/build/lib/resources.js +249 -0
  114. package/build/lib/resources.js.map +1 -0
  115. package/build/lib/rpc-client.d.ts +68 -0
  116. package/build/lib/rpc-client.d.ts.map +1 -0
  117. package/build/lib/rpc-client.js +186 -0
  118. package/build/lib/rpc-client.js.map +1 -0
  119. package/build/lib/sse-subscriber.d.ts +57 -0
  120. package/build/lib/sse-subscriber.d.ts.map +1 -0
  121. package/build/lib/sse-subscriber.js +110 -0
  122. package/build/lib/sse-subscriber.js.map +1 -0
  123. package/build/lib/step-dispatch.d.ts +92 -28
  124. package/build/lib/step-dispatch.d.ts.map +1 -1
  125. package/build/lib/step-dispatch.js +331 -75
  126. package/build/lib/step-dispatch.js.map +1 -1
  127. package/build/lib/step-validation.d.ts +3 -3
  128. package/build/lib/step-validation.d.ts.map +1 -1
  129. package/build/lib/step-validation.js +2 -2
  130. package/build/lib/step-validation.js.map +1 -1
  131. package/build/lib/stepper-cycles.d.ts +5 -0
  132. package/build/lib/stepper-cycles.d.ts.map +1 -0
  133. package/build/lib/stepper-cycles.js +31 -0
  134. package/build/lib/stepper-cycles.js.map +1 -0
  135. package/build/lib/stepper-registry.d.ts +6 -3
  136. package/build/lib/stepper-registry.d.ts.map +1 -1
  137. package/build/lib/stepper-registry.js +9 -8
  138. package/build/lib/stepper-registry.js.map +1 -1
  139. package/build/lib/subprocess-runner.d.ts +35 -0
  140. package/build/lib/subprocess-runner.d.ts.map +1 -0
  141. package/build/lib/subprocess-runner.js +60 -0
  142. package/build/lib/subprocess-runner.js.map +1 -0
  143. package/build/lib/subprocess-transport.d.ts +37 -0
  144. package/build/lib/subprocess-transport.d.ts.map +1 -0
  145. package/build/lib/subprocess-transport.js +113 -0
  146. package/build/lib/subprocess-transport.js.map +1 -0
  147. package/build/lib/test/EventCollectorStepper.d.ts +3 -3
  148. package/build/lib/test/EventCollectorStepper.d.ts.map +1 -1
  149. package/build/lib/test/EventCollectorStepper.js +3 -3
  150. package/build/lib/test/EventCollectorStepper.js.map +1 -1
  151. package/build/lib/test/SetTimeStepper.d.ts +3 -3
  152. package/build/lib/test/SetTimeStepper.d.ts.map +1 -1
  153. package/build/lib/test/SetTimeStepper.js +7 -7
  154. package/build/lib/test/SetTimeStepper.js.map +1 -1
  155. package/build/lib/test/TestSteps.d.ts +7 -7
  156. package/build/lib/test/TestSteps.d.ts.map +1 -1
  157. package/build/lib/test/TestSteps.js +7 -7
  158. package/build/lib/test/TestSteps.js.map +1 -1
  159. package/build/lib/test/TestStepsWithOptions.d.ts +6 -6
  160. package/build/lib/test/TestStepsWithOptions.js +7 -7
  161. package/build/lib/test/lib.d.ts +3 -3
  162. package/build/lib/test/lib.d.ts.map +1 -1
  163. package/build/lib/test/lib.js +27 -21
  164. package/build/lib/test/lib.js.map +1 -1
  165. package/build/lib/test/resolvedTestFeatures.d.ts +6 -6
  166. package/build/lib/test/resolvedTestFeatures.d.ts.map +1 -1
  167. package/build/lib/test/resolvedTestFeatures.js +5 -5
  168. package/build/lib/test/subprocess-fixture.d.ts +8 -0
  169. package/build/lib/test/subprocess-fixture.d.ts.map +1 -0
  170. package/build/lib/test/subprocess-fixture.js +27 -0
  171. package/build/lib/test/subprocess-fixture.js.map +1 -0
  172. package/build/lib/ttag.d.ts +7 -1
  173. package/build/lib/ttag.d.ts.map +1 -1
  174. package/build/lib/ttag.js +5 -4
  175. package/build/lib/ttag.js.map +1 -1
  176. package/build/lib/util/dot-path.d.ts +14 -0
  177. package/build/lib/util/dot-path.d.ts.map +1 -0
  178. package/build/lib/util/dot-path.js +51 -0
  179. package/build/lib/util/dot-path.js.map +1 -0
  180. package/build/lib/util/index.d.ts +10 -24
  181. package/build/lib/util/index.d.ts.map +1 -1
  182. package/build/lib/util/index.js +43 -93
  183. package/build/lib/util/index.js.map +1 -1
  184. package/build/lib/util/node/actualURI.d.ts +4 -0
  185. package/build/lib/util/node/actualURI.d.ts.map +1 -0
  186. package/build/lib/util/node/actualURI.js +10 -0
  187. package/build/lib/util/node/actualURI.js.map +1 -0
  188. package/build/lib/util/node/module-loader.d.ts +14 -0
  189. package/build/lib/util/node/module-loader.d.ts.map +1 -0
  190. package/build/lib/util/node/module-loader.js +51 -0
  191. package/build/lib/util/node/module-loader.js.map +1 -0
  192. package/build/lib/util/node/workspace-lib.d.ts +15 -0
  193. package/build/lib/util/node/workspace-lib.d.ts.map +1 -0
  194. package/build/lib/util/node/workspace-lib.js +119 -0
  195. package/build/lib/util/node/workspace-lib.js.map +1 -0
  196. package/build/lib/util/secret-utils.d.ts.map +1 -1
  197. package/build/lib/util/secret-utils.js +2 -2
  198. package/build/lib/util/secret-utils.js.map +1 -1
  199. package/build/lib/vertex-crud.d.ts +22 -0
  200. package/build/lib/vertex-crud.d.ts.map +1 -0
  201. package/build/lib/vertex-crud.js +73 -0
  202. package/build/lib/vertex-crud.js.map +1 -0
  203. package/build/lib/workspace-discovery.d.ts +1 -1
  204. package/build/lib/workspace-discovery.d.ts.map +1 -1
  205. package/build/lib/workspace-discovery.js +10 -10
  206. package/build/lib/workspace-discovery.js.map +1 -1
  207. package/build/lib/zcap-like-authority.d.ts +38 -0
  208. package/build/lib/zcap-like-authority.d.ts.map +1 -0
  209. package/build/lib/zcap-like-authority.js +56 -0
  210. package/build/lib/zcap-like-authority.js.map +1 -0
  211. package/build/monitor/index.d.ts +1 -1
  212. package/build/monitor/index.d.ts.map +1 -1
  213. package/build/monitor/index.js +1 -1
  214. package/build/monitor/index.js.map +1 -1
  215. package/build/phases/Executor.d.ts +31 -7
  216. package/build/phases/Executor.d.ts.map +1 -1
  217. package/build/phases/Executor.js +202 -217
  218. package/build/phases/Executor.js.map +1 -1
  219. package/build/phases/Resolver.d.ts +2 -2
  220. package/build/phases/Resolver.d.ts.map +1 -1
  221. package/build/phases/Resolver.js +35 -30
  222. package/build/phases/Resolver.js.map +1 -1
  223. package/build/phases/collector.d.ts +3 -3
  224. package/build/phases/collector.d.ts.map +1 -1
  225. package/build/phases/collector.js +19 -17
  226. package/build/phases/collector.js.map +1 -1
  227. package/build/run-policy/run-policy-schema.d.ts +3 -5
  228. package/build/run-policy/run-policy-schema.d.ts.map +1 -1
  229. package/build/run-policy/run-policy-schema.js +41 -37
  230. package/build/run-policy/run-policy-schema.js.map +1 -1
  231. package/build/run-policy/run-policy-types.d.ts +1 -1
  232. package/build/run-policy/run-policy-types.d.ts.map +1 -1
  233. package/build/run-policy/run-policy-types.js +19 -16
  234. package/build/run-policy/run-policy-types.js.map +1 -1
  235. package/build/runner.d.ts +4 -4
  236. package/build/runner.d.ts.map +1 -1
  237. package/build/runner.js +15 -13
  238. package/build/runner.js.map +1 -1
  239. package/build/schema/protocol.d.ts +155 -63
  240. package/build/schema/protocol.d.ts.map +1 -1
  241. package/build/schema/protocol.js +177 -148
  242. package/build/schema/protocol.js.map +1 -1
  243. package/build/steps/activities-stepper.d.ts +14 -13
  244. package/build/steps/activities-stepper.d.ts.map +1 -1
  245. package/build/steps/activities-stepper.js +116 -78
  246. package/build/steps/activities-stepper.js.map +1 -1
  247. package/build/steps/conformance.d.ts +5 -5
  248. package/build/steps/conformance.js +4 -4
  249. package/build/steps/console-monitor-stepper.d.ts +2 -2
  250. package/build/steps/console-monitor-stepper.d.ts.map +1 -1
  251. package/build/steps/console-monitor-stepper.js +22 -22
  252. package/build/steps/console-monitor-stepper.js.map +1 -1
  253. package/build/steps/debugger-stepper.d.ts +11 -11
  254. package/build/steps/debugger-stepper.d.ts.map +1 -1
  255. package/build/steps/debugger-stepper.js +65 -64
  256. package/build/steps/debugger-stepper.js.map +1 -1
  257. package/build/steps/finalizer-stepper.d.ts +3 -4
  258. package/build/steps/finalizer-stepper.d.ts.map +1 -1
  259. package/build/steps/finalizer-stepper.js +16 -19
  260. package/build/steps/finalizer-stepper.js.map +1 -1
  261. package/build/steps/haibun.d.ts +27 -20
  262. package/build/steps/haibun.d.ts.map +1 -1
  263. package/build/steps/haibun.js +76 -67
  264. package/build/steps/haibun.js.map +1 -1
  265. package/build/steps/lib/tts.d.ts +1 -1
  266. package/build/steps/lib/tts.d.ts.map +1 -1
  267. package/build/steps/lib/tts.js +28 -28
  268. package/build/steps/lib/tts.js.map +1 -1
  269. package/build/steps/logic-stepper.d.ts +5 -5
  270. package/build/steps/logic-stepper.d.ts.map +1 -1
  271. package/build/steps/logic-stepper.js +76 -76
  272. package/build/steps/logic-stepper.js.map +1 -1
  273. package/build/steps/narrator.d.ts +9 -9
  274. package/build/steps/narrator.d.ts.map +1 -1
  275. package/build/steps/narrator.js +32 -28
  276. package/build/steps/narrator.js.map +1 -1
  277. package/build/steps/resources-stepper.d.ts +47 -0
  278. package/build/steps/resources-stepper.d.ts.map +1 -0
  279. package/build/steps/resources-stepper.js +100 -0
  280. package/build/steps/resources-stepper.js.map +1 -0
  281. package/build/steps/variables-stepper.d.ts +82 -54
  282. package/build/steps/variables-stepper.d.ts.map +1 -1
  283. package/build/steps/variables-stepper.js +264 -216
  284. package/build/steps/variables-stepper.js.map +1 -1
  285. package/build/steps/zcap-like-stepper.d.ts +50 -0
  286. package/build/steps/zcap-like-stepper.d.ts.map +1 -0
  287. package/build/steps/zcap-like-stepper.js +113 -0
  288. package/build/steps/zcap-like-stepper.js.map +1 -0
  289. package/package.json +1 -1
  290. package/build/lib/consts.d.ts +0 -5
  291. package/build/lib/consts.d.ts.map +0 -1
  292. package/build/lib/consts.js +0 -5
  293. package/build/lib/consts.js.map +0 -1
  294. package/build/lib/step-helpers.d.ts +0 -10
  295. package/build/lib/step-helpers.d.ts.map +0 -1
  296. package/build/lib/step-helpers.js +0 -16
  297. package/build/lib/step-helpers.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-stepper-proxy.js","sourceRoot":"","sources":["../../src/lib/remote-stepper-proxy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAoC,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE5F,OAAO,EAAE,SAAS,EAAiB,MAAM,iBAAiB,CAAC;AAE3D,MAAM,OAAO,kBAAmB,SAAQ,QAAQ;IAYtC;IACA;IAZA,IAAI,CAAS;IACd,eAAe,GAAqB,EAAE,CAAC;IACvC,GAAG,CAAY;IACvB;;;;OAIG;IACK,MAAM,CAAqB;IAEnC,YACS,SAAiB,E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AAC;IAC7B,CAAC;IAED,KAAK,GAAG,EAAE,CAAC;CACX"}
@@ -1,4 +1,4 @@
1
- import { TExpandedFeature } from './defs.js';
1
+ import { TExpandedFeature } from "./execution.js";
2
2
  export type TProtoFeature = {
3
3
  base?: string;
4
4
  path: string;
@@ -1 +1 @@
1
- {"version":3,"file":"resolver-features.d.ts","sourceRoot":"","sources":["../../src/lib/resolver-features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAK5D,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;CAAE,EAAE,CAAA;AAE/E,eAAO,MAAM,UAAU,GAAI,GAAG,aAAa;;;;;;;GAAuE,CAAC;AAGnH,eAAO,MAAM,kBAAkB,GAAI,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;CAAE,EAAE,KAAG,gBAAgB,EAM1G,CAAC"}
1
+ {"version":3,"file":"resolver-features.d.ts","sourceRoot":"","sources":["../../src/lib/resolver-features.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKjE,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC;AAE/E,eAAO,MAAM,UAAU,GAAI,GAAG,aAAa;;;;;;;GAAuE,CAAC;AAGnH,eAAO,MAAM,kBAAkB,GAAI,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,KAAG,gBAAgB,EAOxG,CAAC"}
@@ -1,5 +1,5 @@
1
- import { TEST_BASE } from '../schema/protocol.js';
2
- import { featureSplit, withNameType } from './features.js';
1
+ import { TEST_BASE } from "../schema/protocol.js";
2
+ import { featureSplit, withNameType } from "./features.js";
3
3
  export const asFeatures = (w) => w.map((i) => withNameType(i.base || TEST_BASE, i.path, i.content));
4
4
  // FIXME can't really do this without reproducing resolve
5
5
  export const asExpandedFeatures = (w) => asFeatures(w).map((i) => {
@@ -1 +1 @@
1
- {"version":3,"file":"resolver-features.js","sourceRoot":"","sources":["../../src/lib/resolver-features.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI3D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAgB,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,IAAI,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAEnH,yDAAyD;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAsD,EAAsB,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;IACzI,MAAM,QAAQ,GAAoB,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1H,MAAM,CAAC,GAAc,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC;IACxC,OAAQ,CAA0B,CAAC,OAAO,CAAC;IAC3C,kCAAkC;IAClC,OAAO,CAAqB,CAAC;AAC9B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"resolver-features.js","sourceRoot":"","sources":["../../src/lib/resolver-features.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAI3D,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAgB,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,IAAI,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;AAEnH,yDAAyD;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAqD,EAAsB,EAAE,CAC/G,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;IACvB,MAAM,QAAQ,GAAoB,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,GAAG,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1H,MAAM,CAAC,GAAc,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC;IACxC,OAAQ,CAA0B,CAAC,OAAO,CAAC;IAC3C,kCAAkC;IAClC,OAAO,CAAqB,CAAC;AAC9B,CAAC,CAAC,CAAC"}
@@ -0,0 +1,461 @@
1
+ /**
2
+ * Resources — the vocabulary and topology of things stored in a graph.
3
+ *
4
+ * Answers "what is a graph resource, how is it typed, how does it link, and how is it governed?"
5
+ * Pure declarative data: zod schemas, type aliases, vocabulary consts, and tiny pure derivations.
6
+ * No runtime behavior, no node built-ins — browser-safe.
7
+ *
8
+ * Contents:
9
+ * - Resource identity (id/type), Access levels, Comment vocabulary
10
+ * - LinkRelations + EdgePredicates: semantic labels for properties and edges (ActivityStreams / JSON-LD)
11
+ * - TRel / TPropertyDef / TEdgeDef / TDomainTopology: the shape of a vertex-type declaration
12
+ * - TDomainDefinition / TRegisteredDomain: how steppers register a domain
13
+ * - Helpers: getRel, getMediaType, edgeRel, isReplyEdge
14
+ *
15
+ * Grounded in JSON-LD / ActivityStreams / RDF — vertex label is a local handle, `type` is the
16
+ * RDF class URI that JSON-LD emits, `id` is the IRI.
17
+ */
18
+ import { z } from "zod";
19
+ /**
20
+ * The universal shape of anything identifiable and typed.
21
+ * `id` is the identifier (IRI in JSON-LD emission), `type` is the RDF class
22
+ * (typically a compact IRI like "vc:VerifiableCredential"; mapped to `@type` via JSON-LD context).
23
+ *
24
+ * Field naming follows the W3C VC 2.0 data model (unquoted `id`/`type`); the `@id`/`@type`
25
+ * JSON-LD keywords are produced by the context at serialization time.
26
+ */
27
+ export declare const ResourceSchema: z.ZodObject<{
28
+ id: z.ZodString;
29
+ type: z.ZodString;
30
+ }, z.core.$strip>;
31
+ export type TResource = z.infer<typeof ResourceSchema>;
32
+ /** Root vertex label — any resource. Use as edge range when the target is polymorphic. */
33
+ export declare const RESOURCE_LABEL = "Resource";
34
+ export declare const AccessLevelSchema: z.ZodEnum<{
35
+ private: "private";
36
+ public: "public";
37
+ opened: "opened";
38
+ }>;
39
+ export type AccessLevel = z.infer<typeof AccessLevelSchema>;
40
+ export declare const Access: {
41
+ private: "private";
42
+ public: "public";
43
+ opened: "opened";
44
+ };
45
+ export declare const AccessQueryLevelSchema: z.ZodEnum<{
46
+ private: "private";
47
+ public: "public";
48
+ opened: "opened";
49
+ all: "all";
50
+ }>;
51
+ export type AccessQueryLevel = z.infer<typeof AccessQueryLevelSchema>;
52
+ export declare const AccessQuery: {
53
+ private: "private";
54
+ public: "public";
55
+ opened: "opened";
56
+ all: "all";
57
+ };
58
+ /**
59
+ * Free-text annotation attached to any Resource. Threads via IN_REPLY_TO.
60
+ * The commentsOn edge carries rel IN_REPLY_TO and range Resource.
61
+ *
62
+ * Full Zod schema and domain definition live at the bottom of this file,
63
+ * after TDomainDefinition is declared — see `CommentSchema` and
64
+ * `commentDomainDefinition`.
65
+ */
66
+ export declare const COMMENT_LABEL = "Comment";
67
+ export declare const COMMENT_DOMAIN = "comment";
68
+ export declare const COMMENT_EDGE = "commentsOn";
69
+ /**
70
+ * Discourse — closed set of speech acts a Comment can perform.
71
+ *
72
+ * Every Comment carries a required discourse tag. The set is deliberately
73
+ * small and closed; adding a value is a PR and requires a linked-data
74
+ * mapping note.
75
+ *
76
+ * suggest — schema:SuggestAction; proposing a change
77
+ * measure — narration of a sosa:Observation
78
+ * report — schema:Report / as:Announce
79
+ * narrate — prose narration (no standard mapping)
80
+ * question — schema:Question; asking for clarification
81
+ * apply — narration of a schema:UpdateAction (the Development is the act)
82
+ * revert — narration of a schema:UpdateAction undoing a prior apply
83
+ * play — rehearsal or try-out; prov:Activity with no side effects
84
+ */
85
+ export declare const DISCOURSE: {
86
+ readonly suggest: "suggest";
87
+ readonly measure: "measure";
88
+ readonly report: "report";
89
+ readonly narrate: "narrate";
90
+ readonly question: "question";
91
+ readonly apply: "apply";
92
+ readonly revert: "revert";
93
+ readonly play: "play";
94
+ };
95
+ export declare const DiscourseSchema: z.ZodEnum<{
96
+ [x: string]: string;
97
+ }>;
98
+ export type Discourse = z.infer<typeof DiscourseSchema>;
99
+ /**
100
+ * Link relation types — the canonical set of semantic rels for vertex properties and edges.
101
+ * Declaration order determines column display priority in result tables.
102
+ *
103
+ * `range` is the RDF range of the predicate — what it points at:
104
+ * - "iri": points at another resource (an IRI / vertex id). Renders as a navigable item.
105
+ * - "literal": points at a literal value (string, number, date). Renders as a filter.
106
+ * - "container": points at a multi-valued structure (bag, list, or nested context).
107
+ * Renders as a select/select-like control.
108
+ *
109
+ * This is a deliberately small subset of RDFS — no reasoner, no subPropertyOf, just enough
110
+ * to let `linkRelFromSemantic` be a one-line lookup instead of a growing if/else chain.
111
+ *
112
+ * `relation` (legacy, retained for back-compat) is true iff `range === "iri"` AND the link
113
+ * participates in conversational/threading semantics (used by getRelated and View relations).
114
+ * Not every IRI-range rel is a "relation" in this sense — e.g. `attributedTo` is IRI-ranged
115
+ * but not a conversational link.
116
+ */
117
+ export type TRelRange = "iri" | "literal" | "container";
118
+ export declare const LinkRelations: {
119
+ readonly NAME: {
120
+ readonly rel: "name";
121
+ readonly uri: "as:name";
122
+ readonly range: "literal";
123
+ readonly relation: false;
124
+ };
125
+ readonly PUBLISHED: {
126
+ readonly rel: "published";
127
+ readonly uri: "as:published";
128
+ readonly range: "literal";
129
+ readonly relation: false;
130
+ };
131
+ readonly ATTRIBUTED_TO: {
132
+ readonly rel: "attributedTo";
133
+ readonly uri: "as:attributedTo";
134
+ readonly range: "iri";
135
+ readonly relation: false;
136
+ };
137
+ readonly AUDIENCE: {
138
+ readonly rel: "audience";
139
+ readonly uri: "as:to";
140
+ readonly range: "iri";
141
+ readonly relation: false;
142
+ };
143
+ readonly CONTEXT: {
144
+ readonly rel: "context";
145
+ readonly uri: "as:context";
146
+ readonly range: "container";
147
+ readonly relation: false;
148
+ };
149
+ readonly UPDATED: {
150
+ readonly rel: "updated";
151
+ readonly uri: "as:updated";
152
+ readonly range: "literal";
153
+ readonly relation: false;
154
+ };
155
+ readonly CONTENT: {
156
+ readonly rel: "content";
157
+ readonly uri: "as:content";
158
+ readonly range: "literal";
159
+ readonly relation: false;
160
+ };
161
+ readonly IN_REPLY_TO: {
162
+ readonly rel: "inReplyTo";
163
+ readonly uri: "as:inReplyTo";
164
+ readonly range: "iri";
165
+ readonly relation: true;
166
+ };
167
+ readonly ATTACHMENT: {
168
+ readonly rel: "attachment";
169
+ readonly uri: "as:attachment";
170
+ readonly range: "iri";
171
+ readonly relation: false;
172
+ };
173
+ readonly TAG: {
174
+ readonly rel: "tag";
175
+ readonly uri: "as:tag";
176
+ readonly range: "literal";
177
+ readonly relation: false;
178
+ };
179
+ readonly IDENTIFIER: {
180
+ readonly rel: "identifier";
181
+ readonly uri: "dcterms:identifier";
182
+ readonly range: "iri";
183
+ readonly relation: false;
184
+ };
185
+ readonly URL: {
186
+ readonly rel: "url";
187
+ readonly uri: "as:url";
188
+ readonly range: "literal";
189
+ readonly relation: false;
190
+ };
191
+ readonly WAS_INFORMED_BY: {
192
+ readonly rel: "wasInformedBy";
193
+ readonly uri: "prov:wasInformedBy";
194
+ readonly range: "iri";
195
+ readonly relation: true;
196
+ };
197
+ readonly INVALIDATED: {
198
+ readonly rel: "invalidated";
199
+ readonly uri: "prov:invalidated";
200
+ readonly range: "iri";
201
+ readonly relation: true;
202
+ };
203
+ readonly WAS_ASSOCIATED_WITH: {
204
+ readonly rel: "wasAssociatedWith";
205
+ readonly uri: "prov:wasAssociatedWith";
206
+ readonly range: "iri";
207
+ readonly relation: false;
208
+ };
209
+ readonly WAS_STARTED_BY: {
210
+ readonly rel: "wasStartedBy";
211
+ readonly uri: "prov:wasStartedBy";
212
+ readonly range: "iri";
213
+ readonly relation: true;
214
+ };
215
+ readonly STARTED_AT_TIME: {
216
+ readonly rel: "startedAtTime";
217
+ readonly uri: "prov:startedAtTime";
218
+ readonly range: "literal";
219
+ readonly relation: false;
220
+ };
221
+ readonly PHENOMENON_TIME: {
222
+ readonly rel: "phenomenonTime";
223
+ readonly uri: "sosa:phenomenonTime";
224
+ readonly range: "literal";
225
+ readonly relation: false;
226
+ };
227
+ readonly RESULT_TIME: {
228
+ readonly rel: "resultTime";
229
+ readonly uri: "sosa:resultTime";
230
+ readonly range: "literal";
231
+ readonly relation: false;
232
+ };
233
+ readonly HAS_RESULT: {
234
+ readonly rel: "hasResult";
235
+ readonly uri: "sosa:hasResult";
236
+ readonly range: "container";
237
+ readonly relation: false;
238
+ };
239
+ readonly MADE_BY_SENSOR: {
240
+ readonly rel: "madeBySensor";
241
+ readonly uri: "sosa:madeBySensor";
242
+ readonly range: "iri";
243
+ readonly relation: true;
244
+ };
245
+ readonly OBSERVED_PROPERTY: {
246
+ readonly rel: "observedProperty";
247
+ readonly uri: "sosa:observedProperty";
248
+ readonly range: "literal";
249
+ readonly relation: false;
250
+ };
251
+ readonly SCHEMA_OBJECT: {
252
+ readonly rel: "schemaObject";
253
+ readonly uri: "schema:object";
254
+ readonly range: "literal";
255
+ readonly relation: false;
256
+ };
257
+ readonly SCHEMA_RESULT: {
258
+ readonly rel: "schemaResult";
259
+ readonly uri: "schema:result";
260
+ readonly range: "literal";
261
+ readonly relation: false;
262
+ };
263
+ readonly REPLACEE: {
264
+ readonly rel: "replacee";
265
+ readonly uri: "schema:replacee";
266
+ readonly range: "literal";
267
+ readonly relation: false;
268
+ };
269
+ readonly REPLACEMENT: {
270
+ readonly rel: "replacement";
271
+ readonly uri: "schema:replacement";
272
+ readonly range: "literal";
273
+ readonly relation: false;
274
+ };
275
+ readonly DISCOURSE: {
276
+ readonly rel: "discourse";
277
+ readonly uri: "hbn:discourse";
278
+ readonly range: "literal";
279
+ readonly relation: false;
280
+ };
281
+ readonly SEQ_PATH: {
282
+ readonly rel: "seqPath";
283
+ readonly uri: "hbn:seqPath";
284
+ readonly range: "literal";
285
+ readonly relation: false;
286
+ };
287
+ readonly HOST_ID: {
288
+ readonly rel: "hostId";
289
+ readonly uri: "hbn:hostId";
290
+ readonly range: "literal";
291
+ readonly relation: false;
292
+ };
293
+ readonly ACCESS_LEVEL: {
294
+ readonly rel: "accessLevel";
295
+ readonly uri: "hbn:accessLevel";
296
+ readonly range: "literal";
297
+ readonly relation: false;
298
+ };
299
+ readonly MEASUREMENT_KIND: {
300
+ readonly rel: "measurementKind";
301
+ readonly uri: "hbn:measurementKind";
302
+ readonly range: "literal";
303
+ readonly relation: false;
304
+ };
305
+ readonly SHAPE_DIGEST: {
306
+ readonly rel: "shapeDigest";
307
+ readonly uri: "hbn:shapeDigest";
308
+ readonly range: "container";
309
+ readonly relation: false;
310
+ };
311
+ readonly OUTCOME_REASON: {
312
+ readonly rel: "outcomeReason";
313
+ readonly uri: "hbn:outcomeReason";
314
+ readonly range: "literal";
315
+ readonly relation: false;
316
+ };
317
+ };
318
+ /** Lookup a rel's RDF range. Returns undefined for unknown rels. */
319
+ export declare function getRelRange(rel: string): TRelRange | undefined;
320
+ export type TRel = (typeof LinkRelations)[keyof typeof LinkRelations]["rel"];
321
+ /** JSON-LD context mapping: rel → standard URI. Derived from LinkRelations. */
322
+ export declare const REL_CONTEXT: Record<TRel, string>;
323
+ /**
324
+ * Standard edge predicates for graph vertices.
325
+ * Each carries its LinkRelation rel — the single source of truth for predicate→rel resolution.
326
+ * Steppers use these as edge keys in getConcerns().edges and in createEdge() calls.
327
+ */
328
+ export declare const EdgePredicates: {
329
+ readonly from: {
330
+ readonly rel: "attributedTo";
331
+ };
332
+ readonly to: {
333
+ readonly rel: "audience";
334
+ };
335
+ readonly cc: {
336
+ readonly rel: "audience";
337
+ };
338
+ readonly author: {
339
+ readonly rel: "attributedTo";
340
+ };
341
+ readonly attachment: {
342
+ readonly rel: "attachment";
343
+ };
344
+ readonly inReplyTo: {
345
+ readonly rel: "inReplyTo";
346
+ };
347
+ readonly references: {
348
+ readonly rel: "context";
349
+ };
350
+ readonly commentsOn: {
351
+ readonly rel: "inReplyTo";
352
+ };
353
+ readonly endpoint: {
354
+ readonly rel: "url";
355
+ };
356
+ readonly wasInformedBy: {
357
+ readonly rel: "wasInformedBy";
358
+ };
359
+ readonly invalidated: {
360
+ readonly rel: "invalidated";
361
+ };
362
+ readonly madeBySensor: {
363
+ readonly rel: "madeBySensor";
364
+ };
365
+ };
366
+ export type TEdgePredicate = keyof typeof EdgePredicates;
367
+ /** Edge predicate name strings — use `EDGE.from` instead of `"from"`. */
368
+ export declare const EDGE: {
369
+ [K in TEdgePredicate]: K;
370
+ };
371
+ /** Resolve a predicate name to its rel. */
372
+ export declare function edgeRel(predicate: string): TRel | undefined;
373
+ /**
374
+ * Check if an edge type (predicate name or rel) is a reply-type link.
375
+ * Resolves predicate names via EdgePredicates, then checks the rel.
376
+ */
377
+ export declare function isReplyEdge(edgeType: string): boolean;
378
+ /** Property definition: either a rel string or a rel with mediaType for content fields. */
379
+ export type TPropertyDef = TRel | {
380
+ rel: TRel;
381
+ mediaType?: string;
382
+ };
383
+ /** Edge definition: target vertex type. The rel is resolved from EdgePredicates[key]; override with explicit rel for domain-specific edges not in the canonical set. */
384
+ export type TEdgeDef = {
385
+ range: string;
386
+ rel?: TRel;
387
+ };
388
+ /** Domain topology — vertex label, id field, property rels, edges, indexes. Drives CRUD, JSON-LD, and UI. */
389
+ export type TDomainTopology = {
390
+ vertexLabel: string;
391
+ type?: string;
392
+ id: string;
393
+ properties: Record<string, TPropertyDef>;
394
+ edges?: Record<string, TEdgeDef>;
395
+ /** DB-specific: which properties to index for fast lookup. */
396
+ propertyIndexes?: string[];
397
+ /** DB-specific: default sort columns per property. */
398
+ sortColumns?: Record<string, string>;
399
+ };
400
+ /** Get the rel for a property definition. */
401
+ export declare function getRel(def: TPropertyDef): TRel;
402
+ /** Get the mediaType for a content property, if any. */
403
+ export declare function getMediaType(def: TPropertyDef): string | undefined;
404
+ /** Domain name for type labels — auto-populated from registered domains with topology. */
405
+ export declare const DOMAIN_VERTEX_LABEL = "vertex-label";
406
+ /** Coercion function: parse a step value (or other proto) into the domain's native representation. */
407
+ export type TDomainCoercer = (proto: import("../schema/protocol.js").TStepValue, featureStep?: import("./execution.js").TFeatureStep, steppers?: import("./astepper.js").AStepper[]) => import("../schema/protocol.js").TStepValueValue;
408
+ /** Comparator between two coerced domain values. */
409
+ export type TDomainComparator = (value: import("../schema/protocol.js").TStepValueValue, baseline: import("../schema/protocol.js").TStepValueValue) => number;
410
+ export type TDomainDefinition = {
411
+ selectors: string[];
412
+ schema: z.ZodType;
413
+ coerce?: TDomainCoercer;
414
+ comparator?: TDomainComparator;
415
+ values?: string[];
416
+ description?: string;
417
+ /** Stepper that registered this domain (set automatically by registerDomains) */
418
+ stepperName?: string;
419
+ /** Vertex topology — label, id, property rels, edges, indexes. Undefined for non-vertex domains. */
420
+ topology?: TDomainTopology;
421
+ };
422
+ export type TRegisteredDomain = {
423
+ selectors: string[];
424
+ schema: z.ZodType;
425
+ coerce: TDomainCoercer;
426
+ comparator?: TDomainComparator;
427
+ values?: string[];
428
+ description?: string;
429
+ stepperName?: string;
430
+ topology?: TDomainTopology;
431
+ };
432
+ /**
433
+ * Comment — free-text annotation attached to any Resource. See COMMENT_LABEL /
434
+ * COMMENT_DOMAIN / COMMENT_EDGE near the top of this file for the vocabulary
435
+ * consts.
436
+ *
437
+ * `discourse` tags the speech act (suggest, measure, report, narrate,
438
+ * question, apply, revert, play). Closed enum in ./discourse.ts.
439
+ *
440
+ * `author` stays an optional URI string at the storage layer (e.g.
441
+ * "user:alice", "stepper:llm", "llm:gpt-x"). Legacy data may lack it.
442
+ * Structured-Actor hydration is a query-time projection, not storage.
443
+ */
444
+ export declare const CommentSchema: z.ZodObject<{
445
+ id: z.ZodString;
446
+ text: z.ZodString;
447
+ author: z.ZodOptional<z.ZodString>;
448
+ discourse: z.ZodEnum<{
449
+ [x: string]: string;
450
+ }>;
451
+ timestamp: z.ZodString;
452
+ }, z.core.$strip>;
453
+ export type TComment = z.infer<typeof CommentSchema>;
454
+ /**
455
+ * Comment domain definition — register this in a stepper's
456
+ * `getConcerns().domains` to expose Comment as a first-class graph vertex.
457
+ * Topology uses existing LinkRelations for every property; no new rels
458
+ * introduced here.
459
+ */
460
+ export declare const commentDomainDefinition: TDomainDefinition;
461
+ //# sourceMappingURL=resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/lib/resources.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;iBAGzB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAA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