@grove-dev/cli 0.6.1 → 0.8.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/README.md +192 -23
- package/dist/audit-cli.d.ts +1 -1
- package/dist/audit-cli.d.ts.map +1 -1
- package/dist/audit-cli.js +11 -11
- package/dist/audit-cli.js.map +1 -1
- package/dist/audit.d.ts +4 -4
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js +99 -49
- package/dist/audit.js.map +1 -1
- package/dist/collection-cli.d.ts.map +1 -1
- package/dist/collection-cli.js +1 -1
- package/dist/collection-cli.js.map +1 -1
- package/dist/diff.d.ts +43 -0
- package/dist/diff.d.ts.map +1 -0
- package/dist/diff.js +70 -0
- package/dist/diff.js.map +1 -0
- package/dist/hash.d.ts +36 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +82 -0
- package/dist/hash.js.map +1 -0
- package/dist/icons-cli.d.ts +1 -1
- package/dist/icons-cli.d.ts.map +1 -1
- package/dist/icons-cli.js +32 -14
- package/dist/icons-cli.js.map +1 -1
- package/dist/import-cli.d.ts +1 -1
- package/dist/import-cli.d.ts.map +1 -1
- package/dist/import-cli.js +6 -6
- package/dist/import-cli.js.map +1 -1
- package/dist/index.js +95 -58
- package/dist/index.js.map +1 -1
- package/dist/init.d.ts +37 -4
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +251 -57
- package/dist/init.js.map +1 -1
- package/dist/package.json +3 -2
- package/dist/r/about.json +22 -0
- package/dist/r/browse.json +89 -0
- package/dist/r/collections.json +59 -0
- package/dist/r/contributors.json +22 -0
- package/dist/r/default.json +438 -0
- package/dist/r/home.json +67 -0
- package/dist/r/not-found.json +22 -0
- package/dist/r/project-card.json +48 -0
- package/dist/r/record.json +59 -0
- package/dist/r/registry.json +903 -0
- package/dist/r/shell.json +75 -0
- package/dist/r/submit.json +28 -0
- package/dist/r/taxonomy.json +65 -0
- package/dist/r/ui.json +54 -0
- package/dist/readme-cli.d.ts +1 -1
- package/dist/readme-cli.d.ts.map +1 -1
- package/dist/readme-cli.js +84 -49
- package/dist/readme-cli.js.map +1 -1
- package/dist/registry.d.ts +74 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +180 -0
- package/dist/registry.js.map +1 -0
- package/dist/run.d.ts +7 -0
- package/dist/run.d.ts.map +1 -0
- package/dist/run.js +20 -0
- package/dist/run.js.map +1 -0
- package/dist/unified-diff.d.ts +14 -0
- package/dist/unified-diff.d.ts.map +1 -0
- package/dist/unified-diff.js +103 -0
- package/dist/unified-diff.js.map +1 -0
- package/dist/update.d.ts +47 -0
- package/dist/update.d.ts.map +1 -0
- package/dist/update.js +231 -0
- package/dist/update.js.map +1 -0
- package/package.json +5 -4
- package/dist/site/.github/ISSUE_TEMPLATE/bug_report.md +0 -33
- package/dist/site/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- package/dist/site/.github/ISSUE_TEMPLATE/record_submission.md +0 -48
- package/dist/site/.github/pull_request_template.md +0 -27
- package/dist/site/.github/workflows/ci.yml +0 -21
- package/dist/site/.github/workflows/cleanup.yml +0 -23
- package/dist/site/.github/workflows/deploy.yml +0 -36
- package/dist/site/.github/workflows/readme.yml +0 -41
- package/dist/site/.github/workflows/sync-contributors.yml +0 -28
- package/dist/site/.github/workflows/sync-github.yml +0 -31
- package/dist/site/README.md +0 -89
- package/dist/site/astro.config.mjs +0 -26
- package/dist/site/content/records/crewai.md +0 -898
- package/dist/site/content/records/dify.md +0 -35
- package/dist/site/content/records/flowise.md +0 -38
- package/dist/site/content/records/llamaindex.md +0 -45
- package/dist/site/content/records/ollama.md +0 -39
- package/dist/site/content/records/open-webui.md +0 -35
- package/dist/site/data/collections/top-ai-agents.yml +0 -14
- package/dist/site/data/collections/top-flutter.yml +0 -12
- package/dist/site/data/health.yml +0 -13
- package/dist/site/data/records/.gitkeep +0 -0
- package/dist/site/data/records/crewai.yml +0 -23
- package/dist/site/data/records/dify.yml +0 -23
- package/dist/site/data/records/flowise.yml +0 -23
- package/dist/site/data/records/llamaindex.yml +0 -23
- package/dist/site/data/records/ollama.yml +0 -30
- package/dist/site/data/records/open-webui.yml +0 -23
- package/dist/site/data/taxonomy/categories.yml +0 -10
- package/dist/site/data/taxonomy/distribution-channels.yml +0 -43
- package/dist/site/data/taxonomy/licenses.yml +0 -16
- package/dist/site/data/taxonomy/platforms.yml +0 -20
- package/dist/site/data/taxonomy/stacks.yml +0 -15
- package/dist/site/data/taxonomy/topics.yml +0 -29
- package/dist/site/grove.config.ts +0 -110
- package/dist/site/package.json +0 -34
- package/dist/site/public/icons/.grove-icons.json +0 -47
- package/dist/site/public/icons/platforms/android.svg +0 -1
- package/dist/site/public/icons/platforms/app.svg +0 -4
- package/dist/site/public/icons/platforms/chrome.svg +0 -1
- package/dist/site/public/icons/platforms/desktop.svg +0 -4
- package/dist/site/public/icons/platforms/embedded.svg +0 -5
- package/dist/site/public/icons/platforms/ios.svg +0 -1
- package/dist/site/public/icons/platforms/linux.svg +0 -1
- package/dist/site/public/icons/platforms/macos.svg +0 -1
- package/dist/site/public/icons/platforms/ubuntu.svg +0 -1
- package/dist/site/public/icons/platforms/web.svg +0 -5
- package/dist/site/public/icons/platforms/windows.svg +0 -1
- package/dist/site/public/icons/stacks/android.svg +0 -1
- package/dist/site/public/icons/stacks/apple.svg +0 -1
- package/dist/site/public/icons/stacks/bun.svg +0 -1
- package/dist/site/public/icons/stacks/capacitor.svg +0 -1
- package/dist/site/public/icons/stacks/clojure.svg +0 -1
- package/dist/site/public/icons/stacks/dart.svg +0 -1
- package/dist/site/public/icons/stacks/deno.svg +0 -1
- package/dist/site/public/icons/stacks/django.svg +0 -1
- package/dist/site/public/icons/stacks/docker.svg +0 -1
- package/dist/site/public/icons/stacks/firebase.svg +0 -1
- package/dist/site/public/icons/stacks/flutter.svg +0 -1
- package/dist/site/public/icons/stacks/go.svg +0 -1
- package/dist/site/public/icons/stacks/graphql.svg +0 -1
- package/dist/site/public/icons/stacks/ionic.svg +0 -1
- package/dist/site/public/icons/stacks/java.svg +0 -1
- package/dist/site/public/icons/stacks/javascript.svg +0 -1
- package/dist/site/public/icons/stacks/kotlin.svg +0 -1
- package/dist/site/public/icons/stacks/llm.svg +0 -4
- package/dist/site/public/icons/stacks/mongodb.svg +0 -1
- package/dist/site/public/icons/stacks/nodejs.svg +0 -1
- package/dist/site/public/icons/stacks/python.svg +0 -1
- package/dist/site/public/icons/stacks/rag.svg +0 -6
- package/dist/site/public/icons/stacks/react-native.svg +0 -1
- package/dist/site/public/icons/stacks/react.svg +0 -1
- package/dist/site/public/icons/stacks/rust.svg +0 -1
- package/dist/site/public/icons/stacks/solidity.svg +0 -1
- package/dist/site/public/icons/stacks/sveltekit.svg +0 -1
- package/dist/site/public/icons/stacks/swift.svg +0 -1
- package/dist/site/public/icons/stacks/tauri.svg +0 -1
- package/dist/site/public/icons/stacks/tensorflow.svg +0 -1
- package/dist/site/public/icons/stacks/typescript.svg +0 -1
- package/dist/site/public/icons/stacks/vue.svg +0 -1
- package/dist/site/public/logo.svg +0 -16
- package/dist/site/src/components/DirectoryBrowse.astro +0 -246
- package/dist/site/src/components/PipelineStrip.astro +0 -121
- package/dist/site/src/components/TaxonomyList.astro +0 -108
- package/dist/site/src/pages/404.astro +0 -63
- package/dist/site/src/pages/[slug]/[recordSlug].astro +0 -71
- package/dist/site/src/pages/[slug]/index.astro +0 -19
- package/dist/site/src/pages/[slug]/page/[page].astro +0 -32
- package/dist/site/src/pages/[slug]/page/cards.astro +0 -50
- package/dist/site/src/pages/[slug]/page/records.json.ts +0 -24
- package/dist/site/src/pages/about.astro +0 -130
- package/dist/site/src/pages/categories/[name].astro +0 -35
- package/dist/site/src/pages/categories/index.astro +0 -33
- package/dist/site/src/pages/collections/[slug].astro +0 -45
- package/dist/site/src/pages/collections/index.astro +0 -32
- package/dist/site/src/pages/contributors.astro +0 -115
- package/dist/site/src/pages/empty.astro +0 -24
- package/dist/site/src/pages/index.astro +0 -161
- package/dist/site/src/pages/licenses/[name].astro +0 -35
- package/dist/site/src/pages/stacks/[name].astro +0 -35
- package/dist/site/src/pages/stacks/index.astro +0 -35
- package/dist/site/src/pages/submit.astro +0 -183
- package/dist/site/src/styles/global.css +0 -21
- package/dist/site/tsconfig.json +0 -13
- /package/{dist/site/LICENSE → LICENSE} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,62 +1,51 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Command } from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
2
|
+
import { readdir, readFile, writeFile } from 'node:fs/promises';
|
|
3
|
+
import { basename, join, resolve } from 'node:path';
|
|
4
|
+
import { buildGithubSyncPatch, classifyHealth, cleanupStale, enrichFromGithubHtml, fetchGithubMetadata, loadConfig, normalizeGithubIntegration, parseGithubRepoUrl, prepareDirectory, stringifyRecordYaml, syncContributors, validateProject, } from '@grove-dev/core';
|
|
5
|
+
import { Command } from 'commander';
|
|
6
|
+
import { parse as parseYaml } from 'yaml';
|
|
7
|
+
import { buildAuditCommand } from './audit-cli.js';
|
|
8
|
+
import { buildCollectionCommand } from './collection-cli.js';
|
|
9
|
+
import { buildIconsCommand } from './icons-cli.js';
|
|
10
|
+
import { buildImportCommand } from './import-cli.js';
|
|
11
|
+
import { initDirectory, readCliVersion } from './init.js';
|
|
12
|
+
import { buildReadmeCommand } from './readme-cli.js';
|
|
13
|
+
import { run } from './run.js';
|
|
14
|
+
import { formatPlan, runUpdate } from './update.js';
|
|
14
15
|
const program = new Command();
|
|
15
|
-
function run(command, args, cwd = process.cwd()) {
|
|
16
|
-
return new Promise((resolvePromise, reject) => {
|
|
17
|
-
const child = spawn(command, args, { cwd, stdio: "inherit", shell: false });
|
|
18
|
-
child.once("error", reject);
|
|
19
|
-
child.once("exit", (code, signal) => {
|
|
20
|
-
if (code === 0)
|
|
21
|
-
resolvePromise();
|
|
22
|
-
else
|
|
23
|
-
reject(new Error(`${command} exited with ${signal ?? code ?? "unknown status"}`));
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
16
|
program
|
|
28
|
-
.name(
|
|
29
|
-
.description(
|
|
17
|
+
.name('grove')
|
|
18
|
+
.description('Build and maintain a Grove-powered directory.')
|
|
30
19
|
.version(readCliVersion());
|
|
31
20
|
program
|
|
32
|
-
.command(
|
|
33
|
-
.argument(
|
|
34
|
-
.description(
|
|
35
|
-
.option(
|
|
36
|
-
.option(
|
|
21
|
+
.command('init')
|
|
22
|
+
.argument('[directory]', 'directory to create', '.')
|
|
23
|
+
.description('Create a Grove project by installing the @grove/default registry scaffold.')
|
|
24
|
+
.option('--no-install', "skip the final pnpm install (shadcn still installs the scaffold's own npm dependencies)")
|
|
25
|
+
.option('--no-git', 'skip git init')
|
|
37
26
|
.action(async (directory, options) => {
|
|
38
27
|
const target = resolve(process.cwd(), directory);
|
|
39
28
|
const result = await initDirectory(target, {
|
|
40
|
-
...(directory ===
|
|
29
|
+
...(directory === '.' ? {} : { projectName: basename(resolve(directory)) }),
|
|
41
30
|
});
|
|
42
31
|
console.log(`Created ${result.projectName} in ${result.targetDir}`);
|
|
43
32
|
if (options.install)
|
|
44
|
-
await run(
|
|
33
|
+
await run('pnpm', ['install'], target);
|
|
45
34
|
if (options.git)
|
|
46
|
-
await run(
|
|
35
|
+
await run('git', ['init'], target);
|
|
47
36
|
console.log(`\nNext:\n cd ${directory}\n pnpm dev`);
|
|
48
37
|
});
|
|
49
38
|
program
|
|
50
|
-
.command(
|
|
51
|
-
.description(
|
|
52
|
-
.option(
|
|
39
|
+
.command('check')
|
|
40
|
+
.description('Validate data, generate artifacts, and run Astro checks.')
|
|
41
|
+
.option('--strict', 'treat Grove warnings as errors')
|
|
53
42
|
.action(async (options) => {
|
|
54
43
|
const config = await loadConfig();
|
|
55
44
|
const result = await validateProject(config, {
|
|
56
45
|
...(options.strict === undefined ? {} : { strict: options.strict }),
|
|
57
46
|
});
|
|
58
47
|
for (const issue of result.issues) {
|
|
59
|
-
const output = issue.severity ===
|
|
48
|
+
const output = issue.severity === 'error' ? console.error : console.warn;
|
|
60
49
|
output(`[${issue.severity}] ${issue.code}: ${issue.message}`);
|
|
61
50
|
}
|
|
62
51
|
if (!result.ok || (options.strict && result.warnings.length > 0)) {
|
|
@@ -65,20 +54,20 @@ program
|
|
|
65
54
|
}
|
|
66
55
|
const prepared = await prepareDirectory();
|
|
67
56
|
console.log(`[grove] ${prepared.generated.totalRecords} records prepared; sitemap and llms files updated.`);
|
|
68
|
-
await run(
|
|
57
|
+
await run('pnpm', ['exec', 'astro', 'check']);
|
|
69
58
|
});
|
|
70
59
|
program
|
|
71
|
-
.command(
|
|
72
|
-
.argument(
|
|
73
|
-
.description(
|
|
74
|
-
.option(
|
|
75
|
-
.option(
|
|
60
|
+
.command('sync')
|
|
61
|
+
.argument('<target>', 'github | contributors')
|
|
62
|
+
.description('Refresh GitHub metadata owned by Grove.')
|
|
63
|
+
.option('--limit <count>', 'limit records to sync', Number)
|
|
64
|
+
.option('--strict', 'fail if any GitHub record cannot be refreshed')
|
|
76
65
|
.action(async (target, options) => {
|
|
77
66
|
const config = await loadConfig();
|
|
78
67
|
const githubFlags = normalizeGithubIntegration(config.integrations?.github);
|
|
79
|
-
if (target ===
|
|
68
|
+
if (target === 'contributors') {
|
|
80
69
|
if (!githubFlags.contributors) {
|
|
81
|
-
console.log(
|
|
70
|
+
console.log('[sync contributors] disabled by integrations.github.contributors — skipping');
|
|
82
71
|
return;
|
|
83
72
|
}
|
|
84
73
|
await prepareDirectory();
|
|
@@ -90,24 +79,27 @@ program
|
|
|
90
79
|
console.log(`[sync contributors] ${result.contributors} contributors from ${result.repositories} repository → ${result.outputPath}`);
|
|
91
80
|
return;
|
|
92
81
|
}
|
|
93
|
-
if (target !==
|
|
82
|
+
if (target !== 'github') {
|
|
94
83
|
throw new Error(`Unknown sync target "${target}". Use github or contributors.`);
|
|
95
84
|
}
|
|
96
85
|
if (!githubFlags.metadata) {
|
|
97
|
-
console.log(
|
|
86
|
+
console.log('[sync github] disabled by integrations.github.metadata — skipping');
|
|
98
87
|
return;
|
|
99
88
|
}
|
|
100
89
|
const recordsDir = resolve(process.cwd(), config.paths.recordsDir);
|
|
101
|
-
const files = (await readdir(recordsDir))
|
|
102
|
-
.filter((file) => file.endsWith(".yml"))
|
|
103
|
-
.sort();
|
|
90
|
+
const files = (await readdir(recordsDir)).filter((file) => file.endsWith('.yml')).sort();
|
|
104
91
|
const selected = options.limit === undefined ? files : files.slice(0, options.limit);
|
|
105
92
|
let updated = 0;
|
|
106
93
|
let htmlOnly = 0;
|
|
107
94
|
let failed = 0;
|
|
95
|
+
// `integrations.github.health` used to resolve to a flag nothing
|
|
96
|
+
// read. When it is on, derive a health entry per record from the
|
|
97
|
+
// metadata this sync just fetched and write data/health.yml —
|
|
98
|
+
// the file `grove check` already validates and the build reads.
|
|
99
|
+
const healthEntries = [];
|
|
108
100
|
for (const file of selected) {
|
|
109
101
|
const filePath = join(recordsDir, file);
|
|
110
|
-
const raw = (parseYaml(await readFile(filePath,
|
|
102
|
+
const raw = (parseYaml(await readFile(filePath, 'utf8')) ?? {});
|
|
111
103
|
const links = raw.links ?? {};
|
|
112
104
|
const repoUrl = raw.repoUrl ?? links.github;
|
|
113
105
|
if (!repoUrl) {
|
|
@@ -125,13 +117,16 @@ program
|
|
|
125
117
|
try {
|
|
126
118
|
const metadata = await fetchGithubMetadata(ref);
|
|
127
119
|
if (metadata) {
|
|
120
|
+
if (githubFlags.health) {
|
|
121
|
+
healthEntries.push(classifyHealth(basename(file, '.yml'), metadata));
|
|
122
|
+
}
|
|
128
123
|
// Merge into the existing repository block rather than
|
|
129
124
|
// replacing it wholesale. Sync only owns the fields it
|
|
130
125
|
// explicitly writes; curator-curated fields and anything
|
|
131
126
|
// outside the sync surface (manually-added metadata, etc.)
|
|
132
127
|
// survive a re-run.
|
|
133
128
|
Object.assign(patch, buildGithubSyncPatch(metadata, github));
|
|
134
|
-
source =
|
|
129
|
+
source = 'api';
|
|
135
130
|
}
|
|
136
131
|
}
|
|
137
132
|
catch {
|
|
@@ -152,7 +147,7 @@ program
|
|
|
152
147
|
language: enriched.fields.language,
|
|
153
148
|
topics: enriched.fields.topics,
|
|
154
149
|
};
|
|
155
|
-
source =
|
|
150
|
+
source = 'html';
|
|
156
151
|
htmlOnly += 1;
|
|
157
152
|
}
|
|
158
153
|
}
|
|
@@ -166,18 +161,23 @@ program
|
|
|
166
161
|
continue;
|
|
167
162
|
}
|
|
168
163
|
patch.sync = { syncedAt: new Date().toISOString(), source };
|
|
169
|
-
await writeFile(filePath, stringifyRecordYaml({ ...raw, github: { ...github, ...patch } }),
|
|
164
|
+
await writeFile(filePath, stringifyRecordYaml({ ...raw, github: { ...github, ...patch } }), 'utf8');
|
|
170
165
|
updated += 1;
|
|
171
166
|
console.log(`[sync github] ${file}: ${source}`);
|
|
172
167
|
}
|
|
168
|
+
if (githubFlags.health && healthEntries.length > 0) {
|
|
169
|
+
const healthPath = resolve(process.cwd(), config.paths.health);
|
|
170
|
+
await writeFile(healthPath, stringifyRecordYaml({ health: healthEntries }), 'utf8');
|
|
171
|
+
console.log(`[sync github] ${healthEntries.length} health entries → ${config.paths.health}`);
|
|
172
|
+
}
|
|
173
173
|
console.log(`[sync github] ${updated} updated (${htmlOnly} HTML fallback), ${failed} failed`);
|
|
174
174
|
if (options.strict && failed > 0)
|
|
175
175
|
process.exitCode = 1;
|
|
176
176
|
});
|
|
177
177
|
program
|
|
178
|
-
.command(
|
|
179
|
-
.description(
|
|
180
|
-
.option(
|
|
178
|
+
.command('cleanup')
|
|
179
|
+
.description('Write a report of records that need human review.')
|
|
180
|
+
.option('--strict', 'fail when review candidates exist')
|
|
181
181
|
.action(async (options) => {
|
|
182
182
|
const { report, path } = await cleanupStale();
|
|
183
183
|
console.log(`[cleanup] ${report.totalCandidates} candidate(s) → ${path}`);
|
|
@@ -187,6 +187,43 @@ program
|
|
|
187
187
|
if (options.strict && report.totalCandidates > 0)
|
|
188
188
|
process.exitCode = 1;
|
|
189
189
|
});
|
|
190
|
+
program
|
|
191
|
+
.command('update')
|
|
192
|
+
.description("Reconcile the consumer's installed scaffold against the registry upstream. " +
|
|
193
|
+
'Never overwrites locally modified files.')
|
|
194
|
+
.option('--check', 'print the plan only; exit non-zero if anything needs applying')
|
|
195
|
+
.option('--diff', 'include a unified diff for every upstream_changed row')
|
|
196
|
+
.option('--force', 'apply changes even when conflicts exist (locally-modified is still preserved)')
|
|
197
|
+
.option('--json', 'emit a machine-readable JSON summary')
|
|
198
|
+
.option('--from <path-or-url>', 'upstream default.json to compare against (defaults to the @grove registry in components.json)')
|
|
199
|
+
.action(async (options) => {
|
|
200
|
+
const summary = await runUpdate({
|
|
201
|
+
cwd: process.cwd(),
|
|
202
|
+
check: options.check === true,
|
|
203
|
+
diff: options.diff === true,
|
|
204
|
+
force: options.force === true,
|
|
205
|
+
json: options.json === true,
|
|
206
|
+
...(options.from === undefined ? {} : { from: options.from }),
|
|
207
|
+
});
|
|
208
|
+
if (summary.exitCode === 1) {
|
|
209
|
+
console.error('No .grove/registry.lock.json found. Run `grove init` first.');
|
|
210
|
+
process.exitCode = 1;
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
if (options.json) {
|
|
214
|
+
console.log(JSON.stringify({
|
|
215
|
+
plan: summary.plan,
|
|
216
|
+
applied: summary.applied,
|
|
217
|
+
preserved: summary.preserved,
|
|
218
|
+
...(summary.diffs.length > 0 ? { diffs: summary.diffs } : {}),
|
|
219
|
+
}, null, 2));
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
console.log(formatPlan(summary));
|
|
223
|
+
}
|
|
224
|
+
if (summary.exitCode !== 0)
|
|
225
|
+
process.exitCode = summary.exitCode;
|
|
226
|
+
});
|
|
190
227
|
program.addCommand(buildAuditCommand());
|
|
191
228
|
program.addCommand(buildCollectionCommand());
|
|
192
229
|
program.addCommand(buildIconsCommand());
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EAEnB,UAAU,EACV,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OA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,iBAAiB,EAAE,CAAC,CAAC;AACxC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAC,CAAC;AAC7C,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAC,CAAC;AACxC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC,CAAC;AAEzC,OAAO,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC5C,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"}
|
package/dist/init.d.ts
CHANGED
|
@@ -1,11 +1,44 @@
|
|
|
1
|
+
import { type RegistryItem } from './registry.js';
|
|
2
|
+
export interface InstallScaffoldContext {
|
|
3
|
+
/** The project directory (absolute). */
|
|
4
|
+
target: string;
|
|
5
|
+
/** Absolute path to the built `default` item JSON being installed. */
|
|
6
|
+
itemPath: string;
|
|
7
|
+
}
|
|
1
8
|
export interface InitOptions {
|
|
2
9
|
projectName?: string;
|
|
3
10
|
version?: string;
|
|
11
|
+
/**
|
|
12
|
+
* How the scaffold item gets onto disk. Defaults to running the
|
|
13
|
+
* shadcn CLI; tests substitute `writeItemFiles()` to stay offline.
|
|
14
|
+
*/
|
|
15
|
+
installScaffold?: (context: InstallScaffoldContext) => Promise<void>;
|
|
4
16
|
}
|
|
5
|
-
export
|
|
6
|
-
export declare function scaffoldSource(): string;
|
|
7
|
-
export declare function initDirectory(targetDir: string, options?: InitOptions): Promise<{
|
|
17
|
+
export interface InitResult {
|
|
8
18
|
targetDir: string;
|
|
9
19
|
projectName: string;
|
|
10
|
-
|
|
20
|
+
installedScaffold: RegistryItem;
|
|
21
|
+
}
|
|
22
|
+
export declare function readCliVersion(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Default scaffold installer: the official shadcn CLI, pinned. The
|
|
25
|
+
* item path must be absolute — shadcn rejects relative local paths as
|
|
26
|
+
* unsafe. `--yes` skips the confirmation prompts; stdio is inherited
|
|
27
|
+
* so the user sees the package manager's install output.
|
|
28
|
+
*
|
|
29
|
+
* shadcn picks the package manager for the item's dependencies from
|
|
30
|
+
* the lockfile (or `packageManager` field) it finds in the project —
|
|
31
|
+
* neither exists in a fresh directory, and its `add` path has no
|
|
32
|
+
* user-agent fallback, so it would default to npm and leave a
|
|
33
|
+
* package-lock.json behind in a project the rest of this CLI drives
|
|
34
|
+
* with pnpm. An empty pnpm-lock.yaml is enough for the detector; pnpm
|
|
35
|
+
* itself accepts the empty file and replaces it with a real one.
|
|
36
|
+
*/
|
|
37
|
+
export declare function installScaffoldWithShadcn({ target, itemPath, }: InstallScaffoldContext): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Bootstrap a Grove project by installing the `@grove/default`
|
|
40
|
+
* registry scaffold. Returns the installed item so callers can report
|
|
41
|
+
* what landed.
|
|
42
|
+
*/
|
|
43
|
+
export declare function initDirectory(targetDir: string, options?: InitOptions): Promise<InitResult>;
|
|
11
44
|
//# sourceMappingURL=init.d.ts.map
|
package/dist/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":"AA0CA,OAAO,EAKL,KAAK,YAAY,EAGlB,MAAM,eAAe,CAAC;AAcvB,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,YAAY,CAAC;CACjC;AAED,wBAAgB,cAAc,IAAI,MAAM,CAWvC;AA8CD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,yBAAyB,CAAC,EAC9C,MAAM,EACN,QAAQ,GACT,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,CAWxC;AAMD;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,UAAU,CAAC,CAuLrB"}
|