@inspecto-dev/cli 0.3.7 → 0.3.9
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/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-test.log +43 -42
- package/CHANGELOG.md +16 -0
- package/dist/bin.js +12 -1
- package/dist/{chunk-LLQA5L7E.js → chunk-T46P6RD7.js} +450 -74
- package/dist/index.d.ts +51 -2
- package/dist/index.js +9 -1
- package/package.json +5 -3
- package/src/bin.ts +20 -0
- package/src/commands/init.ts +7 -3
- package/src/commands/integration-automation.ts +4 -2
- package/src/commands/integration-host-ide.ts +10 -3
- package/src/commands/integration-install.ts +40 -5
- package/src/commands/mcp.ts +386 -0
- package/src/commands/onboard.ts +5 -1
- package/src/detect/framework.ts +9 -6
- package/src/detect/ide.ts +12 -10
- package/src/detect/provider.ts +1 -1
- package/src/index.ts +6 -0
- package/src/inject/strategies/esbuild.ts +2 -2
- package/src/inject/strategies/rollup.ts +2 -2
- package/src/inject/strategies/rsbuild.ts +2 -2
- package/src/inject/strategies/rspack.ts +2 -2
- package/src/inject/strategies/vite.ts +2 -2
- package/src/inject/strategies/webpack.ts +2 -2
- package/src/instructions.ts +1 -1
- package/src/onboarding/session.ts +40 -3
- package/src/onboarding/umi-guidance.ts +1 -1
- package/src/prompts.ts +19 -9
- package/src/types.ts +10 -0
- package/tests/detect.test.ts +2 -2
- package/tests/framework.test.ts +27 -3
- package/tests/integration-install.test.ts +16 -0
- package/tests/mcp.test.ts +197 -0
- package/tests/onboard.test.ts +15 -0
- package/tests/plan.test.ts +16 -16
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @inspecto-dev/cli@0.3.
|
|
3
|
+
> @inspecto-dev/cli@0.3.9 build /Users/bytedance/Works/hugo.felix/inspecto/packages/cli
|
|
4
4
|
> tsup
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/bin.ts, src/index.ts
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
[34mCLI[39m Target: node18
|
|
11
11
|
[34mCLI[39m Cleaning output folder
|
|
12
12
|
[34mESM[39m Build start
|
|
13
|
-
[32mESM[39m [1mdist/bin.js [22m[32m12.
|
|
14
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
15
|
-
[32mESM[39m [1mdist/chunk-
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m [1mdist/bin.js [22m[32m12.85 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/index.js [22m[32m645.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/chunk-T46P6RD7.js [22m[32m220.27 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 163ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
18
|
+
DTS ⚡️ Build success in 2259ms
|
|
19
19
|
DTS dist/bin.d.ts 185.00 B
|
|
20
|
-
DTS dist/index.d.ts
|
|
20
|
+
DTS dist/index.d.ts 13.48 KB
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @inspecto-dev/cli@0.3.
|
|
2
|
+
> @inspecto-dev/cli@0.3.8 test /Users/bytedance/Works/hugo.felix/inspecto/packages/cli
|
|
3
3
|
> vitest run --passWithNoTests
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
RUN v1.6.1 /Users/bytedance/Works/hugo.felix/inspecto/packages/cli
|
|
7
7
|
|
|
8
|
-
✓ tests/build-tool.test.ts (9 tests)
|
|
9
|
-
✓ tests/
|
|
10
|
-
✓ tests/
|
|
11
|
-
✓ tests/integration-automation.test.ts (16 tests)
|
|
12
|
-
✓ tests/onboard.test.ts (12 tests)
|
|
13
|
-
✓ tests/doctor.test.ts (6 tests)
|
|
8
|
+
✓ tests/build-tool.test.ts (9 tests) 17ms
|
|
9
|
+
✓ tests/integration-host-ide.test.ts (12 tests) 96ms
|
|
10
|
+
✓ tests/extension-installer.test.ts (8 tests) 166ms
|
|
11
|
+
✓ tests/integration-automation.test.ts (16 tests) 156ms
|
|
12
|
+
✓ tests/onboard.test.ts (12 tests) 9ms
|
|
13
|
+
✓ tests/doctor.test.ts (6 tests) 11ms
|
|
14
14
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
15
|
+
✓ tests/apply.test.ts (18 tests) 23ms
|
|
15
16
|
stdout | tests/apply.test.ts > apply onboarding flow > applies the supported setup path and returns structured mutations and post-install state
|
|
16
17
|
✔ Installed @inspecto-dev/plugin and @inspecto-dev/core as devDependencies
|
|
17
18
|
✔ Created .inspecto/settings.local.json
|
|
@@ -55,30 +56,25 @@ stdout | tests/apply.test.ts > apply onboarding flow > auto-applies high-confide
|
|
|
55
56
|
✔ Created .inspecto/settings.local.json
|
|
56
57
|
✔ Created .inspecto/prompts.local.json
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
[32m✔[39m Dependencies installed successfully
|
|
59
|
+
✔ Dependencies installed successfully
|
|
60
60
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
61
|
-
|
|
61
|
+
✔ Dependencies installed successfully
|
|
62
62
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
63
|
-
|
|
63
|
+
✔ Dependencies installed successfully
|
|
64
64
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
65
|
-
|
|
65
|
+
✔ Dependencies installed successfully
|
|
66
66
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
67
|
-
|
|
67
|
+
✔ Dependencies installed successfully
|
|
68
68
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
69
|
-
|
|
69
|
+
✔ Dependencies installed successfully
|
|
70
70
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
71
|
-
|
|
71
|
+
✔ Dependencies installed successfully
|
|
72
72
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
73
|
-
|
|
73
|
+
✔ Dependencies installed successfully
|
|
74
74
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
75
|
-
|
|
75
|
+
✔ Dependencies installed successfully
|
|
76
76
|
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
77
|
-
|
|
78
|
-
✓ tests/integration-dispatch-mode.test.ts (8 tests) 21ms
|
|
79
|
-
✓ tests/session.test.ts (1 test) 4ms
|
|
80
|
-
✓ tests/integration-doctor.test.ts (4 tests) 23ms
|
|
81
|
-
✓ tests/init.test.ts (6 tests) 6ms
|
|
77
|
+
✔ Dependencies installed successfully
|
|
82
78
|
stdout | tests/init.test.ts > init in monorepo roots > routes installation and config generation into the selected app instead of the monorepo root
|
|
83
79
|
|
|
84
80
|
✦ Inspecto Setup
|
|
@@ -145,16 +141,18 @@ stdout | tests/init.test.ts > init in monorepo roots > preserves detected prefer
|
|
|
145
141
|
→ 2. Open your app in the browser.
|
|
146
142
|
→ 3. Hold Alt + Click any element to inspect.
|
|
147
143
|
|
|
148
|
-
✓ tests/
|
|
149
|
-
✓ tests/
|
|
150
|
-
✓ tests/
|
|
151
|
-
✓ tests/
|
|
152
|
-
✓ tests/
|
|
153
|
-
✓ tests/
|
|
154
|
-
✓ tests/
|
|
144
|
+
✓ tests/init.test.ts (6 tests) 6ms
|
|
145
|
+
✓ tests/integration-doctor.test.ts (4 tests) 27ms
|
|
146
|
+
✓ tests/integration-dispatch-mode.test.ts (8 tests) 31ms
|
|
147
|
+
✓ tests/session.test.ts (1 test) 2ms
|
|
148
|
+
✓ tests/logger.test.ts (5 tests) 14ms
|
|
149
|
+
✓ tests/nextjs-guidance.test.ts (4 tests) 194ms
|
|
150
|
+
✓ tests/mcp.test.ts (7 tests) 26ms
|
|
151
|
+
✓ tests/session-resolve.test.ts (3 tests) 6ms
|
|
152
|
+
✓ tests/framework.test.ts (7 tests) 3ms
|
|
153
|
+
✓ tests/detect.test.ts (1 test) 4ms
|
|
154
|
+
✓ tests/ide.test.ts (6 tests) 4ms
|
|
155
155
|
✓ tests/instructions.test.ts (2 tests) 5ms
|
|
156
|
-
✓ tests/shared-capabilities.test.ts (3 tests) 3ms
|
|
157
|
-
✓ tests/dev-config.test.ts (4 tests) 4ms
|
|
158
156
|
stdout | tests/dev-config.test.ts > dev config commands > writes cliBin into .inspecto/dev.json
|
|
159
157
|
{
|
|
160
158
|
"status": "ok",
|
|
@@ -191,15 +189,18 @@ stdout | tests/dev-config.test.ts > dev config commands > clears the dev config
|
|
|
191
189
|
"config": {}
|
|
192
190
|
}
|
|
193
191
|
|
|
194
|
-
✓ tests/
|
|
195
|
-
✓ tests/
|
|
196
|
-
✓ tests/
|
|
197
|
-
✓ tests/
|
|
198
|
-
✓ tests/
|
|
199
|
-
✓ tests/
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
192
|
+
✓ tests/dev-config.test.ts (4 tests) 6ms
|
|
193
|
+
✓ tests/integration-install.test.ts (28 tests) 1375ms
|
|
194
|
+
✓ tests/plan.test.ts (21 tests) 1024ms
|
|
195
|
+
✓ tests/workspace-build-tool.test.ts (1 test) 91ms
|
|
196
|
+
✓ tests/nuxt-guidance.test.ts (2 tests) 57ms
|
|
197
|
+
✓ tests/shared-capabilities.test.ts (3 tests) 2ms
|
|
198
|
+
✓ tests/ast-injector.test.ts (1 test) 2ms
|
|
199
|
+
✓ tests/runner-script.test.ts (15 tests) 1851ms
|
|
200
|
+
✓ tests/install-wrapper.test.ts (3 tests) 1381ms
|
|
201
|
+
|
|
202
|
+
Test Files 28 passed (28)
|
|
203
|
+
Tests 213 passed (213)
|
|
204
|
+
Start at 10:22:29
|
|
205
|
+
Duration 2.70s (transform 3.30s, setup 1ms, collect 5.26s, tests 6.59s, environment 10ms, prepare 5.21s)
|
|
205
206
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @inspecto-dev/cli
|
|
2
2
|
|
|
3
|
+
## 0.3.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- release 0.3.9
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @inspecto-dev/types@0.3.9
|
|
10
|
+
|
|
11
|
+
## 0.3.8
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- release 0.3.8
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @inspecto-dev/types@0.3.8
|
|
18
|
+
|
|
3
19
|
## 0.3.7
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/bin.js
CHANGED
|
@@ -13,8 +13,9 @@ import {
|
|
|
13
13
|
printIntegrationList,
|
|
14
14
|
printIntegrationPath,
|
|
15
15
|
reportCommandError,
|
|
16
|
+
startMcpServer,
|
|
16
17
|
teardown
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-T46P6RD7.js";
|
|
18
19
|
|
|
19
20
|
// src/bin.ts
|
|
20
21
|
import { cac } from "cac";
|
|
@@ -61,6 +62,16 @@ function createCli(_argv = process.argv) {
|
|
|
61
62
|
exitWithError(error, options);
|
|
62
63
|
}
|
|
63
64
|
});
|
|
65
|
+
cli.command("mcp", "Run Inspecto as a minimal stdio MCP server for agents").option("--server-url <url>", "Use an explicit Inspecto dev server base URL").option("--debug", "Enable debug mode to show full error traces", { default: false }).action(async (options) => {
|
|
66
|
+
try {
|
|
67
|
+
await startMcpServer({
|
|
68
|
+
...options.serverUrl ? { serverUrl: options.serverUrl } : {},
|
|
69
|
+
version
|
|
70
|
+
});
|
|
71
|
+
} catch (error) {
|
|
72
|
+
exitWithError(error, options);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
64
75
|
cli.command("init", "Set up Inspecto in your project").option("--shared", "Share .inspecto/settings.json with your team via Git", { default: false }).option("--skip-install", "Skip npm dependency installation", { default: false }).option("--dry-run", "Preview changes without modifying files", { default: false }).option("--provider <provider>", "Set default provider (e.g. copilot, claude-code)").option("--no-extension", "Skip VS Code extension installation", { default: false }).option("--packages <names>", "(Monorepo) Comma-separated list of packages to inject").option("--force", "Force initialization even if environment is unsupported", {
|
|
65
76
|
default: false
|
|
66
77
|
}).option("--debug", "Enable debug mode to show full error traces", { default: false }).action(async (options) => {
|