@xylabs/ts-scripts-yarn3 7.4.19 → 7.4.21
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/actions/claude-commands.mjs +5 -1
- package/dist/actions/claude-commands.mjs.map +1 -1
- package/dist/actions/claude-rules.mjs +5 -1
- package/dist/actions/claude-rules.mjs.map +1 -1
- package/dist/actions/claude-skills.mjs +120 -0
- package/dist/actions/claude-skills.mjs.map +1 -0
- package/dist/actions/index.mjs +229 -127
- package/dist/actions/index.mjs.map +1 -1
- package/dist/bin/xy.mjs +239 -140
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.mjs +299 -197
- package/dist/index.mjs.map +1 -1
- package/dist/lib/claudeMdTemplate.mjs +27 -2
- package/dist/lib/claudeMdTemplate.mjs.map +1 -1
- package/dist/lib/index.mjs +26 -1
- package/dist/lib/index.mjs.map +1 -1
- package/dist/xy/build-commands/build.mjs +502 -0
- package/dist/xy/build-commands/build.mjs.map +1 -0
- package/dist/xy/{build → build-commands}/index.mjs +40 -45
- package/dist/xy/build-commands/index.mjs.map +1 -0
- package/dist/xy/common/claude/commandsCommand.mjs +5 -1
- package/dist/xy/common/claude/commandsCommand.mjs.map +1 -1
- package/dist/xy/common/claude/index.mjs +111 -2
- package/dist/xy/common/claude/index.mjs.map +1 -1
- package/dist/xy/common/claude/initCommand.mjs +111 -1
- package/dist/xy/common/claude/initCommand.mjs.map +1 -1
- package/dist/xy/common/claude/rulesCommand.mjs +5 -1
- package/dist/xy/common/claude/rulesCommand.mjs.map +1 -1
- package/dist/xy/common/claude/skillsCommand.mjs +129 -0
- package/dist/xy/common/claude/skillsCommand.mjs.map +1 -0
- package/dist/xy/common/index.mjs +128 -19
- package/dist/xy/common/index.mjs.map +1 -1
- package/dist/xy/index.mjs +239 -140
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +239 -140
- package/dist/xy/xy.mjs.map +1 -1
- package/package.json +2 -2
- package/templates/claude/skills/xylabs-e2e-setup/SKILL.md +197 -0
- package/dist/xy/build/buildCommand.mjs +0 -161
- package/dist/xy/build/buildCommand.mjs.map +0 -1
- package/dist/xy/build/compileCommand.mjs +0 -174
- package/dist/xy/build/compileCommand.mjs.map +0 -1
- package/dist/xy/build/compileOnlyCommand.mjs +0 -175
- package/dist/xy/build/compileOnlyCommand.mjs.map +0 -1
- package/dist/xy/build/copyAssetsCommand.mjs +0 -84
- package/dist/xy/build/copyAssetsCommand.mjs.map +0 -1
- package/dist/xy/build/index.mjs.map +0 -1
- package/dist/xy/build/rebuildCommand.mjs +0 -114
- package/dist/xy/build/rebuildCommand.mjs.map +0 -1
- package/dist/xy/build/recompileCommand.mjs +0 -204
- package/dist/xy/build/recompileCommand.mjs.map +0 -1
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
// src/lib/checkResult.ts
|
|
2
|
-
import chalk from "chalk";
|
|
3
|
-
var checkResult = (name, result, level = "error", exitOnFail = false) => {
|
|
4
|
-
if (result) {
|
|
5
|
-
const exiting = exitOnFail ? "[Exiting Process]" : "[Continuing]";
|
|
6
|
-
const chalkFunc = level === "error" ? chalk.red : chalk.yellow;
|
|
7
|
-
console[level](chalkFunc(`${name} had ${result} failures ${exiting}`));
|
|
8
|
-
if (exitOnFail) {
|
|
9
|
-
process.exit(result);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
// src/lib/processEx.ts
|
|
15
|
-
import chalk2 from "chalk";
|
|
16
|
-
|
|
17
|
-
// src/lib/withError.ts
|
|
18
|
-
var withError = (ex, closure, predicate = (ex2) => !!ex2.name && !!ex2.message) => {
|
|
19
|
-
return predicate(ex) ? closure(ex) : void 0;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// src/lib/withErrnoException.ts
|
|
23
|
-
var withErrnoException = (ex, closure) => {
|
|
24
|
-
return withError(ex, closure, (ex2) => ex2.errno !== void 0);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// src/lib/processEx.ts
|
|
28
|
-
var processEx = (ex) => {
|
|
29
|
-
const error = typeof ex === "string" ? new Error(ex) : ex;
|
|
30
|
-
const exitCode = withErrnoException(error, (error2) => {
|
|
31
|
-
if (error2.code === "ENOENT") {
|
|
32
|
-
console.error(chalk2.red(`'${error2.path}' not found.`));
|
|
33
|
-
} else {
|
|
34
|
-
console.error(chalk2.red(`Errno: ${error2.code}`));
|
|
35
|
-
}
|
|
36
|
-
return error2.errno ?? -1;
|
|
37
|
-
}) ?? withError(error, (error2) => {
|
|
38
|
-
console.error(chalk2.red(`${error2.name}: ${error2.message}`));
|
|
39
|
-
return -1;
|
|
40
|
-
}) ?? (() => {
|
|
41
|
-
console.error(chalk2.red(`Unexpected Error: ${JSON.stringify(ex, null, 2)}`));
|
|
42
|
-
return -1;
|
|
43
|
-
})();
|
|
44
|
-
process.exit(process.exitCode ?? exitCode);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
// src/lib/safeExit.ts
|
|
48
|
-
var safeExitAsync = async (func, exitOnFail = true) => {
|
|
49
|
-
try {
|
|
50
|
-
const result = await func();
|
|
51
|
-
if (result && exitOnFail) {
|
|
52
|
-
process.exit(result);
|
|
53
|
-
}
|
|
54
|
-
return result;
|
|
55
|
-
} catch (ex) {
|
|
56
|
-
return processEx(ex);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
// src/lib/runStepsAsync.ts
|
|
61
|
-
import { spawn } from "child_process";
|
|
62
|
-
import { existsSync } from "fs";
|
|
63
|
-
import chalk3 from "chalk";
|
|
64
|
-
var runStepAsync = (name, step, exitOnFail = true, message) => {
|
|
65
|
-
return new Promise((resolve) => {
|
|
66
|
-
const [command, args, config] = step;
|
|
67
|
-
if (message) {
|
|
68
|
-
console.log(chalk3.gray(message));
|
|
69
|
-
}
|
|
70
|
-
const argList = Array.isArray(args) ? args : args.split(" ");
|
|
71
|
-
if (command === "node" && !existsSync(argList[0])) {
|
|
72
|
-
throw new Error(`File not found [${argList[0]}]`);
|
|
73
|
-
}
|
|
74
|
-
spawn(command, Array.isArray(args) ? args : args.split(" "), {
|
|
75
|
-
...config,
|
|
76
|
-
env: { FORCE_COLOR: "3", ...process.env },
|
|
77
|
-
shell: true,
|
|
78
|
-
stdio: "inherit"
|
|
79
|
-
}).on("close", (code) => {
|
|
80
|
-
if (code) {
|
|
81
|
-
console.error(
|
|
82
|
-
chalk3.red(
|
|
83
|
-
`Command Exited With Non-Zero Result [${chalk3.gray(code)}] | ${chalk3.yellow(command)} ${chalk3.white(
|
|
84
|
-
Array.isArray(args) ? args.join(" ") : args
|
|
85
|
-
)}`
|
|
86
|
-
)
|
|
87
|
-
);
|
|
88
|
-
checkResult(name, code, "error", exitOnFail);
|
|
89
|
-
resolve(code);
|
|
90
|
-
} else {
|
|
91
|
-
resolve(0);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
var runStepsAsync = async (name, steps, exitOnFail = true, messages) => {
|
|
97
|
-
return await safeExitAsync(async () => {
|
|
98
|
-
const pkgName = process.env.npm_package_name;
|
|
99
|
-
console.log(chalk3.green(`${name} [${pkgName}]`));
|
|
100
|
-
let result = 0;
|
|
101
|
-
for (const [i, step] of steps.entries()) {
|
|
102
|
-
result += await runStepAsync(name, step, exitOnFail, messages?.[i]);
|
|
103
|
-
}
|
|
104
|
-
return result;
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
// src/actions/recompile.ts
|
|
109
|
-
import chalk4 from "chalk";
|
|
110
|
-
var recompile = async ({
|
|
111
|
-
verbose,
|
|
112
|
-
target,
|
|
113
|
-
pkg,
|
|
114
|
-
incremental
|
|
115
|
-
}) => {
|
|
116
|
-
return pkg ? await recompilePackage({
|
|
117
|
-
pkg,
|
|
118
|
-
target,
|
|
119
|
-
verbose
|
|
120
|
-
}) : await recompileAll({
|
|
121
|
-
incremental,
|
|
122
|
-
target,
|
|
123
|
-
verbose
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
var recompilePackage = ({ target, pkg }) => {
|
|
127
|
-
const targetOptions = target ? ["-t", target] : [];
|
|
128
|
-
return runStepsAsync(
|
|
129
|
-
`Recompile [${pkg}]`,
|
|
130
|
-
[["yarn", ["workspace", pkg, "run", "package-recompile", ...targetOptions]]]
|
|
131
|
-
);
|
|
132
|
-
};
|
|
133
|
-
var recompileAll = async ({
|
|
134
|
-
jobs,
|
|
135
|
-
verbose,
|
|
136
|
-
target,
|
|
137
|
-
incremental
|
|
138
|
-
}) => {
|
|
139
|
-
const start = Date.now();
|
|
140
|
-
const verboseOptions = verbose ? ["--verbose"] : ["--no-verbose"];
|
|
141
|
-
const targetOptions = target ? ["-t", target] : [];
|
|
142
|
-
const incrementalOptions = incremental ? ["--since", "-Apt", "--topological-dev"] : ["--parallel", "-Apt", "--topological-dev"];
|
|
143
|
-
const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
|
|
144
|
-
if (jobs) {
|
|
145
|
-
console.log(chalk4.blue(`Jobs set to [${jobs}]`));
|
|
146
|
-
}
|
|
147
|
-
const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
|
|
148
|
-
[
|
|
149
|
-
"yarn",
|
|
150
|
-
[
|
|
151
|
-
"workspaces",
|
|
152
|
-
"foreach",
|
|
153
|
-
...incrementalOptions,
|
|
154
|
-
...jobsOptions,
|
|
155
|
-
...verboseOptions,
|
|
156
|
-
"run",
|
|
157
|
-
"package-clean",
|
|
158
|
-
...targetOptions
|
|
159
|
-
]
|
|
160
|
-
],
|
|
161
|
-
[
|
|
162
|
-
"yarn",
|
|
163
|
-
[
|
|
164
|
-
"workspaces",
|
|
165
|
-
"foreach",
|
|
166
|
-
...incrementalOptions,
|
|
167
|
-
...jobsOptions,
|
|
168
|
-
...verboseOptions,
|
|
169
|
-
"run",
|
|
170
|
-
"package-compile",
|
|
171
|
-
...targetOptions
|
|
172
|
-
]
|
|
173
|
-
]
|
|
174
|
-
]);
|
|
175
|
-
console.log(
|
|
176
|
-
`${chalk4.gray("Recompiled in")} [${chalk4.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk4.gray("seconds")}`
|
|
177
|
-
);
|
|
178
|
-
return result;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
// src/xy/build/recompileCommand.ts
|
|
182
|
-
var recompileCommand = {
|
|
183
|
-
command: "recompile [package]",
|
|
184
|
-
describe: "Re-compile with Typescript & Copy Images",
|
|
185
|
-
builder: (yargs) => {
|
|
186
|
-
return yargs.positional("package", { describe: "Specific package to re-compile" });
|
|
187
|
-
},
|
|
188
|
-
handler: async (argv) => {
|
|
189
|
-
if (argv.verbose) {
|
|
190
|
-
console.log(`Re-compiling: ${argv.package ?? "all"}`);
|
|
191
|
-
}
|
|
192
|
-
process.exitCode = await recompile({
|
|
193
|
-
incremental: !!argv.incremental,
|
|
194
|
-
jobs: argv.jobs,
|
|
195
|
-
pkg: argv.package,
|
|
196
|
-
target: argv.target,
|
|
197
|
-
verbose: !!argv.verbose
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
export {
|
|
202
|
-
recompileCommand
|
|
203
|
-
};
|
|
204
|
-
//# sourceMappingURL=recompileCommand.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/lib/checkResult.ts","../../../src/lib/processEx.ts","../../../src/lib/withError.ts","../../../src/lib/withErrnoException.ts","../../../src/lib/safeExit.ts","../../../src/lib/runStepsAsync.ts","../../../src/actions/recompile.ts","../../../src/xy/build/recompileCommand.ts"],"sourcesContent":["import chalk from 'chalk'\n\nexport const checkResult = (name: string, result: number, level: 'error' | 'warn' = 'error', exitOnFail = false) => {\n if (result) {\n const exiting = exitOnFail ? '[Exiting Process]' : '[Continuing]'\n const chalkFunc = level === 'error' ? chalk.red : chalk.yellow\n console[level](chalkFunc(`${name} had ${result} failures ${exiting}`))\n if (exitOnFail) {\n process.exit(result)\n }\n }\n}\n","import chalk from 'chalk'\n\nimport { withErrnoException } from './withErrnoException.ts'\nimport { withError } from './withError.ts'\n\nexport const processEx = (ex: unknown) => {\n const error = typeof ex === 'string' ? new Error(ex) : ex\n const exitCode\n = withErrnoException(error, (error) => {\n if (error.code === 'ENOENT') {\n console.error(chalk.red(`'${error.path}' not found.`))\n } else {\n console.error(chalk.red(`Errno: ${error.code}`))\n }\n return error.errno ?? -1\n })\n ?? withError(error, (error) => {\n console.error(chalk.red(`${error.name}: ${error.message}`))\n return -1\n })\n ?? (() => {\n console.error(chalk.red(`Unexpected Error: ${JSON.stringify(ex, null, 2)}`))\n return -1\n })()\n // This allows us to use a previously set exit code\n process.exit(process.exitCode ?? exitCode)\n}\n","export const withError = <T extends Error = Error>(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ex: any,\n closure: (error: T) => number,\n predicate = (ex: T) => (!!ex.name && !!ex.message),\n) => {\n return predicate(ex as T) ? closure(ex as T) : undefined\n}\n","import { withError } from './withError.ts'\n\nexport const withErrnoException = <T extends NodeJS.ErrnoException = NodeJS.ErrnoException>(\n ex: unknown, closure: (error: T) => number,\n) => {\n return withError<T>(ex, closure, (ex: unknown) => (ex as NodeJS.ErrnoException).errno !== undefined)\n}\n","/** Catch child process a crash and returns the code */\n\nimport { processEx } from './processEx.ts'\n\nconst safeExit = (func: () => number, exitOnFail = true): number => {\n try {\n const result = func()\n if (result && exitOnFail) {\n process.exit(result)\n }\n return result\n } catch (ex) {\n return processEx(ex)\n }\n}\n\nconst safeExitAsync = async (func: () => Promise<number>, exitOnFail = true): Promise<number> => {\n try {\n const result = await func()\n if (result && exitOnFail) {\n process.exit(result)\n }\n return result\n } catch (ex) {\n return processEx(ex)\n }\n}\n\nexport { safeExit, safeExitAsync }\n","import { spawn } from 'node:child_process'\nimport { existsSync } from 'node:fs'\n\nimport chalk from 'chalk'\n\nimport { checkResult } from './checkResult.ts'\nimport type { ScriptStep } from './runSteps.ts'\nimport { safeExitAsync } from './safeExit.ts'\n\nexport const runStepAsync = (name: string, step: ScriptStep, exitOnFail = true, message?: string) => {\n return new Promise<number>((resolve) => {\n const [command, args, config] = step\n if (message) {\n console.log(chalk.gray(message))\n }\n const argList = Array.isArray(args) ? args : args.split(' ')\n if (command === 'node' && !existsSync(argList[0])) {\n throw new Error(`File not found [${argList[0]}]`)\n }\n spawn(command, Array.isArray(args) ? args : args.split(' '), {\n ...config,\n env: { FORCE_COLOR: '3', ...process.env },\n shell: true,\n stdio: 'inherit',\n }).on('close', (code) => {\n if (code) {\n console.error(\n chalk.red(\n `Command Exited With Non-Zero Result [${chalk.gray(code)}] | ${chalk.yellow(command)} ${chalk.white(\n Array.isArray(args) ? args.join(' ') : args,\n )}`,\n ),\n )\n checkResult(name, code, 'error', exitOnFail)\n resolve(code)\n } else {\n resolve(0)\n }\n })\n })\n}\n\nexport const runStepsAsync = async (name: string, steps: ScriptStep[], exitOnFail = true, messages?: string[]) => {\n return await safeExitAsync(async () => {\n const pkgName = process.env.npm_package_name\n console.log(chalk.green(`${name} [${pkgName}]`))\n let result = 0\n for (const [i, step] of steps.entries()) {\n result += await runStepAsync(name, step, exitOnFail, messages?.[i])\n }\n return result\n })\n}\n","import chalk from 'chalk'\n\nimport { runStepsAsync } from '../lib/index.ts'\n\nexport interface RecompileParams {\n incremental?: boolean\n jobs?: number\n pkg?: string\n target?: 'esm' | 'cjs'\n verbose?: boolean\n}\n\nexport interface RecompilePackageParams {\n pkg: string\n target?: 'esm' | 'cjs'\n verbose?: boolean\n}\n\nexport const recompile = async ({\n verbose, target, pkg, incremental,\n}: RecompileParams) => {\n return pkg\n ? await recompilePackage({\n pkg, target, verbose,\n })\n : await recompileAll({\n incremental, target, verbose,\n })\n}\n\nexport const recompilePackage = ({ target, pkg }: RecompilePackageParams) => {\n const targetOptions = target ? ['-t', target] : []\n\n return runStepsAsync(\n `Recompile [${pkg}]`,\n [['yarn', ['workspace', pkg, 'run', 'package-recompile', ...targetOptions]]],\n )\n}\n\nexport const recompileAll = async ({\n jobs, verbose, target, incremental,\n}: RecompileParams) => {\n const start = Date.now()\n const verboseOptions = verbose ? ['--verbose'] : ['--no-verbose']\n const targetOptions = target ? ['-t', target] : []\n const incrementalOptions = incremental\n ? ['--since', '-Apt', '--topological-dev']\n : ['--parallel', '-Apt', '--topological-dev']\n const jobsOptions = jobs ? ['-j', `${jobs}`] : []\n if (jobs) {\n console.log(chalk.blue(`Jobs set to [${jobs}]`))\n }\n\n const result = await runStepsAsync(`Recompile${incremental ? '-Incremental' : ''} [All]`, [\n ['yarn',\n [\n 'workspaces',\n 'foreach',\n ...incrementalOptions,\n ...jobsOptions,\n ...verboseOptions,\n 'run',\n 'package-clean',\n ...targetOptions],\n ],\n ['yarn',\n [\n 'workspaces',\n 'foreach',\n ...incrementalOptions,\n ...jobsOptions,\n ...verboseOptions,\n 'run',\n 'package-compile',\n ...targetOptions]],\n ])\n console.log(\n `${chalk.gray('Recompiled in')} [${chalk.magenta(((Date.now() - start) / 1000).toFixed(2))}] ${chalk.gray('seconds')}`,\n )\n return result\n}\n","import type { CommandModule } from 'yargs'\n\nimport { recompile } from '../../actions/index.ts'\n\nexport const recompileCommand: CommandModule = {\n command: 'recompile [package]',\n describe: 'Re-compile with Typescript & Copy Images',\n builder: (yargs) => {\n return yargs.positional('package', { describe: 'Specific package to re-compile' })\n },\n handler: async (argv) => {\n if (argv.verbose) {\n console.log(`Re-compiling: ${argv.package ?? 'all'}`)\n }\n process.exitCode = await recompile({\n incremental: !!argv.incremental,\n jobs: argv.jobs as number,\n pkg: argv.package as string,\n target: argv.target as 'esm' | 'cjs',\n verbose: !!argv.verbose,\n })\n },\n}\n"],"mappings":";AAAA,OAAO,WAAW;AAEX,IAAM,cAAc,CAAC,MAAc,QAAgB,QAA0B,SAAS,aAAa,UAAU;AAClH,MAAI,QAAQ;AACV,UAAM,UAAU,aAAa,sBAAsB;AACnD,UAAM,YAAY,UAAU,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