@growthub/cli 0.10.1 → 0.12.1
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/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/api/workspace/helper/apply/route.js +307 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/api/workspace/helper/query/route.js +372 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/api/workspace/helper/receipts/route.js +47 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/DataModelShell.jsx +402 -49
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/HelperSidecar.jsx +1371 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/globals.css +1348 -21
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/settings/integrations/page.jsx +7 -21
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/settings/ownership/ownership-panel.jsx +222 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/settings/ownership/page.jsx +19 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/settings/settings-shell.jsx +2 -1
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/workspace-builder.jsx +116 -24
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/workspace-rail.jsx +497 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/growthub.config.json +20 -4
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/sandboxes/default-local-intelligence.js +19 -4
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/workspace-data-model.js +15 -4
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/workspace-helper-apply.js +473 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/workspace-helper.js +583 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/package-lock.json +34 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/package.json +3 -1
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/kit.json +9 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/workers/custom-workspace-operator/CLAUDE.md +38 -0
- package/dist/index.js +2935 -2073
- package/package.json +1 -1
|
@@ -49,6 +49,44 @@ You are the Custom Workspace Operator — the agent wired to this Growthub custo
|
|
|
49
49
|
- `growthub skills validate` — check SKILL.md frontmatter + helper/sub-skill paths
|
|
50
50
|
- `growthub skills session show` — print the current `.growthub-fork/project.md`
|
|
51
51
|
|
|
52
|
+
## Workspace Helper verbs (propose → review → apply loop)
|
|
53
|
+
|
|
54
|
+
The workspace helper is a governed, workspace-grammar-aware planning engine. It returns structured proposals — never silent mutations. Always use `mode: propose` and present proposals to the user before applying.
|
|
55
|
+
|
|
56
|
+
**Query (propose only — no writes):**
|
|
57
|
+
```
|
|
58
|
+
POST /api/workspace/helper/query
|
|
59
|
+
{ "intent": "build_dashboard|create_widget|register_api|create_object|edit_view|repair|explain",
|
|
60
|
+
"userPrompt": "<business brief>",
|
|
61
|
+
"mode": "propose" }
|
|
62
|
+
→ { "ok": true, "summary": "...", "proposals": [...], "warnings": [...], "receipts": {...} }
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Apply (explicit governed action — requires prior query):**
|
|
66
|
+
```
|
|
67
|
+
POST /api/workspace/helper/apply
|
|
68
|
+
{ "proposals": [...accepted proposals from query response...], "reviewedBy": "<agent-slug>" }
|
|
69
|
+
→ { "ok": true, "applied": [...receipts...], "skipped": [...], "workspaceConfig": {...} }
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Receipt history:**
|
|
73
|
+
```
|
|
74
|
+
GET /api/workspace/helper/receipts?limit=25
|
|
75
|
+
→ { "ok": true, "records": [...apply receipts...] }
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**CLI equivalents:**
|
|
79
|
+
- `growthub workspace helper query --intent <intent> --prompt "..." [--json > proposals.json]`
|
|
80
|
+
- `growthub workspace helper apply --proposal-file proposals.json [--yes]`
|
|
81
|
+
- `growthub workspace helper receipts [--limit 25]`
|
|
82
|
+
|
|
83
|
+
**Helper apply rules for this operator:**
|
|
84
|
+
- Never call `/api/workspace/helper/apply` without first presenting proposals to the user.
|
|
85
|
+
- Every apply appends a receipt to `trace.jsonl` — do not bypass this with direct PATCH calls.
|
|
86
|
+
- The PATCH allowlist (`dashboards`, `widgetTypes`, `canvas`, `dataModel`) is the hard ceiling. Proposals outside this boundary are rejected by the apply route automatically.
|
|
87
|
+
- `explain.object` proposals are informational — no config write occurs.
|
|
88
|
+
- After a successful apply, refresh the workspace config snapshot before generating new proposals.
|
|
89
|
+
|
|
52
90
|
## Output contract
|
|
53
91
|
|
|
54
92
|
All user-facing artifacts for a custom workspace run write to `output/<client-slug>/<project-slug>/`. Machine-readable manifests should be shape-compatible with the bundle descriptor in `bundles/`.
|