@igorjpimenta/manifold 0.0.0-bootstrap.1 → 0.0.0-stage

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 (210) hide show
  1. package/README.md +2 -1583
  2. package/package.json +4 -49
  3. package/.migrations/ops/0000_futuristic_karma.sql +0 -111
  4. package/.migrations/ops/0001_low_maximus.sql +0 -7
  5. package/.migrations/ops/meta/0000_snapshot.json +0 -763
  6. package/.migrations/ops/meta/0001_snapshot.json +0 -173
  7. package/.migrations/ops/meta/_journal.json +0 -20
  8. package/.migrations/runtime/0000_real_boomer.sql +0 -180
  9. package/.migrations/runtime/0001_hot_dakota_north.sql +0 -2
  10. package/.migrations/runtime/0002_breezy_vertigo.sql +0 -8
  11. package/.migrations/runtime/0003_dashing_jack_flag.sql +0 -5
  12. package/.migrations/runtime/0004_panoramic_ego.sql +0 -1
  13. package/.migrations/runtime/0005_tidy_ben_grimm.sql +0 -10
  14. package/.migrations/runtime/0006_wet_nightmare.sql +0 -57
  15. package/.migrations/runtime/0007_ambiguous_chronomancer.sql +0 -8
  16. package/.migrations/runtime/0008_wealthy_thundra.sql +0 -301
  17. package/.migrations/runtime/0009_lying_shocker.sql +0 -96
  18. package/.migrations/runtime/0010_solid_phantom_reporter.sql +0 -160
  19. package/.migrations/runtime/0011_windy_demogoblin.sql +0 -175
  20. package/.migrations/runtime/0012_restore_harness_fks.sql +0 -103
  21. package/.migrations/runtime/meta/0000_snapshot.json +0 -1181
  22. package/.migrations/runtime/meta/0001_snapshot.json +0 -1209
  23. package/.migrations/runtime/meta/0002_snapshot.json +0 -1261
  24. package/.migrations/runtime/meta/0003_snapshot.json +0 -1292
  25. package/.migrations/runtime/meta/0004_snapshot.json +0 -1240
  26. package/.migrations/runtime/meta/0006_snapshot.json +0 -1310
  27. package/.migrations/runtime/meta/0007_snapshot.json +0 -1362
  28. package/.migrations/runtime/meta/0008_snapshot.json +0 -1742
  29. package/.migrations/runtime/meta/0009_snapshot.json +0 -2413
  30. package/.migrations/runtime/meta/0010_snapshot.json +0 -2562
  31. package/.migrations/runtime/meta/0011_snapshot.json +0 -2812
  32. package/.migrations/runtime/meta/0012_snapshot.json +0 -2812
  33. package/.migrations/runtime/meta/_journal.json +0 -97
  34. package/RELEASING.md +0 -89
  35. package/agent/fleet.js +0 -100
  36. package/bin/cli.js +0 -854
  37. package/bin/manifold.js +0 -4
  38. package/boot/flow-revival.js +0 -536
  39. package/budget/index.js +0 -495
  40. package/budget/lib.js +0 -59
  41. package/dashboard/cost.js +0 -528
  42. package/dashboard/dist/assets/index-CUfp63sj.css +0 -1
  43. package/dashboard/dist/assets/index-Qy9JMpma.js +0 -371
  44. package/dashboard/dist/index.html +0 -13
  45. package/dashboard/event-log.js +0 -267
  46. package/dashboard/index.html +0 -12
  47. package/dashboard/package-lock.json +0 -2877
  48. package/dashboard/package.json +0 -37
  49. package/dashboard/pipeline-graph.js +0 -131
  50. package/dashboard/postcss.config.js +0 -6
  51. package/dashboard/search.js +0 -183
  52. package/dashboard/server.js +0 -1015
  53. package/dashboard/src/App.tsx +0 -42
  54. package/dashboard/src/api/client.ts +0 -118
  55. package/dashboard/src/api/types.ts +0 -510
  56. package/dashboard/src/api/ws.tsx +0 -112
  57. package/dashboard/src/components/CancelButton.tsx +0 -63
  58. package/dashboard/src/components/ClickToCopy.tsx +0 -68
  59. package/dashboard/src/components/CopyButton.tsx +0 -61
  60. package/dashboard/src/components/DailyCostTrend.tsx +0 -85
  61. package/dashboard/src/components/DailyTimeTrend.tsx +0 -94
  62. package/dashboard/src/components/Funnel.tsx +0 -149
  63. package/dashboard/src/components/GateForm.tsx +0 -158
  64. package/dashboard/src/components/GraphView.tsx +0 -302
  65. package/dashboard/src/components/GroupPathsSummary.tsx +0 -47
  66. package/dashboard/src/components/Histogram.tsx +0 -292
  67. package/dashboard/src/components/Layout.tsx +0 -28
  68. package/dashboard/src/components/NeedsAttention.tsx +0 -98
  69. package/dashboard/src/components/NodeContextCard.tsx +0 -132
  70. package/dashboard/src/components/PathTrail.tsx +0 -35
  71. package/dashboard/src/components/PipelineCostBreakdown.tsx +0 -277
  72. package/dashboard/src/components/RerunButton.tsx +0 -46
  73. package/dashboard/src/components/RunComparison.tsx +0 -53
  74. package/dashboard/src/components/Sparkline.tsx +0 -94
  75. package/dashboard/src/components/StatStrip.tsx +0 -147
  76. package/dashboard/src/components/StateTree.tsx +0 -84
  77. package/dashboard/src/components/StatusBadge.tsx +0 -18
  78. package/dashboard/src/components/SubflowPathPills.tsx +0 -38
  79. package/dashboard/src/components/SubflowSummary.tsx +0 -24
  80. package/dashboard/src/components/SubflowsCard.tsx +0 -327
  81. package/dashboard/src/components/TodayStrip.tsx +0 -86
  82. package/dashboard/src/components/TranscriptPane.tsx +0 -99
  83. package/dashboard/src/components/TranscriptRow.tsx +0 -69
  84. package/dashboard/src/components/ui/badge.tsx +0 -38
  85. package/dashboard/src/components/ui/button.tsx +0 -28
  86. package/dashboard/src/components/ui/card.tsx +0 -42
  87. package/dashboard/src/components/ui/skeleton.tsx +0 -9
  88. package/dashboard/src/components/ui/table.tsx +0 -62
  89. package/dashboard/src/index.css +0 -26
  90. package/dashboard/src/lib/anomaly.ts +0 -42
  91. package/dashboard/src/lib/format.ts +0 -30
  92. package/dashboard/src/lib/step-history.ts +0 -13
  93. package/dashboard/src/lib/subflow.ts +0 -154
  94. package/dashboard/src/lib/use-click-outside.ts +0 -28
  95. package/dashboard/src/lib/use-ignored-clusters.ts +0 -67
  96. package/dashboard/src/lib/utils.ts +0 -6
  97. package/dashboard/src/main.tsx +0 -10
  98. package/dashboard/src/types/shims.d.ts +0 -4
  99. package/dashboard/src/views/Home.tsx +0 -478
  100. package/dashboard/src/views/PipelineDetail.tsx +0 -1185
  101. package/dashboard/src/views/PipelinesList.tsx +0 -111
  102. package/dashboard/src/views/RunDetail.tsx +0 -248
  103. package/dashboard/src/views/Search.tsx +0 -196
  104. package/dashboard/stats.js +0 -668
  105. package/dashboard/tailwind.config.ts +0 -43
  106. package/dashboard/tree-stats.js +0 -12
  107. package/dashboard/tsconfig.json +0 -25
  108. package/dashboard/views.js +0 -231
  109. package/dashboard/vite.config.ts +0 -34
  110. package/drizzle.config.js +0 -12
  111. package/drizzle.config.ops.js +0 -12
  112. package/elevation.js +0 -116
  113. package/engine/admission-promotion-resume.js +0 -127
  114. package/engine/agent-dispatch.js +0 -64
  115. package/engine/child-resume-trigger.js +0 -315
  116. package/engine/executor-budget.js +0 -87
  117. package/engine/executor-cancel.js +0 -83
  118. package/engine/executor-errors.js +0 -122
  119. package/engine/executor-helpers.js +0 -254
  120. package/engine/executor-nodes.js +0 -292
  121. package/engine/executor-persist.js +0 -212
  122. package/engine/executor-subflow-children.js +0 -275
  123. package/engine/executor.js +0 -1013
  124. package/engine/global-concurrency.js +0 -33
  125. package/engine/loader.js +0 -528
  126. package/engine/needs-resolver.js +0 -229
  127. package/engine/pipelines-watcher.js +0 -133
  128. package/engine/result-replay.js +0 -34
  129. package/engine/revival-messages.js +0 -11
  130. package/engine/spawn-child.js +0 -55
  131. package/engine/wait-for-flow-settlement.js +0 -109
  132. package/events/catalog.js +0 -26
  133. package/events/emit.js +0 -44
  134. package/events/kinds.js +0 -118
  135. package/events/serve-ws.js +0 -74
  136. package/events/stream.js +0 -35
  137. package/events/ws-dialog.js +0 -257
  138. package/events/ws-frame.js +0 -194
  139. package/events/ws-run-events.js +0 -70
  140. package/events.js +0 -32
  141. package/gates/gate-resolver.js +0 -576
  142. package/gates/paused-flows.js +0 -55
  143. package/graphql/columns.js +0 -67
  144. package/graphql/schema.js +0 -333
  145. package/index.js +0 -49
  146. package/mcp/http.js +0 -159
  147. package/mcp/identity.js +0 -94
  148. package/mcp/stdio.js +0 -80
  149. package/mcp/tools.js +0 -245
  150. package/mcp/wire-ops.js +0 -178
  151. package/routes/bearer-auth.js +0 -57
  152. package/routes/discuss-audio.js +0 -87
  153. package/routes/discuss-component.js +0 -39
  154. package/routes/discuss-draft.js +0 -159
  155. package/routes/discuss-helpers.js +0 -20
  156. package/routes/discuss.js +0 -848
  157. package/routes/failures.js +0 -104
  158. package/routes/graphql.js +0 -61
  159. package/routes/health.js +0 -54
  160. package/routes/operator-discuss.js +0 -193
  161. package/routes/operator-resume.js +0 -32
  162. package/routes/operator-retry.js +0 -301
  163. package/routes/operator.js +0 -539
  164. package/routes/pipelines.js +0 -118
  165. package/routes/runs.js +0 -1129
  166. package/scripts/ci/import-check.mjs +0 -50
  167. package/scripts/link-core-self.mjs +0 -31
  168. package/scripts/with-guard.sh +0 -24
  169. package/server/app.js +0 -503
  170. package/server/registry.js +0 -53
  171. package/server/serve.js +0 -163
  172. package/state/admission-queue-store.js +0 -325
  173. package/state/attribution-registries.js +0 -102
  174. package/state/batch-writer.js +0 -162
  175. package/state/db-guard.js +0 -63
  176. package/state/db-health.js +0 -27
  177. package/state/db.js +0 -122
  178. package/state/discuss-store.js +0 -299
  179. package/state/failure-store.js +0 -427
  180. package/state/migrate.js +0 -104
  181. package/state/node-cost.js +0 -67
  182. package/state/node-executions.js +0 -775
  183. package/state/node-health-store.js +0 -124
  184. package/state/ops-merge.js +0 -93
  185. package/state/paths.js +0 -146
  186. package/state/pipeline-dirs.js +0 -99
  187. package/state/pipeline-registry.js +0 -449
  188. package/state/run-store.js +0 -697
  189. package/state/schema.js +0 -438
  190. package/state/schema.ops.js +0 -44
  191. package/state/session-index.js +0 -177
  192. package/state/session-keys.js +0 -39
  193. package/state/state-store.js +0 -311
  194. package/state/subflow-state.js +0 -126
  195. package/state/tool-handoff.js +0 -169
  196. package/telemetry/budget-alert.js +0 -353
  197. package/telemetry/cli.js +0 -331
  198. package/telemetry/grammar.js +0 -119
  199. package/telemetry/http-budget.js +0 -132
  200. package/telemetry/http-cost.js +0 -670
  201. package/telemetry/http-helpers.js +0 -134
  202. package/telemetry/http-tree.js +0 -349
  203. package/telemetry/http.js +0 -44
  204. package/telemetry/index.js +0 -307
  205. package/telemetry/ingest.js +0 -134
  206. package/telemetry/labels.js +0 -115
  207. package/telemetry/pricer.js +0 -77
  208. package/telemetry/resolver.js +0 -314
  209. package/telemetry/store.js +0 -147
  210. package/utils/run-patch.js +0 -43
