outfitter 0.2.1 → 0.2.3

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 (146) hide show
  1. package/README.md +215 -116
  2. package/dist/actions.d.ts +2 -0
  3. package/dist/actions.js +34 -0
  4. package/dist/cli.js +29 -5
  5. package/dist/commands/add.d.ts +54 -0
  6. package/dist/commands/add.js +16 -0
  7. package/dist/commands/check.d.ts +91 -0
  8. package/dist/commands/check.js +14 -0
  9. package/dist/commands/demo.d.ts +21 -0
  10. package/dist/commands/demo.js +8 -0
  11. package/dist/commands/docs-module-loader.d.ts +2 -0
  12. package/dist/commands/docs-module-loader.js +8 -0
  13. package/dist/commands/doctor.d.ts +2 -0
  14. package/dist/commands/doctor.js +13 -0
  15. package/dist/commands/init.d.ts +7 -0
  16. package/dist/commands/init.js +31 -0
  17. package/dist/commands/migrate-kit.d.ts +2 -0
  18. package/dist/commands/migrate-kit.js +15 -0
  19. package/dist/commands/repo.d.ts +3 -0
  20. package/dist/commands/repo.js +9 -0
  21. package/dist/commands/scaffold.d.ts +4 -0
  22. package/dist/commands/scaffold.js +31 -0
  23. package/dist/commands/shared-deps.d.ts +36 -0
  24. package/dist/commands/shared-deps.js +10 -0
  25. package/dist/commands/update-planner.d.ts +58 -0
  26. package/dist/commands/update-planner.js +8 -0
  27. package/dist/commands/update-workspace.d.ts +76 -0
  28. package/dist/commands/update-workspace.js +16 -0
  29. package/dist/commands/update.d.ts +113 -0
  30. package/dist/commands/update.js +21 -0
  31. package/dist/create/index.d.ts +5 -0
  32. package/dist/create/index.js +29 -0
  33. package/dist/create/planner.d.ts +3 -0
  34. package/dist/create/planner.js +21 -0
  35. package/dist/create/presets.d.ts +3 -0
  36. package/dist/create/presets.js +12 -0
  37. package/dist/create/types.d.ts +2 -0
  38. package/dist/create/types.js +1 -0
  39. package/dist/engine/blocks.d.ts +3 -0
  40. package/dist/engine/blocks.js +12 -0
  41. package/dist/engine/collector.d.ts +2 -0
  42. package/dist/engine/collector.js +8 -0
  43. package/dist/engine/config.d.ts +3 -0
  44. package/dist/engine/config.js +12 -0
  45. package/dist/engine/executor.d.ts +3 -0
  46. package/dist/engine/executor.js +16 -0
  47. package/dist/engine/index.d.ts +8 -0
  48. package/dist/engine/index.js +59 -0
  49. package/dist/engine/names.d.ts +2 -0
  50. package/dist/engine/names.js +16 -0
  51. package/dist/engine/post-scaffold.d.ts +3 -0
  52. package/dist/engine/post-scaffold.js +8 -0
  53. package/dist/engine/render-plan.d.ts +7 -0
  54. package/dist/engine/render-plan.js +9 -0
  55. package/dist/engine/template.d.ts +3 -0
  56. package/dist/engine/template.js +17 -0
  57. package/dist/engine/types.d.ts +2 -0
  58. package/dist/engine/types.js +8 -0
  59. package/dist/engine/workspace.d.ts +3 -0
  60. package/dist/engine/workspace.js +13 -0
  61. package/dist/index.d.ts +265 -50
  62. package/dist/index.js +157 -3
  63. package/dist/manifest.d.ts +71 -0
  64. package/dist/manifest.js +16 -0
  65. package/dist/output-mode.d.ts +2 -0
  66. package/dist/output-mode.js +10 -0
  67. package/dist/shared/chunk-b0y0cwkr.js +5533 -0
  68. package/dist/shared/outfitter-193jvzg4.d.ts +5 -0
  69. package/dist/shared/outfitter-1dd0k853.js +194 -0
  70. package/dist/shared/outfitter-1h7k8xxt.js +29 -0
  71. package/dist/shared/outfitter-1qwpjt6w.js +125 -0
  72. package/dist/shared/outfitter-2ngep1h2.d.ts +5 -0
  73. package/dist/shared/outfitter-2np85etz.js +95 -0
  74. package/dist/shared/outfitter-33w361tc.d.ts +18 -0
  75. package/dist/shared/outfitter-344t1r38.js +1 -0
  76. package/dist/shared/outfitter-3weh61w7.d.ts +25 -0
  77. package/dist/shared/outfitter-4s9meh3j.js +221 -0
  78. package/dist/shared/outfitter-6a4bq054.js +322 -0
  79. package/dist/shared/outfitter-6bkqjk86.d.ts +3 -0
  80. package/dist/shared/outfitter-6gc3g5wk.js +98 -0
  81. package/dist/shared/outfitter-7cv5fg1m.js +61 -0
  82. package/dist/shared/outfitter-7ha7p61k.d.ts +6 -0
  83. package/dist/shared/outfitter-7r12fj7f.js +30 -0
  84. package/dist/shared/outfitter-8y2dfx6n.js +11 -0
  85. package/dist/shared/outfitter-9c8edfsn.js +715 -0
  86. package/dist/shared/outfitter-9x1brcmq.js +184 -0
  87. package/dist/shared/outfitter-a79xrm12.d.ts +17 -0
  88. package/dist/shared/outfitter-amc4jbs1.d.ts +50 -0
  89. package/dist/shared/outfitter-ara3djt0.js +73 -0
  90. package/dist/shared/outfitter-avhm5z6w.js +82 -0
  91. package/dist/shared/outfitter-b5nd42y4.d.ts +45 -0
  92. package/dist/shared/outfitter-dd0btgec.d.ts +40 -0
  93. package/dist/shared/outfitter-e2zz5wv7.d.ts +51 -0
  94. package/dist/shared/outfitter-ehp18x1n.js +1 -0
  95. package/dist/shared/outfitter-fnsmx3xg.js +750 -0
  96. package/dist/shared/outfitter-gdvm5c0b.d.ts +4 -0
  97. package/dist/shared/outfitter-gp4v5gkf.js +322 -0
  98. package/dist/shared/outfitter-h1mnzzd1.d.ts +14 -0
  99. package/dist/shared/outfitter-hpymx4m9.js +184 -0
  100. package/dist/shared/outfitter-hvsaxgcp.js +1 -0
  101. package/dist/shared/outfitter-j8yc7294.d.ts +22 -0
  102. package/dist/shared/outfitter-jyxwznk1.js +404 -0
  103. package/dist/shared/outfitter-k112c427.js +21 -0
  104. package/dist/shared/outfitter-k56rmt24.d.ts +30 -0
  105. package/dist/shared/outfitter-ksa1pp4t.d.ts +4 -0
  106. package/dist/shared/outfitter-mdt37hqm.js +4 -0
  107. package/dist/shared/outfitter-mtbpabf3.js +91 -0
  108. package/dist/shared/outfitter-nm4m0v6x.d.ts +131 -0
  109. package/dist/shared/outfitter-nmeecf1b.js +531 -0
  110. package/dist/shared/outfitter-npyfbdmc.d.ts +6 -0
  111. package/dist/shared/outfitter-pxt58tsq.js +582 -0
  112. package/dist/shared/outfitter-q9agarmb.js +42 -0
  113. package/dist/shared/outfitter-qfgj5xpq.js +70 -0
  114. package/dist/shared/outfitter-qfh36ddg.d.ts +66 -0
  115. package/dist/shared/outfitter-s6k8y2p4.js +269 -0
  116. package/dist/shared/outfitter-sftf1s26.js +199 -0
  117. package/dist/shared/outfitter-sg7ncy4a.d.ts +51 -0
  118. package/dist/shared/outfitter-sgtq57qr.d.ts +5 -0
  119. package/dist/shared/outfitter-txre6cdn.d.ts +60 -0
  120. package/dist/shared/outfitter-vh4xgb93.js +35 -0
  121. package/dist/shared/outfitter-ya44h1km.js +191 -0
  122. package/dist/shared/outfitter-zwyvewr1.js +36 -0
  123. package/dist/targets/index.d.ts +4 -0
  124. package/dist/targets/index.js +29 -0
  125. package/dist/targets/registry.d.ts +3 -0
  126. package/dist/targets/registry.js +28 -0
  127. package/dist/targets/types.d.ts +2 -0
  128. package/dist/targets/types.js +1 -0
  129. package/package.json +182 -29
  130. package/templates/basic/.lefthook.yml.template +4 -5
  131. package/templates/basic/package.json.template +10 -5
  132. package/templates/cli/.lefthook.yml.template +4 -5
  133. package/templates/cli/biome.json.template +2 -15
  134. package/templates/cli/package.json.template +11 -7
  135. package/templates/daemon/.lefthook.yml.template +4 -5
  136. package/templates/daemon/biome.json.template +2 -15
  137. package/templates/daemon/package.json.template +11 -7
  138. package/templates/mcp/.lefthook.yml.template +4 -5
  139. package/templates/mcp/biome.json.template +2 -15
  140. package/templates/mcp/package.json.template +11 -7
  141. package/templates/minimal/.gitignore.template +30 -0
  142. package/templates/minimal/.lefthook.yml.template +26 -0
  143. package/templates/minimal/package.json.template +46 -0
  144. package/templates/minimal/src/index.ts.template +26 -0
  145. package/templates/minimal/tsconfig.json.template +34 -0
  146. package/dist/shared/chunk-f3sch043.js +0 -1858
