@unoverse-platform/studio 0.1.26 → 0.1.28
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/package.json +1 -1
- package/screens/AtomsView.tsx +40 -2
- package/screens/ComponentsView.tsx +112 -21
- package/screens/NativeAppHost.tsx +8 -4
- package/screens/TemplatesView.tsx +51 -21
- package/screens/states.ts +27 -4
- package/vendor/sdk/appEngine.tsx +20 -4
- package/vendor/sdk/lib/UnoverseComponent.tsx +8 -2
- package/vendor/sdk/lib/core/actions.ts +10 -6
- package/vendor/sdk/lib/core/client.ts +39 -12
- package/vendor/sdk/lib/core/index.ts +21 -0
- package/vendor/sdk/lib/core/refs.ts +117 -0
- package/vendor/sdk/lib/core/store.ts +65 -38
- package/vendor/sdk/lib/core/templates.ts +270 -0
- package/vendor/sdk/lib/core/types.ts +27 -7
- package/vendor/sdk/lib/orb/ThinkingOrb.tsx +131 -0
- package/vendor/sdk/lib/orb/engine/braid.ts +50 -0
- package/vendor/sdk/lib/orb/engine/core.ts +167 -0
- package/vendor/sdk/lib/orb/engine/lattice.ts +205 -0
- package/vendor/sdk/lib/orb/engine/morph.ts +138 -0
- package/vendor/sdk/lib/orb/engine/orbits.ts +80 -0
- package/vendor/sdk/lib/orb/engine/profiles.ts +162 -0
- package/vendor/sdk/lib/orb/engine/registry.ts +31 -0
- package/vendor/sdk/lib/orb/engine/ribbon.ts +93 -0
- package/vendor/sdk/lib/orb/engine/rings.ts +239 -0
- package/vendor/sdk/lib/orb/engine/types.ts +14 -0
- package/vendor/sdk/lib/orb/engine/web.ts +98 -0
- package/vendor/sdk/lib/orb/index.ts +20 -0
- package/vendor/sdk/lib/orb/presets.ts +181 -0
- package/vendor/sdk/lib/orb/theme.ts +83 -0
- package/vendor/sdk/lib/orb/types.ts +84 -0
- package/vendor/sdk/lib/primitives.tsx +116 -2
- package/vendor/sdk/lib/render.tsx +32 -8
- package/vendor/sdk/lib/style.ts +6 -2
- package/vendor/sdk/lib/template.tsx +86 -224
- package/vendor/skills/unoverse-create/SKILL.md +18 -18
- package/vendor/skills/unoverse-create/references/agent-skill.md +12 -12
- package/vendor/skills/unoverse-create/references/block.md +5 -5
- package/vendor/skills/unoverse-create/references/component.md +150 -75
- package/vendor/skills/unoverse-create/references/node.md +1 -1
- package/vendor/skills/unoverse-create/references/template.md +142 -82
- package/vendor/skills/unoverse-create/references/workflow.md +15 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Playbook: Build a workflow (via the builder MCP)
|
|
2
2
|
|
|
3
|
-
Workflows are NOT files in the carve-out
|
|
3
|
+
Workflows are NOT files in the carve-out. They live in the platform and are built
|
|
4
4
|
through the **builder MCP** (`canvas`, auto-registered by this repo's
|
|
5
5
|
`.mcp.json`). You drive the platform's own authoring tools; the canvas updates live
|
|
6
6
|
in the developer's browser as you build.
|
|
@@ -8,15 +8,15 @@ in the developer's browser as you build.
|
|
|
8
8
|
## Prerequisites (check before starting)
|
|
9
9
|
|
|
10
10
|
1. **The platform is running** (`unoverse start`, or `npm run dev` in the platform
|
|
11
|
-
repo). The builder listens on `localhost:4106
|
|
11
|
+
repo). The builder listens on `localhost:4106`, local machine only, by design.
|
|
12
12
|
2. **The MCP is connected**: `canvas` should show connected with 14 tools.
|
|
13
|
-
If it shows failed, the platform wasn't up when the session started
|
|
13
|
+
If it shows failed, the platform wasn't up when the session started. Reconnect
|
|
14
14
|
via `/mcp` after starting it.
|
|
15
15
|
3. **The developer gives you a pairing code.** Ask them to open a **new empty
|
|
16
16
|
workflow in Canvas** (http://localhost:3001), click **"Connect agent"** in the
|
|
17
17
|
toolbar, and paste the short code it shows (e.g. `FW9D-6QKA`). The code binds you
|
|
18
|
-
to that one workflow
|
|
19
|
-
way to list or discover workflows from here
|
|
18
|
+
to that one workflow: single use, expires in 10 minutes. There is deliberately no
|
|
19
|
+
way to list or discover workflows from here. The code must come from the developer.
|
|
20
20
|
Prefer a fresh workflow: saves are provenance-scoped, so wiring into nodes you
|
|
21
21
|
didn't create may be rejected.
|
|
22
22
|
|
|
@@ -25,19 +25,19 @@ in the developer's browser as you build.
|
|
|
25
25
|
1. **`bindWorkflow` first.** Every other tool refuses until the session is bound,
|
|
26
26
|
and every call after is pinned server-side to that one canvas.
|
|
27
27
|
2. **Read the in-band guides before building.** The deep how-to is served by the
|
|
28
|
-
platform itself via `readBuilderSkill
|
|
29
|
-
- `solution-design
|
|
30
|
-
- `workflow-building
|
|
31
|
-
- `workflow-testing
|
|
32
|
-
- `template-references
|
|
28
|
+
platform itself via `readBuilderSkill`, always current, never duplicated here:
|
|
29
|
+
- `solution-design`: read FIRST on any new goal
|
|
30
|
+
- `workflow-building`: the build protocol + response-field semantics
|
|
31
|
+
- `workflow-testing`: runTest / stepNode / reading traces
|
|
32
|
+
- `template-references`: the `{{...}}` grammar + fixing lint errors
|
|
33
33
|
3. **Build ONE stage at a time.** The loop is: `saveWorkflow` one stage → `runTest`
|
|
34
34
|
→ read the trace → add the next stage based on that evidence. Never design or
|
|
35
|
-
pre-wire the whole graph up front
|
|
35
|
+
pre-wire the whole graph up front. You learn a node's real output fields by
|
|
36
36
|
running it, not by planning.
|
|
37
37
|
4. **Ground truth rules:** `getCanvas` is the real graph; a nodeType is valid only
|
|
38
38
|
if `getNodeCatalog` returned it (search it fresh per step, with a one-line
|
|
39
39
|
`task`); layout and node ids are not yours to set.
|
|
40
|
-
5. **The developer judges the result
|
|
40
|
+
5. **The developer judges the result. Never self-certify.** When the workflow runs
|
|
41
41
|
end-to-end with real, non-empty output, report what you built and what the test
|
|
42
42
|
showed. They watch the canvas live and accept, or ask for changes (which continue
|
|
43
43
|
on the same bound canvas).
|
|
@@ -47,6 +47,6 @@ in the developer's browser as you build.
|
|
|
47
47
|
| Symptom | Cause / fix |
|
|
48
48
|
|---|---|
|
|
49
49
|
| Every tool returns "No workflow bound" | Call `bindWorkflow` with the pairing code from Canvas "Connect agent" |
|
|
50
|
-
| Bind fails "invalid or expired pairing code" | Codes are single-use + 10-min TTL
|
|
51
|
-
| Tool calls error after working earlier | The platform restarted mid-session
|
|
52
|
-
| saveWorkflow rejects an edge into an existing node | Provenance guard: that node wasn't built this session
|
|
50
|
+
| Bind fails "invalid or expired pairing code" | Codes are single-use + 10-min TTL: ask the developer to click "Connect agent" again for a fresh one |
|
|
51
|
+
| Tool calls error after working earlier | The platform restarted mid-session: `/mcp` → reconnect |
|
|
52
|
+
| saveWorkflow rejects an edge into an existing node | Provenance guard: that node wasn't built this session. Build on a fresh workflow, or recreate the stage yourself |
|