@growthub/cli 0.3.60 → 0.4.2
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/.env.example +10 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/QUICKSTART.md +44 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/brands/NEW-CLIENT.md +10 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/brands/_template/brand-kit.md +27 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/brands/growthub/brand-kit.md +25 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/bundles/growthub-custom-workspace-starter-v1.json +47 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/docs/fork-sync-integration.md +32 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/docs/starter-kit-overview.md +26 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/docs/vite-ui-shell-guide.md +24 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/examples/workspace-sample.md +10 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/growthub-meta/README.md +3 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/growthub-meta/kit-standard.md +10 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/kit.json +101 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/output/README.md +3 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/output-standards.md +11 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/runtime-assumptions.md +8 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/setup/check-deps.sh +20 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/setup/verify-env.mjs +20 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/skills.md +14 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/studio/index.html +12 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/studio/package.json +20 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/studio/serve.mjs +42 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/studio/src/App.jsx +32 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/studio/src/app.css +20 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/studio/src/main.jsx +10 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/studio/vite.config.js +8 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/templates/agent-contract.md +9 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/templates/deployment-plan.md +22 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/templates/workspace-brief.md +11 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/validation-checklist.md +13 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/workers/custom-workspace-operator/CLAUDE.md +32 -0
- package/dist/index.js +12658 -9040
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Deployment Plan — Template
|
|
2
|
+
|
|
3
|
+
A deployment plan is the final artifact of a workspace run. It must be:
|
|
4
|
+
|
|
5
|
+
1. Human-reviewable (Markdown prose).
|
|
6
|
+
2. Machine-executable (the JSON plan block below must be shape-compatible with the bundle descriptor).
|
|
7
|
+
|
|
8
|
+
## Human summary
|
|
9
|
+
|
|
10
|
+
Describe the plan in 3–5 sentences.
|
|
11
|
+
|
|
12
|
+
## Machine plan
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"kit": "growthub-custom-workspace-starter-v1",
|
|
17
|
+
"forkId": "<filled at runtime>",
|
|
18
|
+
"actions": [
|
|
19
|
+
{ "type": "deploy", "target": "<env>" }
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Workspace Brief — Template
|
|
2
|
+
|
|
3
|
+
Use this template to capture what a new custom workspace is for.
|
|
4
|
+
|
|
5
|
+
- Client:
|
|
6
|
+
- Project slug:
|
|
7
|
+
- Goals (3 bullets max):
|
|
8
|
+
- Surface area (which worker kits this workspace composes):
|
|
9
|
+
- Out of scope:
|
|
10
|
+
- Success criteria:
|
|
11
|
+
- First heal checkpoint:
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Starter Kit — Validation Checklist
|
|
2
|
+
|
|
3
|
+
Run before declaring a workspace ready for production:
|
|
4
|
+
|
|
5
|
+
- [ ] `kit.json` is schema-v2 valid
|
|
6
|
+
- [ ] Every path listed in `frozenAssetPaths` exists on disk
|
|
7
|
+
- [ ] `.growthub-fork/fork.json` is present and `growthub kit fork status <fork-id>` returns severity = none
|
|
8
|
+
- [ ] `policy.json` reflects the intended safety envelope
|
|
9
|
+
- [ ] `trace.jsonl` contains at minimum `registered` + `policy_updated` + one `status_ran` event
|
|
10
|
+
- [ ] `studio/` builds with `npm run build` (no errors)
|
|
11
|
+
- [ ] `growthub kit fork heal <fork-id> --dry-run` produces zero errors
|
|
12
|
+
- [ ] When `policy.remoteSyncMode === "pr"`: the GitHub remote is reachable and the last heal opened a draft PR
|
|
13
|
+
- [ ] `growthub status --super-admin` shows all critical services operational
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Custom Workspace Operator — Agent Contract
|
|
2
|
+
|
|
3
|
+
You are the Custom Workspace Operator — the agent wired to this Growthub custom workspace fork. The starter kit provides the scaffold; your role is to extend it in the direction the user chooses while honouring the v1 Self-Healing Fork Sync Agent contract.
|
|
4
|
+
|
|
5
|
+
## Inputs you always have
|
|
6
|
+
|
|
7
|
+
- `kit.json` — the manifest, schema v2, family `studio`
|
|
8
|
+
- `bundles/growthub-custom-workspace-starter-v1.json` — the bundle contract
|
|
9
|
+
- `brands/_template/brand-kit.md` — empty brand scaffold
|
|
10
|
+
- `brands/growthub/brand-kit.md` — reference brand
|
|
11
|
+
- `studio/` — the Vite UI shell (React + Vite 5)
|
|
12
|
+
- `workers/custom-workspace-operator/CLAUDE.md` — this file
|
|
13
|
+
- `.growthub-fork/fork.json`, `.growthub-fork/policy.json`, `.growthub-fork/trace.jsonl` — the fork state the CLI registered for this workspace
|
|
14
|
+
|
|
15
|
+
## Non-negotiables
|
|
16
|
+
|
|
17
|
+
- Never modify files under `skills/`, `custom/`, `.env`, `.env.local`, or any path listed in `policy.untouchablePaths`.
|
|
18
|
+
- Never perform a destructive remote operation (`push --force`, `reset --hard`) without explicit user confirmation.
|
|
19
|
+
- Every significant action appends an event to `trace.jsonl` via the Fork Sync Agent — do not bypass.
|
|
20
|
+
- Respect `policy.autoApprove` + `policy.autoApproveDepUpdates`. If a change is outside scope, mark it `needsConfirmation` and park.
|
|
21
|
+
|
|
22
|
+
## Execution verbs
|
|
23
|
+
|
|
24
|
+
- `growthub starter init --name <workspace> --out <path>` — scaffold a new workspace from this starter
|
|
25
|
+
- `growthub kit fork status <fork-id>` — check drift
|
|
26
|
+
- `growthub kit fork heal <fork-id> [--dry-run | --background]` — propose + apply heal
|
|
27
|
+
- `growthub kit fork policy --fork-id <fork-id> --set <key=value>` — configure safety envelope
|
|
28
|
+
- `growthub kit fork trace --fork-id <fork-id> --tail N` — replay the event log
|
|
29
|
+
|
|
30
|
+
## Output contract
|
|
31
|
+
|
|
32
|
+
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/`.
|