@@ -18,24 +18,28 @@
18
18
  "build": "bun build src/cli.ts --outdir dist --target bun && bun build src/index.ts --outdir dist --target bun --sourcemap",
19
19
  "dev": "bun --watch src/cli.ts",
20
20
  "typecheck": "tsc --noEmit",
21
+ "check": "ultracite check",
22
+ "verify:ci": "bun run typecheck && bun run check && bun run build && bun run test",
21
23
  "test": "bun test",
22
24
  "test:watch": "bun test --watch",
23
25
  "lint": "biome check .",
24
26
  "lint:fix": "biome check . --write",
25
- "format": "biome format --write ."
27
+ "format": "biome format --write .",
28
+ "clean:artifacts": "rm -rf dist .turbo"
26
29
  },
27
30
  "dependencies": {
31
+ "@outfitter/kit": "^0.1.0-rc.0",
28
32
  "@outfitter/cli": "^0.1.0-rc.0",
29
- "@outfitter/contracts": "^0.1.0-rc.0",
30
- "@outfitter/config": "^0.1.0-rc.0",
31
33
  "@outfitter/logging": "^0.1.0-rc.0",
32
34
  "commander": "^12.0.0"
33
35
  },
34
36
  "devDependencies": {
35
- "@biomejs/biome": "^1.9.0",
36
- "@types/bun": "^1.0.0",
37
- "lefthook": "^1.11.0",
38
- "typescript": "^5.5.0"
37
+ "@biomejs/biome": "^2.3.12",
38
+ "@outfitter/tooling": "^0.2.1",
39
+ "@types/bun": "^1.3.7",
40
+ "lefthook": "^2.0.16",
41
+ "typescript": "^5.9.3",
42
+ "ultracite": "^7.1.1"
39
43
  },
