@inspecto-dev/cli 0.3.9 → 0.3.10

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.9 build /Users/bytedance/Works/hugo.felix/inspecto/packages/cli
3
+ > @inspecto-dev/cli@0.3.10 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.85 KB
14
13
  ESM dist/index.js 645.00 B
15
- ESM dist/chunk-T46P6RD7.js 220.27 KB
16
- ESM ⚡️ Build success in 163ms
14
+ ESM dist/bin.js 12.85 KB
15
+ ESM dist/chunk-WOZPOTWE.js 220.29 KB
16
+ ESM ⚡️ Build success in 53ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 2259ms
18
+ DTS ⚡️ Build success in 2238ms
19
19
  DTS dist/bin.d.ts 185.00 B
20
20
  DTS dist/index.d.ts 13.48 KB
@@ -1,44 +1,62 @@
1
1
 
2
- > @inspecto-dev/cli@0.3.8 test /Users/bytedance/Works/hugo.felix/inspecto/packages/cli
2
+ > @inspecto-dev/cli@0.3.9 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) 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
8
+ ✓ tests/extension-installer.test.ts (8 tests) 173ms
9
+ ✓ tests/integration-host-ide.test.ts (12 tests) 169ms
10
+ ✓ tests/integration-automation.test.ts (16 tests) 173ms
11
+ ✓ tests/build-tool.test.ts (9 tests) 74ms
12
12
  ✓ tests/onboard.test.ts (12 tests) 9ms
13
- ✓ tests/doctor.test.ts (6 tests) 11ms
13
+ ✓ tests/doctor.test.ts (6 tests) 10ms
14
+ - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
15
+ ✔ Dependencies installed successfully
14
16
  - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
15
- ✓ tests/apply.test.ts (18 tests) 23ms
16
17
  stdout | tests/apply.test.ts > apply onboarding flow > applies the supported setup path and returns structured mutations and post-install state
18
+ ✔ Dependencies installed successfully
17
19
  ✔ Installed @inspecto-dev/plugin and @inspecto-dev/core as devDependencies
18
20
  ✔ Created .inspecto/settings.local.json
19
21
  ✔ Created .inspecto/prompts.local.json
22
+ - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
20
23
 
21
24
  stdout | tests/apply.test.ts > apply onboarding flow > only injects the explicitly selected build target
22
25
  ✔ Installed @inspecto-dev/plugin and @inspecto-dev/core as devDependencies
26
+ ✔ Dependencies installed successfully
27
+ - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
23
28
  ✔ Created .inspecto/settings.local.json
29
+ ✔ Dependencies installed successfully
30
+ - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
31
+ ✔ Dependencies installed successfully
32
+ - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
24
33
  ✔ Created .inspecto/prompts.local.json
34
+ ✔ Dependencies installed successfully
25
35
 
36
+ - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
26
37
  stdout | tests/apply.test.ts > apply onboarding flow > supports legacy rspack partial onboarding without attempting automatic injection
38
+ ✔ Dependencies installed successfully
27
39
  ✔ Installed @inspecto-dev/plugin and @inspecto-dev/core as devDependencies
28
40
  ✔ Created .inspecto/settings.local.json
29
41
  ✔ Created .inspecto/prompts.local.json
30
42
 
31
43
  stdout | tests/apply.test.ts > apply onboarding flow > supports webpack 4 partial onboarding without attempting automatic injection
44
+ - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
32
45
  ✔ Installed @inspecto-dev/plugin and @inspecto-dev/core as devDependencies
33
46
  ✔ Created .inspecto/settings.local.json
34
47
  ✔ Created .inspecto/prompts.local.json
35
48
 
49
+ ✔ Dependencies installed successfully
36
50
  stdout | tests/apply.test.ts > apply onboarding flow > auto-applies high-confidence Next.js config patches for guided plans
37
51
  ✔ Installed @inspecto-dev/plugin and @inspecto-dev/core as devDependencies
38
52
  ✔ Applied guided patch to next.config.mjs
53
+ - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
39
54
  ✔ Created .inspecto/settings.local.json
40
55
  ✔ Created .inspecto/prompts.local.json
