@ariestools/toolchain 8.7.28 → 8.7.29

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.
Files changed (35) hide show
  1. package/README.md +27 -0
  2. package/dist/actions/repo-init/index.d.ts +7 -0
  3. package/dist/actions/repo-init/index.d.ts.map +1 -0
  4. package/dist/actions/repo-init/prompts.d.ts +4 -0
  5. package/dist/actions/repo-init/prompts.d.ts.map +1 -0
  6. package/dist/actions/repo-init/resolvePlan.d.ts +7 -0
  7. package/dist/actions/repo-init/resolvePlan.d.ts.map +1 -0
  8. package/dist/actions/repo-init/scaffold.d.ts +10 -0
  9. package/dist/actions/repo-init/scaffold.d.ts.map +1 -0
  10. package/dist/actions/repo-init/skillsInstall.d.ts +12 -0
  11. package/dist/actions/repo-init/skillsInstall.d.ts.map +1 -0
  12. package/dist/actions/repo-init/templateVars.d.ts +5 -0
  13. package/dist/actions/repo-init/templateVars.d.ts.map +1 -0
  14. package/dist/actions/repo-init/types.d.ts +40 -0
  15. package/dist/actions/repo-init/types.d.ts.map +1 -0
  16. package/dist/actions/repo-init.d.ts +1 -13
  17. package/dist/actions/repo-init.d.ts.map +1 -1
  18. package/dist/actions/skills/passthrough.d.ts +4 -0
  19. package/dist/actions/skills/passthrough.d.ts.map +1 -1
  20. package/dist/bin/xy.mjs +719 -343
  21. package/dist/bin/xy.mjs.map +1 -1
  22. package/dist/xy/common/repo/initCommand.d.ts.map +1 -1
  23. package/package.json +8 -8
  24. package/templates/repo/cli/package/package.json.tmpl +5 -5
  25. package/templates/repo/cli/package/tsconfig.json.tmpl +4 -0
  26. package/templates/repo/cli/root/AGENTS.md.tmpl +34 -0
  27. package/templates/repo/cli/root/CLAUDE.md.tmpl +15 -15
  28. package/templates/repo/cli/root/eslint.config.ts.tmpl +16 -0
  29. package/templates/repo/cli/root/gitignore.tmpl +6 -9
  30. package/templates/repo/cli/root/package.json.tmpl +16 -14
  31. package/templates/repo/cli/root/tsconfig.json.tmpl +4 -0
  32. package/templates/repo/cli/root/{vitest.config.ts → vitest.config.ts.tmpl} +2 -2
  33. package/templates/repo/cli/package/tsconfig.json +0 -4
  34. package/templates/repo/cli/root/eslint.config.ts +0 -20
  35. package/templates/repo/cli/root/tsconfig.json +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"initCommand.d.ts","sourceRoot":"","sources":["../../../../src/xy/common/repo/initCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAK1C,eAAO,MAAM,WAAW,EAAE,aAgEzB,CAAA"}