40
44
  "license": "MIT"
41
45
  }
@@ -20,8 +20,7 @@ pre-commit:
20
20
  pre-push:
21
21
  parallel: false
22
22
  commands:
23
- build:
24
- run: bun run build
25
-
26
- test:
27
- run: bun run test
23
+ verify:
24
+ # TDD-aware strict verification with RED-phase branch carveout
25
+ # (*-tests, */tests, *_tests).
26
+ run: bunx @outfitter/tooling pre-push
@@ -1,17 +1,4 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
3
- "organizeImports": {
4
- "enabled": true
5
- },
6
- "linter": {
7
- "enabled": true,
8
- "rules": {
9
- "recommended": true
10
- }
11
- },
12
- "formatter": {
13
- "enabled": true,
14
- "indentStyle": "tab",
15
- "lineWidth": 100
16
- }
2
+ "$schema": "https://biomejs.dev/schemas/2.3.12/schema.json",
3
+ "extends": ["ultracite/config/biome/core/biome.jsonc"]
17
4
  }
@@ -20,25 +20,29 @@
20
20
  "dev": "bun --watch src/daemon.ts -- --foreground",
21
21
  "dev:daemon": "bun --watch src/daemon.ts -- --foreground",
22
22
  "typecheck": "tsc --noEmit",
23
+ "check": "ultracite check",
24
+ "verify:ci": "bun run typecheck && bun run check && bun run build && bun run test",
23
25
  "test": "bun test",
24
26
  "test:watch": "bun test --watch",
25
27
  "lint": "biome check .",
26
28
  "lint:fix": "biome check . --write",