56
+ ✔ Dependencies installed successfully
41
57
 
58
+ - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
59
+ ✔ Dependencies installed successfully
42
60
  stdout | tests/apply.test.ts > apply onboarding flow > auto-applies high-confidence Next.js patches for exported nextConfig objects
43
61
  ✔ Installed @inspecto-dev/plugin and @inspecto-dev/core as devDependencies
44
62
  ✔ Applied guided patch to next.config.ts
@@ -56,25 +74,8 @@ stdout | tests/apply.test.ts > apply onboarding flow > auto-applies high-confide
56
74
  ✔ Created .inspecto/settings.local.json
57
75
  ✔ Created .inspecto/prompts.local.json
58
76
 
59
- Dependencies installed successfully
60
- - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
61
- ✔ Dependencies installed successfully
62
- - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
63
- ✔ Dependencies installed successfully
64
- - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
65
- ✔ Dependencies installed successfully
66
- - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
67
- ✔ Dependencies installed successfully
68
- - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
69
- ✔ Dependencies installed successfully
70
- - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
71
- ✔ Dependencies installed successfully
72
- - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
73
- ✔ Dependencies installed successfully
74
- - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
75
- ✔ Dependencies installed successfully
76
- - Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
77
- ✔ Dependencies installed successfully
77
+ tests/apply.test.ts (18 tests) 27ms
78
+ tests/init.test.ts (6 tests) 8ms
78
79
  stdout | tests/init.test.ts > init in monorepo roots > routes installation and config generation into the selected app instead of the monorepo root
79
80
 
80
81
  ✦ Inspecto Setup
@@ -141,18 +142,18 @@ stdout | tests/init.test.ts > init in monorepo roots > preserves detected prefer
141
142
  → 2. Open your app in the browser.
142
143
  → 3. Hold Alt + Click any element to inspect.
143
144
 
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
145
+ ✓ tests/integration-dispatch-mode.test.ts (8 tests) 42ms
146
+ ✓ tests/integration-doctor.test.ts (4 tests) 51ms
147
+ ✓ tests/nextjs-guidance.test.ts (4 tests) 298ms
148
+ ✓ tests/logger.test.ts (5 tests) 6ms
149
+ ✓ tests/session.test.ts (1 test) 3ms
150
+ ✓ tests/session-resolve.test.ts (3 tests) 4ms
151
+ ✓ tests/detect.test.ts (1 test) 2ms
154
152
  ✓ tests/ide.test.ts (6 tests) 4ms
155
- ✓ tests/instructions.test.ts (2 tests) 5ms
153
+ ✓ tests/framework.test.ts (7 tests) 2ms
154
+ ✓ tests/shared-capabilities.test.ts (3 tests) 3ms
155
+ ✓ tests/mcp.test.ts (7 tests) 46ms
156
+ ✓ tests/instructions.test.ts (2 tests) 7ms
156
157
  stdout | tests/dev-config.test.ts > dev config commands > writes cliBin into .inspecto/dev.json
157
158
  {
158
159
  "status": "ok",
@@ -189,18 +190,17 @@ stdout | tests/dev-config.test.ts > dev config commands > clears the dev config
189
190
  "config": {}
190
191
  }
191
192
 
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
193
+ ✓ tests/dev-config.test.ts (4 tests) 7ms
194
+ ✓ tests/workspace-build-tool.test.ts (1 test) 51ms
195
+ ✓ tests/nuxt-guidance.test.ts (2 tests) 133ms
196
+ ✓ tests/plan.test.ts (21 tests) 2182ms
197
+ ✓ tests/integration-install.test.ts (28 tests) 2625ms
198
+ ✓ tests/ast-injector.test.ts (1 test) 3ms
199
+ ✓ tests/install-wrapper.test.ts (3 tests) 2195ms
200
+ ✓ tests/runner-script.test.ts (15 tests) 3288ms
201
201
 
202
202
  Test Files 28 passed (28)
203
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)
204
+ Start at 11:32:49
205
+ Duration 4.39s (transform 3.29s, setup 3ms, collect 8.15s, tests 11.60s, environment 3ms, prepare 10.14s)
206
206
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @inspecto-dev/cli
2
2
 
