@camstack/develop 0.0.0-stage → 0.1.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/dist/catalogue/addons.d.ts +10 -0
- package/dist/catalogue/addons.d.ts.map +1 -0
- package/dist/catalogue/addons.js +132 -0
- package/dist/catalogue/capabilities.d.ts +9 -0
- package/dist/catalogue/capabilities.d.ts.map +1 -0
- package/dist/catalogue/capabilities.js +46 -0
- package/dist/examples/catalogue.d.ts +7 -0
- package/dist/examples/catalogue.d.ts.map +1 -0
- package/dist/examples/catalogue.js +97 -0
- package/dist/examples/find.d.ts +7 -0
- package/dist/examples/find.d.ts.map +1 -0
- package/dist/examples/find.js +72 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/naming.d.ts +6 -0
- package/dist/naming.d.ts.map +1 -0
- package/dist/naming.js +31 -0
- package/dist/scaffold/addon.d.ts +8 -0
- package/dist/scaffold/addon.d.ts.map +1 -0
- package/dist/scaffold/addon.js +221 -0
- package/dist/scaffold/cap-stub.d.ts +8 -0
- package/dist/scaffold/cap-stub.d.ts.map +1 -0
- package/dist/scaffold/cap-stub.js +69 -0
- package/dist/scaffold/extend.d.ts +8 -0
- package/dist/scaffold/extend.d.ts.map +1 -0
- package/dist/scaffold/extend.js +163 -0
- package/dist/scaffold/templates.d.ts +2 -0
- package/dist/scaffold/templates.d.ts.map +1 -0
- package/dist/scaffold/templates.js +9 -0
- package/dist/skills.d.ts +8 -0
- package/dist/skills.d.ts.map +1 -0
- package/dist/skills.js +39 -0
- package/dist/types.d.ts +109 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/validate/addon.d.ts +8 -0
- package/dist/validate/addon.d.ts.map +1 -0
- package/dist/validate/addon.js +119 -0
- package/dist/validate/entries.d.ts +8 -0
- package/dist/validate/entries.d.ts.map +1 -0
- package/dist/validate/entries.js +110 -0
- package/dist/workspace.d.ts +11 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +65 -0
- package/package.json +42 -4
- package/skills/README.md +45 -0
- package/skills/add-addon.md +126 -0
- package/skills/add-capability.md +89 -0
- package/skills/architecture.md +79 -0
- package/skills/sync-docs.md +59 -0
- package/README.md +0 -3
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
import { toClassName, toFileName } from '../naming.js';
|
|
4
|
+
import { CORE_EXAMPLES } from '../examples/catalogue.js';
|
|
5
|
+
import { renderTemplate } from './templates.js';
|
|
6
|
+
const KIND_EXAMPLE = {
|
|
7
|
+
empty: null,
|
|
8
|
+
provider: 'provider-rtsp',
|
|
9
|
+
notifier: 'notifiers',
|
|
10
|
+
osd: 'osd-manager',
|
|
11
|
+
'post-analysis': 'post-analysis',
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Scaffold a new addon package under `packages/addon-<name>/`.
|
|
15
|
+
* Aligned with `@camstack/nx-plugin:addon` templates, plus a vite.config.ts
|
|
16
|
+
* entries map (the silent miss the Nx generator historically omitted).
|
|
17
|
+
*/
|
|
18
|
+
export function scaffoldAddon(options) {
|
|
19
|
+
const fileName = toFileName(options.name);
|
|
20
|
+
const className = toClassName(fileName);
|
|
21
|
+
const directory = options.directory ?? 'packages';
|
|
22
|
+
const projectRoot = path.join(options.workspaceRoot, directory, `addon-${fileName}`);
|
|
23
|
+
const displayName = options.displayName ?? className;
|
|
24
|
+
const description = options.description ?? `${displayName} — CamStack addon.`;
|
|
25
|
+
const kind = options.kind ?? 'empty';
|
|
26
|
+
if (fs.existsSync(projectRoot) && !options.dryRun) {
|
|
27
|
+
throw new Error(`Target already exists: ${projectRoot}`);
|
|
28
|
+
}
|
|
29
|
+
const vars = {
|
|
30
|
+
fileName,
|
|
31
|
+
className,
|
|
32
|
+
displayName,
|
|
33
|
+
description,
|
|
34
|
+
projectRoot: path.relative(options.workspaceRoot, projectRoot).replace(/\\/g, '/'),
|
|
35
|
+
};
|
|
36
|
+
const files = [
|
|
37
|
+
{ relative: 'package.json', content: renderTemplate(PACKAGE_JSON, vars) },
|
|
38
|
+
{ relative: 'tsconfig.json', content: renderTemplate(TSCONFIG, vars) },
|
|
39
|
+
{ relative: 'vite.config.ts', content: renderTemplate(VITE_CONFIG, vars) },
|
|
40
|
+
{ relative: 'src/index.ts', content: renderTemplate(INDEX_TS, vars) },
|
|
41
|
+
{
|
|
42
|
+
relative: `src/${fileName}.addon.ts`,
|
|
43
|
+
content: renderTemplate(ADDON_TS, vars),
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
const exampleId = KIND_EXAMPLE[kind];
|
|
47
|
+
const example = exampleId ? CORE_EXAMPLES.find((e) => e.id === exampleId) : undefined;
|
|
48
|
+
if (example) {
|
|
49
|
+
files.push({
|
|
50
|
+
relative: 'DEVELOP.md',
|
|
51
|
+
content: [
|
|
52
|
+
`# ${displayName}`,
|
|
53
|
+
'',
|
|
54
|
+
`Scaffolded as kind \`${kind}\`. Study this core example before wiring:`,
|
|
55
|
+
'',
|
|
56
|
+
`- \`${example.packageDir}\` — ${example.demonstrates}`,
|
|
57
|
+
'',
|
|
58
|
+
'Rules:',
|
|
59
|
+
'- One addon = one process (shared `execution.group` only when allowed).',
|
|
60
|
+
'- Never import another addon; use `ctx.api`.',
|
|
61
|
+
'- Declare capabilities by name in `package.json` → `camstack.addons[].capabilities`.',
|
|
62
|
+
'- After any `*.cap.ts` change: `npm run codegen`.',
|
|
63
|
+
'- Deploy before expecting logs: `camstack deploy packages/addon-' + fileName + '`.',
|
|
64
|
+
'',
|
|
65
|
+
].join('\n'),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
const written = [];
|
|
69
|
+
if (!options.dryRun) {
|
|
70
|
+
for (const file of files) {
|
|
71
|
+
const abs = path.join(projectRoot, file.relative);
|
|
72
|
+
fs.mkdirSync(path.dirname(abs), { recursive: true });
|
|
73
|
+
fs.writeFileSync(abs, file.content, 'utf8');
|
|
74
|
+
written.push(path.relative(options.workspaceRoot, abs));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
for (const file of files) {
|
|
79
|
+
written.push(path.join(path.relative(options.workspaceRoot, projectRoot), file.relative));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
packageDir: projectRoot,
|
|
84
|
+
relativeDir: path.relative(options.workspaceRoot, projectRoot),
|
|
85
|
+
filesWritten: written,
|
|
86
|
+
nextSteps: [
|
|
87
|
+
`cd ${path.relative(options.workspaceRoot, projectRoot)}`,
|
|
88
|
+
'Implement providers in onInitialize and declare caps in package.json',
|
|
89
|
+
'npm run build -w @camstack/addon-' + fileName,
|
|
90
|
+
'npx tsx scripts/check-addon-entries.ts',
|
|
91
|
+
'camstack deploy packages/addon-' + fileName,
|
|
92
|
+
...(example
|
|
93
|
+
? [`Study example: ${example.packageDir}`]
|
|
94
|
+
: [`camstack develop find-example <topic>`]),
|
|
95
|
+
],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
const PACKAGE_JSON = `{
|
|
99
|
+
"name": "@camstack/addon-<%= fileName %>",
|
|
100
|
+
"version": "0.1.0",
|
|
101
|
+
"description": "<%= description %>",
|
|
102
|
+
"keywords": [
|
|
103
|
+
"camstack",
|
|
104
|
+
"addon",
|
|
105
|
+
"camstack-addon"
|
|
106
|
+
],
|
|
107
|
+
"license": "MIT",
|
|
108
|
+
"type": "module",
|
|
109
|
+
"main": "./dist/index.js",
|
|
110
|
+
"module": "./dist/index.mjs",
|
|
111
|
+
"exports": {
|
|
112
|
+
".": {
|
|
113
|
+
"import": "./dist/index.mjs",
|
|
114
|
+
"require": "./dist/index.js"
|
|
115
|
+
},
|
|
116
|
+
"./package.json": "./package.json"
|
|
117
|
+
},
|
|
118
|
+
"camstack": {
|
|
119
|
+
"displayName": "<%= displayName %>",
|
|
120
|
+
"addons": [
|
|
121
|
+
{
|
|
122
|
+
"id": "<%= fileName %>",
|
|
123
|
+
"name": "<%= displayName %>",
|
|
124
|
+
"description": "<%= description %>",
|
|
125
|
+
"entry": "./dist/<%= fileName %>.addon.js",
|
|
126
|
+
"execution": {
|
|
127
|
+
"placement": "hub-only"
|
|
128
|
+
},
|
|
129
|
+
"capabilities": []
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"files": [
|
|
134
|
+
"dist"
|
|
135
|
+
],
|
|
136
|
+
"scripts": {
|
|
137
|
+
"build": "vite build",
|
|
138
|
+
"typecheck": "tsc --noEmit",
|
|
139
|
+
"test": "vitest run"
|
|
140
|
+
},
|
|
141
|
+
"peerDependencies": {
|
|
142
|
+
"@camstack/types": "*"
|
|
143
|
+
},
|
|
144
|
+
"dependencies": {
|
|
145
|
+
"zod": "^4.3.6"
|
|
146
|
+
},
|
|
147
|
+
"devDependencies": {
|
|
148
|
+
"@camstack/types": "*",
|
|
149
|
+
"typescript": "~6.0.3",
|
|
150
|
+
"vite": "^8.0.11",
|
|
151
|
+
"vitest": "^3.0.0"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
`;
|
|
155
|
+
const TSCONFIG = `{
|
|
156
|
+
"extends": "../../tsconfig.base.json",
|
|
157
|
+
"compilerOptions": {
|
|
158
|
+
"rootDir": "./src",
|
|
159
|
+
"module": "ESNext",
|
|
160
|
+
"moduleResolution": "bundler",
|
|
161
|
+
"declaration": false,
|
|
162
|
+
"noEmit": true
|
|
163
|
+
},
|
|
164
|
+
"include": [
|
|
165
|
+
"src/**/*"
|
|
166
|
+
],
|
|
167
|
+
"exclude": [
|
|
168
|
+
"dist",
|
|
169
|
+
"node_modules"
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
`;
|
|
173
|
+
const VITE_CONFIG = `import { buildLibPreset } from '../../tools/build/vite-lib.preset.ts'
|
|
174
|
+
|
|
175
|
+
export default buildLibPreset({
|
|
176
|
+
entries: {
|
|
177
|
+
index: 'src/index.ts',
|
|
178
|
+
'<%= fileName %>.addon': 'src/<%= fileName %>.addon.ts',
|
|
179
|
+
},
|
|
180
|
+
externals: 'self-contained',
|
|
181
|
+
})
|
|
182
|
+
`;
|
|
183
|
+
const INDEX_TS = `export { <%= className %>Addon, default } from './<%= fileName %>.addon.js'
|
|
184
|
+
`;
|
|
185
|
+
const ADDON_TS = `/**
|
|
186
|
+
* <%= displayName %> — generated addon skeleton.
|
|
187
|
+
*
|
|
188
|
+
* Replace this scaffold with your real implementation. The default
|
|
189
|
+
* \`onInitialize\` registers no capabilities, so the addon loads cleanly
|
|
190
|
+
* but does nothing until you wire it up.
|
|
191
|
+
*
|
|
192
|
+
* Common next steps:
|
|
193
|
+
* 1. Pick capabilities (\`camstack develop list-caps\` / \`find-example\`).
|
|
194
|
+
* 2. Implement a provider conforming to the cap's \`InferProvider\`.
|
|
195
|
+
* 3. Return them from \`onInitialize\` and declare names in
|
|
196
|
+
* \`package.json\` → \`camstack.addons[0].capabilities\`.
|
|
197
|
+
* 4. \`camstack deploy packages/addon-<%= fileName %>\`.
|
|
198
|
+
*/
|
|
199
|
+
import { BaseAddon, type ProviderRegistration } from '@camstack/types'
|
|
200
|
+
|
|
201
|
+
// Operator-visible config fields go here, each with a default below and a
|
|
202
|
+
// field in a \`globalSettingsSchema()\` override. No on/off switch: the
|
|
203
|
+
// capability toggle is an addon's ONE enable (D777). An addon that needs a
|
|
204
|
+
// setting to do anything (a URL, a token) treats the empty value as inert.
|
|
205
|
+
type <%= className %>Config = Readonly<Record<string, never>>
|
|
206
|
+
|
|
207
|
+
const DEFAULTS: <%= className %>Config = {}
|
|
208
|
+
|
|
209
|
+
export class <%= className %>Addon extends BaseAddon<<%= className %>Config> {
|
|
210
|
+
constructor() {
|
|
211
|
+
super({ ...DEFAULTS })
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
protected async onInitialize(): Promise<ProviderRegistration[]> {
|
|
215
|
+
this.ctx.logger.info('<%= displayName %> addon initialized')
|
|
216
|
+
return []
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export default <%= className %>Addon
|
|
221
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ScaffoldCapOptions, ScaffoldCapResult } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Write a minimal `*.cap.ts` stub under packages/types. Does NOT edit
|
|
4
|
+
* `capabilities/index.ts` or run codegen — those remain explicit next steps
|
|
5
|
+
* (see add-capability skill).
|
|
6
|
+
*/
|
|
7
|
+
export declare function scaffoldCapStub(options: ScaffoldCapOptions): ScaffoldCapResult;
|
|
8
|
+
//# sourceMappingURL=cap-stub.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cap-stub.d.ts","sourceRoot":"","sources":["../../src/scaffold/cap-stub.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAExE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,kBAAkB,GAAG,iBAAiB,CAgE9E"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
import { toCapExportName, toClassName, toFileName } from '../naming.js';
|
|
4
|
+
/**
|
|
5
|
+
* Write a minimal `*.cap.ts` stub under packages/types. Does NOT edit
|
|
6
|
+
* `capabilities/index.ts` or run codegen — those remain explicit next steps
|
|
7
|
+
* (see add-capability skill).
|
|
8
|
+
*/
|
|
9
|
+
export function scaffoldCapStub(options) {
|
|
10
|
+
const fileName = toFileName(options.name);
|
|
11
|
+
const exportName = toCapExportName(fileName);
|
|
12
|
+
const typeName = `I${toClassName(fileName)}Provider`;
|
|
13
|
+
const scope = options.scope ?? 'system';
|
|
14
|
+
const mode = options.mode ?? 'singleton';
|
|
15
|
+
const capsDir = path.join(options.workspaceRoot, 'packages', 'types', 'src', 'capabilities');
|
|
16
|
+
const filePath = path.join(capsDir, `${fileName}.cap.ts`);
|
|
17
|
+
if (!fs.existsSync(capsDir)) {
|
|
18
|
+
throw new Error(`Capabilities directory missing: ${capsDir}`);
|
|
19
|
+
}
|
|
20
|
+
if (fs.existsSync(filePath) && !options.dryRun) {
|
|
21
|
+
throw new Error(`Cap file already exists: ${filePath}`);
|
|
22
|
+
}
|
|
23
|
+
const content = `import { z } from 'zod'
|
|
24
|
+
import { type CapabilityDefinition, type InferProvider } from './capability-definition.js'
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* ${fileName} capability stub — generated by \`camstack develop scaffold cap\`.
|
|
28
|
+
*
|
|
29
|
+
* Next steps (required):
|
|
30
|
+
* 1. Fill methods + auth.
|
|
31
|
+
* 2. Re-export from packages/types/src/capabilities/index.ts
|
|
32
|
+
* and add to the AnyCapability union.
|
|
33
|
+
* 3. npm run codegen
|
|
34
|
+
* 4. Implement + declare the cap by name in the providing addon's manifest.
|
|
35
|
+
*/
|
|
36
|
+
export const ${exportName} = {
|
|
37
|
+
name: '${fileName}',
|
|
38
|
+
scope: '${scope}',
|
|
39
|
+
mode: '${mode}',
|
|
40
|
+
methods: {
|
|
41
|
+
// ping: {
|
|
42
|
+
// input: z.object({}),
|
|
43
|
+
// output: z.object({ ok: z.boolean() }),
|
|
44
|
+
// auth: 'admin',
|
|
45
|
+
// },
|
|
46
|
+
},
|
|
47
|
+
runtimeState: {
|
|
48
|
+
lastFetchedAt: z.number(),
|
|
49
|
+
},
|
|
50
|
+
} as const satisfies CapabilityDefinition
|
|
51
|
+
|
|
52
|
+
export type ${typeName} = InferProvider<typeof ${exportName}>
|
|
53
|
+
`;
|
|
54
|
+
if (!options.dryRun) {
|
|
55
|
+
fs.writeFileSync(filePath, content, 'utf8');
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
filePath,
|
|
59
|
+
relativePath: path.relative(options.workspaceRoot, filePath),
|
|
60
|
+
exportName,
|
|
61
|
+
nextSteps: [
|
|
62
|
+
`Edit ${path.relative(options.workspaceRoot, filePath)} — add methods`,
|
|
63
|
+
'Hand-edit packages/types/src/capabilities/index.ts (re-export + AnyCapability)',
|
|
64
|
+
'npm run codegen',
|
|
65
|
+
'Declare the cap by name in the addon manifest and implement the provider',
|
|
66
|
+
'Append docs/history/sessions.md; run npm run docs:check',
|
|
67
|
+
],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ExtendAddonOptions, ExtendAddonResult } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Extend an existing addon package with a new manifest entry + stub source
|
|
4
|
+
* + vite entries key. Used when one npm package ships multiple addons
|
|
5
|
+
* (auth, cloudflare, tailscale pattern).
|
|
6
|
+
*/
|
|
7
|
+
export declare function extendAddon(options: ExtendAddonOptions): ExtendAddonResult;
|
|
8
|
+
//# sourceMappingURL=extend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extend.d.ts","sourceRoot":"","sources":["../../src/scaffold/extend.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAGxE;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,iBAAiB,CA0E1E"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
import { findAddonPackage } from '../catalogue/addons.js';
|
|
4
|
+
import { toClassName, toFileName } from '../naming.js';
|
|
5
|
+
import { asRecord, readJsonFile } from '../workspace.js';
|
|
6
|
+
import { renderTemplate } from './templates.js';
|
|
7
|
+
/**
|
|
8
|
+
* Extend an existing addon package with a new manifest entry + stub source
|
|
9
|
+
* + vite entries key. Used when one npm package ships multiple addons
|
|
10
|
+
* (auth, cloudflare, tailscale pattern).
|
|
11
|
+
*/
|
|
12
|
+
export function extendAddon(options) {
|
|
13
|
+
const pkg = findAddonPackage(options.workspaceRoot, options.addon);
|
|
14
|
+
if (!pkg) {
|
|
15
|
+
throw new Error(`Addon package not found: ${options.addon}`);
|
|
16
|
+
}
|
|
17
|
+
const entryId = toFileName(options.entryId);
|
|
18
|
+
const className = toClassName(entryId);
|
|
19
|
+
const displayName = options.displayName ?? className;
|
|
20
|
+
const description = options.description ?? `${displayName} — CamStack addon entry.`;
|
|
21
|
+
if (pkg.addons.some((a) => a.id === entryId)) {
|
|
22
|
+
throw new Error(`Manifest already has addon id: ${entryId}`);
|
|
23
|
+
}
|
|
24
|
+
const addonSourceRel = `src/${entryId}.addon.ts`;
|
|
25
|
+
const addonSourceAbs = path.join(pkg.packageDir, addonSourceRel);
|
|
26
|
+
if (fs.existsSync(addonSourceAbs) && !options.dryRun) {
|
|
27
|
+
throw new Error(`Source already exists: ${addonSourceAbs}`);
|
|
28
|
+
}
|
|
29
|
+
const vars = {
|
|
30
|
+
fileName: entryId,
|
|
31
|
+
className,
|
|
32
|
+
displayName,
|
|
33
|
+
description,
|
|
34
|
+
projectRoot: pkg.relativeDir.replace(/\\/g, '/'),
|
|
35
|
+
};
|
|
36
|
+
const addonTs = renderTemplate(ADDON_TS, vars);
|
|
37
|
+
const written = [];
|
|
38
|
+
if (!options.dryRun) {
|
|
39
|
+
fs.mkdirSync(path.dirname(addonSourceAbs), { recursive: true });
|
|
40
|
+
fs.writeFileSync(addonSourceAbs, addonTs, 'utf8');
|
|
41
|
+
written.push(path.relative(options.workspaceRoot, addonSourceAbs));
|
|
42
|
+
patchPackageJson(pkg.packageDir, {
|
|
43
|
+
id: entryId,
|
|
44
|
+
name: displayName,
|
|
45
|
+
description,
|
|
46
|
+
entry: `./dist/${entryId}.addon.js`,
|
|
47
|
+
});
|
|
48
|
+
written.push(path.relative(options.workspaceRoot, path.join(pkg.packageDir, 'package.json')));
|
|
49
|
+
patchViteConfig(pkg.packageDir, entryId, addonSourceRel);
|
|
50
|
+
const vitePath = path.join(pkg.packageDir, 'vite.config.ts');
|
|
51
|
+
if (fs.existsSync(vitePath)) {
|
|
52
|
+
written.push(path.relative(options.workspaceRoot, vitePath));
|
|
53
|
+
}
|
|
54
|
+
patchIndexBarrel(pkg.packageDir, className, entryId);
|
|
55
|
+
const indexPath = path.join(pkg.packageDir, 'src', 'index.ts');
|
|
56
|
+
if (fs.existsSync(indexPath)) {
|
|
57
|
+
written.push(path.relative(options.workspaceRoot, indexPath));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
written.push(path.relative(options.workspaceRoot, addonSourceAbs));
|
|
62
|
+
written.push(path.join(pkg.relativeDir, 'package.json'));
|
|
63
|
+
written.push(path.join(pkg.relativeDir, 'vite.config.ts'));
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
packageDir: pkg.packageDir,
|
|
67
|
+
entryId,
|
|
68
|
+
filesWritten: written,
|
|
69
|
+
nextSteps: [
|
|
70
|
+
`Implement ${addonSourceRel}`,
|
|
71
|
+
'Confirm vite.config.ts entries map includes the new stem',
|
|
72
|
+
'npm run build -w ' + pkg.packageName,
|
|
73
|
+
'npx tsx scripts/check-addon-entries.ts',
|
|
74
|
+
'camstack deploy ' + pkg.relativeDir,
|
|
75
|
+
],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function patchPackageJson(pkgDir, entry) {
|
|
79
|
+
const pkgPath = path.join(pkgDir, 'package.json');
|
|
80
|
+
const pkg = readJsonFile(pkgPath);
|
|
81
|
+
if (!pkg)
|
|
82
|
+
throw new Error(`Cannot read ${pkgPath}`);
|
|
83
|
+
const camstack = asRecord(pkg['camstack']);
|
|
84
|
+
if (!camstack)
|
|
85
|
+
throw new Error(`${pkgPath}: missing camstack manifest`);
|
|
86
|
+
const addons = Array.isArray(camstack['addons']) ? [...camstack['addons']] : [];
|
|
87
|
+
addons.push({
|
|
88
|
+
id: entry.id,
|
|
89
|
+
name: entry.name,
|
|
90
|
+
description: entry.description,
|
|
91
|
+
entry: entry.entry,
|
|
92
|
+
execution: { placement: 'hub-only' },
|
|
93
|
+
capabilities: [],
|
|
94
|
+
});
|
|
95
|
+
camstack['addons'] = addons;
|
|
96
|
+
pkg['camstack'] = camstack;
|
|
97
|
+
fs.writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`, 'utf8');
|
|
98
|
+
}
|
|
99
|
+
function patchViteConfig(pkgDir, stem, sourceRel) {
|
|
100
|
+
const vitePath = path.join(pkgDir, 'vite.config.ts');
|
|
101
|
+
if (!fs.existsSync(vitePath)) {
|
|
102
|
+
fs.writeFileSync(vitePath, `import { buildLibPreset } from '../../tools/build/vite-lib.preset.ts'
|
|
103
|
+
|
|
104
|
+
export default buildLibPreset({
|
|
105
|
+
entries: {
|
|
106
|
+
index: 'src/index.ts',
|
|
107
|
+
'${stem}.addon': '${sourceRel}',
|
|
108
|
+
},
|
|
109
|
+
externals: 'self-contained',
|
|
110
|
+
})
|
|
111
|
+
`, 'utf8');
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
let text = fs.readFileSync(vitePath, 'utf8');
|
|
115
|
+
if (text.includes(`'${stem}.addon'`) || text.includes(`"${stem}.addon"`))
|
|
116
|
+
return;
|
|
117
|
+
const entriesMatch = /entries\s*[:=]\s*\{/.exec(text);
|
|
118
|
+
if (!entriesMatch || entriesMatch.index === undefined) {
|
|
119
|
+
throw new Error(`${vitePath}: could not find entries map — add '${stem}.addon': '${sourceRel}' manually`);
|
|
120
|
+
}
|
|
121
|
+
const insertAt = entriesMatch.index + entriesMatch[0].length;
|
|
122
|
+
const line = `\n '${stem}.addon': '${sourceRel}',`;
|
|
123
|
+
text = text.slice(0, insertAt) + line + text.slice(insertAt);
|
|
124
|
+
fs.writeFileSync(vitePath, text, 'utf8');
|
|
125
|
+
}
|
|
126
|
+
function patchIndexBarrel(pkgDir, className, fileName) {
|
|
127
|
+
const indexPath = path.join(pkgDir, 'src', 'index.ts');
|
|
128
|
+
const line = `export { ${className}Addon } from './${fileName}.addon.js'\n`;
|
|
129
|
+
if (!fs.existsSync(indexPath)) {
|
|
130
|
+
fs.writeFileSync(indexPath, line, 'utf8');
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const existing = fs.readFileSync(indexPath, 'utf8');
|
|
134
|
+
if (existing.includes(`${className}Addon`))
|
|
135
|
+
return;
|
|
136
|
+
fs.writeFileSync(indexPath, existing.endsWith('\n') ? existing + line : `${existing}\n${line}`, 'utf8');
|
|
137
|
+
}
|
|
138
|
+
const ADDON_TS = `/**
|
|
139
|
+
* <%= displayName %> — extended addon entry skeleton.
|
|
140
|
+
*/
|
|
141
|
+
import { BaseAddon, type ProviderRegistration } from '@camstack/types'
|
|
142
|
+
|
|
143
|
+
// Operator-visible config fields go here, each with a default below and a
|
|
144
|
+
// field in a \`globalSettingsSchema()\` override. No on/off switch: the
|
|
145
|
+
// capability toggle is an addon's ONE enable (D777). An addon that needs a
|
|
146
|
+
// setting to do anything (a URL, a token) treats the empty value as inert.
|
|
147
|
+
type <%= className %>Config = Readonly<Record<string, never>>
|
|
148
|
+
|
|
149
|
+
const DEFAULTS: <%= className %>Config = {}
|
|
150
|
+
|
|
151
|
+
export class <%= className %>Addon extends BaseAddon<<%= className %>Config> {
|
|
152
|
+
constructor() {
|
|
153
|
+
super({ ...DEFAULTS })
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
protected async onInitialize(): Promise<ProviderRegistration[]> {
|
|
157
|
+
this.ctx.logger.info('<%= displayName %> addon initialized')
|
|
158
|
+
return []
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export default <%= className %>Addon
|
|
163
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/scaffold/templates.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,MAAM,CAQ7F"}
|
package/dist/skills.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SkillInfo } from './types.js';
|
|
2
|
+
export declare function resolveSkillsDir(): string;
|
|
3
|
+
export declare function listSkills(): readonly SkillInfo[];
|
|
4
|
+
export declare function readSkill(id: string): {
|
|
5
|
+
info: SkillInfo;
|
|
6
|
+
content: string;
|
|
7
|
+
} | null;
|
|
8
|
+
//# sourceMappingURL=skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAI3C,wBAAgB,gBAAgB,IAAI,MAAM,CAMzC;AAaD,wBAAgB,UAAU,IAAI,SAAS,SAAS,EAAE,CAQjD;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAKjF"}
|
package/dist/skills.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
const HERE = path.dirname(fileURLToPath(import.meta.url));
|
|
5
|
+
export function resolveSkillsDir() {
|
|
6
|
+
const candidates = [path.resolve(HERE, '..', 'skills'), path.resolve(HERE, '..', '..', 'skills')];
|
|
7
|
+
for (const dir of candidates) {
|
|
8
|
+
if (fs.existsSync(dir))
|
|
9
|
+
return dir;
|
|
10
|
+
}
|
|
11
|
+
return candidates[0];
|
|
12
|
+
}
|
|
13
|
+
const SKILL_FILES = [
|
|
14
|
+
{ id: 'add-addon', file: 'add-addon.md', title: 'Add or extend an addon' },
|
|
15
|
+
{ id: 'add-capability', file: 'add-capability.md', title: 'Add or change a capability' },
|
|
16
|
+
{ id: 'sync-docs', file: 'sync-docs.md', title: 'Keep documentation true' },
|
|
17
|
+
{
|
|
18
|
+
id: 'architecture',
|
|
19
|
+
file: 'architecture.md',
|
|
20
|
+
title: 'Architecture pointers for plugin authors',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
export function listSkills() {
|
|
24
|
+
const dir = resolveSkillsDir();
|
|
25
|
+
return SKILL_FILES.map((s) => ({
|
|
26
|
+
id: s.id,
|
|
27
|
+
title: s.title,
|
|
28
|
+
absolutePath: path.join(dir, s.file),
|
|
29
|
+
relativePath: path.join('skills', s.file),
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
export function readSkill(id) {
|
|
33
|
+
const info = listSkills().find((s) => s.id === id);
|
|
34
|
+
if (!info)
|
|
35
|
+
return null;
|
|
36
|
+
if (!fs.existsSync(info.absolutePath))
|
|
37
|
+
return null;
|
|
38
|
+
return { info, content: fs.readFileSync(info.absolutePath, 'utf8') };
|
|
39
|
+
}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/** Shared result / catalogue shapes for CLI + MCP surfaces. */
|
|
2
|
+
export interface WorkspacePaths {
|
|
3
|
+
readonly root: string;
|
|
4
|
+
readonly packagesDir: string;
|
|
5
|
+
readonly capsDir: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AddonCapabilityRef {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AddonManifestEntry {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly description: string;
|
|
14
|
+
readonly entry: string;
|
|
15
|
+
readonly category?: string;
|
|
16
|
+
readonly capabilities: readonly AddonCapabilityRef[];
|
|
17
|
+
readonly placement?: string;
|
|
18
|
+
readonly group?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface AddonPackageSummary {
|
|
21
|
+
readonly packageName: string;
|
|
22
|
+
readonly packageDir: string;
|
|
23
|
+
readonly relativeDir: string;
|
|
24
|
+
readonly displayName?: string;
|
|
25
|
+
readonly description?: string;
|
|
26
|
+
readonly addons: readonly AddonManifestEntry[];
|
|
27
|
+
}
|
|
28
|
+
export interface CapabilitySummary {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly file: string;
|
|
31
|
+
readonly relativeFile: string;
|
|
32
|
+
readonly scope?: string;
|
|
33
|
+
readonly mode?: string;
|
|
34
|
+
readonly exportName?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface ExampleEntry {
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly packageDir: string;
|
|
39
|
+
readonly kind: 'provider' | 'notifier' | 'osd' | 'post-analysis' | 'model-studio' | 'admin-ui' | 'builtin' | 'other';
|
|
40
|
+
readonly demonstrates: string;
|
|
41
|
+
readonly tags: readonly string[];
|
|
42
|
+
}
|
|
43
|
+
export interface ExampleHit {
|
|
44
|
+
readonly example: ExampleEntry;
|
|
45
|
+
readonly score: number;
|
|
46
|
+
readonly rationale: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ValidationFinding {
|
|
49
|
+
readonly level: 'error' | 'warn' | 'info';
|
|
50
|
+
readonly code: string;
|
|
51
|
+
readonly message: string;
|
|
52
|
+
readonly path?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface ValidationResult {
|
|
55
|
+
readonly ok: boolean;
|
|
56
|
+
readonly findings: readonly ValidationFinding[];
|
|
57
|
+
}
|
|
58
|
+
export interface ScaffoldAddonOptions {
|
|
59
|
+
readonly workspaceRoot: string;
|
|
60
|
+
readonly name: string;
|
|
61
|
+
readonly displayName?: string;
|
|
62
|
+
readonly description?: string;
|
|
63
|
+
readonly directory?: string;
|
|
64
|
+
/** Template flavour — empty skeleton, or a stub pointing at a core example. */
|
|
65
|
+
readonly kind?: 'empty' | 'provider' | 'notifier' | 'osd' | 'post-analysis';
|
|
66
|
+
readonly dryRun?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface ScaffoldAddonResult {
|
|
69
|
+
readonly packageDir: string;
|
|
70
|
+
readonly relativeDir: string;
|
|
71
|
+
readonly filesWritten: readonly string[];
|
|
72
|
+
readonly nextSteps: readonly string[];
|
|
73
|
+
}
|
|
74
|
+
export interface ScaffoldCapOptions {
|
|
75
|
+
readonly workspaceRoot: string;
|
|
76
|
+
readonly name: string;
|
|
77
|
+
readonly scope?: 'system' | 'device';
|
|
78
|
+
readonly mode?: 'singleton' | 'collection';
|
|
79
|
+
readonly dryRun?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface ScaffoldCapResult {
|
|
82
|
+
readonly filePath: string;
|
|
83
|
+
readonly relativePath: string;
|
|
84
|
+
readonly exportName: string;
|
|
85
|
+
readonly nextSteps: readonly string[];
|
|
86
|
+
}
|
|
87
|
+
export interface ExtendAddonOptions {
|
|
88
|
+
readonly workspaceRoot: string;
|
|
89
|
+
/** Package dir, npm name, or short addon id. */
|
|
90
|
+
readonly addon: string;
|
|
91
|
+
/** New manifest id / entry stem. */
|
|
92
|
+
readonly entryId: string;
|
|
93
|
+
readonly displayName?: string;
|
|
94
|
+
readonly description?: string;
|
|
95
|
+
readonly dryRun?: boolean;
|
|
96
|
+
}
|
|
97
|
+
export interface ExtendAddonResult {
|
|
98
|
+
readonly packageDir: string;
|
|
99
|
+
readonly entryId: string;
|
|
100
|
+
readonly filesWritten: readonly string[];
|
|
101
|
+
readonly nextSteps: readonly string[];
|
|
102
|
+
}
|
|
103
|
+
export interface SkillInfo {
|
|
104
|
+
readonly id: string;
|
|
105
|
+
readonly title: string;
|
|
106
|
+
readonly absolutePath: string;
|
|
107
|
+
readonly relativePath: string;
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAE/D,M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