27
- "format": "biome format --write ."
29
+ "format": "biome format --write .",
30
+ "clean:artifacts": "rm -rf dist .turbo"
28
31
  },
29
32
  "dependencies": {
33
+ "@outfitter/kit": "^0.1.0-rc.0",
30
34
  "@outfitter/daemon": "^0.1.0-rc.0",
31
35
  "@outfitter/cli": "^0.1.0-rc.0",
32
- "@outfitter/contracts": "^0.1.0-rc.0",
33
- "@outfitter/config": "^0.1.0-rc.0",
34
36
  "@outfitter/logging": "^0.1.0-rc.0",
35
37
  "commander": "^12.0.0"
36
38
  },
37
39
  "devDependencies": {
38
- "@biomejs/biome": "^1.9.0",
39
- "@types/bun": "^1.0.0",
40
- "lefthook": "^1.11.0",
41
- "typescript": "^5.5.0"
40
+ "@biomejs/biome": "^2.3.12",
41
+ "@outfitter/tooling": "^0.2.1",
42
+ "@types/bun": "^1.3.7",
43
+ "lefthook": "^2.0.16",
44
+ "typescript": "^5.9.3",
45
+ "ultracite": "^7.1.1"
42
46
  },
43
47
  "license": "MIT"
44
48
  }
@@ -20,8 +20,7 @@ pre-commit:
20
20
  pre-push:
21
21
  parallel: false
22
22
  commands:
23
- build:
24
- run: bun run build
25
-
26
- test:
27
- run: bun run test
23
+ verify:
24
+ # TDD-aware strict verification with RED-phase branch carveout
25
+ # (*-tests, */tests, *_tests).
26
+ run: bunx @outfitter/tooling pre-push
@@ -1,17 +1,4 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
3
- "organizeImports": {
4
- "enabled": true
5
- },
6
- "linter": {
7
- "enabled": true,
8
- "rules": {
9
- "recommended": true
10
- }
11
- },
12
- "formatter": {
13
- "enabled": true,
14
- "indentStyle": "tab",
15
- "lineWidth": 100
16
- }
2
+ "$schema": "https://biomejs.dev/schemas/2.3.12/schema.json",
3
+ "extends": ["ultracite/config/biome/core/biome.jsonc"]
17
4
  }
@@ -18,24 +18,28 @@
18
18
  "build": "bun build src/server.ts --outdir dist --target bun && bun build src/index.ts --outdir dist --target bun --sourcemap",
19
19
  "dev": "bun --watch src/server.ts",
20
20
  "typecheck": "tsc --noEmit",
21
+ "check": "ultracite check",
22
+ "verify:ci": "bun run typecheck && bun run check && bun run build && bun run test",
21
23
  "test": "bun test",
22
24
  "test:watch": "bun test --watch",
23
25
  "lint": "biome check .",
24
26
  "lint:fix": "biome check . --write",
25
- "format": "biome format --write ."
27
+ "format": "biome format --write .",
28
+ "clean:artifacts": "rm -rf dist .turbo"
26
29
  },
27
30
  "dependencies": {
28
31
  "@modelcontextprotocol/sdk": "^1.0.0",
32
+ "@outfitter/kit": "^0.1.0-rc.0",
29
33
  "@outfitter/mcp": "^0.1.0-rc.0",
30
- "@outfitter/contracts": "^0.1.0-rc.0",
31
- "@outfitter/config": "^0.1.0-rc.0",
32
34
  "@outfitter/logging": "^0.1.0-rc.0"
33
35
  },
34
36
  "devDependencies": {
35
- "@biomejs/biome": "^1.9.0",
36
- "@types/bun": "^1.0.0",
37
- "lefthook": "^1.11.0",
38
- "typescript": "^5.5.0"
37
+ "@biomejs/biome": "^2.3.12",
38
+ "@outfitter/tooling": "^0.2.1",
39
+ "@types/bun": "^1.3.7",
40
+ "lefthook": "^2.0.16",
41
+ "typescript": "^5.9.3",
42
+ "ultracite": "^7.1.1"
39
43
  },
40
44
  "license": "MIT"
41
45
  }