3
+ ## 0.3.10
4
+
5
+ ### Patch Changes
6
+
7
+ - release 0.3.10
8
+ - Updated dependencies
9
+ - @inspecto-dev/types@0.3.10
10
+
3
11
  ## 0.3.9
4
12
 
5
13
  ### Patch Changes
package/dist/bin.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  reportCommandError,
16
16
  startMcpServer,
17
17
  teardown
18
- } from "./chunk-T46P6RD7.js";
18
+ } from "./chunk-WOZPOTWE.js";
19
19
 
20
20
  // src/bin.ts
21
21
  import { cac } from "cac";
@@ -2497,7 +2497,7 @@ function buildUmiMountSnippet() {
2497
2497
  " if (process.env.NODE_ENV !== 'production') {",
2498
2498
  " import('@inspecto-dev/core').then(({ mountInspector }) => {",
2499
2499
  " mountInspector({",
2500
- " serverUrl: 'http://0.0.0.0:' + ((window as { __AI_INSPECTOR_PORT__?: number }).__AI_INSPECTOR_PORT__ || 5678),",
2500
+ " serverUrl: 'http://127.0.0.1:' + ((window as { __AI_INSPECTOR_PORT__?: number }).__AI_INSPECTOR_PORT__ || 5678),",
2501
2501
  " })",
2502
2502
  " })",
2503
2503
  " }",
@@ -3576,7 +3576,7 @@ function printNextJsManualInstructions() {
3576
3576
  " useEffect(() => {",
3577
3577
  " if (process.env.NODE_ENV !== 'production') {",
3578
3578
  " import('@inspecto-dev/core').then(({ mountInspector }) => {",
3579
- " mountInspector({ serverUrl: 'http://0.0.0.0:5678' })",
3579
+ " mountInspector({ serverUrl: 'http://127.0.0.1:5678' })",
3580
3580
  " })",
3581
3581
  " }",
3582
3582
  " }, [])",
@@ -4498,7 +4498,7 @@ function createInspectoMcpRuntime(baseUrl) {
4498
4498
  function resolveInspectoServerBaseUrl(cwd) {
4499
4499
  const ports = resolveServerPorts(cwd);
4500
4500
  const port = ports[0];
4501
- return port ? `http://0.0.0.0:${port}` : null;
4501
+ return port ? `http://127.0.0.1:${port}` : null;
4502
4502
  }
4503
4503
  function resolveServerPorts(cwd) {
4504
4504
  const prioritized = readProjectScopedPorts(cwd);
@@ -4786,8 +4786,12 @@ function buildConfirmation(plan2, summary, session, options) {
4786
4786
  };
4787
4787
  }
4788
4788
  async function buildDailyUsageHandoff(projectRoot) {
4789
- const localSettings = await readJSON(path18.join(projectRoot, ".inspecto", "settings.local.json")) ?? {};
4790
- const sharedSettings = await readJSON(path18.join(projectRoot, ".inspecto", "settings.json")) ?? {};
4789
+ const localSettings = await readJSON(
4790
+ path18.join(projectRoot, ".inspecto", "settings.local.json")
4791
+ ) ?? {};
4792
+ const sharedSettings = await readJSON(
4793
+ path18.join(projectRoot, ".inspecto", "settings.json")
4794
+ ) ?? {};
4791
4795
  const annotateDeliveryMode = localSettings["annotate.deliveryMode"] ?? sharedSettings["annotate.deliveryMode"];
4792
4796
  if (annotateDeliveryMode !== "agent") {
4793
4797
  return void 0;
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  startMcpServer,
18
18
  teardown,
19
19
  writeCommandOutput
20
- } from "./chunk-T46P6RD7.js";
20
+ } from "./chunk-WOZPOTWE.js";
21
21
  export {
22
22
  apply,
23
23
  collectDoctorResult,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inspecto-dev/cli",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "CLI tools for Inspecto onboarding and lifecycle management",
5
5
  "keywords": [
6
6
  "inspecto",
@@ -22,7 +22,7 @@
22
22
  "picocolors": "^1.0.0",
23
23
  "prompts": "^2.4.2",
24
24
  "zod": "^4.1.12",
25
- "@inspecto-dev/types": "0.3.9"
25
+ "@inspecto-dev/types": "0.3.10"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^20.19.39",
@@ -241,7 +241,7 @@ export function createInspectoMcpRuntime(baseUrl: string): InspectoMcpRuntime {
241
241
  export function resolveInspectoServerBaseUrl(cwd: string): string | null {
242
242
  const ports = resolveServerPorts(cwd)
243
243
  const port = ports[0]
244
- return port ? `http://0.0.0.0:${port}` : null
244
+ return port ? `http://127.0.0.1:${port}` : null
245
245
  }
246
246
 
247
247
  export function resolveServerPorts(cwd: string): number[] {
@@ -83,7 +83,7 @@ export function printNextJsManualInstructions() {
83
83
  ' useEffect(() => {',
84
84
  " if (process.env.NODE_ENV !== 'production') {",
85
85
  " import('@inspecto-dev/core').then(({ mountInspector }) => {",
86
- " mountInspector({ serverUrl: 'http://0.0.0.0:5678' })",
86
+ " mountInspector({ serverUrl: 'http://127.0.0.1:5678' })",
87
87
  ' })',
88
88
  ' }',
89
89
  ' }, [])',
@@ -261,10 +261,13 @@ async function buildDailyUsageHandoff(
261
261
  projectRoot: string,
262
262
  ): Promise<OnboardingDailyUsageHandoff | undefined> {
263
263
  const localSettings =
264
- (await readJSON<Record<string, unknown>>(path.join(projectRoot, '.inspecto', 'settings.local.json'))) ??
265
- {}
264
+ (await readJSON<Record<string, unknown>>(
265
+ path.join(projectRoot, '.inspecto', 'settings.local.json'),
266
+ )) ?? {}
266
267
  const sharedSettings =
267
- (await readJSON<Record<string, unknown>>(path.join(projectRoot, '.inspecto', 'settings.json'))) ?? {}
268
+ (await readJSON<Record<string, unknown>>(
269
+ path.join(projectRoot, '.inspecto', 'settings.json'),
270
+ )) ?? {}
268
271
  const annotateDeliveryMode =
269
272
  (localSettings['annotate.deliveryMode'] as string | undefined) ??
270
273
  (sharedSettings['annotate.deliveryMode'] as string | undefined)
@@ -93,7 +93,7 @@ function buildUmiMountSnippet(): string {
93
93
  " if (process.env.NODE_ENV !== 'production') {",
94
94
  " import('@inspecto-dev/core').then(({ mountInspector }) => {",
95
95
  ' mountInspector({',
96
- " serverUrl: 'http://0.0.0.0:' + ((window as { __AI_INSPECTOR_PORT__?: number }).__AI_INSPECTOR_PORT__ || 5678),",
96
+ " serverUrl: 'http://127.0.0.1:' + ((window as { __AI_INSPECTOR_PORT__?: number }).__AI_INSPECTOR_PORT__ || 5678),",
97
97
  ' })',
98
98
  ' })',
99
99
  ' }',
package/tests/mcp.test.ts CHANGED
@@ -45,7 +45,7 @@ describe('inspecto mcp command', () => {
45
45
  'utf-8',
46
46
  )
47
47
 
48
- expect(resolveInspectoServerBaseUrl(cwd)).toBe('http://0.0.0.0:5680')
48
+ expect(resolveInspectoServerBaseUrl(cwd)).toBe('http://127.0.0.1:5680')
49
49
  })
50
50
 
51
51
  it('resolves the project server URL when Codex runs from a nested working directory', () => {
@@ -66,7 +66,7 @@ describe('inspecto mcp command', () => {
66
66
  'utf-8',
67
67
  )
68
68
 
69
- expect(resolveInspectoServerBaseUrl(nestedCwd)).toBe('http://0.0.0.0:5681')
69
+ expect(resolveInspectoServerBaseUrl(nestedCwd)).toBe('http://127.0.0.1:5681')
70
70
  })
71
71
 
72
72
  it('exposes the expected MCP tool definitions', () => {