@posthog/wizard 2.30.0 → 2.32.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.
- package/README.md +35 -1
- package/dist/README.md +33 -0
- package/dist/{add-mcp-server-to-clients-D0G4cmPf.js → add-mcp-server-to-clients-Dc0yssCM.js} +4 -4
- package/dist/{add-mcp-server-to-clients-D0G4cmPf.js.map → add-mcp-server-to-clients-Dc0yssCM.js.map} +1 -1
- package/dist/{agent-interface-CYFyWCMj.js → agent-interface-c7B2JZEd.js} +483 -416
- package/dist/agent-interface-c7B2JZEd.js.map +1 -0
- package/dist/{agent-runner-HTfFCUrR.js → agent-runner-Am34bBUT.js} +39 -23
- package/dist/agent-runner-Am34bBUT.js.map +1 -0
- package/dist/{analytics-CdT0VV8s.js → analytics-CBIKy9PZ.js} +14 -6
- package/dist/analytics-CBIKy9PZ.js.map +1 -0
- package/dist/{api-D9CerM6x.js → api-Blg3nvvZ.js} +3 -3
- package/dist/{api-D9CerM6x.js.map → api-Blg3nvvZ.js.map} +1 -1
- package/dist/bin.js +103 -53
- package/dist/bin.js.map +1 -1
- package/dist/{ci-install-CTydrjHu.js → ci-install-51ntd9x5.js} +4 -4
- package/dist/{ci-install-CTydrjHu.js.map → ci-install-51ntd9x5.js.map} +1 -1
- package/dist/{debug-D9giWww2.js → debug-AdvgwKEw.js} +9 -10
- package/dist/debug-AdvgwKEw.js.map +1 -0
- package/dist/{debug-Bmq9KH4W.js → debug-cy_jyRb4.js} +1 -1
- package/dist/{environment-C6j-a4Gz.js → environment-B6TW5v9d.js} +3 -3
- package/dist/{environment-C6j-a4Gz.js.map → environment-B6TW5v9d.js.map} +1 -1
- package/dist/{file-utils-BiElGS_N.js → file-utils-8tUk_eEX.js} +2 -2
- package/dist/{file-utils-BiElGS_N.js.map → file-utils-8tUk_eEX.js.map} +1 -1
- package/dist/{interactive-C0Vssetd.js → interactive-CApktTrj.js} +2 -2
- package/dist/{interactive-C0Vssetd.js.map → interactive-CApktTrj.js.map} +1 -1
- package/dist/{mcp-prompt-streaming-DQXxG2Pg.js → mcp-prompt-streaming-BKcU9yuz.js} +4 -4
- package/dist/{mcp-prompt-streaming-DQXxG2Pg.js.map → mcp-prompt-streaming-BKcU9yuz.js.map} +1 -1
- package/dist/{non-interactive-DX-N3ZEb.js → non-interactive-DejTdRTW.js} +2 -2
- package/dist/{non-interactive-DX-N3ZEb.js.map → non-interactive-DejTdRTW.js.map} +1 -1
- package/dist/{package-manager-cIPAT7g3.js → package-manager-DBfgSXNn.js} +2 -2
- package/dist/{package-manager-cIPAT7g3.js.map → package-manager-DBfgSXNn.js.map} +1 -1
- package/dist/{playground-DQI2vpr0.js → playground-BOg2U1AT.js} +4 -4
- package/dist/{playground-DQI2vpr0.js.map → playground-BOg2U1AT.js.map} +1 -1
- package/dist/{posthog-integration-EUokB9U1.js → posthog-integration-gLhOUdPJ.js} +13 -14
- package/dist/{posthog-integration-EUokB9U1.js.map → posthog-integration-gLhOUdPJ.js.map} +1 -1
- package/dist/{provisioning-BCCeBATw.js → provisioning-DuzclqPB.js} +3 -3
- package/dist/{provisioning-BCCeBATw.js.map → provisioning-DuzclqPB.js.map} +1 -1
- package/dist/{registry-DCxIW2G5.js → registry-Dbl-5SnO.js} +4 -4
- package/dist/{registry-DCxIW2G5.js.map → registry-Dbl-5SnO.js.map} +1 -1
- package/dist/{setup-utils-DmX3o2bT.js → setup-utils-B6wbp3s0.js} +8 -8
- package/dist/{setup-utils-DmX3o2bT.js.map → setup-utils-B6wbp3s0.js.map} +1 -1
- package/dist/{start-tui-B9dCp0hW.js → start-tui-IoQh-Nhj.js} +13 -13
- package/dist/{start-tui-B9dCp0hW.js.map → start-tui-IoQh-Nhj.js.map} +1 -1
- package/dist/{steps-3XbXMf0T.js → steps-CJrqlHbo.js} +7 -7
- package/dist/{steps-3XbXMf0T.js.map → steps-CJrqlHbo.js.map} +1 -1
- package/dist/{telemetry-GFq8wmz0.js → telemetry-1m0CyTry.js} +3 -3
- package/dist/{telemetry-GFq8wmz0.js.map → telemetry-1m0CyTry.js.map} +1 -1
- package/dist/{terminal-oI1dOWQI.js → terminal-BKI4i72f.js} +9 -9
- package/dist/{terminal-oI1dOWQI.js.map → terminal-BKI4i72f.js.map} +1 -1
- package/dist/{urls-93eQ-Rd0.js → urls-B3JumpLT.js} +2 -2
- package/dist/{urls-93eQ-Rd0.js.map → urls-B3JumpLT.js.map} +1 -1
- package/dist/{wizard-abort-dmkJqxAb.js → wizard-abort-D7SzKUgE.js} +1 -1
- package/dist/{wizard-abort-BehJBPpy.js → wizard-abort-PqLMKSh1.js} +3 -3
- package/dist/{wizard-abort-BehJBPpy.js.map → wizard-abort-PqLMKSh1.js.map} +1 -1
- package/package.json +16 -52
- package/dist/agent-interface-CYFyWCMj.js.map +0 -1
- package/dist/agent-runner-HTfFCUrR.js.map +0 -1
- package/dist/analytics-CdT0VV8s.js.map +0 -1
- package/dist/debug-D9giWww2.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Q as WIZARD_USER_AGENT } from "./debug-
|
|
1
|
+
import { Q as WIZARD_USER_AGENT } from "./debug-AdvgwKEw.js";
|
|
2
2
|
import axios from "axios";
|
|
3
3
|
//#region src/utils/urls.ts
|
|
4
4
|
const getUiHostFromHost = (host) => {
|
|
@@ -32,4 +32,4 @@ const getLlmGatewayUrlFromHost = (host) => {
|
|
|
32
32
|
//#endregion
|
|
33
33
|
export { getUiHostFromHost as a, getLlmGatewayUrlFromHost as i, getCloudUrlFromRegion as n, getHostFromRegion as r, detectRegionFromToken as t };
|
|
34
34
|
|
|
35
|
-
//# sourceMappingURL=urls-
|
|
35
|
+
//# sourceMappingURL=urls-B3JumpLT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urls-
|
|
1
|
+
{"version":3,"file":"urls-B3JumpLT.js","names":[],"sources":["../src/utils/urls.ts"],"sourcesContent":["import axios from 'axios';\nimport { IS_DEV, WIZARD_USER_AGENT } from '@lib/constants';\nimport type { CloudRegion } from './types';\n\nexport const getAssetHostFromHost = (host: string) => {\n if (host.includes('us.i.posthog.com')) {\n return 'https://us-assets.i.posthog.com';\n }\n\n if (host.includes('eu.i.posthog.com')) {\n return 'https://eu-assets.i.posthog.com';\n }\n\n return host;\n};\n\nexport const getUiHostFromHost = (host: string) => {\n if (host.includes('us.i.posthog.com')) {\n return 'https://us.posthog.com';\n }\n\n if (host.includes('eu.i.posthog.com')) {\n return 'https://eu.posthog.com';\n }\n\n return host;\n};\n\nexport const getHostFromRegion = (region: CloudRegion) => {\n if (IS_DEV) {\n return 'http://localhost:8010';\n }\n\n if (region === 'eu') {\n return 'https://eu.i.posthog.com';\n }\n\n return 'https://us.i.posthog.com';\n};\n\nexport const getCloudUrlFromRegion = (region: CloudRegion) => {\n if (IS_DEV) {\n return 'http://localhost:8010';\n }\n\n if (region === 'eu') {\n return 'https://eu.posthog.com';\n }\n\n return 'https://us.posthog.com';\n};\n\nexport async function detectRegionFromToken(\n accessToken: string,\n): Promise<CloudRegion> {\n if (IS_DEV) {\n return 'us';\n }\n\n const headers = {\n Authorization: `Bearer ${accessToken}`,\n 'User-Agent': WIZARD_USER_AGENT,\n };\n\n const [usResult, euResult] = await Promise.allSettled([\n axios.get('https://us.posthog.com/api/users/@me/', { headers }),\n axios.get('https://eu.posthog.com/api/users/@me/', { headers }),\n ]);\n\n if (usResult.status === 'fulfilled') return 'us';\n if (euResult.status === 'fulfilled') return 'eu';\n\n throw new Error(\n 'Could not determine cloud region from access token. Please check your PostHog account.',\n );\n}\n\nexport const getLlmGatewayUrlFromHost = (host: string) => {\n if (host.includes('localhost')) {\n return 'http://localhost:3308/wizard';\n }\n\n if (host.includes('eu.posthog.com') || host.includes('eu.i.posthog.com')) {\n return 'https://gateway.eu.posthog.com/wizard';\n }\n\n return 'https://gateway.us.posthog.com/wizard';\n};\n"],"mappings":";;;AAgBA,MAAa,qBAAqB,SAAiB;AACjD,KAAI,KAAK,SAAS,mBAAmB,CACnC,QAAO;AAGT,KAAI,KAAK,SAAS,mBAAmB,CACnC,QAAO;AAGT,QAAO;;AAGT,MAAa,qBAAqB,WAAwB;AAKxD,KAAI,WAAW,KACb,QAAO;AAGT,QAAO;;AAGT,MAAa,yBAAyB,WAAwB;AAK5D,KAAI,WAAW,KACb,QAAO;AAGT,QAAO;;AAGT,eAAsB,sBACpB,aACsB;CAKtB,MAAM,UAAU;EACd,eAAe,UAAU;EACzB,cAAc;EACf;CAED,MAAM,CAAC,UAAU,YAAY,MAAM,QAAQ,WAAW,CACpD,MAAM,IAAI,yCAAyC,EAAE,SAAS,CAAC,EAC/D,MAAM,IAAI,yCAAyC,EAAE,SAAS,CAAC,CAChE,CAAC;AAEF,KAAI,SAAS,WAAW,YAAa,QAAO;AAC5C,KAAI,SAAS,WAAW,YAAa,QAAO;AAE5C,OAAM,IAAI,MACR,yFACD;;AAGH,MAAa,4BAA4B,SAAiB;AACxD,KAAI,KAAK,SAAS,YAAY,CAC5B,QAAO;AAGT,KAAI,KAAK,SAAS,iBAAiB,IAAI,KAAK,SAAS,mBAAmB,CACtE,QAAO;AAGT,QAAO"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as wizardAbort, t as WizardError } from "./wizard-abort-
|
|
1
|
+
import { i as wizardAbort, t as WizardError } from "./wizard-abort-PqLMKSh1.js";
|
|
2
2
|
export { WizardError, wizardAbort };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as getUI, s as logToFile } from "./debug-
|
|
2
|
-
import { t as analytics } from "./analytics-
|
|
1
|
+
import { p as getUI, s as logToFile } from "./debug-AdvgwKEw.js";
|
|
2
|
+
import { t as analytics } from "./analytics-CBIKy9PZ.js";
|
|
3
3
|
//#region src/utils/wizard-abort.ts
|
|
4
4
|
/**
|
|
5
5
|
* Single exit point for the wizard. Use instead of process.exit() directly.
|
|
@@ -45,4 +45,4 @@ async function wizardAbort(options) {
|
|
|
45
45
|
//#endregion
|
|
46
46
|
export { wizardAbort as i, registerCleanup as n, runCleanups as r, WizardError as t };
|
|
47
47
|
|
|
48
|
-
//# sourceMappingURL=wizard-abort-
|
|
48
|
+
//# sourceMappingURL=wizard-abort-PqLMKSh1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wizard-abort-
|
|
1
|
+
{"version":3,"file":"wizard-abort-PqLMKSh1.js","names":[],"sources":["../src/utils/wizard-abort.ts"],"sourcesContent":["/**\n * Single exit point for the wizard. Use instead of process.exit() directly.\n *\n * Sequence: cleanup -> error capture (optional) -> analytics shutdown -> outro -> process.exit\n *\n * WizardError is a data carrier passed to wizardAbort() for analytics context, never thrown.\n * The legacy abort() in setup-utils.ts delegates here.\n */\nimport { analytics } from './analytics';\nimport { logToFile } from './debug';\nimport { getUI } from '@ui';\nimport { OutroKind, type OutroData } from '@lib/wizard-session';\n\nexport class WizardError extends Error {\n constructor(\n message: string,\n public readonly context?: Record<string, unknown>,\n ) {\n super(message);\n this.name = 'WizardError';\n }\n}\n\ninterface WizardAbortOptions {\n message?: string;\n /** Structured error data. Renders via `outroError` instead of `outro`. */\n outroData?: OutroData;\n error?: Error | WizardError;\n exitCode?: number;\n}\n\nconst cleanupFns: Array<() => void> = [];\n\nexport function registerCleanup(fn: () => void): void {\n cleanupFns.push(fn);\n}\n\nexport function clearCleanup(): void {\n cleanupFns.length = 0;\n}\n\n/** Runs all registered cleanup functions and drains the array. */\nexport function runCleanups(): void {\n const fns = cleanupFns.splice(0);\n for (const fn of fns) {\n try {\n fn();\n } catch {\n /* cleanup should not prevent exit */\n }\n }\n}\n\nexport async function wizardAbort(\n options?: WizardAbortOptions,\n): Promise<never> {\n const {\n message = 'Wizard setup cancelled.',\n outroData,\n error,\n exitCode = 1,\n } = options ?? {};\n\n logToFile(`[wizard-abort] exitCode=${exitCode}, message: ${message}`);\n if (error) {\n logToFile('[wizard-abort] error:', error);\n }\n\n // 1. Run registered cleanup functions\n runCleanups();\n\n // 2. Capture error in analytics (if provided)\n if (error) {\n analytics.captureException(error, {\n ...((error instanceof WizardError && error.context) || {}),\n });\n }\n\n // 3. Shutdown analytics\n await analytics.shutdown(error ? 'error' : 'cancelled');\n\n // 4. Render the error outro. Synthesize OutroData from `message`\n // when the caller didn't provide structured data.\n const ui = getUI();\n ui.outroError(outroData ?? { kind: OutroKind.Error, message });\n\n // 5. Wait for the user to dismiss the outro screen. In a TUI this gives\n // them time to read the error; in non-TUI environments it resolves\n // immediately.\n await ui.waitForOutroDismissed();\n\n // 6. Exit (fires 'exit' event so TUI cleanup runs)\n return process.exit(exitCode);\n}\n"],"mappings":";;;;;;;;;;;AAaA,IAAa,cAAb,cAAiC,MAAM;CACrC,YACE,SACA,SACA;AACA,QAAM,QAAQ;AAFE,OAAA,UAAA;AAGhB,OAAK,OAAO;;;AAYhB,MAAM,aAAgC,EAAE;AAExC,SAAgB,gBAAgB,IAAsB;AACpD,YAAW,KAAK,GAAG;;;AAQrB,SAAgB,cAAoB;CAClC,MAAM,MAAM,WAAW,OAAO,EAAE;AAChC,MAAK,MAAM,MAAM,IACf,KAAI;AACF,MAAI;SACE;;AAMZ,eAAsB,YACpB,SACgB;CAChB,MAAM,EACJ,UAAU,2BACV,WACA,OACA,WAAW,MACT,WAAW,EAAE;AAEjB,WAAU,2BAA2B,SAAS,aAAa,UAAU;AACrE,KAAI,MACF,WAAU,yBAAyB,MAAM;AAI3C,cAAa;AAGb,KAAI,MACF,WAAU,iBAAiB,OAAO,EAChC,GAAK,iBAAiB,eAAe,MAAM,WAAY,EAAE,EAC1D,CAAC;AAIJ,OAAM,UAAU,SAAS,QAAQ,UAAU,YAAY;CAIvD,MAAM,KAAK,OAAO;AAClB,IAAG,WAAW,aAAa;EAAE,MAAA;EAAuB;EAAS,CAAC;AAK9D,OAAM,GAAG,uBAAuB;AAGhC,QAAO,QAAQ,KAAK,SAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posthog/wizard",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.0",
|
|
4
4
|
"homepage": "https://github.com/PostHog/wizard",
|
|
5
5
|
"repository": "https://github.com/PostHog/wizard",
|
|
6
6
|
"description": "The PostHog wizard helps you to configure your project",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@anthropic-ai/claude-agent-sdk": "0.3.169",
|
|
36
36
|
"@inkjs/ui": "^2.0.0",
|
|
37
37
|
"@langchain/core": "^0.3.40",
|
|
38
|
+
"@posthog/warlock": "0.2.2",
|
|
38
39
|
"axios": "1.7.4",
|
|
39
40
|
"fast-glob": "^3.3.3",
|
|
40
41
|
"glob": "9.3.5",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"xcode": "3.0.1",
|
|
55
56
|
"xml-js": "^1.6.11",
|
|
56
57
|
"yargs": "^16.2.0",
|
|
57
|
-
"zod": "^3.
|
|
58
|
+
"zod": "^3.25.76",
|
|
58
59
|
"zod-to-json-schema": "^3.24.3"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
"@babel/plugin-transform-modules-commonjs": "^7.28.6",
|
|
63
64
|
"@babel/preset-env": "^7.29.0",
|
|
64
65
|
"@babel/types": "~7.21.4",
|
|
66
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
65
67
|
"@types/chai": "^4.3.17",
|
|
66
68
|
"@types/glob": "^7.2.0",
|
|
67
69
|
"@types/inquirer": "^0.0.43",
|
|
@@ -75,6 +77,8 @@
|
|
|
75
77
|
"@types/yargs": "^16.0.9",
|
|
76
78
|
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
77
79
|
"@typescript-eslint/parser": "^5.13.0",
|
|
80
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
81
|
+
"@xterm/headless": "^6.0.0",
|
|
78
82
|
"babel-jest": "^29.7.0",
|
|
79
83
|
"dotenv": "^16.4.7",
|
|
80
84
|
"eslint": "^8.18.0",
|
|
@@ -85,63 +89,20 @@
|
|
|
85
89
|
"jest": "^29.5.0",
|
|
86
90
|
"lint-staged": "^15.5.1",
|
|
87
91
|
"msw": "^2.10.4",
|
|
92
|
+
"node-pty": "^1.1.0",
|
|
88
93
|
"prettier": "^2.8.7",
|
|
89
94
|
"rimraf": "^3.0.2",
|
|
90
95
|
"ts-jest": "^29.1.0",
|
|
91
96
|
"ts-node": "^10.9.1",
|
|
92
97
|
"tsdown": "^0.21.9",
|
|
93
98
|
"tsx": "^4.20.3",
|
|
94
|
-
"typescript": "^5.0.4"
|
|
99
|
+
"typescript": "^5.0.4",
|
|
100
|
+
"vitest": "^3.2.4"
|
|
95
101
|
},
|
|
96
102
|
"engines": {
|
|
97
103
|
"node": "^20.20.0 || >=22.22.0",
|
|
98
104
|
"npm": ">=3.10.7"
|
|
99
105
|
},
|
|
100
|
-
"jest": {
|
|
101
|
-
"collectCoverage": true,
|
|
102
|
-
"coveragePathIgnorePatterns": [
|
|
103
|
-
"dist"
|
|
104
|
-
],
|
|
105
|
-
"transform": {
|
|
106
|
-
"^.+\\.tsx?$": "ts-jest",
|
|
107
|
-
"node_modules/.+\\.js$": "babel-jest"
|
|
108
|
-
},
|
|
109
|
-
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
|
110
|
-
"moduleFileExtensions": [
|
|
111
|
-
"ts",
|
|
112
|
-
"tsx",
|
|
113
|
-
"js",
|
|
114
|
-
"jsx",
|
|
115
|
-
"json"
|
|
116
|
-
],
|
|
117
|
-
"modulePathIgnorePatterns": [
|
|
118
|
-
"<rootDir>/dist/"
|
|
119
|
-
],
|
|
120
|
-
"testPathIgnorePatterns": [
|
|
121
|
-
"/dist/",
|
|
122
|
-
"/node_modules/",
|
|
123
|
-
"\\.d\\.(jsx?|tsx?)$",
|
|
124
|
-
"\\.no-jest\\.(jsx?|tsx?)$",
|
|
125
|
-
"/e2e-tests/"
|
|
126
|
-
],
|
|
127
|
-
"testEnvironment": "node",
|
|
128
|
-
"transformIgnorePatterns": [
|
|
129
|
-
"node_modules/(?!(.pnpm/nanostores|nanostores))"
|
|
130
|
-
],
|
|
131
|
-
"moduleNameMapper": {
|
|
132
|
-
"^@anthropic-ai/claude-agent-sdk$": "<rootDir>/__mocks__/@anthropic-ai/claude-agent-sdk.ts",
|
|
133
|
-
"^ink$": "<rootDir>/__mocks__/ink.ts",
|
|
134
|
-
"^@env$": "<rootDir>/src/env.ts",
|
|
135
|
-
"^@lib/(.*)$": "<rootDir>/src/lib/$1",
|
|
136
|
-
"^@utils/(.*)$": "<rootDir>/src/utils/$1",
|
|
137
|
-
"^@ui$": "<rootDir>/src/ui/index.ts",
|
|
138
|
-
"^@ui/(.*)$": "<rootDir>/src/ui/$1",
|
|
139
|
-
"^@steps$": "<rootDir>/src/steps/index.ts",
|
|
140
|
-
"^@steps/(.*)$": "<rootDir>/src/steps/$1",
|
|
141
|
-
"^@frameworks/(.*)$": "<rootDir>/src/frameworks/$1",
|
|
142
|
-
"^(\\.{1,2}/.*)\\.js$": "$1"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
106
|
"lint-staged": {
|
|
146
107
|
".claude/settings.json": "sh -c 'printf \"\\n\\033[31mDo not commit .claude/settings.json — use .claude/settings.local.json (gitignored).\\nUnstage with: git restore --staged .claude/settings.json\\033[0m\\n\\n\" >&2 && exit 1'",
|
|
147
108
|
"*.{js,ts,tsx,jsx}": [
|
|
@@ -162,7 +123,7 @@
|
|
|
162
123
|
"build": "tsdown",
|
|
163
124
|
"build:ci": "WIZARD_BUILD_NODE_ENV=ci pnpm build",
|
|
164
125
|
"typecheck": "tsc --noEmit",
|
|
165
|
-
"postbuild": "chmod +x ./dist/bin.js && cp -r scripts/** dist && pnpm test:smoke",
|
|
126
|
+
"postbuild": "chmod +x ./dist/bin.js && cp -r scripts/** dist && rm -f dist/*.no-jest.* && pnpm test:smoke",
|
|
166
127
|
"test:smoke": "bash ./scripts/smoke-test.sh",
|
|
167
128
|
"lint": "pnpm lint:prettier && pnpm lint:eslint",
|
|
168
129
|
"lint:prettier": "prettier --check \"{lib,src,test}/**/*.ts\"",
|
|
@@ -170,12 +131,15 @@
|
|
|
170
131
|
"fix": "pnpm fix:eslint && pnpm fix:prettier",
|
|
171
132
|
"fix:prettier": "prettier --write \"{lib,src,test}/**/*.ts\"",
|
|
172
133
|
"fix:eslint": "eslint . --cache --format stylish --fix",
|
|
173
|
-
"test": "pnpm build &&
|
|
134
|
+
"test": "pnpm build && vitest run",
|
|
135
|
+
"test:coverage": "pnpm build && vitest run --coverage",
|
|
174
136
|
"test:e2e": "pnpm build && ./e2e-tests/run.sh",
|
|
175
137
|
"test:e2e-record": "export RECORD_FIXTURES=true && pnpm build && ./e2e-tests/run.sh",
|
|
176
138
|
"try": "tsx bin.ts",
|
|
177
139
|
"dev": "pnpm build && pnpm link --global && pnpm build:watch",
|
|
178
|
-
"test:watch": "
|
|
179
|
-
"screens:check": "tsx scripts/check-screens.tsx"
|
|
140
|
+
"test:watch": "vitest",
|
|
141
|
+
"screens:check": "tsx scripts/check-screens.tsx",
|
|
142
|
+
"wizard-ci-explore": "tsx scripts/wizard-ci-explore.no-jest.ts",
|
|
143
|
+
"wizard-ci-replay": "tsx scripts/tui-replay.no-jest.ts"
|
|
180
144
|
}
|
|
181
145
|
}
|