@@ -0,0 +1,30 @@
1
+ # Dependencies
2
+ node_modules/
3
+
4
+ # Build output
5
+ dist/
6
+
7
+ # IDE
8
+ .idea/
9
+ .vscode/
10
+ *.swp
11
+ *.swo
12
+
13
+ # OS
14
+ .DS_Store
15
+ Thumbs.db
16
+
17
+ # Logs
18
+ *.log
19
+ npm-debug.log*
20
+
21
+ # Environment
22
+ .env
23
+ .env.local
24
+ .env.*.local
25
+
26
+ # Test coverage
27
+ coverage/
28
+
29
+ # Bun
30
+ bun.lockb
@@ -0,0 +1,26 @@
1
+ # Lefthook configuration
2
+ # https://github.com/evilmartians/lefthook
3
+
4
+ pre-commit:
5
+ parallel: true
6
+ commands:
7
+ format:
8
+ glob: "*.{js,ts,tsx,json,md}"
9
+ run: bunx biome format --no-errors-on-unmatched {staged_files}
10
+ stage_fixed: true
11
+
12
+ lint:
13
+ glob: "*.{js,ts,tsx}"
14
+ run: bunx biome lint --no-errors-on-unmatched {staged_files}
15
+
16
+ typecheck:
17
+ glob: "*.{ts,tsx}"
18
+ run: bun run typecheck
19
+
20
+ pre-push:
21
+ parallel: false
22
+ commands:
23
+ verify:
24
+ # TDD-aware strict verification with RED-phase branch carveout
25
+ # (*-tests, */tests, *_tests).
26
+ run: bunx @outfitter/tooling pre-push
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "version": "{{version}}",
4
+ "description": "{{description}}",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "exports": {
12
+ ".": {
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ }
17
+ }
18
+ },
19
+ "scripts": {
20
+ "build": "bun build ./src/index.ts --outdir=dist --format=esm",
21
+ "dev": "bun run --watch src/index.ts",
22
+ "test": "bun test",
23
+ "test:watch": "bun test --watch",
24
+ "typecheck": "tsc --noEmit",
25
+ "check": "ultracite check",
26
+ "verify:ci": "bun run typecheck && bun run check && bun run build && bun run test",
27
+ "lint": "biome check .",
28
+ "lint:fix": "biome check . --write",
29
+ "format": "biome format --write .",
30
+ "clean:artifacts": "rm -rf dist .turbo",
31
+ "clean": "rm -rf dist"
32
+ },
33
+ "devDependencies": {
34
+ "@biomejs/biome": "^2.3.12",
35
+ "@outfitter/tooling": "^0.2.1",
36
+ "@types/bun": "^1.3.7",
37
+ "lefthook": "^2.0.16",
38
+ "typescript": "^5.9.3",
39
+ "ultracite": "^7.1.1"
40
+ },
41
+ "engines": {
42
+ "bun": ">=1.3.7"
43
+ },
44
+ "keywords": [],
45
+ "license": "MIT"
46
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * {{projectName}}
3
+ *
4
+ * {{description}}
5
+ *
6
+ * @packageDocumentation
7
+ */
8
+
9
+ /**
10
+ * Main entry point for {{projectName}}.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * import { main } from "{{packageName}}";
15
+ *
16
+ * main();
17
+ * ```
18
+ */
19
+ export function main(): void {
20
+ console.log("Hello from {{projectName}}!");
21
+ }
22
+
23
+ // Run if executed directly
24
+ if (import.meta.main) {
25
+ main();
26
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "target": "ESNext",
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler",
7
+ "lib": ["ESNext"],
8
+ "types": ["@types/bun"],
9
+
10
+ "strict": true,
11
+ "noImplicitAny": true,
12
+ "strictNullChecks": true,
13
+ "noUncheckedIndexedAccess": true,
14
+ "exactOptionalPropertyTypes": true,
15
+ "noPropertyAccessFromIndexSignature": true,
16
+ "noImplicitReturns": true,
17
+ "noFallthroughCasesInSwitch": true,
18
+
19
+ "declaration": true,
20
+ "declarationMap": true,
21
+ "sourceMap": true,
22
+ "outDir": "./dist",
23
+ "rootDir": "./src",
24
+
25
+ "esModuleInterop": true,
26
+ "forceConsistentCasingInFileNames": true,
27
+ "isolatedModules": true,
28
+ "verbatimModuleSyntax": true,
29
+ "skipLibCheck": true,
30
+ "resolveJsonModule": true
31
+ },
32
+ "include": ["src/**/*"],
33
+ "exclude": ["node_modules", "dist"]
34
+ }