1
+ {"version":3,"file":"initCommand.d.ts","sourceRoot":"","sources":["../../../../src/xy/common/repo/initCommand.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAa1C,eAAO,MAAM,WAAW,EAAE,aA0FzB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariestools/toolchain",
3
- "version": "8.7.28",
3
+ "version": "8.7.29",
4
4
  "description": "Unified TypeScript toolchain for XY Labs — build, lint, test, deploy with auto-detected package manager and React support",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -52,14 +52,14 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "cosmiconfig-typescript-loader": "~6.3.0",
55
- "esbuild": "~0.28.1",
56
- "@ariestools/eslint-config-flat": "~8.7.28"
55
+ "esbuild": "~0.28.2",
56
+ "@ariestools/eslint-config-flat": "~8.7.29"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@inquirer/core": "~11.2.1",
60
60
  "@types/cross-spawn": "~6.0.6",
61
61
  "@types/eslint": "~9.6.1",
62
- "@types/node": "~26.1.2",
62
+ "@types/node": "~26.2.0",
63
63
  "@types/semver": "~7.8.0",
64
64
  "@types/yargs": "~17.0.35",
65
65
  "@typescript-eslint/parser": "~8.66.0",
@@ -67,7 +67,7 @@
67
67
  "chalk": "~6.0.0",
68
68
  "cosmiconfig": "~10.0.0",
69
69
  "cross-spawn": "~7.0.6",
70
- "eslint": "~10.8.0",
70
+ "eslint": "~10.8.1",
71
71
  "eslint-import-resolver-typescript": "~4.4.5",
72
72
  "find-up": "~8.0.0",
73
73
  "get-tsconfig": "~4.14.1",
@@ -80,14 +80,14 @@
80
80
  "skills": "~1.5.22",
81
81
  "sort-package-json": "~4.0.0",
82
82
  "table": "~6.9.0",
83
- "tsx": "~4.23.9",
83
+ "tsx": "~4.23.11",
84
84
  "typescript": "~6.0.3",
85
85
  "vite": "~8.2.1",
86
86
  "vitest": "~4.1.10",
87
87
  "yaml": "~2.9.0",
88
88
  "yargs": "~18.1.0",
89
- "@ariestools/toolchain": "~8.7.28",
90
- "@ariestools/tsconfig": "~8.7.28"
89
+ "@ariestools/toolchain": "~8.7.29",
90
+ "@ariestools/tsconfig": "~8.7.29"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "eslint": "^10.3",
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "{{npmScope}}/{{packageName}}",
2
+ "name": "{{scopedPackageName}}",
3
3
  "version": "0.1.0",
4
4
  "description": "{{description}}",
5
5
  "keywords": [
@@ -43,17 +43,17 @@
43
43
  "package-compile": "package-compile"
44
44
  },
45
45
  "dependencies": {
46
- "chalk": "~5.6.2",
46
+ "chalk": "~6.0.0",
47
47
  "yargs": "~18.0.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/yargs": "~17.0.35",
51
51
  "@ariestools/toolchain": "{{toolchainRange}}",
52
- "@ariestools/tsconfig": "{{toolchainRange}}",
53
- "typescript": "^5.9 || ^6.0"
52
+ "{{tsconfigPackage}}": "{{toolchainRange}}",
53
+ "typescript": "~6.0.3"
54
54
  },
55
55
  "engines": {
56
- "node": ">=18.17.1"
56
+ "node": ">=22"
57
57
  },
58
58
  "engineStrict": true,
59
59
  "publishConfig": {
@@ -0,0 +1,4 @@
1
+ {
2
+ "exclude": ["dist"],
3
+ "extends": "{{tsconfigPackage}}"
4
+ }
@@ -0,0 +1,34 @@
1
+ # AGENTS.md
2
+
3
+ This file provides guidance to coding agents when working with code in this repository.
4
+
5
+ ## Overview
6
+
7
+ {{layoutDescription}}
8
+
9
+ ## Commands
10
+
11
+ All `xy` commands must be run from the repo root{{packageDirNote}}.
12
+
13
+ ```sh
14
+ {{xyCommand}} build
15
+ {{xyCommand}} compile
16
+ {{xyCommand}} lint
17
+ {{xyCommand}} fix
18
+ {{xyCommand}} test
19
+ {{xyCommand}} deplint
20
+ ```
21
+
22
+ ## Architecture
23
+
24
+ - **Package manager**: {{pmName}}
25
+ - **Layout**: {{layoutLabel}}
26
+ - **Lint**: `{{eslintConfigPackage}}`
27
+ - **TypeScript**: extends `{{tsconfigPackage}}`
28
+
29
+ ### CLI structure
30
+
31
+ - Entry: `{{srcPrefix}}bin/{{packageName}}.ts`
32
+ - Bootstrap: `{{srcPrefix}}{{packageName}}.ts`
33
+ - Commands: `{{srcPrefix}}commands/`
34
+ - Actions: `{{srcPrefix}}actions/`
@@ -4,33 +4,33 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
 
5
5
  ## Overview
6
6
 
7
- Monorepo for {{projectName}} (`{{npmScope}}/{{packageName}}`). Currently contains a single package (`packages/{{packageName}}`) that provides the `{{packageName}}` CLI command, built with yargs.
7
+ {{layoutDescription}}
8
8
 
9
9
  ## Commands
10
10
 
11
- All `xy` commands must be run from the repo root, never from inside a package directory.
11
+ All `xy` commands must be run from the repo root{{packageDirNote}}.
12
12
 
13
13
  ```sh
14
- {{pmName}} xy build # Full build (all packages)
15
- {{pmName}} xy compile # TypeScript compilation only
16
- {{pmName}} xy lint # Lint all packages
17
- {{pmName}} xy lint {{npmScope}}/{{packageName}} # Lint a single package
18
- {{pmName}} xy fix # Auto-fix lint issues
19
- {{pmName}} xy test # Run all tests
20
- {{pmName}} xy deplint # Verify dependency declarations
14
+ {{xyCommand}} build # Full build
15
+ {{xyCommand}} compile # TypeScript compilation only
16
+ {{xyCommand}} lint # Lint
17
+ {{xyCommand}} fix # Auto-fix lint issues
18
+ {{xyCommand}} test # Run all tests
19
+ {{xyCommand}} deplint # Verify dependency declarations
21
20
  ```
22
21
 
23
22
  ## Architecture
24
23
 
25
- - **Package manager**: {{pmName}} (workspaces defined in {{pmName}}-workspace.yaml)
24
+ - **Package manager**: {{pmName}}
25
+ - **Layout**: {{layoutLabel}}
26
26
  - **Build**: `xy compile` emits declarations with `tsc` and ESM JavaScript with esbuild in `dist/`
27
27
  - **Test**: Vitest (node environment)
28
- - **Lint**: ESLint flat config via `@ariestools/eslint-config-flat`
28
+ - **Lint**: ESLint via `{{eslintConfigPackage}}` (`recommendedConfig`)
29
29
 
30
30
  ### CLI structure
31
31
 
32
32
  The `{{packageName}}` CLI follows the yargs command pattern:
33
- - Entry point: `src/bin/{{packageName}}.ts`
34
- - Yargs bootstrap: `src/{{packageName}}.ts`
35
- - Commands: `src/commands/` (each exports a `CommandModule`)
36
- - Actions: `src/actions/` (business logic invoked by commands)
33
+ - Entry point: `{{srcPrefix}}bin/{{packageName}}.ts`
34
+ - Yargs bootstrap: `{{srcPrefix}}{{packageName}}.ts`
35
+ - Commands: `{{srcPrefix}}commands/` (each exports a `CommandModule`)
36
+ - Actions: `{{srcPrefix}}actions/` (business logic invoked by commands)
@@ -0,0 +1,16 @@
1
+ import { fileURLToPath } from 'node:url'
2
+
3
+ import { recommendedConfig } from '{{eslintConfigPackage}}'
4
+ import type { Linter } from 'eslint'
5
+ import { includeIgnoreFile } from 'eslint/config'
6
+
7
+ const config: Linter.Config[] = [
8
+ includeIgnoreFile(fileURLToPath(new URL('.gitignore', import.meta.url)), {
9
+ gitignoreResolution: true,
10
+ name: 'repository .gitignore',
11
+ }),
12
+ { ignores: ['**/dist/**', '**/build/**', '**/coverage/**', '**/node_modules/**'] },
13
+ ...recommendedConfig({ tier: 3, isTypeChecked: true }),
14
+ ]
15
+
16
+ export default config
@@ -1,10 +1,8 @@
1
- # Build outputs (root)
1
+ # Build outputs
2
2
  /build
3
3
  /dist
4
4
  /docs
5
5
  /storybook-static
6
-
7
- # Build outputs (packages)
8
6
  packages/*/build
9
7
  packages/*/dist
10
8
  packages/*/docs
@@ -34,14 +32,13 @@ node_modules
34
32
  # Lint
35
33
  .eslintcache
36
34
 
37
- # Claude Code
38
- .claude
35
+ # Claude Code local overrides / worktrees (keep project skills under .claude/skills)
39
36
  CLAUDE.local.md
40
-
41
- # Claude Code worktrees
42
37
  .claude-worktrees
38
+ .claude/worktrees
39
+
40
+ # Agent local overrides (keep project skills under .agents/skills)
41
+ .agents/worktrees
43
42
 
44
43
  tmp
45
- AGENTS.md
46
- .agents
47
44
  output
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "{{npmScope}}/{{projectName}}-build",
3
- "private": true,
2
+ "name": "{{rootPackageName}}",
3
+ "private": {{rootPrivate}},
4
4
  "description": "{{description}}",
5
5
  "keywords": [
6
6
  "xylabs",
@@ -26,6 +26,10 @@
26
26
  "sideEffects": false,
27
27
  "type": "module",
28
28
  "scripts": {
29
+ "build": "{{xyCommand}} build",
30
+ "compile": "{{xyCommand}} compile",
31
+ "lint": "{{xyCommand}} lint",
32
+ "fix": "{{xyCommand}} fix",
29
33
  "test": "vitest run",
30
34
  "test:coverage": "vitest run --coverage"
31
35
  },
@@ -33,22 +37,20 @@
33
37
  "packages/*"
34
38
  ],
35
39
  "devDependencies": {
36
- "@types/node": "~25.5.2",
37
- "@vitest/coverage-v8": "~4.1.3",
38
- "chalk": "~5.6.2",
39
- "@ariestools/eslint-config-flat": "{{toolchainRange}}",
40
+ "@types/node": "~26.1.2",
41
+ "@vitest/coverage-v8": "~4.1.10",
42
+ "{{eslintConfigPackage}}": "{{toolchainRange}}",
40
43
  "@ariestools/toolchain": "{{toolchainRange}}",
41
- "@ariestools/tsconfig": "{{toolchainRange}}",
42
- "eslint": "~10.2.0",
43
- "eslint-import-resolver-typescript": "~4.4.4",
44
- "typescript": "^5.9 || ^6.0",
45
- "vite": "^8.0.7",
46
- "vitest": "^4.1.3",
47
- "yargs": "~18.0.0"
44
+ "{{tsconfigPackage}}": "{{toolchainRange}}",
45
+ "eslint": "~10.8.0",
46
+ "eslint-import-resolver-typescript": "~4.4.5",
47
+ "typescript": "~6.0.3",
48
+ "vite": "~8.2.1",
49
+ "vitest": "~4.1.10"
48
50
  },
49
51
  "packageManager": "{{packageManager}}",
50
52
  "engineStrict": true,
51
53
  "volta": {
52
- "node": "22.3.0"
54
+ "node": "22.14.0"
53
55
  }
54
56
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "exclude": [".yarn", "dist", "docs", "**/dist", "**/docs", "coverage", "**/coverage"],
3
+ "extends": "{{tsconfigPackage}}"
4
+ }
@@ -6,7 +6,7 @@ export default defineConfig({
6
6
  provider: 'v8' as const,
7
7
  reporter: ['text', 'lcov', 'json-summary'],
8
8
  reportsDirectory: './coverage',
9
- include: ['packages/*/src/**/*.{ts,tsx,mts,cts}'],
9
+ include: ['{{coverageInclude}}'],
10
10
  exclude: [
11
11
  '**/*.spec.{ts,tsx,mts,cts}',
12
12
  '**/*.test.{ts,tsx,mts,cts}',
@@ -23,7 +23,7 @@ export default defineConfig({
23
23
  test: {
24
24
  name: 'node',
25
25
  environment: 'node',
26
- include: ['packages/*/src/spec/**/*.spec.{ts,tsx,mts,cts}'],
26
+ include: ['{{testInclude}}'],
27
27
  },
28
28
  },
29
29
  ],
@@ -1,4 +0,0 @@
1
- {
2
- "exclude": ["dist"],
3
- "extends": "@ariestools/tsconfig"
4
- }
@@ -1,20 +0,0 @@
1
- import {
2
- importConfig,
3
- rulesConfig,
4
- typescriptTypeCheckedConfig,
5
- unicornConfig,
6
- workspacesConfig,
7
- } from '@ariestools/eslint-config-flat'
8
- import type { Linter } from 'eslint'
9
-
10
- const config: Linter.Config[] = [
11
- { ignores: ['.yarn', 'dist', 'build', 'coverage', 'docs', '**/dist', '**/build', '**/docs'] },
12
- unicornConfig,
13
- workspacesConfig,
14
- rulesConfig,
15
- ...typescriptTypeCheckedConfig,
16
- ...importConfig,
17
- { rules: { 'import-x/no-cycle': ['warn', { maxDepth: 5 }] } },
18
- ]
19
-
20
- export default config
@@ -1,4 +0,0 @@
1
- {
2
- "exclude": [".yarn", "dist", "docs", "**/dist", "**/docs"],
3
- "extends": "@ariestools/tsconfig"
4
- }