@kb-labs/scaffold 2.104.0 → 2.106.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.
Files changed (2) hide show
  1. package/dist/manifest.json +132 -0
  2. package/package.json +21 -21
@@ -0,0 +1,132 @@
1
+ {
2
+ "schema": "kb.plugin/3",
3
+ "id": "@kb-labs/scaffold",
4
+ "version": "0.1.0",
5
+ "display": {
6
+ "name": "Scaffold",
7
+ "description": "Entity scaffolder for plugins and adapters",
8
+ "tags": [
9
+ "scaffold",
10
+ "generator",
11
+ "dx"
12
+ ]
13
+ },
14
+ "cli": {
15
+ "groupMeta": [
16
+ {
17
+ "path": "scaffold",
18
+ "describe": "Scaffold KB Labs entities"
19
+ }
20
+ ],
21
+ "commands": [
22
+ {
23
+ "path": "scaffold run",
24
+ "describe": "Scaffold <entity> <name> from blocks",
25
+ "handler": "./commands/scaffold.js#default",
26
+ "flags": [
27
+ {
28
+ "name": "blocks",
29
+ "type": "string",
30
+ "description": "Comma-separated block ids"
31
+ },
32
+ {
33
+ "name": "yes",
34
+ "alias": "y",
35
+ "type": "boolean",
36
+ "description": "Accept defaults and skip prompts"
37
+ },
38
+ {
39
+ "name": "force",
40
+ "type": "boolean",
41
+ "description": "Overwrite non-empty target directory"
42
+ },
43
+ {
44
+ "name": "dry-run",
45
+ "type": "boolean",
46
+ "description": "Print the tree that would be written and exit"
47
+ },
48
+ {
49
+ "name": "out",
50
+ "type": "string",
51
+ "description": "Override the output directory"
52
+ },
53
+ {
54
+ "name": "scope",
55
+ "type": "string",
56
+ "description": "npm scope for the generated package"
57
+ },
58
+ {
59
+ "name": "mode",
60
+ "type": "string",
61
+ "description": "Layout mode: \"in-workspace\" (workspace:* deps) or \"standalone\" (semver deps + pnpm-workspace.yaml)"
62
+ }
63
+ ],
64
+ "examples": [
65
+ "kb scaffold run plugin my-plugin",
66
+ "kb scaffold run adapter my-llm --blocks base",
67
+ "kb scaffold run plugin ui --scope @acme --yes",
68
+ "kb scaffold run plugin demo --dry-run"
69
+ ]
70
+ },
71
+ {
72
+ "path": "scaffold doctor",
73
+ "describe": "Scan user plugins for common issues",
74
+ "handler": "./commands/doctor.js#default",
75
+ "flags": [
76
+ {
77
+ "name": "path",
78
+ "type": "string",
79
+ "description": "Path to scan (default: .kb/plugins)"
80
+ },
81
+ {
82
+ "name": "json",
83
+ "type": "boolean",
84
+ "description": "Emit JSON instead of text"
85
+ }
86
+ ],
87
+ "examples": [
88
+ "kb scaffold doctor",
89
+ "kb scaffold doctor --path ./plugins",
90
+ "kb scaffold doctor --json"
91
+ ]
92
+ }
93
+ ]
94
+ },
95
+ "permissions": {
96
+ "fs": {
97
+ "read": [
98
+ ".kb/**",
99
+ ".kb/plugins/**",
100
+ ".kb/marketplace.lock",
101
+ "plugins/**",
102
+ "adapters/**"
103
+ ],
104
+ "write": [
105
+ ".kb/**",
106
+ ".kb/plugins/**",
107
+ ".kb/marketplace.lock",
108
+ "plugins/**",
109
+ "adapters/**"
110
+ ]
111
+ },
112
+ "env": {
113
+ "read": [
114
+ "HOME",
115
+ "USER",
116
+ "PATH",
117
+ "TMPDIR",
118
+ "NODE_ENV",
119
+ "KB_*"
120
+ ]
121
+ },
122
+ "shell": {
123
+ "allow": [
124
+ "kb"
125
+ ]
126
+ },
127
+ "quotas": {
128
+ "timeoutMs": 120000,
129
+ "memoryMb": 256
130
+ }
131
+ }
132
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kb-labs/scaffold",
3
3
  "description": "Generic entity scaffolder for KB Labs plugins, adapters, and friends.",
4
- "version": "2.104.0",
4
+ "version": "2.106.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -19,22 +19,32 @@
19
19
  "dist",
20
20
  "templates"
21
21
  ],
22
+ "scripts": {
23
+ "build": "tsup",
24
+ "clean": "rimraf dist",
25
+ "dev": "tsup --watch",
26
+ "lint": "eslint src --ext .ts",
27
+ "test": "vitest run --passWithNoTests",
28
+ "test:cli": "vitest run --config vitest.cli.config.ts --passWithNoTests",
29
+ "test:watch": "vitest",
30
+ "type-check": "tsc --noEmit"
31
+ },
22
32
  "dependencies": {
23
- "@kb-labs/sdk": "2.22.0",
24
- "@kb-labs/shared-cli-ui": "2.104.0",
25
- "@kb-labs/scaffold-core": "2.104.0",
26
- "@kb-labs/scaffold-contracts": "2.104.0"
33
+ "@kb-labs/scaffold-contracts": "^2.106.0",
34
+ "@kb-labs/scaffold-core": "^2.106.0",
35
+ "@kb-labs/sdk": "workspace:*",
36
+ "@kb-labs/shared-cli-ui": "^2.106.0"
27
37
  },
28
38
  "devDependencies": {
39
+ "@kb-labs/devkit": "workspace:*",
40
+ "@kb-labs/plugin-contracts": "workspace:*",
41
+ "@kb-labs/shared-testing-e2e": "workspace:*",
29
42
  "@types/node": "^24.3.3",
30
43
  "eslint": "^9",
31
44
  "rimraf": "^6.0.1",
32
45
  "tsup": "^8.5.0",
33
46
  "typescript": "^5.6.3",
34
- "vitest": "^3.2.6",
35
- "@kb-labs/devkit": "2.104.0",
36
- "@kb-labs/shared-testing-e2e": "2.104.0",
37
- "@kb-labs/plugin-contracts": "2.104.0"
47
+ "vitest": "^3.2.6"
38
48
  },
39
49
  "engines": {
40
50
  "node": ">=20.0.0",
@@ -43,15 +53,5 @@
43
53
  "kb": {
44
54
  "manifest": "./dist/manifest.js"
45
55
  },
46
- "sideEffects": false,
47
- "scripts": {
48
- "build": "tsup",
49
- "clean": "rimraf dist",
50
- "dev": "tsup --watch",
51
- "lint": "eslint src --ext .ts",
52
- "test": "vitest run --passWithNoTests",
53
- "test:cli": "vitest run --config vitest.cli.config.ts --passWithNoTests",
54
- "test:watch": "vitest",
55
- "type-check": "tsc --noEmit"
56
- }
57
- }
56
+ "sideEffects": false
57
+ }