@igorjpimenta/manifold 0.0.0-stage → 2026.11.22-beta.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.
- package/.migrations/ops/0000_futuristic_karma.sql +111 -0
- package/.migrations/ops/0001_low_maximus.sql +7 -0
- package/.migrations/ops/meta/0000_snapshot.json +763 -0
- package/.migrations/ops/meta/0001_snapshot.json +173 -0
- package/.migrations/ops/meta/_journal.json +20 -0
- package/.migrations/runtime/0000_real_boomer.sql +180 -0
- package/.migrations/runtime/0001_hot_dakota_north.sql +2 -0
- package/.migrations/runtime/0002_breezy_vertigo.sql +8 -0
- package/.migrations/runtime/0003_dashing_jack_flag.sql +5 -0
- package/.migrations/runtime/0004_panoramic_ego.sql +1 -0
- package/.migrations/runtime/0005_tidy_ben_grimm.sql +10 -0
- package/.migrations/runtime/0006_wet_nightmare.sql +57 -0
- package/.migrations/runtime/0007_ambiguous_chronomancer.sql +8 -0
- package/.migrations/runtime/0008_wealthy_thundra.sql +301 -0
- package/.migrations/runtime/0009_lying_shocker.sql +96 -0
- package/.migrations/runtime/0010_solid_phantom_reporter.sql +160 -0
- package/.migrations/runtime/0011_windy_demogoblin.sql +175 -0
- package/.migrations/runtime/0012_restore_harness_fks.sql +103 -0
- package/.migrations/runtime/meta/0000_snapshot.json +1181 -0
- package/.migrations/runtime/meta/0001_snapshot.json +1209 -0
- package/.migrations/runtime/meta/0002_snapshot.json +1261 -0
- package/.migrations/runtime/meta/0003_snapshot.json +1292 -0
- package/.migrations/runtime/meta/0004_snapshot.json +1240 -0
- package/.migrations/runtime/meta/0006_snapshot.json +1310 -0
- package/.migrations/runtime/meta/0007_snapshot.json +1362 -0
- package/.migrations/runtime/meta/0008_snapshot.json +1742 -0
- package/.migrations/runtime/meta/0009_snapshot.json +2413 -0
- package/.migrations/runtime/meta/0010_snapshot.json +2562 -0
- package/.migrations/runtime/meta/0011_snapshot.json +2812 -0
- package/.migrations/runtime/meta/0012_snapshot.json +2812 -0
- package/.migrations/runtime/meta/_journal.json +97 -0
- package/README.md +1583 -2
- package/RELEASING.md +89 -0
- package/agent/fleet.js +100 -0
- package/bin/cli.js +854 -0
- package/bin/manifold.js +4 -0
- package/boot/flow-revival.js +536 -0
- package/budget/index.js +495 -0
- package/budget/lib.js +59 -0
- package/dashboard/cost.js +528 -0
- package/dashboard/dist/assets/index-CUfp63sj.css +1 -0
- package/dashboard/dist/assets/index-Qy9JMpma.js +371 -0
- package/dashboard/dist/index.html +13 -0
- package/dashboard/event-log.js +267 -0
- package/dashboard/index.html +12 -0
- package/dashboard/package-lock.json +2877 -0
- package/dashboard/package.json +37 -0
- package/dashboard/pipeline-graph.js +131 -0
- package/dashboard/postcss.config.js +6 -0
- package/dashboard/search.js +183 -0
- package/dashboard/server.js +1015 -0
- package/dashboard/src/App.tsx +42 -0
- package/dashboard/src/api/client.ts +118 -0
- package/dashboard/src/api/types.ts +510 -0
- package/dashboard/src/api/ws.tsx +112 -0
- package/dashboard/src/components/CancelButton.tsx +63 -0
- package/dashboard/src/components/ClickToCopy.tsx +68 -0
- package/dashboard/src/components/CopyButton.tsx +61 -0
- package/dashboard/src/components/DailyCostTrend.tsx +85 -0
- package/dashboard/src/components/DailyTimeTrend.tsx +94 -0
- package/dashboard/src/components/Funnel.tsx +149 -0
- package/dashboard/src/components/GateForm.tsx +158 -0
- package/dashboard/src/components/GraphView.tsx +302 -0
- package/dashboard/src/components/GroupPathsSummary.tsx +47 -0
- package/dashboard/src/components/Histogram.tsx +292 -0
- package/dashboard/src/components/Layout.tsx +28 -0
- package/dashboard/src/components/NeedsAttention.tsx +98 -0
- package/dashboard/src/components/NodeContextCard.tsx +132 -0
- package/dashboard/src/components/PathTrail.tsx +35 -0
- package/dashboard/src/components/PipelineCostBreakdown.tsx +277 -0
- package/dashboard/src/components/RerunButton.tsx +46 -0
- package/dashboard/src/components/RunComparison.tsx +53 -0
- package/dashboard/src/components/Sparkline.tsx +94 -0
- package/dashboard/src/components/StatStrip.tsx +147 -0
- package/dashboard/src/components/StateTree.tsx +84 -0
- package/dashboard/src/components/StatusBadge.tsx +18 -0
- package/dashboard/src/components/SubflowPathPills.tsx +38 -0
- package/dashboard/src/components/SubflowSummary.tsx +24 -0
- package/dashboard/src/components/SubflowsCard.tsx +327 -0
- package/dashboard/src/components/TodayStrip.tsx +86 -0
- package/dashboard/src/components/TranscriptPane.tsx +99 -0
- package/dashboard/src/components/TranscriptRow.tsx +69 -0
- package/dashboard/src/components/ui/badge.tsx +38 -0
- package/dashboard/src/components/ui/button.tsx +28 -0
- package/dashboard/src/components/ui/card.tsx +42 -0
- package/dashboard/src/components/ui/skeleton.tsx +9 -0
- package/dashboard/src/components/ui/table.tsx +62 -0
- package/dashboard/src/index.css +26 -0
- package/dashboard/src/lib/anomaly.ts +42 -0
- package/dashboard/src/lib/format.ts +30 -0
- package/dashboard/src/lib/step-history.ts +13 -0
- package/dashboard/src/lib/subflow.ts +154 -0
- package/dashboard/src/lib/use-click-outside.ts +28 -0
- package/dashboard/src/lib/use-ignored-clusters.ts +67 -0
- package/dashboard/src/lib/utils.ts +6 -0
- package/dashboard/src/main.tsx +10 -0
- package/dashboard/src/types/shims.d.ts +4 -0
- package/dashboard/src/views/Home.tsx +478 -0
- package/dashboard/src/views/PipelineDetail.tsx +1185 -0
- package/dashboard/src/views/PipelinesList.tsx +111 -0
- package/dashboard/src/views/RunDetail.tsx +248 -0
- package/dashboard/src/views/Search.tsx +196 -0
- package/dashboard/stats.js +668 -0
- package/dashboard/tailwind.config.ts +43 -0
- package/dashboard/tree-stats.js +12 -0
- package/dashboard/tsconfig.json +25 -0
- package/dashboard/views.js +231 -0
- package/dashboard/vite.config.ts +34 -0
- package/drizzle.config.js +12 -0
- package/drizzle.config.ops.js +12 -0
- package/elevation.js +116 -0
- package/engine/admission-promotion-resume.js +127 -0
- package/engine/agent-dispatch.js +64 -0
- package/engine/child-resume-trigger.js +315 -0
- package/engine/executor-budget.js +87 -0
- package/engine/executor-cancel.js +83 -0
- package/engine/executor-errors.js +122 -0
- package/engine/executor-helpers.js +254 -0
- package/engine/executor-nodes.js +292 -0
- package/engine/executor-persist.js +212 -0
- package/engine/executor-subflow-children.js +275 -0
- package/engine/executor.js +1013 -0
- package/engine/global-concurrency.js +33 -0
- package/engine/loader.js +528 -0
- package/engine/needs-resolver.js +229 -0
- package/engine/pipelines-watcher.js +133 -0
- package/engine/result-replay.js +34 -0
- package/engine/revival-messages.js +11 -0
- package/engine/spawn-child.js +55 -0
- package/engine/wait-for-flow-settlement.js +109 -0
- package/events/catalog.js +26 -0
- package/events/emit.js +44 -0
- package/events/kinds.js +118 -0
- package/events/serve-ws.js +74 -0
- package/events/stream.js +35 -0
- package/events/ws-dialog.js +257 -0
- package/events/ws-frame.js +194 -0
- package/events/ws-run-events.js +70 -0
- package/events.js +32 -0
- package/gates/gate-resolver.js +576 -0
- package/gates/paused-flows.js +55 -0
- package/graphql/columns.js +67 -0
- package/graphql/schema.js +333 -0
- package/index.js +49 -0
- package/mcp/http.js +159 -0
- package/mcp/identity.js +94 -0
- package/mcp/stdio.js +80 -0
- package/mcp/tools.js +245 -0
- package/mcp/wire-ops.js +178 -0
- package/package.json +49 -4
- package/routes/bearer-auth.js +57 -0
- package/routes/discuss-audio.js +87 -0
- package/routes/discuss-component.js +39 -0
- package/routes/discuss-draft.js +159 -0
- package/routes/discuss-helpers.js +20 -0
- package/routes/discuss.js +848 -0
- package/routes/failures.js +104 -0
- package/routes/graphql.js +61 -0
- package/routes/health.js +54 -0
- package/routes/operator-discuss.js +193 -0
- package/routes/operator-resume.js +32 -0
- package/routes/operator-retry.js +301 -0
- package/routes/operator.js +539 -0
- package/routes/pipelines.js +118 -0
- package/routes/runs.js +1129 -0
- package/scripts/ci/import-check.mjs +50 -0
- package/scripts/link-core-self.mjs +31 -0
- package/scripts/with-guard.sh +24 -0
- package/server/app.js +503 -0
- package/server/registry.js +53 -0
- package/server/serve.js +163 -0
- package/state/admission-queue-store.js +325 -0
- package/state/attribution-registries.js +102 -0
- package/state/batch-writer.js +162 -0
- package/state/db-guard.js +63 -0
- package/state/db-health.js +27 -0
- package/state/db.js +122 -0
- package/state/discuss-store.js +299 -0
- package/state/failure-store.js +427 -0
- package/state/migrate.js +104 -0
- package/state/node-cost.js +67 -0
- package/state/node-executions.js +775 -0
- package/state/node-health-store.js +124 -0
- package/state/ops-merge.js +93 -0
- package/state/paths.js +146 -0
- package/state/pipeline-dirs.js +99 -0
- package/state/pipeline-registry.js +449 -0
- package/state/run-store.js +697 -0
- package/state/schema.js +438 -0
- package/state/schema.ops.js +44 -0
- package/state/session-index.js +177 -0
- package/state/session-keys.js +39 -0
- package/state/state-store.js +311 -0
- package/state/subflow-state.js +126 -0
- package/state/tool-handoff.js +169 -0
- package/telemetry/budget-alert.js +353 -0
- package/telemetry/cli.js +331 -0
- package/telemetry/grammar.js +119 -0
- package/telemetry/http-budget.js +132 -0
- package/telemetry/http-cost.js +670 -0
- package/telemetry/http-helpers.js +134 -0
- package/telemetry/http-tree.js +349 -0
- package/telemetry/http.js +44 -0
- package/telemetry/index.js +307 -0
- package/telemetry/ingest.js +134 -0
- package/telemetry/labels.js +115 -0
- package/telemetry/pricer.js +77 -0
- package/telemetry/resolver.js +314 -0
- package/telemetry/store.js +147 -0
- package/utils/run-patch.js +43 -0
package/RELEASING.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
}
|