@cslug/cli 0.5.0 → 0.6.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cslug/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "The cslug command: generators, dev server, start supervisor, REPL.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"cslug": "src/bin.ts"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@cslug/core": "0.
|
|
35
|
-
"@cslug/database": "0.
|
|
34
|
+
"@cslug/core": "0.6.0",
|
|
35
|
+
"@cslug/database": "0.6.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@cslug/database": "workspace:*",
|
package/src/commands/add.ts
CHANGED
|
@@ -41,6 +41,12 @@ export const ADDITIONS: Record<string, Addition> = {
|
|
|
41
41
|
config: 'webhooks',
|
|
42
42
|
next: 'cslug migrate (creates cslug_webhook_inbox)',
|
|
43
43
|
},
|
|
44
|
+
search: {
|
|
45
|
+
packages: ['@cslug/search'],
|
|
46
|
+
providers: { from: '@cslug/search', names: ['SearchProvider'] },
|
|
47
|
+
config: 'search',
|
|
48
|
+
next: 'cslug migrate (adds unaccent, pg_trgm and the cslug_<language> search configurations)',
|
|
49
|
+
},
|
|
44
50
|
ai: {
|
|
45
51
|
packages: ['@cslug/ai'],
|
|
46
52
|
providers: { from: '@cslug/ai', names: ['AiProvider'] },
|
|
@@ -51,6 +51,7 @@ const LAYOUT: [string, string][] = [
|
|
|
51
51
|
['app/notifications', 'notifications'],
|
|
52
52
|
['app/agents', 'AI agents (`Agent` subclasses)'],
|
|
53
53
|
['app/tools', 'AI tools (`Tool` subclasses; `@mcp()` exposes them)'],
|
|
54
|
+
['app/search', 'search indexes (`searchIndex()`, refilled by `cslug search:reindex`)'],
|
|
54
55
|
['app/commands', 'app commands (`*-command.ts`, discovered by `cslug`)'],
|
|
55
56
|
['app/providers', 'service providers'],
|
|
56
57
|
['config', 'one file per package (`config/database.ts`…), values from `env`'],
|
package/stubs/add/ai.config.stub
CHANGED
|
@@ -8,4 +8,5 @@ export default defineConfig({
|
|
|
8
8
|
},
|
|
9
9
|
models: { fast: 'claude-haiku-5-5', smart: 'claude-opus-5-5' }, // code refers to roles, not model IDs
|
|
10
10
|
// budget: { perDay: { usd: 10 }, alertAt: 0.8 }, // estimated spend per day; AiBudgetError once it is reached
|
|
11
|
+
// embeddings: { driver: 'voyage', model: 'voyage-3.5' }, // semantic search (@cslug/search); key from VOYAGE_API_KEY
|
|
11
12
|
})
|