@growthub/cli 0.9.18 → 0.10.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/reference-options/route.js +62 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/api/workspace/refresh-sources/route.js +13 -2
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/api/workspace/resolver-templates/route.js +23 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/api/workspace/sandbox-run/route.js +35 -5
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/api/workspace/test-source/route.js +15 -1
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/DataModelShell.jsx +2277 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/DataTable.jsx +1 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/FieldEditor.jsx +1 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/FieldManager.jsx +9 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/ObjectSidebar.jsx +41 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/RecordDrawer.jsx +1 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/ReferencePicker.jsx +244 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/SandboxRunPanel.jsx +21 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/SourceTestPanel.jsx +15 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/StatusPill.jsx +13 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/ToggleField.jsx +41 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/components/dm-shared.jsx +99 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/data-model/page.jsx +2 -1528
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/app/globals.css +99 -6
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/docs/connector-template-authoring.md +8 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/docs/data-model-reference-fields.md +15 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/docs/mcp-chrome-tool-connectors.md +12 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/docs/resolver-template-library.md +17 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/source-resolver-registry.js +13 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/README.md +12 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/chrome-bridge.js +22 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/custom-http.js +23 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/generic-commerce.js +22 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/generic-crm.js +23 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/generic-project-management.js +22 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/generic-spreadsheet.js +22 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/mcp-tool.js +22 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/template-registry.js +50 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/integrations/templates/webhook.js +22 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/references/collect-reference-options.js +133 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/references/reference-resolver-registry.js +17 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/references/resolver-loader.js +6 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/references/resolvers/README.md +8 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/references/resolvers/local-data-model.js +11 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/references/resolvers/source-records.js +34 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/sandboxes/adapters/README.md +5 -3
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/sandboxes/default-local-intelligence.js +203 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/adapters/sandboxes/index.js +1 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/data-model/field-contracts.js +81 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/data-model/reference-option-schema.js +59 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/data-model/reference-options.js +29 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/workspace-data-model.js +534 -23
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/apps/workspace/lib/workspace-schema.js +131 -1
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/helpers/export-training-traces.mjs +144 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/helpers/grade-raw-pairs.mjs +279 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/helpers/harvest-cursor-traces.mjs +288 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/helpers/upload-graded-traces.mjs +128 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/kit.json +10 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/templates/seeded-configs/alignment-loop.config.json +264 -0
- package/dist/index.js +486 -1
- package/package.json +1 -1
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "workspace-builder-default",
|
|
3
|
+
"name": "Growthub Workspace",
|
|
4
|
+
"description": "Default no-code composition for the official Growthub Custom Workspace Starter. The interface starts as a governed dashboard workspace and can be customized by editing this file or by future governed UI controls.",
|
|
5
|
+
"branding": {
|
|
6
|
+
"name": "Growthub Workspace",
|
|
7
|
+
"logoUrl": "",
|
|
8
|
+
"accent": "#3f68ff"
|
|
9
|
+
},
|
|
10
|
+
"capabilities": [
|
|
11
|
+
"dashboards",
|
|
12
|
+
"canvas",
|
|
13
|
+
"widgets",
|
|
14
|
+
"bindings",
|
|
15
|
+
"integrations",
|
|
16
|
+
"settings"
|
|
17
|
+
],
|
|
18
|
+
"pipelines": [],
|
|
19
|
+
"integrations": [],
|
|
20
|
+
"dashboards": [
|
|
21
|
+
{
|
|
22
|
+
"id": "untitled-dashboard",
|
|
23
|
+
"name": "Untitled",
|
|
24
|
+
"createdBy": "Workspace owner",
|
|
25
|
+
"updatedAt": "new",
|
|
26
|
+
"status": "draft"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"widgetTypes": [
|
|
30
|
+
{ "kind": "chart", "label": "Chart", "icon": "C" },
|
|
31
|
+
{ "kind": "view", "label": "View", "icon": "V" },
|
|
32
|
+
{ "kind": "iframe", "label": "iFrame", "icon": "I" },
|
|
33
|
+
{ "kind": "rich-text", "label": "Rich Text", "icon": "T" }
|
|
34
|
+
],
|
|
35
|
+
"canvas": {
|
|
36
|
+
"id": "workspace-canvas",
|
|
37
|
+
"name": "Tab 1",
|
|
38
|
+
"scope": "workspace",
|
|
39
|
+
"layout": {
|
|
40
|
+
"columns": 12,
|
|
41
|
+
"rowHeight": 64,
|
|
42
|
+
"gap": 16,
|
|
43
|
+
"responsive": true
|
|
44
|
+
},
|
|
45
|
+
"widgets": [],
|
|
46
|
+
"bindings": {
|
|
47
|
+
"chatToCanvas": true,
|
|
48
|
+
"workflowOutputsToArtifacts": true,
|
|
49
|
+
"sessionContext": true,
|
|
50
|
+
"configDrivenCanvas": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"provenance": {
|
|
54
|
+
"createdBy": "cli",
|
|
55
|
+
"mirrors": "growthub-custom-workspace-starter-v1",
|
|
56
|
+
"note": "Shipped with growthub-custom-workspace-starter-v1; safe to edit inside a governed fork and validate through the starter export smoke path."
|
|
57
|
+
},
|
|
58
|
+
"dataModel": {
|
|
59
|
+
"objects": [
|
|
60
|
+
{
|
|
61
|
+
"id": "sandboxes-alignment-loop",
|
|
62
|
+
"label": "Alignment Sandboxes",
|
|
63
|
+
"source": "Sandboxes",
|
|
64
|
+
"objectType": "sandbox-environment",
|
|
65
|
+
"icon": "Terminal",
|
|
66
|
+
"columns": [
|
|
67
|
+
"Name",
|
|
68
|
+
"lifecycleStatus",
|
|
69
|
+
"version",
|
|
70
|
+
"runLocality",
|
|
71
|
+
"schedulerRegistryId",
|
|
72
|
+
"runtime",
|
|
73
|
+
"adapter",
|
|
74
|
+
"agentHost",
|
|
75
|
+
"intelligenceType",
|
|
76
|
+
"localModel",
|
|
77
|
+
"localEndpoint",
|
|
78
|
+
"intelligenceAdapterMode",
|
|
79
|
+
"envRefs",
|
|
80
|
+
"networkAllow",
|
|
81
|
+
"allowList",
|
|
82
|
+
"instructions",
|
|
83
|
+
"command",
|
|
84
|
+
"orchestrationConfig",
|
|
85
|
+
"timeoutMs",
|
|
86
|
+
"resolverTemplateId",
|
|
87
|
+
"connectorKind",
|
|
88
|
+
"executionLane",
|
|
89
|
+
"status",
|
|
90
|
+
"lastTested",
|
|
91
|
+
"lastRunId",
|
|
92
|
+
"lastSourceId",
|
|
93
|
+
"lastResponse"
|
|
94
|
+
],
|
|
95
|
+
"rows": [
|
|
96
|
+
{
|
|
97
|
+
"Name": "workspace-expert",
|
|
98
|
+
"lifecycleStatus": "live",
|
|
99
|
+
"version": "1",
|
|
100
|
+
"runLocality": "local",
|
|
101
|
+
"schedulerRegistryId": "",
|
|
102
|
+
"runtime": "node",
|
|
103
|
+
"adapter": "local-intelligence",
|
|
104
|
+
"agentHost": "",
|
|
105
|
+
"intelligenceType": "local-intelligence",
|
|
106
|
+
"localModel": "gemma3:4b",
|
|
107
|
+
"localEndpoint": "http://127.0.0.1:11434/v1/chat/completions",
|
|
108
|
+
"intelligenceAdapterMode": "ollama",
|
|
109
|
+
"envRefs": "",
|
|
110
|
+
"networkAllow": "false",
|
|
111
|
+
"allowList": "",
|
|
112
|
+
"instructions": "You are workspace-expert for Growthub AWaC V2 running on Antonio's local governed workspace. Anchor answers to AGENTS.md contract order, governed primitives, schema boundaries, and PATCH allowlist invariants. For any task, first map required primitive(s), list safety checks, then provide the safest executable path. If a request violates invariants or touches protected boundaries, explicitly block and explain the compliant alternative.",
|
|
113
|
+
"command": "As workspace-expert, explain the safest path for this task with exact primitives and constraints.",
|
|
114
|
+
"orchestrationConfig": "{\"version\":\"1\",\"graph\":{\"nodes\":[{\"id\":\"workspace-expert\",\"type\":\"thinAdapter\",\"sandbox\":\"workspace-expert\"},{\"id\":\"executor-worker\",\"type\":\"thinAdapter\",\"sandbox\":\"executor-worker\"},{\"id\":\"critic-grader\",\"type\":\"thinAdapter\",\"sandbox\":\"critic-grader\"}],\"edges\":[{\"from\":\"workspace-expert\",\"to\":\"executor-worker\"},{\"from\":\"executor-worker\",\"to\":\"critic-grader\"}]}}",
|
|
115
|
+
"timeoutMs": "60000",
|
|
116
|
+
"resolverTemplateId": "alignment-loop",
|
|
117
|
+
"connectorKind": "local-intelligence",
|
|
118
|
+
"executionLane": "planner",
|
|
119
|
+
"status": "connected",
|
|
120
|
+
"lastTested": "",
|
|
121
|
+
"lastRunId": "",
|
|
122
|
+
"lastSourceId": "",
|
|
123
|
+
"lastResponse": ""
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"Name": "executor-worker",
|
|
127
|
+
"lifecycleStatus": "live",
|
|
128
|
+
"version": "1",
|
|
129
|
+
"runLocality": "local",
|
|
130
|
+
"schedulerRegistryId": "",
|
|
131
|
+
"runtime": "node",
|
|
132
|
+
"adapter": "local-agent-host",
|
|
133
|
+
"agentHost": "claude_local",
|
|
134
|
+
"intelligenceType": "agent-host",
|
|
135
|
+
"localModel": "",
|
|
136
|
+
"localEndpoint": "",
|
|
137
|
+
"intelligenceAdapterMode": "ollama",
|
|
138
|
+
"envRefs": "",
|
|
139
|
+
"networkAllow": "false",
|
|
140
|
+
"allowList": "",
|
|
141
|
+
"instructions": "Primary execution lane. Default agentHost is claude_local and can be overridden to cursor/codex_local or any supported local host on this machine.",
|
|
142
|
+
"command": "Execute the approved plan safely and report changed files, validation results, and open risks.",
|
|
143
|
+
"orchestrationConfig": "{\"version\":\"1\",\"graph\":{\"nodes\":[{\"id\":\"workspace-expert\",\"type\":\"thinAdapter\",\"sandbox\":\"workspace-expert\"},{\"id\":\"executor-worker\",\"type\":\"thinAdapter\",\"sandbox\":\"executor-worker\"},{\"id\":\"critic-grader\",\"type\":\"thinAdapter\",\"sandbox\":\"critic-grader\"}],\"edges\":[{\"from\":\"workspace-expert\",\"to\":\"executor-worker\"},{\"from\":\"executor-worker\",\"to\":\"critic-grader\"}]}}",
|
|
144
|
+
"timeoutMs": "180000",
|
|
145
|
+
"resolverTemplateId": "alignment-loop",
|
|
146
|
+
"connectorKind": "agent-host",
|
|
147
|
+
"executionLane": "executor",
|
|
148
|
+
"status": "connected",
|
|
149
|
+
"lastTested": "",
|
|
150
|
+
"lastRunId": "",
|
|
151
|
+
"lastSourceId": "",
|
|
152
|
+
"lastResponse": ""
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"Name": "critic-grader",
|
|
156
|
+
"lifecycleStatus": "live",
|
|
157
|
+
"version": "1",
|
|
158
|
+
"runLocality": "local",
|
|
159
|
+
"schedulerRegistryId": "",
|
|
160
|
+
"runtime": "node",
|
|
161
|
+
"adapter": "local-intelligence",
|
|
162
|
+
"agentHost": "",
|
|
163
|
+
"intelligenceType": "local-intelligence",
|
|
164
|
+
"localModel": "gemma3:4b",
|
|
165
|
+
"localEndpoint": "http://127.0.0.1:11434/v1/chat/completions",
|
|
166
|
+
"intelligenceAdapterMode": "ollama",
|
|
167
|
+
"envRefs": "",
|
|
168
|
+
"networkAllow": "false",
|
|
169
|
+
"allowList": "",
|
|
170
|
+
"instructions": "Grade executor output against AWaC V2 invariants, repo structure, schema boundaries, and safety rules. Return only strict JSON: {\"score\": X, \"reason\": \"one sentence\"}.",
|
|
171
|
+
"command": "Score this output from 1-5 for invariant accuracy and safety.",
|
|
172
|
+
"orchestrationConfig": "{\"version\":\"1\",\"graph\":{\"nodes\":[{\"id\":\"workspace-expert\",\"type\":\"thinAdapter\",\"sandbox\":\"workspace-expert\"},{\"id\":\"executor-worker\",\"type\":\"thinAdapter\",\"sandbox\":\"executor-worker\"},{\"id\":\"critic-grader\",\"type\":\"thinAdapter\",\"sandbox\":\"critic-grader\"}],\"edges\":[{\"from\":\"workspace-expert\",\"to\":\"executor-worker\"},{\"from\":\"executor-worker\",\"to\":\"critic-grader\"}]}}",
|
|
173
|
+
"timeoutMs": "60000",
|
|
174
|
+
"resolverTemplateId": "alignment-loop",
|
|
175
|
+
"connectorKind": "local-intelligence",
|
|
176
|
+
"executionLane": "critic",
|
|
177
|
+
"status": "connected",
|
|
178
|
+
"lastTested": "",
|
|
179
|
+
"lastRunId": "",
|
|
180
|
+
"lastSourceId": "",
|
|
181
|
+
"lastResponse": ""
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"binding": {
|
|
185
|
+
"mode": "manual",
|
|
186
|
+
"source": "Data Model"
|
|
187
|
+
},
|
|
188
|
+
"relations": [
|
|
189
|
+
{
|
|
190
|
+
"id": "scheduler-registry-binding",
|
|
191
|
+
"name": "Scheduler (serverless)",
|
|
192
|
+
"field": "schedulerRegistryId",
|
|
193
|
+
"targetObjectType": "api-registry",
|
|
194
|
+
"type": "belongs-to",
|
|
195
|
+
"description": "When runLocality is serverless, sandbox-run posts growthub-sandbox-run-v1 to this API Registry record."
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"fieldSettings": {
|
|
199
|
+
"hidden": [],
|
|
200
|
+
"order": [
|
|
201
|
+
"Name",
|
|
202
|
+
"lifecycleStatus",
|
|
203
|
+
"version",
|
|
204
|
+
"runLocality",
|
|
205
|
+
"schedulerRegistryId",
|
|
206
|
+
"runtime",
|
|
207
|
+
"adapter",
|
|
208
|
+
"agentHost",
|
|
209
|
+
"intelligenceType",
|
|
210
|
+
"localModel",
|
|
211
|
+
"localEndpoint",
|
|
212
|
+
"intelligenceAdapterMode",
|
|
213
|
+
"envRefs",
|
|
214
|
+
"networkAllow",
|
|
215
|
+
"allowList",
|
|
216
|
+
"instructions",
|
|
217
|
+
"command",
|
|
218
|
+
"orchestrationConfig",
|
|
219
|
+
"timeoutMs",
|
|
220
|
+
"resolverTemplateId",
|
|
221
|
+
"connectorKind",
|
|
222
|
+
"executionLane",
|
|
223
|
+
"status",
|
|
224
|
+
"lastTested",
|
|
225
|
+
"lastRunId",
|
|
226
|
+
"lastSourceId",
|
|
227
|
+
"lastResponse"
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"id": "training-traces",
|
|
233
|
+
"label": "Training Traces",
|
|
234
|
+
"source": "Data Model",
|
|
235
|
+
"objectType": "custom",
|
|
236
|
+
"icon": "NotebookPen",
|
|
237
|
+
"columns": [
|
|
238
|
+
"sessionDate",
|
|
239
|
+
"inputPrompt",
|
|
240
|
+
"agentOutput",
|
|
241
|
+
"qualityScore",
|
|
242
|
+
"reason",
|
|
243
|
+
"exported"
|
|
244
|
+
],
|
|
245
|
+
"rows": [],
|
|
246
|
+
"binding": {
|
|
247
|
+
"mode": "manual",
|
|
248
|
+
"source": "Data Model"
|
|
249
|
+
},
|
|
250
|
+
"fieldSettings": {
|
|
251
|
+
"hidden": [],
|
|
252
|
+
"order": [
|
|
253
|
+
"sessionDate",
|
|
254
|
+
"inputPrompt",
|
|
255
|
+
"agentOutput",
|
|
256
|
+
"qualityScore",
|
|
257
|
+
"reason",
|
|
258
|
+
"exported"
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
}
|