@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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @inspecto-dev/cli@0.3.7 build /Users/bytedance/Works/hugo.felix/inspecto/packages/cli
3
+ > @inspecto-dev/cli@0.3.9 build /Users/bytedance/Works/hugo.felix/inspecto/packages/cli
4
4
  > tsup
5
5
 
6
6
  CLI Building entry: src/bin.ts, src/index.ts
@@ -10,11 +10,11 @@
10
10
  CLI Target: node18
11
11
  CLI Cleaning output folder
12
12
  ESM Build start
13
- ESM dist/bin.js 12.37 KB
14
- ESM dist/index.js 435.00 B
15
- ESM dist/chunk-LLQA5L7E.js 208.92 KB
16
- ESM ⚡️ Build success in 204ms
13
+ ESM dist/bin.js 12.85 KB
14
+ ESM dist/index.js 645.00 B
15
+ ESM dist/chunk-T46P6RD7.js 220.27 KB
16
+ ESM ⚡️ Build success in 163ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 2598ms
18
+ DTS ⚡️ Build success in 2259ms
19
19
  DTS dist/bin.d.ts 185.00 B
20
- DTS dist/index.d.ts 11.94 KB
20
+ DTS dist/index.d.ts 13.48 KB
@@ -1,17 +1,18 @@
1
1
 
2
- > @inspecto-dev/cli@0.3.6 test /Users/bytedance/Works/hugo.felix/inspecto/packages/cli
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) 14ms
9
- ✓ tests/extension-installer.test.ts (6 tests) 75ms
10
- ✓ tests/integration-host-ide.test.ts (12 tests) 77ms
11
- ✓ tests/integration-automation.test.ts (16 tests) 84ms
12
- ✓ tests/onboard.test.ts (12 tests) 10ms
13
- ✓ tests/doctor.test.ts (6 tests) 9ms
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
- tests/apply.test.ts (18 tests) 18ms
59
- ✔ Dependencies installed successfully
59
+ Dependencies installed successfully
60
60
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
61
- ✔ Dependencies installed successfully
61
+ Dependencies installed successfully
62
62
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
63
- ✔ Dependencies installed successfully
63
+ Dependencies installed successfully
64
64
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
65
- ✔ Dependencies installed successfully
65
+ Dependencies installed successfully
66
66
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
67
- ✔ Dependencies installed successfully
67
+ Dependencies installed successfully
68
68
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
69
- ✔ Dependencies installed successfully
69
+ Dependencies installed successfully
70
70
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
71
- ✔ Dependencies installed successfully
71
+ Dependencies installed successfully
72
72
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
73
- ✔ Dependencies installed successfully
73
+ Dependencies installed successfully
74
74
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
75
- ✔ Dependencies installed successfully
75
+ Dependencies installed successfully
76
76
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
77
- ✔ Dependencies installed successfully
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/nextjs-guidance.test.ts (4 tests) 113ms
149
- ✓ tests/session-resolve.test.ts (3 tests) 4ms
150
- ✓ tests/plan.test.ts (21 tests) 371ms
151
- ✓ tests/integration-install.test.ts (28 tests) 529ms
152
- ✓ tests/detect.test.ts (1 test) 2ms
153
- ✓ tests/ide.test.ts (6 tests) 3ms
154
- ✓ tests/logger.test.ts (5 tests) 7ms
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/workspace-build-tool.test.ts (1 test) 6ms
195
- ✓ tests/framework.test.ts (5 tests) 3ms
196
- ✓ tests/nuxt-guidance.test.ts (2 tests) 10ms
197
- ✓ tests/ast-injector.test.ts (1 test) 3ms
198
- ✓ tests/runner-script.test.ts (15 tests) 2302ms
199
- ✓ tests/install-wrapper.test.ts (3 tests) 2443ms
200
-
201
- Test Files 27 passed (27)
202
- Tests 202 passed (202)
203
- Start at 14:41:23
204
- Duration 3.53s (transform 2.28s, setup 3ms, collect 3.74s, tests 6.15s, environment 4ms, prepare 3.90s)
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-LLQA5L7E.js";
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) => {