@fungi.computer/braid 0.0.0-stage → 0.1.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 (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +260 -2
  3. package/dist/cloudflare/graph-engine.d.ts +25 -0
  4. package/dist/cloudflare/graph-engine.js +46 -0
  5. package/dist/cloudflare/graph-program.d.ts +6 -0
  6. package/dist/cloudflare/graph-program.js +550 -0
  7. package/dist/cloudflare/index.d.ts +1 -0
  8. package/dist/cloudflare/index.js +1 -0
  9. package/dist/code-execution.d.ts +16 -0
  10. package/dist/code-execution.js +50 -0
  11. package/dist/code-result.d.ts +11 -0
  12. package/dist/code-result.js +19 -0
  13. package/dist/code-sandbox.d.ts +9 -0
  14. package/dist/code-sandbox.js +13 -0
  15. package/dist/compile.d.ts +43 -0
  16. package/dist/compile.js +248 -0
  17. package/dist/execution.d.ts +194 -0
  18. package/dist/execution.js +130 -0
  19. package/dist/expressions.d.ts +16 -0
  20. package/dist/expressions.js +322 -0
  21. package/dist/git-access.d.ts +59 -0
  22. package/dist/git-access.js +106 -0
  23. package/dist/index.d.ts +9 -0
  24. package/dist/index.js +9 -0
  25. package/dist/ports.d.ts +58 -0
  26. package/dist/ports.js +256 -0
  27. package/dist/review-text.d.ts +15 -0
  28. package/dist/review-text.js +40 -0
  29. package/dist/runtime/arming-authority.d.ts +83 -0
  30. package/dist/runtime/arming-authority.js +90 -0
  31. package/dist/runtime/bindings.d.ts +25 -0
  32. package/dist/runtime/bindings.js +41 -0
  33. package/dist/runtime/capture.d.ts +18 -0
  34. package/dist/runtime/capture.js +99 -0
  35. package/dist/runtime/git-pass-contract.d.ts +63 -0
  36. package/dist/runtime/git-pass-contract.js +36 -0
  37. package/dist/runtime/git-pass-store.d.ts +32 -0
  38. package/dist/runtime/git-pass-store.js +82 -0
  39. package/dist/runtime/git-pass.d.ts +41 -0
  40. package/dist/runtime/git-pass.js +72 -0
  41. package/dist/runtime/graph-contract.d.ts +788 -0
  42. package/dist/runtime/graph-contract.js +122 -0
  43. package/dist/runtime/graph-dispatch.d.ts +31 -0
  44. package/dist/runtime/graph-dispatch.js +111 -0
  45. package/dist/runtime/graph-run-store.d.ts +79 -0
  46. package/dist/runtime/graph-run-store.js +267 -0
  47. package/dist/runtime/graph-start.d.ts +90 -0
  48. package/dist/runtime/graph-start.js +124 -0
  49. package/dist/runtime/index.d.ts +20 -0
  50. package/dist/runtime/index.js +20 -0
  51. package/dist/runtime/ports.d.ts +156 -0
  52. package/dist/runtime/ports.js +1 -0
  53. package/dist/runtime/run-authority.d.ts +60 -0
  54. package/dist/runtime/run-authority.js +145 -0
  55. package/dist/runtime/run-ceiling.d.ts +106 -0
  56. package/dist/runtime/run-ceiling.js +23 -0
  57. package/dist/runtime/run-member.d.ts +3 -0
  58. package/dist/runtime/run-member.js +12 -0
  59. package/dist/runtime/run-owner.d.ts +1650 -0
  60. package/dist/runtime/run-owner.js +513 -0
  61. package/dist/runtime/run-report.d.ts +14 -0
  62. package/dist/runtime/run-report.js +23 -0
  63. package/dist/runtime/schedules.d.ts +39 -0
  64. package/dist/runtime/schedules.js +149 -0
  65. package/dist/runtime/stored-trigger-rows.d.ts +12 -0
  66. package/dist/runtime/stored-trigger-rows.js +17 -0
  67. package/dist/runtime/trigger-owner.d.ts +594 -0
  68. package/dist/runtime/trigger-owner.js +280 -0
  69. package/dist/runtime/trigger-plans.d.ts +774 -0
  70. package/dist/runtime/trigger-plans.js +62 -0
  71. package/dist/runtime/trigger-router.d.ts +34 -0
  72. package/dist/runtime/trigger-router.js +143 -0
  73. package/dist/runtime/trigger-run-reservations.d.ts +28 -0
  74. package/dist/runtime/trigger-run-reservations.js +114 -0
  75. package/dist/schema.d.ts +1183 -0
  76. package/dist/schema.js +239 -0
  77. package/dist/triggers.d.ts +46 -0
  78. package/dist/triggers.js +75 -0
  79. package/dist/validate.d.ts +25 -0
  80. package/dist/validate.js +686 -0
  81. package/dist/workflow-id.d.ts +3 -0
  82. package/dist/workflow-id.js +3 -0
  83. package/package.json +96 -3
@@ -0,0 +1,3 @@
1
+ import { z } from "zod";
2
+ /** Identity of a versioned Workflow document, shared by hosts and the Trellis App. */
3
+ export const workflowIdSchema = z.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/);
package/package.json CHANGED
@@ -1,6 +1,99 @@
1
1
  {
2
2
  "name": "@fungi.computer/braid",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "author": "Levi <levi@technomancy.dev>",
5
+ "type": "module",
6
+ "description": "Pure versioned Workflow graph validation and content-addressed compilation",
7
+ "exports": {
8
+ "./git-access": {
9
+ "types": "./dist/git-access.d.ts",
10
+ "import": "./dist/git-access.js"
11
+ },
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ },
16
+ "./cloudflare": {
17
+ "types": "./dist/cloudflare/index.d.ts",
18
+ "import": "./dist/cloudflare/index.js"
19
+ },
20
+ "./runtime": {
21
+ "types": "./dist/runtime/index.d.ts",
22
+ "import": "./dist/runtime/index.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "README.md",
28
+ "LICENSE"
29
+ ],
30
+ "dependencies": {
31
+ "@cfworker/json-schema": "4.1.1",
32
+ "@fungi.computer/almanac": "0.1.0",
33
+ "@fungi.computer/mycelium": "0.1.0",
34
+ "effect": "4.0.2",
35
+ "jsonpointer": "5.0.1",
36
+ "mustache": "4.2.0",
37
+ "zod": "4.4.3",
38
+ "@fungi.computer/agar": "0.2.0",
39
+ "@fungi.computer/gills": "0.1.0",
40
+ "@fungi.computer/watchdog": "0.0.1",
41
+ "@fungi.computer/puffball": "0.1.0",
42
+ "@fungi.computer/cairn": "0.0.1"
43
+ },
44
+ "devDependencies": {
45
+ "@cloudflare/workers-types": "5.20260828.1",
46
+ "@types/mustache": "4.2.6",
47
+ "typescript": "5.9.3",
48
+ "vitest": "4.1.11"
49
+ },
50
+ "license": "MIT",
51
+ "botanical": {
52
+ "role": "package",
53
+ "operations": {
54
+ "lint": "required",
55
+ "typecheck": "required",
56
+ "build": "required",
57
+ "test": "required",
58
+ "docs": {
59
+ "status": "not-applicable",
60
+ "reason": "Internal graph contract documented in README; shared docs tooling not yet wired for this package"
61
+ },
62
+ "pack": {
63
+ "status": "not-applicable",
64
+ "reason": "Shared pack tooling not yet wired for this package"
65
+ },
66
+ "smoke": {
67
+ "status": "not-applicable",
68
+ "reason": "No standalone runtime entry point; exercised by unit and Hub consumer proofs"
69
+ },
70
+ "stranger": {
71
+ "status": "not-applicable",
72
+ "reason": "Shared stranger consumer proof not yet wired for this package"
73
+ }
74
+ }
75
+ },
76
+ "publishConfig": {
77
+ "access": "public"
78
+ },
79
+ "repository": {
80
+ "type": "git",
81
+ "url": "git+https://github.com/fungi-computer/braid.git"
82
+ },
83
+ "fungi": {
84
+ "build": {
85
+ "typescript": [
86
+ "src/cloudflare/tsconfig.json"
87
+ ]
88
+ }
89
+ },
90
+ "scripts": {
91
+ "build": "tsc -p tsconfig.build.json && tsc -p src/cloudflare/tsconfig.json",
92
+ "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p src/cloudflare/tsconfig.json --noEmit",
93
+ "lint": "eslint --global TextEncoder --global crypto src test --max-warnings=0 && ../../node_modules/.bin/oxlint --config ../../oxlint.config.ts --deny-warnings src test",
94
+ "test": "vitest run",
95
+ "test:unit": "vitest run",
96
+ "format:check": "node ../../tooling/repository/scripts/format-package-check.mjs",
97
+ "lint:anti-slop": "node ../../tooling/repository/scripts/lint-package-anti-slop.mjs"
98
+ }
6
99
  }