@guing-ai/cli 0.1.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/dist/commands/setup.d.ts +16 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +308 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Guing CLI — `guing setup` command (Phase 6)
|
|
3
|
+
*
|
|
4
|
+
* Interactive setup that:
|
|
5
|
+
* 1. Prompts for API URL + Tenant ID (or reads from flags)
|
|
6
|
+
* 2. Asks which AI coding agents the developer uses (multi-select)
|
|
7
|
+
* 3. Fetches the tenant info + manifest from the backend
|
|
8
|
+
* 4. Adds the GitHub repo as a dependency in package.json
|
|
9
|
+
* 5. Writes agent-specific instruction files (.cursorrules, CLAUDE.md, etc.)
|
|
10
|
+
* 6. Prints usage instructions
|
|
11
|
+
*
|
|
12
|
+
* No .npmrc needed — packages are installed directly from the GitHub repo URL.
|
|
13
|
+
*/
|
|
14
|
+
import { Command } from "commander";
|
|
15
|
+
export declare const setupCommand: Command;
|
|
16
|
+
//# sourceMappingURL=setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAmFlC,eAAO,MAAM,YAAY,SAgOrB,CAAC"}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Guing CLI — `guing setup` command (Phase 6)
|
|
4
|
+
*
|
|
5
|
+
* Interactive setup that:
|
|
6
|
+
* 1. Prompts for API URL + Tenant ID (or reads from flags)
|
|
7
|
+
* 2. Asks which AI coding agents the developer uses (multi-select)
|
|
8
|
+
* 3. Fetches the tenant info + manifest from the backend
|
|
9
|
+
* 4. Adds the GitHub repo as a dependency in package.json
|
|
10
|
+
* 5. Writes agent-specific instruction files (.cursorrules, CLAUDE.md, etc.)
|
|
11
|
+
* 6. Prints usage instructions
|
|
12
|
+
*
|
|
13
|
+
* No .npmrc needed — packages are installed directly from the GitHub repo URL.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
49
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
exports.setupCommand = void 0;
|
|
53
|
+
const commander_1 = require("commander");
|
|
54
|
+
const prompts_1 = __importDefault(require("prompts"));
|
|
55
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
56
|
+
const ora_1 = __importDefault(require("ora"));
|
|
57
|
+
const fs = __importStar(require("fs"));
|
|
58
|
+
const path = __importStar(require("path"));
|
|
59
|
+
const child_process_1 = require("child_process");
|
|
60
|
+
const AGENT_CONFIGS = {
|
|
61
|
+
cursor: { label: "Cursor", filename: ".cursorrules" },
|
|
62
|
+
claude: { label: "Claude Code", filename: "CLAUDE.md" },
|
|
63
|
+
antigravity: { label: "Antigravity", filename: "AGENT.md" },
|
|
64
|
+
copilot: { label: "GitHub Copilot", filename: "copilot-instructions.md", subdirectory: ".github" },
|
|
65
|
+
windsurf: { label: "Windsurf", filename: ".windsurfrules" },
|
|
66
|
+
};
|
|
67
|
+
const ALL_AGENT_IDS = ["cursor", "claude", "antigravity", "copilot", "windsurf"];
|
|
68
|
+
function generateAgentInstructions(agent, pkgName, manifest) {
|
|
69
|
+
const componentList = manifest.components.length > 0
|
|
70
|
+
? manifest.components
|
|
71
|
+
.map((c) => `- **${c.name}**: ${c.description}`)
|
|
72
|
+
.join("\n")
|
|
73
|
+
: "- _(Run a sync from Figma to generate components)_";
|
|
74
|
+
return `# ${pkgName} — AI Coding Instructions
|
|
75
|
+
# Generated by @guing-ai/cli | Agent: ${agent.label}
|
|
76
|
+
|
|
77
|
+
## Package
|
|
78
|
+
Always import from \`${pkgName}\`:
|
|
79
|
+
\`\`\`tsx
|
|
80
|
+
import { Button, Text } from '${pkgName}';
|
|
81
|
+
import '${pkgName}/src/design-tokens/tokens.css';
|
|
82
|
+
\`\`\`
|
|
83
|
+
|
|
84
|
+
## Design Token Rules
|
|
85
|
+
- NEVER hardcode hex colors — use CSS variables: \`var(--color-primary)\`
|
|
86
|
+
- NEVER hardcode font sizes — use CSS variables: \`var(--font-heading-1-size)\`
|
|
87
|
+
- For TypeScript access: \`import { designTokens } from '${pkgName}'\`
|
|
88
|
+
|
|
89
|
+
## Available Components (v${manifest.version})
|
|
90
|
+
${componentList}
|
|
91
|
+
|
|
92
|
+
## Token Summary
|
|
93
|
+
- Colors: ${manifest.tokens.colors} tokens
|
|
94
|
+
- Typography: ${manifest.tokens.typography} tokens
|
|
95
|
+
|
|
96
|
+
## Component Conventions
|
|
97
|
+
- All components accept a \`className\` prop for overrides
|
|
98
|
+
- Use \`forwardRef\` for DOM element access
|
|
99
|
+
- Include JSDoc for all public props
|
|
100
|
+
`;
|
|
101
|
+
}
|
|
102
|
+
// ─── Constants ──────────────────────────────────────────────────────────────────
|
|
103
|
+
const DEFAULT_API_URL = "https://us-central1-guing-ai.cloudfunctions.net/api";
|
|
104
|
+
// ─── Command Definition ─────────────────────────────────────────────────────────
|
|
105
|
+
exports.setupCommand = new commander_1.Command("setup")
|
|
106
|
+
.description("Set up Guing design system consumption in your project")
|
|
107
|
+
.option("--api <url>", "Guing API URL")
|
|
108
|
+
.option("--tenant <id>", "Tenant ID")
|
|
109
|
+
.option("--secret <clientSecret>", "Client secret for API authentication")
|
|
110
|
+
.option("--agents <list>", "Comma-separated list of AI agents (cursor,claude,antigravity,copilot,windsurf)")
|
|
111
|
+
.option("--git-auth <method>", "GitHub authentication method (ssh or https)")
|
|
112
|
+
.option("--skip-install", "Skip automatic npm install")
|
|
113
|
+
.option("--yes", "Skip prompts and use provided flags")
|
|
114
|
+
.action(async (options) => {
|
|
115
|
+
console.log(chalk_1.default.bold.cyan("\n🎨 Guing Setup\n"));
|
|
116
|
+
// ── Collect config ──────────────────────────────────────────────────────
|
|
117
|
+
let { tenant: tenantId, secret: clientSecret, gitAuth } = options;
|
|
118
|
+
const apiUrl = options.api || process.env.GUING_API_URL || DEFAULT_API_URL;
|
|
119
|
+
let selectedAgents = [];
|
|
120
|
+
if (!options.yes) {
|
|
121
|
+
const answers = await (0, prompts_1.default)([
|
|
122
|
+
{
|
|
123
|
+
type: tenantId ? null : "text",
|
|
124
|
+
name: "tenantId",
|
|
125
|
+
message: "Tenant ID:",
|
|
126
|
+
validate: (v) => v.length > 0 || "Required",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: clientSecret ? null : "password",
|
|
130
|
+
name: "clientSecret",
|
|
131
|
+
message: "Client Secret:",
|
|
132
|
+
validate: (v) => v.length > 0 || "Required",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: "multiselect",
|
|
136
|
+
name: "agents",
|
|
137
|
+
message: "Which AI coding agents do you use?",
|
|
138
|
+
choices: ALL_AGENT_IDS.map((id) => ({
|
|
139
|
+
title: AGENT_CONFIGS[id].label,
|
|
140
|
+
value: id,
|
|
141
|
+
selected: id === "cursor",
|
|
142
|
+
})),
|
|
143
|
+
hint: "- Space to select, Enter to confirm",
|
|
144
|
+
min: 1,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
type: gitAuth ? null : "select",
|
|
148
|
+
name: "gitAuth",
|
|
149
|
+
message: "How would you like to authenticate with GitHub?",
|
|
150
|
+
choices: [
|
|
151
|
+
{ title: "SSH (Recommended)", value: "ssh" },
|
|
152
|
+
{ title: "HTTPS", value: "https" }
|
|
153
|
+
],
|
|
154
|
+
initial: 0
|
|
155
|
+
}
|
|
156
|
+
]);
|
|
157
|
+
tenantId = tenantId || answers.tenantId;
|
|
158
|
+
clientSecret = clientSecret || answers.clientSecret;
|
|
159
|
+
selectedAgents = answers.agents || ["cursor"];
|
|
160
|
+
gitAuth = gitAuth || answers.gitAuth || "ssh";
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
// Non-interactive: parse --agents flag or default to cursor
|
|
164
|
+
if (options.agents) {
|
|
165
|
+
selectedAgents = options.agents
|
|
166
|
+
.split(",")
|
|
167
|
+
.map((s) => s.trim().toLowerCase())
|
|
168
|
+
.filter((s) => s in AGENT_CONFIGS);
|
|
169
|
+
}
|
|
170
|
+
if (selectedAgents.length === 0) {
|
|
171
|
+
selectedAgents = ["cursor"];
|
|
172
|
+
}
|
|
173
|
+
gitAuth = gitAuth || "ssh";
|
|
174
|
+
}
|
|
175
|
+
if (!tenantId || !clientSecret) {
|
|
176
|
+
console.error(chalk_1.default.red("❌ Missing required options (tenant, secret). Run with --help for usage."));
|
|
177
|
+
process.exit(1);
|
|
178
|
+
}
|
|
179
|
+
// Auth headers for all API calls
|
|
180
|
+
const authHeaders = {
|
|
181
|
+
"Authorization": `Bearer ${clientSecret}`,
|
|
182
|
+
};
|
|
183
|
+
// ── Fetch tenant info ───────────────────────────────────────────────────
|
|
184
|
+
const spinner = (0, ora_1.default)("Fetching tenant info...").start();
|
|
185
|
+
let tenantInfo;
|
|
186
|
+
let manifest;
|
|
187
|
+
try {
|
|
188
|
+
const tenantRes = await fetch(`${apiUrl}/api/v1/tenant/${tenantId}`, {
|
|
189
|
+
headers: authHeaders,
|
|
190
|
+
});
|
|
191
|
+
if (tenantRes.status === 401) {
|
|
192
|
+
spinner.fail("Authentication failed — invalid client secret.");
|
|
193
|
+
process.exit(1);
|
|
194
|
+
}
|
|
195
|
+
if (!tenantRes.ok)
|
|
196
|
+
throw new Error(`Tenant not found (${tenantRes.status})`);
|
|
197
|
+
tenantInfo = (await tenantRes.json());
|
|
198
|
+
console.log(chalk_1.default.dim(` → Tenant version (from repo): ${tenantInfo.packageVersion || "n/a"}`));
|
|
199
|
+
console.log(chalk_1.default.dim(` → GitHub repo: ${tenantInfo.githubRepoUrl || "not configured"}`));
|
|
200
|
+
const manifestRes = await fetch(`${apiUrl}/api/v1/tenant/${tenantId}/manifest`, {
|
|
201
|
+
headers: authHeaders,
|
|
202
|
+
});
|
|
203
|
+
manifest = manifestRes.ok
|
|
204
|
+
? (await manifestRes.json())
|
|
205
|
+
: { version: "0.0.0", components: [], tokens: { colors: 0, typography: 0 } };
|
|
206
|
+
// Use tenant.packageVersion (live from GitHub) as the authoritative version
|
|
207
|
+
if (tenantInfo.packageVersion && tenantInfo.packageVersion !== "0.0.0") {
|
|
208
|
+
manifest.version = tenantInfo.packageVersion;
|
|
209
|
+
}
|
|
210
|
+
console.log(chalk_1.default.dim(` → Manifest components: ${manifest.components.length}`));
|
|
211
|
+
console.log(chalk_1.default.dim(` → Resolved version: ${manifest.version}`));
|
|
212
|
+
spinner.succeed(`Found tenant: ${tenantInfo.slug}`);
|
|
213
|
+
}
|
|
214
|
+
catch (_err) {
|
|
215
|
+
spinner.warn("Could not reach API. Continuing with defaults.");
|
|
216
|
+
tenantInfo = { slug: tenantId, githubRepoUrl: "", packageVersion: "0.0.0" };
|
|
217
|
+
manifest = { version: "0.0.0", components: [], tokens: { colors: 0, typography: 0 } };
|
|
218
|
+
}
|
|
219
|
+
// ── Resolve package name and repo URL ────────────────────────────────────
|
|
220
|
+
const slug = tenantInfo.slug || tenantId;
|
|
221
|
+
const pkgName = `${slug}-design-system`;
|
|
222
|
+
let githubDep = "";
|
|
223
|
+
if (tenantInfo.githubRepoUrl) {
|
|
224
|
+
const match = tenantInfo.githubRepoUrl.match(/github\.com\/([^/]+)\/([^/]+)/);
|
|
225
|
+
if (match) {
|
|
226
|
+
const owner = match[1];
|
|
227
|
+
const repo = match[2].replace(/\.git$/, "");
|
|
228
|
+
if (gitAuth === "https") {
|
|
229
|
+
githubDep = `git+https://github.com/${owner}/${repo}.git`;
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
githubDep = `git+ssh://git@github.com/${owner}/${repo}.git`;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
// ── Update package.json ─────────────────────────────────────────────────
|
|
237
|
+
const pkgJsonPath = path.join(process.cwd(), "package.json");
|
|
238
|
+
if (githubDep && fs.existsSync(pkgJsonPath)) {
|
|
239
|
+
const pkgSpinner = (0, ora_1.default)("Adding design system to package.json...").start();
|
|
240
|
+
try {
|
|
241
|
+
const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, "utf-8"));
|
|
242
|
+
pkgJson.dependencies = pkgJson.dependencies || {};
|
|
243
|
+
const versionRef = manifest.version !== "0.0.0"
|
|
244
|
+
? `${githubDep}#v${manifest.version}`
|
|
245
|
+
: githubDep;
|
|
246
|
+
pkgJson.dependencies[pkgName] = versionRef;
|
|
247
|
+
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2) + "\n", "utf-8");
|
|
248
|
+
pkgSpinner.succeed(`Added ${pkgName} to package.json`);
|
|
249
|
+
}
|
|
250
|
+
catch (_err) {
|
|
251
|
+
pkgSpinner.warn("Could not update package.json — add manually");
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
// ── Run npm install ─────────────────────────────────────────────────────
|
|
255
|
+
if (githubDep && !options.skipInstall) {
|
|
256
|
+
const installSpinner = (0, ora_1.default)("Running npm install...").start();
|
|
257
|
+
try {
|
|
258
|
+
(0, child_process_1.execSync)("npm install", { cwd: process.cwd(), stdio: "pipe" });
|
|
259
|
+
installSpinner.succeed("Dependencies installed");
|
|
260
|
+
}
|
|
261
|
+
catch (_err) {
|
|
262
|
+
installSpinner.fail("npm install failed");
|
|
263
|
+
console.error(chalk_1.default.yellow(`\n⚠️ Note: The installation likely failed due to GitHub authentication or permission errors.`));
|
|
264
|
+
console.error(chalk_1.default.yellow(` Please ensure you have the correct access rights to the repository.`));
|
|
265
|
+
console.error(chalk_1.default.yellow(` You can try running the install manually to see the full error:`));
|
|
266
|
+
console.error(chalk_1.default.cyan(`\n npm install\n`));
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
// ── Write agent instruction files ───────────────────────────────────────
|
|
270
|
+
const writtenFiles = [];
|
|
271
|
+
for (const agentId of selectedAgents) {
|
|
272
|
+
const agentConfig = AGENT_CONFIGS[agentId];
|
|
273
|
+
const content = generateAgentInstructions(agentConfig, pkgName, manifest);
|
|
274
|
+
let targetDir = process.cwd();
|
|
275
|
+
if (agentConfig.subdirectory) {
|
|
276
|
+
targetDir = path.join(process.cwd(), agentConfig.subdirectory);
|
|
277
|
+
if (!fs.existsSync(targetDir)) {
|
|
278
|
+
fs.mkdirSync(targetDir, { recursive: true });
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
const filePath = path.join(targetDir, agentConfig.filename);
|
|
282
|
+
fs.writeFileSync(filePath, content, "utf-8");
|
|
283
|
+
const relativePath = agentConfig.subdirectory
|
|
284
|
+
? `${agentConfig.subdirectory}/${agentConfig.filename}`
|
|
285
|
+
: agentConfig.filename;
|
|
286
|
+
writtenFiles.push(relativePath);
|
|
287
|
+
}
|
|
288
|
+
const agentSpinner = (0, ora_1.default)("Writing agent instruction files...").start();
|
|
289
|
+
agentSpinner.succeed(`Written: ${writtenFiles.join(", ")}`);
|
|
290
|
+
// ── Print next steps ────────────────────────────────────────────────────
|
|
291
|
+
console.log(chalk_1.default.green("\n✅ Setup complete!\n"));
|
|
292
|
+
if (!githubDep) {
|
|
293
|
+
console.log(chalk_1.default.bold("Next step — configure your GitHub repo and run setup again."));
|
|
294
|
+
}
|
|
295
|
+
console.log("Then in your app:");
|
|
296
|
+
console.log(chalk_1.default.gray(` import '${pkgName}/src/design-tokens/tokens.css';`));
|
|
297
|
+
console.log(chalk_1.default.gray(` import { Button } from '${pkgName}';\n`));
|
|
298
|
+
if (manifest.components.length > 0) {
|
|
299
|
+
console.log(chalk_1.default.bold(`Available components (${manifest.components.length}):`));
|
|
300
|
+
for (const c of manifest.components) {
|
|
301
|
+
console.log(chalk_1.default.gray(` • ${c.name}`));
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
const agentNames = selectedAgents.map((id) => AGENT_CONFIGS[id].label).join(", ");
|
|
305
|
+
console.log(chalk_1.default.dim(`\nDesign system version: ${manifest.version}`));
|
|
306
|
+
console.log(chalk_1.default.dim(`AI agents configured: ${agentNames}\n`));
|
|
307
|
+
});
|
|
308
|
+
//# sourceMappingURL=setup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.js","sourceRoot":"","sources":["../../src/commands/setup.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,yCAAkC;AAClC,sDAA8B;AAC9B,kDAA0B;AAC1B,8CAAsB;AACtB,uCAAyB;AACzB,2CAA6B;AAC7B,iDAAuC;AAYvC,MAAM,aAAa,GAAqC;IACtD,MAAM,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAC;IACnD,MAAM,EAAE,EAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAC;IACrD,WAAW,EAAE,EAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAC;IACzD,OAAO,EAAE,EAAC,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,yBAAyB,EAAE,YAAY,EAAE,SAAS,EAAC;IAChG,QAAQ,EAAE,EAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAC;CAC1D,CAAC;AAEF,MAAM,aAAa,GAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAU5F,SAAS,yBAAyB,CAChC,KAAsB,EACtB,OAAe,EACf,QAAsB;IAEtB,MAAM,aAAa,GACjB,QAAQ,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC;QAC5B,CAAC,CAAC,QAAQ,CAAC,UAAU;aAChB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,OA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AAC;QACjF,KAAK,MAAM,CAAC,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IAED,MAAM,UAAU,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClF,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,4BAA4B,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;IACvE,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,yBAAyB,UAAU,IAAI,CAAC,CAAC,CAAC;AAClE,CAAC,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Guing CLI — Entry Point (Phase 6)
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* npx @guing-ai/cli setup — Interactive setup for a new project
|
|
7
|
+
* npx @guing-ai/cli setup --tenant <id> --api <url> — Non-interactive
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;GAMG"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* Guing CLI — Entry Point (Phase 6)
|
|
5
|
+
*
|
|
6
|
+
* Usage:
|
|
7
|
+
* npx @guing-ai/cli setup — Interactive setup for a new project
|
|
8
|
+
* npx @guing-ai/cli setup --tenant <id> --api <url> — Non-interactive
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
const dotenv_1 = require("dotenv");
|
|
12
|
+
(0, dotenv_1.config)(); // Load .env from cwd
|
|
13
|
+
const commander_1 = require("commander");
|
|
14
|
+
const setup_1 = require("./commands/setup");
|
|
15
|
+
const program = new commander_1.Command();
|
|
16
|
+
program
|
|
17
|
+
.name("guing")
|
|
18
|
+
.description("Guing CLI — consume your design system in any project")
|
|
19
|
+
.version("0.1.0");
|
|
20
|
+
program.addCommand(setup_1.setupCommand);
|
|
21
|
+
program.parse(process.argv);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AACA;;;;;;GAMG;;AAEH,mCAAyC;AACzC,IAAA,eAAO,GAAE,CAAC,CAAC,qBAAqB;AAEhC,yCAAkC;AAClC,4CAA8C;AAE9C,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,OAAO,CAAC;KACb,WAAW,CAAC,uDAAuD,CAAC;KACpE,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,OAAO,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAEjC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@guing-ai/cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Guing CLI — set up design system consumption in your project",
|
|
5
|
+
"bin": {
|
|
6
|
+
"guing": "./dist/index.js"
|
|
7
|
+
},
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"dev": "ts-node src/index.ts",
|
|
15
|
+
"start": "node dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"chalk": "^5.3.0",
|
|
19
|
+
"commander": "^12.0.0",
|
|
20
|
+
"dotenv": "^17.3.1",
|
|
21
|
+
"node-fetch": "^3.3.2",
|
|
22
|
+
"ora": "^8.0.1",
|
|
23
|
+
"prompts": "^2.4.2"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^20.0.0",
|
|
27
|
+
"@types/prompts": "^2.4.9",
|
|
28
|
+
"ts-node": "^10.9.2",
|
|
29
|
+
"typescript": "^5.4.0"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
}
|
|
37
|
+
}
|