@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.
- package/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-test.log +48 -48
- package/CHANGELOG.md +8 -0
- package/dist/bin.js +1 -1
- package/dist/{chunk-T46P6RD7.js → chunk-WOZPOTWE.js} +9 -5
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/commands/mcp.ts +1 -1
- package/src/instructions.ts +1 -1
- package/src/onboarding/session.ts +6 -3
- package/src/onboarding/umi-guidance.ts +1 -1
- package/tests/mcp.test.ts +2 -2
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.10 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.85 KB[39m
|
|
14
13
|
[32mESM[39m [1mdist/index.js [22m[32m645.00 B[39m
|
|
15
|
-
[32mESM[39m [1mdist/
|
|
16
|
-
[32mESM[39m
|
|
14
|
+
[32mESM[39m [1mdist/bin.js [22m[32m12.85 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/chunk-WOZPOTWE.js [22m[32m220.29 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 53ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
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
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,44 +1,62 @@
|
|
|
1
1
|
|
|
2
|
-
> @inspecto-dev/cli@0.3.
|
|
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/
|
|
9
|
-
✓ tests/integration-host-ide.test.ts (12 tests)
|
|
10
|
-
✓ tests/
|
|
11
|
-
✓ tests/
|
|
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)
|
|
13
|
+
✓ tests/doctor.test.ts (6 tests) 10ms
|
|
14
|
+
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
15
|
+
[32m✔[39m 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
|
+
[32m✔[39m 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
|
+
[32m✔[39m Dependencies installed successfully
|
|
27
|
+
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
23
28
|
✔ Created .inspecto/settings.local.json
|
|
29
|
+
[32m✔[39m Dependencies installed successfully
|
|
30
|
+
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
31
|
+
[32m✔[39m Dependencies installed successfully
|
|
32
|
+
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
24
33
|
✔ Created .inspecto/prompts.local.json
|
|
34
|
+
[32m✔[39m 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
|
+
[32m✔[39m 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
|
+
[32m✔[39m 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
|
+
[32m✔[39m Dependencies installed successfully
|
|
41
57
|
|
|
58
|
+
- Installing devDependencies via: pnpm add -D @inspecto-dev/plugin @inspecto-dev/core
|
|
59
|
+
[32m✔[39m 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
|
-
|
|
60
|
-
|
|
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/
|
|
145
|
-
✓ tests/integration-doctor.test.ts (4 tests)
|
|
146
|
-
✓ tests/
|
|
147
|
-
✓ tests/
|
|
148
|
-
✓ tests/
|
|
149
|
-
✓ tests/
|
|
150
|
-
✓ tests/
|
|
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/
|
|
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)
|
|
193
|
-
✓ tests/
|
|
194
|
-
✓ tests/
|
|
195
|
-
✓ tests/
|
|
196
|
-
✓ tests/
|
|
197
|
-
✓ tests/
|
|
198
|
-
✓ tests/
|
|
199
|
-
✓ tests/runner-script.test.ts (15 tests)
|
|
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
|
|
205
|
-
Duration
|
|
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
package/dist/bin.js
CHANGED
|
@@ -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://
|
|
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://
|
|
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://
|
|
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(
|
|
4790
|
-
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inspecto-dev/cli",
|
|
3
|
-
"version": "0.3.
|
|
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.
|
|
25
|
+
"@inspecto-dev/types": "0.3.10"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^20.19.39",
|
package/src/commands/mcp.ts
CHANGED
|
@@ -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://
|
|
244
|
+
return port ? `http://127.0.0.1:${port}` : null
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
export function resolveServerPorts(cwd: string): number[] {
|
package/src/instructions.ts
CHANGED
|
@@ -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://
|
|
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>>(
|
|
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>>(
|
|
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://
|
|
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://
|
|
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://
|
|
69
|
+
expect(resolveInspectoServerBaseUrl(nestedCwd)).toBe('http://127.0.0.1:5681')
|
|
70
70
|
})
|
|
71
71
|
|
|
72
72
|
it('exposes the expected MCP tool definitions', () => {
|