@wix/web50-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/README.md +8 -0
- package/bin/web5.js +3 -0
- package/defaults/package.json +42 -0
- package/dist/cjs/auth/deviceFlow.js +76 -0
- package/dist/cjs/auth/deviceFlow.js.map +1 -0
- package/dist/cjs/auth/index.js +47 -0
- package/dist/cjs/auth/index.js.map +1 -0
- package/dist/cjs/auth/secretStore.js +103 -0
- package/dist/cjs/auth/secretStore.js.map +1 -0
- package/dist/cjs/cli.js +18 -0
- package/dist/cjs/cli.js.map +1 -0
- package/dist/cjs/commands/init.js +161 -0
- package/dist/cjs/commands/init.js.map +1 -0
- package/dist/cjs/commands/login.js +18 -0
- package/dist/cjs/commands/login.js.map +1 -0
- package/dist/cjs/commands/validate.js +706 -0
- package/dist/cjs/commands/validate.js.map +1 -0
- package/dist/cjs/counter.js +19 -0
- package/dist/cjs/counter.js.map +1 -0
- package/dist/cjs/external-types.d.js +2 -0
- package/dist/cjs/external-types.d.js.map +1 -0
- package/dist/cjs/index.js +10 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/templates/actionYamlSchema.js +33 -0
- package/dist/cjs/templates/actionYamlSchema.js.map +1 -0
- package/dist/cjs/templates/aiInstructionsSchema.js +39 -0
- package/dist/cjs/templates/aiInstructionsSchema.js.map +1 -0
- package/dist/cjs/templates/cmsSchemaSchema.js +59 -0
- package/dist/cjs/templates/cmsSchemaSchema.js.map +1 -0
- package/dist/cjs/test-types.d.js +2 -0
- package/dist/cjs/test-types.d.js.map +1 -0
- package/dist/cjs/utils/fs.js +25 -0
- package/dist/cjs/utils/fs.js.map +1 -0
- package/dist/cjs/utils/print.js +27 -0
- package/dist/cjs/utils/print.js.map +1 -0
- package/dist/cjs/utils/project.js +27 -0
- package/dist/cjs/utils/project.js.map +1 -0
- package/dist/esm/auth/deviceFlow.js +72 -0
- package/dist/esm/auth/deviceFlow.js.map +1 -0
- package/dist/esm/auth/index.js +40 -0
- package/dist/esm/auth/index.js.map +1 -0
- package/dist/esm/auth/secretStore.js +96 -0
- package/dist/esm/auth/secretStore.js.map +1 -0
- package/dist/esm/cli.js +16 -0
- package/dist/esm/cli.js.map +1 -0
- package/dist/esm/commands/init.js +161 -0
- package/dist/esm/commands/init.js.map +1 -0
- package/dist/esm/commands/login.js +14 -0
- package/dist/esm/commands/login.js.map +1 -0
- package/dist/esm/commands/validate.js +704 -0
- package/dist/esm/commands/validate.js.map +1 -0
- package/dist/esm/counter.js +16 -0
- package/dist/esm/counter.js.map +1 -0
- package/dist/esm/external-types.d.js +2 -0
- package/dist/esm/external-types.d.js.map +1 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/templates/actionYamlSchema.js +29 -0
- package/dist/esm/templates/actionYamlSchema.js.map +1 -0
- package/dist/esm/templates/aiInstructionsSchema.js +35 -0
- package/dist/esm/templates/aiInstructionsSchema.js.map +1 -0
- package/dist/esm/templates/cmsSchemaSchema.js +55 -0
- package/dist/esm/templates/cmsSchemaSchema.js.map +1 -0
- package/dist/esm/test-types.d.js +2 -0
- package/dist/esm/test-types.d.js.map +1 -0
- package/dist/esm/utils/fs.js +22 -0
- package/dist/esm/utils/fs.js.map +1 -0
- package/dist/esm/utils/print.js +18 -0
- package/dist/esm/utils/print.js.map +1 -0
- package/dist/esm/utils/project.js +23 -0
- package/dist/esm/utils/project.js.map +1 -0
- package/dist/types/auth/deviceFlow.d.ts +8 -0
- package/dist/types/auth/deviceFlow.d.ts.map +1 -0
- package/dist/types/auth/index.d.ts +6 -0
- package/dist/types/auth/index.d.ts.map +1 -0
- package/dist/types/auth/secretStore.d.ts +9 -0
- package/dist/types/auth/secretStore.d.ts.map +1 -0
- package/dist/types/cli.d.ts +2 -0
- package/dist/types/cli.d.ts.map +1 -0
- package/dist/types/commands/init.d.ts +3 -0
- package/dist/types/commands/init.d.ts.map +1 -0
- package/dist/types/commands/login.d.ts +3 -0
- package/dist/types/commands/login.d.ts.map +1 -0
- package/dist/types/commands/validate.d.ts +3 -0
- package/dist/types/commands/validate.d.ts.map +1 -0
- package/dist/types/counter.d.ts +6 -0
- package/dist/types/counter.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/templates/actionYamlSchema.d.ts +2 -0
- package/dist/types/templates/actionYamlSchema.d.ts.map +1 -0
- package/dist/types/templates/aiInstructionsSchema.d.ts +2 -0
- package/dist/types/templates/aiInstructionsSchema.d.ts.map +1 -0
- package/dist/types/templates/cmsSchemaSchema.d.ts +2 -0
- package/dist/types/templates/cmsSchemaSchema.d.ts.map +1 -0
- package/dist/types/utils/fs.d.ts +3 -0
- package/dist/types/utils/fs.d.ts.map +1 -0
- package/dist/types/utils/print.d.ts +7 -0
- package/dist/types/utils/print.d.ts.map +1 -0
- package/dist/types/utils/project.d.ts +6 -0
- package/dist/types/utils/project.d.ts.map +1 -0
- package/package.json +92 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Command","Ajv","load","yamlLoad","readFileSync","existsSync","readdirSync","path","chalk","error","info","cmsSchemaSchemaTemplate","aiInstructionsSchemaTemplate","actionYamlSchemaTemplate","SCHEMAS","findProjectRoot","startDir","current","parent","dirname","join","tryParseYaml","filePath","data","e","err","Error","message","String","readText","kebabToCamel","s","replace","_","c","toUpperCase","camelToSnake","toLowerCase","formatAjvError","hints","loc","instancePath","keyword","missing","params","missingProperty","hint","fix","expected","type","field","min","limit","extra","additionalProperty","AI_INSTRUCTIONS_HINTS","rules","instructions","semantics","tone","ACTION_YAML_HINTS","name","buildAiInstructionsDomain","root","fileName","ajv","allErrors","strict","schema","parsed","fileExists","yamlOk","checks","label","run","ok","errors","result","undefined","validate","compile","map","buildCmsSchemaDomain","buildActionsDomain","actionsDir","registryPath","indexPath","yamlFiles","filter","f","endsWith","length","actionSchema","yamlFile","yamlPath","yamlData","schemaOk","actionName","basename","extname","push","getNames","camel","handler","snake","handlerFile","handlerPath","content","includes","declaredParams","Set","p","param","match","usedParams","split","trim","startsWith","undeclared","has","validateCommand","description","action","process","cwd","exit","console","log","domains","hasErrors","domain","check","green","stderr","write","red","e_"],"sources":["../../../src/commands/validate.ts"],"sourcesContent":["import { Command } from 'commander';\nimport Ajv from 'ajv/dist/2020';\nimport type { ErrorObject } from 'ajv';\nimport { load as yamlLoad } from 'js-yaml';\nimport { readFileSync, existsSync, readdirSync } from 'fs';\nimport * as path from 'path';\nimport chalk from 'chalk';\nimport { error, info } from '../utils/print';\nimport { cmsSchemaSchemaTemplate } from '../templates/cmsSchemaSchema';\nimport { aiInstructionsSchemaTemplate } from '../templates/aiInstructionsSchema';\nimport { actionYamlSchemaTemplate } from '../templates/actionYamlSchema';\n\n// ── Bundled schemas (never exposed to user's project) ────────────────────────\n\nconst SCHEMAS: Record<string, object> = {\n 'cms-schema.yaml': yamlLoad(cmsSchemaSchemaTemplate()) as object,\n 'prompt-instructions.yaml': yamlLoad(\n aiInstructionsSchemaTemplate(),\n ) as object,\n 'action.yaml': yamlLoad(actionYamlSchemaTemplate()) as object,\n};\n\n// ── Types ────────────────────────────────────────────────────────────────────\n\ninterface CheckError {\n message: string;\n fix?: string;\n}\n\ninterface CheckResult {\n ok: boolean;\n errors: CheckError[];\n}\n\ninterface Check {\n label: string;\n run: () => CheckResult;\n}\n\ninterface Domain {\n name: string;\n checks: Check[];\n}\n\n// ── Helpers ───────────────────────────────────────────────────────────────────\n\nfunction findProjectRoot(startDir: string): string | null {\n let current = startDir;\n let parent = path.dirname(current);\n while (current !== parent) {\n if (existsSync(path.join(current, 'web5.config.json'))) {\n return current;\n }\n current = parent;\n parent = path.dirname(current);\n }\n if (existsSync(path.join(current, 'web5.config.json'))) {\n return current;\n }\n return null;\n}\n\nfunction tryParseYaml(\n filePath: string,\n): { data: unknown; err?: undefined } | { data?: undefined; err: string } {\n try {\n return { data: yamlLoad(readFileSync(filePath, 'utf8')) };\n } catch (e) {\n return { err: e instanceof Error ? e.message : String(e) };\n }\n}\n\nfunction readText(filePath: string): string {\n return readFileSync(filePath, 'utf8');\n}\n\n/** kebab-case → camelCase e.g. book-demo → bookDemo */\nfunction kebabToCamel(s: string): string {\n return s.replace(/-([a-z])/g, (_, c: string) => c.toUpperCase());\n}\n\n/** camelCase → snake_case e.g. bookDemo → book_demo */\nfunction camelToSnake(s: string): string {\n return s.replace(/([A-Z])/g, '_$1').toLowerCase();\n}\n\n// ── AJV error formatter ───────────────────────────────────────────────────────\n\n// hints: field-name → indented YAML example of the full expected structure\nfunction formatAjvError(\n e: ErrorObject,\n hints: Record<string, string> = {},\n): CheckError {\n const loc = e.instancePath || '(root)';\n\n if (e.keyword === 'required') {\n const missing = (e.params as { missingProperty: string }).missingProperty;\n const parent =\n loc === '(root)' ? 'top level' : `'${loc.replace(/^\\//, '')}'`;\n const hint = hints[missing];\n return {\n message: `[${loc}] missing required property '${missing}'`,\n fix: hint\n ? `Add '${missing}:' under ${parent}. Expected structure:\\n${hint}`\n : `Add '${missing}:' under ${parent}.`,\n };\n }\n\n if (e.keyword === 'type') {\n const expected = (e.params as { type: string }).type;\n const field = loc.replace(/^\\//, '');\n const hint = hints[field];\n return {\n message: `[${loc}] must be ${expected}`,\n fix: hint\n ? `Replace the current value of '${field}' with:\\n${hint}`\n : `Change '${field}' to a ${expected}.`,\n };\n }\n\n if (e.keyword === 'minItems') {\n const min = (e.params as { limit: number }).limit;\n const field = loc.replace(/^\\//, '');\n const hint = hints[field];\n return {\n message: `[${loc}] must have at least ${min} item${min === 1 ? '' : 's'}`,\n fix: hint\n ? `Add at least ${min} entry under '${field}':\\n${hint}`\n : `Add at least ${min} entry under '${field}'.`,\n };\n }\n\n if (e.keyword === 'additionalProperties') {\n const extra = (e.params as { additionalProperty: string })\n .additionalProperty;\n return {\n message: `[${loc}] unknown property '${extra}'`,\n fix: `Remove '${extra}' — it is not a recognised field.`,\n };\n }\n\n return { message: `[${loc}] ${e.message ?? e.keyword}` };\n}\n\n// ── Structural hints ──────────────────────────────────────────────────────────\n\nconst AI_INSTRUCTIONS_HINTS: Record<string, string> = {\n rules: [\n ' rules:',\n \" - Always respond in the language of the user's prompt\",\n ' - Do not hallucinate or fabricate information',\n ' - Refuse requests that are harmful, illegal, or unethical',\n ].join('\\n'),\n instructions: [\n ' instructions: >',\n ' Structure prompts clearly and specifically. Provide relevant',\n ' context and set output expectations (format, length, style).',\n ].join('\\n'),\n semantics: [\n ' semantics:',\n \" PROX: The user's natural language request or structured prompt\",\n ' VERIFY: A response aligned with the detected intent',\n ' SUB-ACTION: Background information or metadata alongside the prompt',\n ].join('\\n'),\n tone: [\n ' tone:',\n ' style: concise',\n ' voice: \"clear and direct — avoid filler phrases\"',\n ].join('\\n'),\n};\n\nconst ACTION_YAML_HINTS: Record<string, string> = {\n name: [' name: my-action'].join('\\n'),\n params: [\n ' params:',\n ' - param: exampleParam',\n ' values:',\n ' - value1',\n ' - value2',\n ' - param: optionalParam',\n ' optional: true',\n ' values:',\n ' - valueA',\n ].join('\\n'),\n};\n\n// ── Domain builders ───────────────────────────────────────────────────────────\n\nfunction buildAiInstructionsDomain(root: string): Domain {\n const filePath = path.join(\n root,\n 'src',\n 'configuration',\n 'ai',\n 'prompt-instructions.yaml',\n );\n const fileName = 'prompt-instructions.yaml';\n const ajv = new Ajv({ allErrors: true, strict: false });\n const schema = SCHEMAS[fileName];\n\n let parsed: unknown;\n let fileExists = false;\n let yamlOk = false;\n\n return {\n name: 'AI Instructions',\n checks: [\n {\n label: `${fileName} — file exists`,\n run(): CheckResult {\n fileExists = existsSync(filePath);\n if (fileExists) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: [\n {\n message: `File not found: ${filePath}`,\n fix: `Create 'src/configuration/ai/prompt-instructions.yaml' in your project.`,\n },\n ],\n };\n },\n },\n {\n label: `${fileName} — valid YAML`,\n run(): CheckResult {\n if (!fileExists) {\n return {\n ok: false,\n errors: [{ message: 'skipped — file does not exist' }],\n };\n }\n const result = tryParseYaml(filePath);\n if (result.err !== undefined) {\n return {\n ok: false,\n errors: [\n {\n message: result.err,\n fix: 'Fix the YAML syntax error above.',\n },\n ],\n };\n }\n parsed = result.data;\n yamlOk = true;\n return { ok: true, errors: [] };\n },\n },\n {\n label: `${fileName} — schema valid`,\n run(): CheckResult {\n if (!yamlOk) {\n return {\n ok: false,\n errors: [{ message: 'skipped — YAML parse failed' }],\n };\n }\n const validate = ajv.compile(schema);\n if (validate(parsed)) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: (validate.errors ?? []).map((e) =>\n formatAjvError(e, AI_INSTRUCTIONS_HINTS),\n ),\n };\n },\n },\n ],\n };\n}\n\nfunction buildCmsSchemaDomain(root: string): Domain {\n const filePath = path.join(\n root,\n 'src',\n 'configuration',\n 'cms',\n 'cms-schema.yaml',\n );\n const fileName = 'cms-schema.yaml';\n const ajv = new Ajv({ allErrors: true, strict: false });\n const schema = SCHEMAS[fileName];\n\n let parsed: unknown;\n let fileExists = false;\n let yamlOk = false;\n\n return {\n name: 'CMS Schema',\n checks: [\n {\n label: `${fileName} — file exists`,\n run(): CheckResult {\n fileExists = existsSync(filePath);\n if (fileExists) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: [\n {\n message: `File not found: ${filePath}`,\n fix: `Create 'src/configuration/cms/cms-schema.yaml' in your project.`,\n },\n ],\n };\n },\n },\n {\n label: `${fileName} — valid YAML`,\n run(): CheckResult {\n if (!fileExists) {\n return {\n ok: false,\n errors: [{ message: 'skipped — file does not exist' }],\n };\n }\n const result = tryParseYaml(filePath);\n if (result.err !== undefined) {\n return {\n ok: false,\n errors: [\n {\n message: result.err,\n fix: 'Fix the YAML syntax error above.',\n },\n ],\n };\n }\n parsed = result.data;\n yamlOk = true;\n return { ok: true, errors: [] };\n },\n },\n {\n label: `${fileName} — schema valid`,\n run(): CheckResult {\n if (!yamlOk) {\n return {\n ok: false,\n errors: [{ message: 'skipped — YAML parse failed' }],\n };\n }\n const validate = ajv.compile(schema);\n if (validate(parsed)) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: (validate.errors ?? []).map((e) => formatAjvError(e)),\n };\n },\n },\n ],\n };\n}\n\nfunction buildActionsDomain(root: string): Domain {\n const actionsDir = path.join(root, 'src', 'actions');\n const registryPath = path.join(root, 'src', 'createRegistry.ts');\n const indexPath = path.join(actionsDir, 'index.ts');\n\n // If the actions directory is missing, report it and stop\n if (!existsSync(actionsDir)) {\n return {\n name: 'Actions',\n checks: [\n {\n label: 'src/actions/ — directory exists',\n run: () => ({\n ok: false,\n errors: [\n {\n message: 'src/actions/ directory not found',\n fix: 'Create the src/actions/ directory and add at least one action YAML + handler.',\n },\n ],\n }),\n },\n ],\n };\n }\n\n const yamlFiles = readdirSync(actionsDir).filter(\n (f) => f.endsWith('.yaml') || f.endsWith('.yml'),\n );\n\n if (yamlFiles.length === 0) {\n return {\n name: 'Actions',\n checks: [\n {\n label: 'src/actions/ — at least one action defined',\n run: () => ({\n ok: false,\n errors: [\n {\n message: 'No action YAML files found in src/actions/',\n fix: 'Add an action YAML file, e.g. src/actions/my-action.yaml',\n },\n ],\n }),\n },\n ],\n };\n }\n\n const ajv = new Ajv({ allErrors: true, strict: false });\n const actionSchema = SCHEMAS['action.yaml'];\n const checks: Check[] = [];\n\n for (const yamlFile of yamlFiles) {\n const yamlPath = path.join(actionsDir, yamlFile);\n\n // Mutable state shared across this action's checks (captured by closures)\n let yamlData: Record<string, unknown> = {};\n let yamlOk = false;\n let schemaOk = false;\n let actionName = path.basename(yamlFile, path.extname(yamlFile));\n\n // ── Check 1: valid YAML ────────────────────────────────────────────────\n checks.push({\n label: `${yamlFile} — valid YAML`,\n run(): CheckResult {\n const result = tryParseYaml(yamlPath);\n if (result.err !== undefined) {\n return {\n ok: false,\n errors: [\n { message: result.err, fix: 'Fix the YAML syntax error.' },\n ],\n };\n }\n yamlData = result.data as Record<string, unknown>;\n yamlOk = true;\n if (typeof yamlData.name === 'string') {\n actionName = yamlData.name;\n }\n return { ok: true, errors: [] };\n },\n });\n\n // ── Check 2: schema valid ─────────────────────────────────────────────\n checks.push({\n label: `${yamlFile} — schema valid`,\n run(): CheckResult {\n if (!yamlOk) {\n return {\n ok: false,\n errors: [{ message: 'skipped — YAML parse failed' }],\n };\n }\n const validate = ajv.compile(actionSchema);\n if (validate(yamlData)) {\n schemaOk = true;\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: (validate.errors ?? []).map((e) =>\n formatAjvError(e, ACTION_YAML_HINTS),\n ),\n };\n },\n });\n\n // Derive names — evaluated lazily inside each check closure after\n // yamlOk sets actionName correctly\n const getNames = () => {\n const camel = kebabToCamel(actionName);\n return {\n camel,\n handler: `${camel}Action`,\n snake: camelToSnake(camel),\n handlerFile: `${camel}Action.ts`,\n handlerPath: path.join(actionsDir, `${camel}Action.ts`),\n };\n };\n\n // ── Check 3: handler file exists ──────────────────────────────────────\n checks.push({\n label: `${yamlFile} — handler file exists`,\n run(): CheckResult {\n if (!schemaOk) {\n return {\n ok: false,\n errors: [{ message: 'skipped — YAML schema invalid' }],\n };\n }\n const { handler, handlerFile, handlerPath } = getNames();\n if (existsSync(handlerPath)) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: [\n {\n message: `Handler not found: src/actions/${handlerFile}`,\n fix: `Create src/actions/${handlerFile} exporting 'export const ${handler}: ActionHandler = ...'`,\n },\n ],\n };\n },\n });\n\n // ── Check 4: handler exports correct name ─────────────────────────────\n checks.push({\n label: `${yamlFile} — handler exports correct name`,\n run(): CheckResult {\n if (!schemaOk) {\n return {\n ok: false,\n errors: [{ message: 'skipped — YAML schema invalid' }],\n };\n }\n const { handler, handlerFile, handlerPath } = getNames();\n if (!existsSync(handlerPath)) {\n return {\n ok: false,\n errors: [{ message: 'skipped — handler file missing' }],\n };\n }\n const content = readText(handlerPath);\n if (content.includes(`export const ${handler}`)) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: [\n {\n message: `'export const ${handler}' not found in ${handlerFile}`,\n fix: `Rename the export to 'export const ${handler}: ActionHandler = ...'`,\n },\n ],\n };\n },\n });\n\n // ── Check 5: handler params ⊆ YAML params ────────────────────────────\n checks.push({\n label: `${yamlFile} — handler params declared in YAML`,\n run(): CheckResult {\n if (!schemaOk) {\n return {\n ok: false,\n errors: [{ message: 'skipped — YAML schema invalid' }],\n };\n }\n const { handlerPath } = getNames();\n if (!existsSync(handlerPath)) {\n return {\n ok: false,\n errors: [{ message: 'skipped — handler file missing' }],\n };\n }\n\n const declaredParams = new Set(\n ((yamlData.params as { param: string }[]) ?? []).map((p) => p.param),\n );\n\n const content = readText(handlerPath);\n const match = content.match(/const\\s*\\{([^}]+)\\}\\s*=\\s*params/);\n if (!match) {\n return { ok: true, errors: [] }; // No destructure — nothing to check\n }\n\n const usedParams = match[1]\n .split(',')\n .map((s) => s.trim())\n .filter((s) => s.length > 0 && !s.startsWith('...'))\n .map((s) => s.split(':')[0].trim()); // handle aliased: { foo: bar }\n\n const undeclared = usedParams.filter((p) => !declaredParams.has(p));\n if (undeclared.length === 0) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: undeclared.map((p) => ({\n message: `Handler uses param '${p}' not declared in ${yamlFile}`,\n fix: `Add to ${yamlFile}:\\n params:\\n - param: ${p}\\n values: [...]`,\n })),\n };\n },\n });\n\n // ── Check 6: index.ts exports handler ─────────────────────────────────\n checks.push({\n label: `${yamlFile} — exported from src/actions/index.ts`,\n run(): CheckResult {\n if (!schemaOk) {\n return {\n ok: false,\n errors: [{ message: 'skipped — YAML schema invalid' }],\n };\n }\n const { handler } = getNames();\n if (!existsSync(indexPath)) {\n return {\n ok: false,\n errors: [\n {\n message: 'src/actions/index.ts not found',\n fix: `Create src/actions/index.ts and add:\\nexport { ${handler} } from './${handler}';`,\n },\n ],\n };\n }\n const content = readText(indexPath);\n if (content.includes(handler)) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: [\n {\n message: `'${handler}' not found in src/actions/index.ts`,\n fix: `Add: export { ${handler} } from './${handler}';`,\n },\n ],\n };\n },\n });\n\n // ── Check 7: createRegistry.ts imports handler ────────────────────────\n checks.push({\n label: `${yamlFile} — imported in src/createRegistry.ts`,\n run(): CheckResult {\n if (!schemaOk) {\n return {\n ok: false,\n errors: [{ message: 'skipped — YAML schema invalid' }],\n };\n }\n const { handler, handlerFile } = getNames();\n if (!existsSync(registryPath)) {\n return {\n ok: false,\n errors: [{ message: 'src/createRegistry.ts not found' }],\n };\n }\n const content = readText(registryPath);\n if (content.includes(handler)) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: [\n {\n message: `'${handler}' not imported in src/createRegistry.ts`,\n fix: `Add: import { ${handler} } from './actions/${handlerFile.replace(\n '.ts',\n '',\n )}';`,\n },\n ],\n };\n },\n });\n\n // ── Check 8: createRegistry.ts registers the action ──────────────────\n checks.push({\n label: `${yamlFile} — registered in src/createRegistry.ts`,\n run(): CheckResult {\n if (!schemaOk) {\n return {\n ok: false,\n errors: [{ message: 'skipped — YAML schema invalid' }],\n };\n }\n const { handler, snake } = getNames();\n if (!existsSync(registryPath)) {\n return {\n ok: false,\n errors: [{ message: 'src/createRegistry.ts not found' }],\n };\n }\n const content = readText(registryPath);\n if (\n content.includes(`registerAction('${snake}'`) ||\n content.includes(`registerAction(\"${snake}\"`)\n ) {\n return { ok: true, errors: [] };\n }\n return {\n ok: false,\n errors: [\n {\n message: `'.registerAction('${snake}', ...)' not found in src/createRegistry.ts`,\n fix: `Add to the registry chain:\\n .registerAction('${snake}', ${handler})`,\n },\n ],\n };\n },\n });\n }\n\n return { name: 'Actions', checks };\n}\n\n// ── Command ───────────────────────────────────────────────────────────────────\n\nexport const validateCommand = new Command('validate')\n .description('Validate project config files against their schemas')\n .action(() => {\n const root = findProjectRoot(process.cwd());\n if (!root) {\n error(\n 'No web5.config.json found — run this command from inside a Web5 project',\n );\n process.exit(1);\n }\n\n info(`Project root: ${root}`);\n console.log('');\n\n const domains: Domain[] = [\n buildAiInstructionsDomain(root),\n buildCmsSchemaDomain(root),\n buildActionsDomain(root),\n ];\n\n let hasErrors = false;\n\n for (const domain of domains) {\n console.log(domain.name);\n\n for (const check of domain.checks) {\n const result = check.run();\n\n if (result.ok) {\n console.log(chalk.green(` \\u2714 ${check.label}`));\n } else {\n hasErrors = true;\n process.stderr.write(chalk.red(` \\u2716 ${check.label}\\n`));\n for (const e_ of result.errors) {\n process.stderr.write(` ${e_.message}\\n`);\n if (e_.fix) {\n process.stderr.write(` Fix: ${e_.fix}\\n`);\n }\n }\n }\n }\n\n console.log('');\n }\n\n if (hasErrors) {\n process.exit(1);\n }\n });\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,WAAW;AACnC,OAAOC,GAAG,MAAM,eAAe;AAE/B,SAASC,IAAI,IAAIC,QAAQ,QAAQ,SAAS;AAC1C,SAASC,YAAY,EAAEC,UAAU,EAAEC,WAAW,QAAQ,IAAI;AAC1D,OAAO,KAAKC,IAAI,MAAM,MAAM;AAC5B,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,QAAQ,gBAAgB;AAC5C,SAASC,uBAAuB,QAAQ,8BAA8B;AACtE,SAASC,4BAA4B,QAAQ,mCAAmC;AAChF,SAASC,wBAAwB,QAAQ,+BAA+B;;AAExE;;AAEA,MAAMC,OAA+B,GAAG;EACtC,iBAAiB,EAAEX,QAAQ,CAACQ,uBAAuB,CAAC,CAAC,CAAW;EAChE,0BAA0B,EAAER,QAAQ,CAClCS,4BAA4B,CAAC,CAC/B,CAAW;EACX,aAAa,EAAET,QAAQ,CAACU,wBAAwB,CAAC,CAAC;AACpD,CAAC;;AAED;;AAsBA;;AAEA,SAASE,eAAeA,CAACC,QAAgB,EAAiB;EACxD,IAAIC,OAAO,GAAGD,QAAQ;EACtB,IAAIE,MAAM,GAAGX,IAAI,CAACY,OAAO,CAACF,OAAO,CAAC;EAClC,OAAOA,OAAO,KAAKC,MAAM,EAAE;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LwD,SAAS,GAAG,IAAI;QAChBN,OAAO,CAACU,MAAM,CAACC,KAAK,CAAC9H,KAAK,CAAC+H,GAAG,CAAC,aAAaJ,KAAK,CAAC1D,KAAK,IAAI,CAAC,CAAC;QAC7D,KAAK,MAAM+D,EAAE,IAAI3D,MAAM,CAACD,MAAM,EAAE;UAC9B+C,OAAO,CAACU,MAAM,CAACC,KAAK,CAAC,UAAUE,EAAE,CAAC7G,OAAO,IAAI,CAAC;UAC9C,IAAI6G,EAAE,CAACzF,GAAG,EAAE;YACV4E,OAAO,CAACU,MAAM,CAACC,KAAK,CAAC,eAAeE,EAAE,CAACzF,GAAG,IAAI,CAAC;UACjD;QACF;MACF;IACF;IAEA+E,OAAO,CAACC,GAAG,CAAC,EAAE,CAAC;EACjB;EAEA,IAAIE,SAAS,EAAE;IACbN,OAAO,CAACE,IAAI,CAAC,CAAC,CAAC;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
export default class Counter {
|
|
3
|
+
constructor() {
|
|
4
|
+
_defineProperty(this, "_count", 0);
|
|
5
|
+
}
|
|
6
|
+
increment(n) {
|
|
7
|
+
if (n === void 0) {
|
|
8
|
+
n = 1;
|
|
9
|
+
}
|
|
10
|
+
this._count += n;
|
|
11
|
+
}
|
|
12
|
+
getCount() {
|
|
13
|
+
return this._count;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=counter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Counter","constructor","_defineProperty","increment","n","_count","getCount"],"sources":["../../src/counter.ts"],"sourcesContent":["export default class Counter {\n _count = 0;\n\n increment(n = 1) {\n this._count += n;\n }\n\n getCount() {\n return this._count;\n }\n}\n"],"mappings":";AAAA,eAAe,MAAMA,OAAO,CAAC;EAAAC,YAAA;IAAAC,eAAA,iBAClB,CAAC;EAAA;EAEVC,SAASA,CAACC,CAAC,EAAM;IAAA,IAAPA,CAAC;MAADA,CAAC,GAAG,CAAC;IAAA;IACb,IAAI,CAACC,MAAM,IAAID,CAAC;EAClB;EAEAE,QAAQA,CAAA,EAAG;IACT,OAAO,IAAI,CAACD,MAAM;EACpB;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/external-types.d.ts"],"sourcesContent":["/// <reference types=\"@wix/yoshi-flow-library/types\" />\n\n// keytar is an optional peer dependency — declare minimal surface so TypeScript\n// accepts the dynamic import('keytar') without requiring the package at build time.\ndeclare module 'keytar' {\n export function setPassword(\n service: string,\n account: string,\n password: string,\n ): Promise<void>;\n export function getPassword(\n service: string,\n account: string,\n ): Promise<string | null>;\n export function deletePassword(\n service: string,\n account: string,\n ): Promise<boolean>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["login","logout","getToken","isAuthenticated"],"sources":["../../src/index.ts"],"sourcesContent":["// Programmatic API — use these exports when consuming web50-cli as a library.\n// The CLI binary entry point is src/cli.ts (compiled to dist/cjs/cli.js).\n\nexport { login, logout, getToken, isAuthenticated } from './auth';\nexport type { Credentials } from './auth';\n"],"mappings":"AAAA;AACA;;AAEA,SAASA,KAAK,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,eAAe,QAAQ,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export function actionYamlSchemaTemplate() {
|
|
2
|
+
return `type: object
|
|
3
|
+
required: [name, params]
|
|
4
|
+
additionalProperties: false
|
|
5
|
+
properties:
|
|
6
|
+
name:
|
|
7
|
+
type: string
|
|
8
|
+
description:
|
|
9
|
+
type: string
|
|
10
|
+
params:
|
|
11
|
+
type: array
|
|
12
|
+
items:
|
|
13
|
+
type: object
|
|
14
|
+
required: [param, values]
|
|
15
|
+
additionalProperties: false
|
|
16
|
+
properties:
|
|
17
|
+
param:
|
|
18
|
+
type: string
|
|
19
|
+
values:
|
|
20
|
+
type: array
|
|
21
|
+
items:
|
|
22
|
+
type: string
|
|
23
|
+
optional:
|
|
24
|
+
type: boolean
|
|
25
|
+
description:
|
|
26
|
+
type: string
|
|
27
|
+
`;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=actionYamlSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["actionYamlSchemaTemplate"],"sources":["../../../src/templates/actionYamlSchema.ts"],"sourcesContent":["export function actionYamlSchemaTemplate(): string {\n return `type: object\nrequired: [name, params]\nadditionalProperties: false\nproperties:\n name:\n type: string\n description:\n type: string\n params:\n type: array\n items:\n type: object\n required: [param, values]\n additionalProperties: false\n properties:\n param:\n type: string\n values:\n type: array\n items:\n type: string\n optional:\n type: boolean\n description:\n type: string\n`;\n}\n"],"mappings":"AAAA,OAAO,SAASA,wBAAwBA,CAAA,EAAW;EACjD,OAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export function aiInstructionsSchemaTemplate() {
|
|
2
|
+
return `type: object
|
|
3
|
+
required: [rules, instructions, semantics, tone]
|
|
4
|
+
additionalProperties: false
|
|
5
|
+
properties:
|
|
6
|
+
rules:
|
|
7
|
+
type: array
|
|
8
|
+
minItems: 1
|
|
9
|
+
items:
|
|
10
|
+
type: string
|
|
11
|
+
instructions:
|
|
12
|
+
type: string
|
|
13
|
+
semantics:
|
|
14
|
+
type: object
|
|
15
|
+
required: [PROX, VERIFY, SUB-ACTION]
|
|
16
|
+
additionalProperties: false
|
|
17
|
+
properties:
|
|
18
|
+
PROX:
|
|
19
|
+
type: string
|
|
20
|
+
VERIFY:
|
|
21
|
+
type: string
|
|
22
|
+
SUB-ACTION:
|
|
23
|
+
type: string
|
|
24
|
+
tone:
|
|
25
|
+
type: object
|
|
26
|
+
required: [style, voice]
|
|
27
|
+
additionalProperties: false
|
|
28
|
+
properties:
|
|
29
|
+
style:
|
|
30
|
+
type: string
|
|
31
|
+
voice:
|
|
32
|
+
type: string
|
|
33
|
+
`;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=aiInstructionsSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["aiInstructionsSchemaTemplate"],"sources":["../../../src/templates/aiInstructionsSchema.ts"],"sourcesContent":["export function aiInstructionsSchemaTemplate(): string {\n return `type: object\nrequired: [rules, instructions, semantics, tone]\nadditionalProperties: false\nproperties:\n rules:\n type: array\n minItems: 1\n items:\n type: string\n instructions:\n type: string\n semantics:\n type: object\n required: [PROX, VERIFY, SUB-ACTION]\n additionalProperties: false\n properties:\n PROX:\n type: string\n VERIFY:\n type: string\n SUB-ACTION:\n type: string\n tone:\n type: object\n required: [style, voice]\n additionalProperties: false\n properties:\n style:\n type: string\n voice:\n type: string\n`;\n}\n"],"mappings":"AAAA,OAAO,SAASA,4BAA4BA,CAAA,EAAW;EACrD,OAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export function cmsSchemaSchemaTemplate() {
|
|
2
|
+
return `# JSON Schema for cms-schema.yaml
|
|
3
|
+
# Validates the structure of CMS collection definitions.
|
|
4
|
+
# This file is bundled with the CLI and is not part of the user's project.
|
|
5
|
+
|
|
6
|
+
type: object
|
|
7
|
+
required: [collections]
|
|
8
|
+
additionalProperties: false
|
|
9
|
+
properties:
|
|
10
|
+
collections:
|
|
11
|
+
type: object
|
|
12
|
+
additionalProperties:
|
|
13
|
+
type: object
|
|
14
|
+
required: [displayName, fields]
|
|
15
|
+
additionalProperties: false
|
|
16
|
+
properties:
|
|
17
|
+
displayName:
|
|
18
|
+
type: string
|
|
19
|
+
fields:
|
|
20
|
+
type: object
|
|
21
|
+
additionalProperties:
|
|
22
|
+
type: object
|
|
23
|
+
required: [type]
|
|
24
|
+
properties:
|
|
25
|
+
type:
|
|
26
|
+
type: string
|
|
27
|
+
enum:
|
|
28
|
+
- string
|
|
29
|
+
- number
|
|
30
|
+
- boolean
|
|
31
|
+
- array
|
|
32
|
+
- object
|
|
33
|
+
- datetime
|
|
34
|
+
- richtext
|
|
35
|
+
required:
|
|
36
|
+
type: boolean
|
|
37
|
+
unique:
|
|
38
|
+
type: boolean
|
|
39
|
+
description:
|
|
40
|
+
type: string
|
|
41
|
+
default: {}
|
|
42
|
+
enum:
|
|
43
|
+
type: array
|
|
44
|
+
ref:
|
|
45
|
+
type: string
|
|
46
|
+
items:
|
|
47
|
+
type: object
|
|
48
|
+
auto:
|
|
49
|
+
type: boolean
|
|
50
|
+
min:
|
|
51
|
+
type: number
|
|
52
|
+
example: {}
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=cmsSchemaSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["cmsSchemaSchemaTemplate"],"sources":["../../../src/templates/cmsSchemaSchema.ts"],"sourcesContent":["export function cmsSchemaSchemaTemplate(): string {\n return `# JSON Schema for cms-schema.yaml\n# Validates the structure of CMS collection definitions.\n# This file is bundled with the CLI and is not part of the user's project.\n\ntype: object\nrequired: [collections]\nadditionalProperties: false\nproperties:\n collections:\n type: object\n additionalProperties:\n type: object\n required: [displayName, fields]\n additionalProperties: false\n properties:\n displayName:\n type: string\n fields:\n type: object\n additionalProperties:\n type: object\n required: [type]\n properties:\n type:\n type: string\n enum:\n - string\n - number\n - boolean\n - array\n - object\n - datetime\n - richtext\n required:\n type: boolean\n unique:\n type: boolean\n description:\n type: string\n default: {}\n enum:\n type: array\n ref:\n type: string\n items:\n type: object\n auto:\n type: boolean\n min:\n type: number\n example: {}\n`;\n}\n"],"mappings":"AAAA,OAAO,SAASA,uBAAuBA,CAAA,EAAW;EAChD,OAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../src/test-types.d.ts"],"sourcesContent":["/// <reference types=\"@wix/jest-yoshi-preset/types\" />\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { writeFile, rename, mkdir } from 'fs/promises';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
export async function atomicWrite(filePath, content, mode) {
|
|
4
|
+
if (mode === void 0) {
|
|
5
|
+
mode = 0o644;
|
|
6
|
+
}
|
|
7
|
+
await mkdir(path.dirname(filePath), {
|
|
8
|
+
recursive: true
|
|
9
|
+
});
|
|
10
|
+
const tmpPath = `${filePath}.tmp`;
|
|
11
|
+
await writeFile(tmpPath, content, {
|
|
12
|
+
encoding: 'utf8',
|
|
13
|
+
mode
|
|
14
|
+
});
|
|
15
|
+
await rename(tmpPath, filePath);
|
|
16
|
+
}
|
|
17
|
+
export async function ensureDir(dirPath) {
|
|
18
|
+
await mkdir(dirPath, {
|
|
19
|
+
recursive: true
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=fs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["writeFile","rename","mkdir","path","atomicWrite","filePath","content","mode","dirname","recursive","tmpPath","encoding","ensureDir","dirPath"],"sources":["../../../src/utils/fs.ts"],"sourcesContent":["import { writeFile, rename, mkdir } from 'fs/promises';\nimport * as path from 'path';\n\nexport async function atomicWrite(\n filePath: string,\n content: string,\n mode = 0o644,\n): Promise<void> {\n await mkdir(path.dirname(filePath), { recursive: true });\n const tmpPath = `${filePath}.tmp`;\n await writeFile(tmpPath, content, { encoding: 'utf8', mode });\n await rename(tmpPath, filePath);\n}\n\nexport async function ensureDir(dirPath: string): Promise<void> {\n await mkdir(dirPath, { recursive: true });\n}\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,MAAM,EAAEC,KAAK,QAAQ,aAAa;AACtD,OAAO,KAAKC,IAAI,MAAM,MAAM;AAE5B,OAAO,eAAeC,WAAWA,CAC/BC,QAAgB,EAChBC,OAAe,EACfC,IAAI,EACW;EAAA,IADfA,IAAI;IAAJA,IAAI,GAAG,KAAK;EAAA;EAEZ,MAAML,KAAK,CAACC,IAAI,CAACK,OAAO,CAACH,QAAQ,CAAC,EAAE;IAAEI,SAAS,EAAE;EAAK,CAAC,CAAC;EACxD,MAAMC,OAAO,GAAG,GAAGL,QAAQ,MAAM;EACjC,MAAML,SAAS,CAACU,OAAO,EAAEJ,OAAO,EAAE;IAAEK,QAAQ,EAAE,MAAM;IAAEJ;EAAK,CAAC,CAAC;EAC7D,MAAMN,MAAM,CAACS,OAAO,EAAEL,QAAQ,CAAC;AACjC;AAEA,OAAO,eAAeO,SAASA,CAACC,OAAe,EAAiB;EAC9D,MAAMX,KAAK,CAACW,OAAO,EAAE;IAAEJ,SAAS,EAAE;EAAK,CAAC,CAAC;AAC3C","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import ora from 'ora';
|
|
3
|
+
export function success(msg) {
|
|
4
|
+
console.log(chalk.green(`\u2714 ${msg}`));
|
|
5
|
+
}
|
|
6
|
+
export function error(msg) {
|
|
7
|
+
process.stderr.write(chalk.red(`\u2716 ${msg}\n`));
|
|
8
|
+
}
|
|
9
|
+
export function info(msg) {
|
|
10
|
+
console.log(chalk.dim(` ${msg}`));
|
|
11
|
+
}
|
|
12
|
+
export function warn(msg) {
|
|
13
|
+
console.log(chalk.yellow(`\u26a0 ${msg}`));
|
|
14
|
+
}
|
|
15
|
+
export function spinner(msg) {
|
|
16
|
+
return ora(msg).start();
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=print.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["chalk","ora","success","msg","console","log","green","error","process","stderr","write","red","info","dim","warn","yellow","spinner","start"],"sources":["../../../src/utils/print.ts"],"sourcesContent":["import chalk from 'chalk';\nimport ora from 'ora';\nimport type { Ora } from 'ora';\n\nexport function success(msg: string): void {\n console.log(chalk.green(`\\u2714 ${msg}`));\n}\n\nexport function error(msg: string): void {\n process.stderr.write(chalk.red(`\\u2716 ${msg}\\n`));\n}\n\nexport function info(msg: string): void {\n console.log(chalk.dim(` ${msg}`));\n}\n\nexport function warn(msg: string): void {\n console.log(chalk.yellow(`\\u26a0 ${msg}`));\n}\n\nexport function spinner(msg: string): Ora {\n return ora(msg).start();\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,MAAM,KAAK;AAGrB,OAAO,SAASC,OAAOA,CAACC,GAAW,EAAQ;EACzCC,OAAO,CAACC,GAAG,CAACL,KAAK,CAACM,KAAK,CAAC,WAAWH,GAAG,EAAE,CAAC,CAAC;AAC5C;AAEA,OAAO,SAASI,KAAKA,CAACJ,GAAW,EAAQ;EACvCK,OAAO,CAACC,MAAM,CAACC,KAAK,CAACV,KAAK,CAACW,GAAG,CAAC,WAAWR,GAAG,IAAI,CAAC,CAAC;AACrD;AAEA,OAAO,SAASS,IAAIA,CAACT,GAAW,EAAQ;EACtCC,OAAO,CAACC,GAAG,CAACL,KAAK,CAACa,GAAG,CAAC,MAAMV,GAAG,EAAE,CAAC,CAAC;AACrC;AAEA,OAAO,SAASW,IAAIA,CAACX,GAAW,EAAQ;EACtCC,OAAO,CAACC,GAAG,CAACL,KAAK,CAACe,MAAM,CAAC,WAAWZ,GAAG,EAAE,CAAC,CAAC;AAC7C;AAEA,OAAO,SAASa,OAAOA,CAACb,GAAW,EAAO;EACxC,OAAOF,GAAG,CAACE,GAAG,CAAC,CAACc,KAAK,CAAC,CAAC;AACzB","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as fs from 'fs';
|
|
2
|
+
import * as path from 'path';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Walk up from startDir until we find a directory containing web5.config.json.
|
|
6
|
+
* Returns that directory, or null if none found.
|
|
7
|
+
*/
|
|
8
|
+
export function findProjectRoot(startDir) {
|
|
9
|
+
let current = startDir;
|
|
10
|
+
let parent = path.dirname(current);
|
|
11
|
+
while (current !== parent) {
|
|
12
|
+
if (fs.existsSync(path.join(current, 'web5.config.json'))) {
|
|
13
|
+
return current;
|
|
14
|
+
}
|
|
15
|
+
current = parent;
|
|
16
|
+
parent = path.dirname(current);
|
|
17
|
+
}
|
|
18
|
+
if (fs.existsSync(path.join(current, 'web5.config.json'))) {
|
|
19
|
+
return current;
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=project.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["fs","path","findProjectRoot","startDir","current","parent","dirname","existsSync","join"],"sources":["../../../src/utils/project.ts"],"sourcesContent":["import * as fs from 'fs';\nimport * as path from 'path';\n\n/**\n * Walk up from startDir until we find a directory containing web5.config.json.\n * Returns that directory, or null if none found.\n */\nexport function findProjectRoot(startDir: string): string | null {\n let current = startDir;\n let parent = path.dirname(current);\n while (current !== parent) {\n if (fs.existsSync(path.join(current, 'web5.config.json'))) {\n return current;\n }\n current = parent;\n parent = path.dirname(current);\n }\n if (fs.existsSync(path.join(current, 'web5.config.json'))) {\n return current;\n }\n return null;\n}\n"],"mappings":"AAAA,OAAO,KAAKA,EAAE,MAAM,IAAI;AACxB,OAAO,KAAKC,IAAI,MAAM,MAAM;;AAE5B;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACC,QAAgB,EAAiB;EAC/D,IAAIC,OAAO,GAAGD,QAAQ;EACtB,IAAIE,MAAM,GAAGJ,IAAI,CAACK,OAAO,CAACF,OAAO,CAAC;EAClC,OAAOA,OAAO,KAAKC,MAAM,EAAE;IACzB,IAAIL,EAAE,CAACO,UAAU,CAACN,IAAI,CAACO,IAAI,CAACJ,OAAO,EAAE,kBAAkB,CAAC,CAAC,EAAE;MACzD,OAAOA,OAAO;IAChB;IACAA,OAAO,GAAGC,MAAM;IAChBA,MAAM,GAAGJ,IAAI,CAACK,OAAO,CAACF,OAAO,CAAC;EAChC;EACA,IAAIJ,EAAE,CAACO,UAAU,CAACN,IAAI,CAACO,IAAI,CAACJ,OAAO,EAAE,kBAAkB,CAAC,CAAC,EAAE;IACzD,OAAOA,OAAO;EAChB;EACA,OAAO,IAAI;AACb","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceFlow.d.ts","sourceRoot":"","sources":["../../../src/auth/deviceFlow.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB;AA+DD,wBAAsB,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC,CAwB5D"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { Credentials } from './secretStore';
|
|
2
|
+
export declare function login(apiKey?: string): Promise<void>;
|
|
3
|
+
export declare function logout(): Promise<void>;
|
|
4
|
+
export declare function getToken(): Promise<string | null>;
|
|
5
|
+
export declare function isAuthenticated(): Promise<boolean>;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/auth/index.ts"],"names":[],"mappings":"AAQA,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,wBAAsB,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAc1D;AAED,wBAAsB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAG5C;AAED,wBAAsB,QAAQ,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAYvD;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC,CAExD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface Credentials {
|
|
2
|
+
access_token?: string;
|
|
3
|
+
refresh_token?: string;
|
|
4
|
+
api_key?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function writeCredentials(creds: Credentials): Promise<void>;
|
|
7
|
+
export declare function readCredentials(): Promise<Credentials | null>;
|
|
8
|
+
export declare function clearCredentials(): Promise<void>;
|
|
9
|
+
//# sourceMappingURL=secretStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secretStore.d.ts","sourceRoot":"","sources":["../../../src/auth/secretStore.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,WAAW;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAqDD,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAUxE;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAwBnE;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAatD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwEpC,eAAO,MAAM,WAAW,SAyMpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/commands/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,eAAO,MAAM,YAAY,SAerB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/commands/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmsBpC,eAAO,MAAM,eAAe,SAgDxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"counter.d.ts","sourceRoot":"","sources":["../../src/counter.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,MAAM,SAAK;IAEX,SAAS,CAAC,CAAC,SAAI;IAIf,QAAQ;CAGT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAClE,YAAY,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionYamlSchema.d.ts","sourceRoot":"","sources":["../../../src/templates/actionYamlSchema.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,IAAI,MAAM,CA2BjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aiInstructionsSchema.d.ts","sourceRoot":"","sources":["../../../src/templates/aiInstructionsSchema.ts"],"names":[],"mappings":"AAAA,wBAAgB,4BAA4B,IAAI,MAAM,CAiCrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmsSchemaSchema.d.ts","sourceRoot":"","sources":["../../../src/templates/cmsSchemaSchema.ts"],"names":[],"mappings":"AAAA,wBAAgB,uBAAuB,IAAI,MAAM,CAqDhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../../src/utils/fs.ts"],"names":[],"mappings":"AAGA,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,IAAI,SAAQ,GACX,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,wBAAsB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Ora } from 'ora';
|
|
2
|
+
export declare function success(msg: string): void;
|
|
3
|
+
export declare function error(msg: string): void;
|
|
4
|
+
export declare function info(msg: string): void;
|
|
5
|
+
export declare function warn(msg: string): void;
|
|
6
|
+
export declare function spinner(msg: string): Ora;
|
|
7
|
+
//# sourceMappingURL=print.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../../src/utils/print.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE/B,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEtC;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEtC;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAExC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/utils/project.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAc/D"}
|