@@ -1,97 +0,0 @@
1
- {
2
- "version": "7",
3
- "dialect": "sqlite",
4
- "entries": [
5
- {
6
- "idx": 0,
7
- "version": "6",
8
- "when": 1792640701660,
9
- "tag": "0000_real_boomer",
10
- "breakpoints": true
11
- },
12
- {
13
- "idx": 1,
14
- "version": "6",
15
- "when": 1792967420969,
16
- "tag": "0001_hot_dakota_north",
17
- "breakpoints": true
18
- },
19
- {
20
- "idx": 2,
21
- "version": "6",
22
- "when": 1793042859276,
23
- "tag": "0002_breezy_vertigo",
24
- "breakpoints": true
25
- },
26
- {
27
- "idx": 3,
28
- "version": "6",
29
- "when": 1793058706389,
30
- "tag": "0003_dashing_jack_flag",
31
- "breakpoints": true
32
- },
33
- {
34
- "idx": 4,
35
- "version": "6",
36
- "when": 1793200686845,
37
- "tag": "0004_panoramic_ego",
38
- "breakpoints": true
39
- },
40
- {
41
- "idx": 5,
42
- "version": "6",
43
- "when": 1793737343358,
44
- "tag": "0005_tidy_ben_grimm",
45
- "breakpoints": true
46
- },
47
- {
48
- "idx": 6,
49
- "version": "6",
50
- "when": 1793812724224,
51
- "tag": "0006_wet_nightmare",
52
- "breakpoints": true
53
- },
54
- {
55
- "idx": 7,
56
- "version": "6",
57
- "when": 1794056584544,
58
- "tag": "0007_ambiguous_chronomancer",
59
- "breakpoints": true
60
- },
61
- {
62
- "idx": 8,
63
- "version": "6",
64
- "when": 1794852798506,
65
- "tag": "0008_wealthy_thundra",
66
- "breakpoints": true
67
- },
68
- {
69
- "idx": 9,
70
- "version": "6",
71
- "when": 1794931266372,
72
- "tag": "0009_lying_shocker",
73
- "breakpoints": true
74
- },
75
- {
76
- "idx": 10,
77
- "version": "6",
78
- "when": 1794933659627,
79
- "tag": "0010_solid_phantom_reporter",
80
- "breakpoints": true
81
- },
82
- {
83
- "idx": 11,
84
- "version": "6",
85
- "when": 1794952176746,
86
- "tag": "0011_windy_demogoblin",
87
- "breakpoints": true
88
- },
89
- {
90
- "idx": 12,
91
- "version": "6",
92
- "when": 1795056159564,
93
- "tag": "0012_restore_harness_fks",
94
- "breakpoints": true
95
- }
96
- ]
97
- }
package/RELEASING.md DELETED
@@ -1,89 +0,0 @@
1
- # Releasing
2
-
3
- CalVer, one tag per release, and the GitHub release is the changelog — there
4
- is no CHANGELOG.md. The tag is the install contract: the live gateway and
5
- every consumer pin resolve to it, so the version is decided in the release PR
6
- before the tag is cut, never after.
7
-
8
- This repo is public and `@igorjpimenta/manifold` is UNLICENSED. Releases
9
- publish to npmjs at the tagged version: the core package
10
- `@igorjpimenta/manifold` and the openclaw adapter
11
- `@igorjpimenta/manifold-openclaw`, both public (same shape as brayer).
12
- Auth is npm trusted publishing (OIDC): the workflow carries
13
- `id-token: write` and each package's npm settings list this repo's
14
- `release.yml` as a trusted publisher, so no token secret is needed and
15
- every publish ships provenance. The git tag remains the release
16
- record and the version source of truth.
17
-
18
- ## Version
19
-
20
- `YYYY.M.D` in `package.json`, carrying the merge date in UTC — a 23:30
21
- -0300 merge is already tomorrow, and the release workflow fails a tag
22
- whose date is not UTC today. A release that takes
23
- three weeks still gets the day it landed, because the tag is cut on the merge
24
- commit and that is the version anyone installs.
25
-
26
- The tag is the version, verbatim — no `v` prefix: `package.json`
27
- `2026.10.20` → tag `2026.10.20`. Tags are never rewritten or deleted — a
28
- consumer pin is permanent; a mistake ships as a new date, not a retag.
29
- A same-day rebuild appends `-beta.N` (`2026.10.20-beta.1`); a fix that
30
- ships tomorrow gets tomorrow's date. Numbering starts at `beta.1` —
31
- never `beta.0`: the installer's strict CalVer parser requires the
32
- sequence above zero and rejects `beta.0`, so a zero-suffixed tag is
33
- uninstallable by contract.
34
-
35
- ## Order of operations
36
-
37
- 1. Merge every pending story PR into `main`. `main` receives code only
38
- through PRs; a tag push is not a branch push and never moves `main`.
39
- 2. Open ONE release PR: bump `package.json` `version`, commit subject
40
- `chore(release): <version>`. No code changes ride the release PR; docs
41
- keep the `@<version>` placeholder, the released tag is the record.
42
- 3. Merge the release PR.
43
- 4. On the merge commit: `git tag <version> -m "<version> — <summary>"`,
44
- then push the tag.
45
- 5. The tag push fires the release workflow (`.github/workflows/release.yml`),
46
- which verifies the tag matches `package.json` verbatim, rejects `beta.0`,
47
- runs the unit suite, publishes both packages to GitHub Packages, and
48
- publishes the GitHub release with generated notes. Edit the notes
49
- afterward to the hand-written shape below. Manual
50
- fallback (workflow down or re-publish after a notes edit):
51
- `gh release create <version> --title <version> --notes <notes>`.
52
-
53
- Publish at the moment the tag ships. A backfilled release makes the releases
54
- page claim versions appeared on the day they were written up.
55
-
56
- ## Notes
57
-
58
- Lower case, no trailing full stop, a full sentence where it reads like one —
59
- `2026.10.20 — live refresh, so a policy edit needs no restart`. Notes: what
60
- changed, how to upgrade (the consumer lines below), what it costs. Test
61
- counts are omitted; a consumer cannot act on them.
62
-
63
- ## Consumers of a release
64
-
65
- Live gateway (the openclaw adapter; it spawns `manifold serve` as a child):
66
-
67
- openclaw plugins install npm:@igorjpimenta/manifold-openclaw@<version> --force --accept-capabilities
68
-
69
- then reload the plugin. The packages are public on npmjs — no registry
70
- configuration, no token.
71
-
72
- The adapter resolves the core from its own dependency; the core package
73
- carries the dashboard build (`prepare` runs when the core is packed), so
74
- there is no post-install build step.
75
-
76
- oc-config consumers: bump the `#<version>` pins in the npm git-deps
77
- (`workspace/*`, `extensions/*`) and regen their lockfiles — one chore PR
78
- per release.
79
-
80
- Consumer npm deps pin `git+https://github.com/igorjpimenta/manifold.git#<version>`.
81
-
82
- Nothing follows `main` automatically — consumers bump the pin and re-install.
83
-
84
- ## compat
85
-
86
- `openclaw.compat.openclawMin` in `package.json` is the host floor. Bump it
87
- deliberately, only when the plugin starts requiring newer host APIs, and
88
- call the raise out in the release notes — consumers pinning older tags stay
89
- put.
package/agent/fleet.js DELETED
@@ -1,100 +0,0 @@
1
- // fleet.js — per-pipeline fleet toolset declarations.
2
- //
3
- // A pipeline ships a fleet.yaml alongside its index.js to declare which
4
- // tools each agent should have access to in a given runtime context (e.g.
5
- // "discuss"). The discuss handler reads this to surface the right delegation
6
- // mechanism for agents that need tools unavailable in a default subagent
7
- // context (SUBAGENT_TOOL_DENY_ALWAYS strips most tools from drafter
8
- // sessions; top-level sessions via runEmbeddedAgent get the full allowlist).
9
- //
10
- // Fleet config shape (YAML):
11
- //
12
- // tools: # all agents, all contexts
13
- // - tool_name
14
- //
15
- // <context>: # e.g. "discuss"
16
- // tools: # all agents in this context
17
- // - tool_name
18
- // <agentId>: # e.g. "content-writer"
19
- // tools:
20
- // - tool_name
21
-
22
- import { readFile } from "node:fs/promises";
23
- import path from "node:path";
24
-
25
- /**
26
- * Load fleet.yaml from a pipeline directory.
27
- * Returns the parsed fleet config or null if the file is absent.
28
- */
29
- export async function loadFleet(pipelineDir) {
30
- const fleetPath = path.join(pipelineDir, "fleet.yaml");
31
- try {
32
- const src = await readFile(fleetPath, "utf8");
33
- return parseFleetYaml(src);
34
- } catch (err) {
35
- if (err.code === "ENOENT") return null;
36
- throw err;
37
- }
38
- }
39
-
40
- // ---------------------------------------------------------------------------
41
- // Minimal YAML parser — only handles the subset used by fleet.yaml:
42
- // key: (nested mapping, empty value)
43
- // key: scalar
44
- // - list item
45
- // Indentation-based nesting; comment stripping (#...).
46
- // ---------------------------------------------------------------------------
47
- function parseFleetYaml(src) {
48
- const lines = src.split("\n");
49
-
50
- // Tokenize: strip blanks + comment-only lines, record indent + content.
51
- const tokens = [];
52
- for (const raw of lines) {
53
- const stripped = raw.replace(/\s*#.*$/, "");
54
- if (!stripped.trim()) continue;
55
- const indent = stripped.length - stripped.trimStart().length;
56
- tokens.push({ indent, content: stripped.trim() });
57
- }
58
-
59
- let i = 0;
60
-
61
- function parseBlock(baseIndent) {
62
- if (i >= tokens.length) return null;
63
-
64
- if (tokens[i].content.startsWith("- ")) {
65
- // List block
66
- const arr = [];
67
- while (
68
- i < tokens.length &&
69
- tokens[i].indent === baseIndent &&
70
- tokens[i].content.startsWith("- ")
71
- ) {
72
- arr.push(tokens[i].content.slice(2).trim());
73
- i++;
74
- }
75
- return arr;
76
- }
77
-
78
- // Mapping block
79
- const obj = {};
80
- while (i < tokens.length && tokens[i].indent === baseIndent) {
81
- const line = tokens[i].content;
82
- const colonIdx = line.indexOf(":");
83
- if (colonIdx === -1) { i++; continue; }
84
- const key = line.slice(0, colonIdx).trim();
85
- const rest = line.slice(colonIdx + 1).trim();
86
- i++;
87
- if (rest) {
88
- obj[key] = rest;
89
- } else if (i < tokens.length && tokens[i].indent > baseIndent) {
90
- obj[key] = parseBlock(tokens[i].indent);
91
- } else {
92
- obj[key] = null;
93
- }
94
- }
95
- return obj;
96
- }
97
-
98
- if (tokens.length === 0) return {};
99
- return parseBlock(tokens[0].indent) ?? {};
100
- }