@runa-ai/runa-cli 0.5.50 → 0.5.52

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.
Files changed (32) hide show
  1. package/dist/commands/ci/utils/app-runtime.d.ts +16 -1
  2. package/dist/commands/ci/utils/app-runtime.d.ts.map +1 -1
  3. package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts +14 -0
  4. package/dist/commands/db/apply/helpers/pg-schema-diff-helpers.d.ts.map +1 -1
  5. package/dist/commands/db/apply/helpers/retry-logic.d.ts.map +1 -1
  6. package/dist/commands/db/constants.d.ts +3 -3
  7. package/dist/commands/db/constants.d.ts.map +1 -1
  8. package/dist/commands/db/utils/db-target.d.ts.map +1 -1
  9. package/dist/commands/db/utils/preflight-check.d.ts.map +1 -1
  10. package/dist/commands/dev/machine.d.ts.map +1 -1
  11. package/dist/commands/env/commands/env-pull.d.ts.map +1 -1
  12. package/dist/commands/env/constants/local-supabase.d.ts +30 -62
  13. package/dist/commands/env/constants/local-supabase.d.ts.map +1 -1
  14. package/dist/commands/inject-test-attrs/action.d.ts.map +1 -1
  15. package/dist/commands/inject-test-attrs/commands/inject-test-attrs.d.ts.map +1 -1
  16. package/dist/commands/inject-test-attrs/contract.d.ts +118 -0
  17. package/dist/commands/inject-test-attrs/contract.d.ts.map +1 -1
  18. package/dist/commands/inject-test-attrs/detection-diagnostics.d.ts +67 -0
  19. package/dist/commands/inject-test-attrs/detection-diagnostics.d.ts.map +1 -0
  20. package/dist/commands/inject-test-attrs/manifest-generator.d.ts +7 -1
  21. package/dist/commands/inject-test-attrs/manifest-generator.d.ts.map +1 -1
  22. package/dist/commands/inject-test-attrs/processor-utils.d.ts.map +1 -1
  23. package/dist/commands/inject-test-attrs/processor.d.ts.map +1 -1
  24. package/dist/commands/inject-test-attrs/types.d.ts +57 -0
  25. package/dist/commands/inject-test-attrs/types.d.ts.map +1 -1
  26. package/dist/commands/manifest/index.d.ts.map +1 -1
  27. package/dist/commands/test/commands/test-e2e.d.ts.map +1 -1
  28. package/dist/commands/test/commands/test-integration.d.ts.map +1 -1
  29. package/dist/commands/test/commands/test-layer.d.ts.map +1 -1
  30. package/dist/commands/test/commands/test.d.ts.map +1 -1
  31. package/dist/index.js +1205 -585
  32. package/package.json +1 -1
@@ -1,9 +1,10 @@
1
1
  /**
2
- * AI HINT: App runtime helpers for CI
2
+ * AI HINT: App runtime helpers for CI and Dev
3
3
  *
4
4
  * - Write `.env.local` for Next.js runtime
5
5
  * - Start app in background
6
6
  * - Wait for readiness
7
+ * - Clean stale Next.js dev state
7
8
  */
8
9
  export declare function writeEnvLocal(params: {
9
10
  appDir: string;
@@ -15,6 +16,20 @@ export declare function writeEnvLocal(params: {
15
16
  * - 'start': Production mode (next start, requires build)
16
17
  */
17
18
  export type AppMode = 'dev' | 'start';
19
+ /**
20
+ * Clean stale Next.js dev state that prevents `next dev` from starting.
21
+ *
22
+ * When Next.js dev server is killed without graceful shutdown (SIGKILL, crash,
23
+ * power loss), the .next directory can be left in a corrupted state.
24
+ * Subsequent `next dev` starts may fail with manifest errors or port conflicts
25
+ * even though no process is actually running.
26
+ *
27
+ * This function detects and cleans stale .next state before starting.
28
+ */
29
+ export declare function cleanStaleNextDevState(appDir: string): {
30
+ cleaned: boolean;
31
+ reason?: string;
32
+ };
18
33
  export declare function startAppBackground(params: {
19
34
  repoRoot: string;
20
35
  appDir: string;
@@ -1 +1 @@
1
- {"version":3,"file":"app-runtime.d.ts","sourceRoot":"","sources":["../../../../src/commands/ci/utils/app-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+GH,wBAAsB,aAAa,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB;AAiHD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,OAAO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AAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,6FAA6F;IAC7F,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wEAAwE;IACxE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,GAAG,OAAO,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,CA+DvD;AAED,wBAAsB,eAAe,CAAC,MAAM,EAAE;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAOhB"}
@@ -116,6 +116,20 @@ export declare function handleHazardsWithContext(planOutput: string, input: DbAp
116
116
  hasDeletesData: boolean;
117
117
  hasAuthzUpdate: boolean;
118
118
  };
119
+ export interface MissingExtensionDetection {
120
+ detected: boolean;
121
+ missingTypes: string[];
122
+ suggestedExtensions: string[];
123
+ }
124
+ /**
125
+ * Detect "type X does not exist" errors in pg-schema-diff output
126
+ * and map them to the required PostgreSQL extensions.
127
+ */
128
+ export declare function detectMissingExtensionType(errorOutput: string): MissingExtensionDetection;
129
+ /**
130
+ * Format actionable hint for missing extension type errors.
131
+ */
132
+ export declare function formatExtensionErrorHint(detection: MissingExtensionDetection): string;
119
133
  /**
120
134
  * Options for pg-schema-diff plan execution.
121
135
  */
@@ -1 +1 @@
1
- {"version":3,"file":"pg-schema-diff-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/commands/db/apply/helpers/pg-schema-diff-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAqBnD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CA+ChE;AAED;;;;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AgB3E;AAED;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,kBAAkB,EAAE,OAAO,GAAG,IAAI,CAmBjF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAchE;AAMD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,EAAE,CAyBjE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,YAAY,GAAG,IAAI,CAsB1E;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,YAAY,EACnB,UAAU,CAAC,EAAE,MAAM,GAClB;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,cAAc,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAE,CAsDzE;AAMD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EAAE,EACxB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,uBAAuB,GAChC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAgD5C"}
1
+ {"version":3,"file":"pg-schema-diff-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/commands/db/apply/helpers/pg-schema-diff-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAqBnD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CA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AAE,MAAM,CAAA;CAAE,CAuD5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"retry-logic.d.ts","sourceRoot":"","sources":["../../../../../src/commands/db/apply/helpers/retry-logic.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,iEAAiE;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,SAAuB,GAAG,MAAM,CAIhG;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAM/D;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,WAAW,CAAC,CA8DtB"}
1
+ {"version":3,"file":"retry-logic.d.ts","sourceRoot":"","sources":["../../../../../src/commands/db/apply/helpers/retry-logic.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,iEAAiE;IACjE,QAAQ,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,SAAuB,GAAG,MAAM,CAIhG;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAM/D;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,WAAW,CAAC,CAqEtB"}
@@ -37,7 +37,7 @@ export declare function detectSupabasePorts(projectRoot?: string): SupabasePorts
37
37
  */
38
38
  export declare const DATABASE_DEFAULTS: {
39
39
  readonly SUPABASE_LOCAL: {
40
- readonly HOST: "127.0.0.1";
40
+ readonly HOST: string;
41
41
  readonly PORT: number;
42
42
  readonly USER: "postgres";
43
43
  readonly PASSWORD: "postgres";
@@ -82,11 +82,11 @@ export declare const ERROR_MESSAGES: {
82
82
  readonly TYPE_GENERATION_FAILED: "Type generation failed";
83
83
  };
84
84
  /**
85
- * Get Supabase access points from running instance.
85
+ * Get Supabase access points from local configuration defaults.
86
86
  *
87
87
  * @param projectRoot - Project root directory (defaults to process.cwd())
88
88
  * @returns Access point URLs
89
- * @throws Error if Supabase is not running
89
+ * @remarks Uses local `supabase/config.toml` defaults when available.
90
90
  */
91
91
  export declare function getSupabaseAccessPoints(projectRoot?: string): {
92
92
  studio: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/commands/db/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAMjD,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,aAAa,CA6DvE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;uBASd,MAAM;;;;;;;;;;;;;;yBAuBF,MAAM;CA+ChB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;CAYhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA0BlD,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;4CACM,MAAM,gBAAgB,MAAM;;;;;;;CAQnD,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;CACZ,CAOA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/commands/db/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAWjD,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,aAAa,CAiEvE;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB;;;uBAWd,MAAM;;;;;;;;;;;;;;yBAuBF,MAAM;CAyDhB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;CAYhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA0BlD,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;4CACM,MAAM,gBAAgB,MAAM;;;;;;;CAQnD,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;CACZ,CAYA"}
@@ -1 +1 @@
1
- {"version":3,"file":"db-target.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/utils/db-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,CAAC;AAyBpE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAqDjE;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAUhF"}
1
+ {"version":3,"file":"db-target.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/utils/db-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,CAAC;AAkCpE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAqDjE;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAUhF"}
@@ -1 +1 @@
1
- {"version":3,"file":"preflight-check.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/utils/preflight-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAsBH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAwrBD;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAenF"}
1
+ {"version":3,"file":"preflight-check.d.ts","sourceRoot":"","sources":["../../../../src/commands/db/utils/preflight-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAyBH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAgqBD;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAenF"}
@@ -1 +1 @@
1
- {"version":3,"file":"machine.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/machine.ts"],"names":[],"mappings":"A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E,UAAU,aAAa;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAuCD,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAoBD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIH,QAAQ;cAAY,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;EA8K5C,CAAC;AAMH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAC3C,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;AAM1D;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,CAa1D;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,CAE7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"env-pull.d.ts","sourceRoot":"","sources":["../../../../src/commands/env/commands/env-pull.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAaH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAu9BpC,eAAO,MAAM,WAAW,SA+BpB,CAAC"}
1
+ {"version":3,"file":"env-pull.d.ts","sourceRoot":"","sources":["../../../../src/commands/env/commands/env-pull.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAaH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA8hCpC,eAAO,MAAM,WAAW,SA+BpB,CAAC"}
@@ -1,95 +1,63 @@
1
1
  /**
2
2
  * AI HINT: Local Supabase Constants
3
3
  *
4
- * Purpose: Dynamic values for local Supabase development (supabase start)
5
- * These are public, well-known values used by all Supabase CLI installations.
6
- *
7
- * Source: https://supabase.com/docs/guides/cli/local-development
8
- *
9
- * Port Detection (Priority Order):
10
- * 1. supabase/config.toml [api].port and [db].port settings
11
- * 2. Default Supabase ports (54321 for API, 54322 for DB)
12
- *
13
- * Note: These keys are intentionally public and NOT secrets.
14
- * They are the same for all local Supabase instances.
15
- */
16
- interface SupabasePorts {
4
+ * Purpose:
5
+ * - Centralized local Supabase defaults for CLI environment variable replacement.
6
+ * - Dynamic port/host detection for local development without repo-specific settings.
7
+ *
8
+ * Detection priority:
9
+ * 1. Environment variable overrides (LOCAL_SUPABASE_HOST / *_PORT)
10
+ * 2. `supabase status --output json` (highest runtime truth)
11
+ * 3. `supabase/config.toml` (explicit local config)
12
+ * 4. Hardcoded fallback values
13
+ */
14
+ export interface SupabaseConfig {
15
+ host: string;
17
16
  api: number;
18
17
  db: number;
18
+ studio: number;
19
19
  }
20
20
  /**
21
- * Detect Supabase ports from config.toml or use defaults.
21
+ * Detect local supabase host and ports for env replacement.
22
22
  *
23
23
  * Priority:
24
- * 1. supabase/config.toml settings
25
- * 2. Default ports (54321/54322)
26
- *
27
- * @param projectRoot - Project root directory (defaults to process.cwd())
28
- * @returns Detected ports
24
+ * 1. environment variables
25
+ * 2. `supabase status --output json`
26
+ * 3. `supabase/config.toml` [api].port and [db].port
27
+ * 4. defaults
29
28
  */
30
- export declare function detectLocalSupabasePorts(projectRoot?: string): SupabasePorts;
29
+ export declare function detectLocalSupabasePorts(projectRoot?: string): SupabaseConfig;
31
30
  /**
32
- * Local Supabase anon key (fixed, public value)
33
- * This is the same for all local Supabase instances.
31
+ * Build local Supabase URL from detected host/port.
34
32
  */
35
- export declare const LOCAL_SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0";
33
+ export declare function buildLocalSupabaseUrl(projectRoot?: string): string;
36
34
  /**
37
- * Local Supabase service role key (fixed, public value)
38
- * This is the same for all local Supabase instances.
35
+ * Build local database URL from detected host/port.
39
36
  */
40
- export declare const LOCAL_SUPABASE_SERVICE_ROLE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU";
37
+ export declare function buildLocalDatabaseUrl(projectRoot?: string): string;
41
38
  /**
42
- * Build local Supabase URL from detected port.
39
+ * Local anon key (public, non-secret)
43
40
  */
44
- export declare function buildLocalSupabaseUrl(projectRoot?: string): string;
41
+ export declare const LOCAL_SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0";
45
42
  /**
46
- * Build local database URL from detected port.
43
+ * Local service role key (public, non-secret)
47
44
  */
48
- export declare function buildLocalDatabaseUrl(projectRoot?: string): string;
45
+ export declare const LOCAL_SUPABASE_SERVICE_ROLE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU";
49
46
  /**
50
47
  * Get map of environment variable keys to their local Supabase values.
51
- *
52
- * This function dynamically generates values based on detected ports.
53
- *
54
- * @param projectRoot - Project root directory (defaults to process.cwd())
55
- * @returns Environment variable key-value map
56
48
  */
57
49
  export declare function getLocalSupabaseEnvValues(projectRoot?: string): Record<string, string>;
58
50
  /**
59
- * Get human-readable descriptions for each local value (for summary display).
60
- *
61
- * @param projectRoot - Project root directory (defaults to process.cwd())
62
- * @returns Description map
51
+ * Human-readable replacement description for command output.
63
52
  */
64
53
  export declare function getLocalValueDescriptions(projectRoot?: string): Record<string, string>;
65
54
  /**
66
- * @deprecated Use getLocalSupabaseEnvValues() instead.
67
- * This constant uses default ports; prefer the function for dynamic port detection.
55
+ * Validate host scope to avoid replacing with clearly remote URLs.
68
56
  */
57
+ export declare function validateLocalhostValues(envValues: Record<string, string>): void;
69
58
  export declare const LOCAL_SUPABASE_ENV_VALUES: Record<string, string>;
70
- /**
71
- * @deprecated Use Object.keys(getLocalSupabaseEnvValues()) instead.
72
- */
73
59
  export declare const LOCAL_REPLACEMENT_KEYS: string[];
74
- /**
75
- * @deprecated Use getLocalValueDescriptions() instead.
76
- */
77
60
  export declare const LOCAL_VALUE_DESCRIPTIONS: Record<string, string>;
78
- /**
79
- * @deprecated Use buildLocalSupabaseUrl() instead.
80
- */
81
61
  export declare const LOCAL_SUPABASE_URL = "http://127.0.0.1:54321";
82
- /**
83
- * @deprecated Use buildLocalDatabaseUrl() instead.
84
- */
85
62
  export declare const LOCAL_DATABASE_URL = "postgresql://postgres:postgres@127.0.0.1:54322/postgres";
86
- /**
87
- * Validate that all URL values point to localhost.
88
- * This prevents accidental production URL usage in local development.
89
- *
90
- * @param envValues - Environment values to validate
91
- * @throws Error if any URL doesn't point to localhost
92
- */
93
- export declare function validateLocalhostValues(envValues: Record<string, string>): void;
94
- export {};
95
63
  //# sourceMappingURL=local-supabase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-supabase.d.ts","sourceRoot":"","sources":["../../../../src/commands/env/constants/local-supabase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAgBH,UAAU,aAAa;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;CACZ;AA6DD;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,GAAE,MAAsB,GAAG,aAAa,CAW3F;AAMD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,8JACyH,CAAC;AAE9J;;;GAGG;AACH,eAAO,MAAM,+BAA+B,yKAC4H,CAAC;AAEzK;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,GAAE,MAAsB,GAAG,MAAM,CAGjF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,GAAE,MAAsB,GAAG,MAAM,CAGjF;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,GAAE,MAAsB,GAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAexB;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,GAAE,MAAsB,GAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB;AAMD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA+B,CAAC;AAE7F;;GAEG;AACH,eAAO,MAAM,sBAAsB,UAAyC,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA+B,CAAC;AAE5F;;GAEG;AACH,eAAO,MAAM,kBAAkB,2BAAyC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,kBAAkB,4DAAyE,CAAC;AAMzG;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAwB/E"}
1
+ {"version":3,"file":"local-supabase.d.ts","sourceRoot":"","sources":["../../../../src/commands/env/constants/local-supabase.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAqBH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB;AAqJD;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,GAAE,MAAsB,GAAG,cAAc,CAwC5F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,GAAE,MAAsB,GAAG,MAAM,CAGjF;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,GAAE,MAAsB,GAAG,MAAM,CAGjF;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,8JACyH,CAAC;AAE9J;;GAEG;AACH,eAAO,MAAM,+BAA+B,yKAC4H,CAAC;AAEzK;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,GAAE,MAAsB,GAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAgBxB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,GAAE,MAAsB,GAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAaxB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CA8B/E;AAGD,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA+B,CAAC;AAC7F,eAAO,MAAM,sBAAsB,UAAyC,CAAC;AAC7E,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA+B,CAAC;AAC5F,eAAO,MAAM,kBAAkB,2BAA+C,CAAC;AAC/E,eAAO,MAAM,kBAAkB,4DAA+E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/action.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuFzC;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAgDf"}
1
+ {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/action.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiIzC;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAiEf"}
@@ -1 +1 @@
1
- {"version":3,"file":"inject-test-attrs.d.ts","sourceRoot":"","sources":["../../../../src/commands/inject-test-attrs/commands/inject-test-attrs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,sBAAsB,SAuB/B,CAAC"}
1
+ {"version":3,"file":"inject-test-attrs.d.ts","sourceRoot":"","sources":["../../../../src/commands/inject-test-attrs/commands/inject-test-attrs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,eAAO,MAAM,sBAAsB,SAwB/B,CAAC"}
@@ -16,6 +16,7 @@ export declare const InjectTestAttrsInputSchema: z.ZodObject<{
16
16
  manifest: z.ZodDefault<z.ZodBoolean>;
17
17
  manifestDir: z.ZodDefault<z.ZodString>;
18
18
  resolveSchemas: z.ZodDefault<z.ZodBoolean>;
19
+ strictDetect: z.ZodDefault<z.ZodBoolean>;
19
20
  }, z.core.$strict>;
20
21
  export declare const FileChangeSchema: z.ZodObject<{
21
22
  filePath: z.ZodString;
@@ -27,6 +28,73 @@ export declare const MachineWithoutE2EMetaSchema: z.ZodObject<{
27
28
  id: z.ZodString;
28
29
  sourceFile: z.ZodString;
29
30
  }, z.core.$strip>;
31
+ export declare const DetectionScanSummarySchema: z.ZodObject<{
32
+ totalFiles: z.ZodNumber;
33
+ filesWithMachineDefinitions: z.ZodNumber;
34
+ filesWithMachineHooks: z.ZodNumber;
35
+ filesWithJsxOnly: z.ZodNumber;
36
+ }, z.core.$strict>;
37
+ export declare const MachineResolutionDetailSchema: z.ZodObject<{
38
+ filePath: z.ZodString;
39
+ machineRef: z.ZodString;
40
+ resolvedId: z.ZodString;
41
+ source: z.ZodEnum<{
42
+ explicit: "explicit";
43
+ import: "import";
44
+ inline: "inline";
45
+ fallback: "fallback";
46
+ }>;
47
+ }, z.core.$strict>;
48
+ export declare const DetectionDiagnosticsSchema: z.ZodObject<{
49
+ schemaVersion: z.ZodLiteral<1>;
50
+ scan: z.ZodObject<{
51
+ totalFiles: z.ZodNumber;
52
+ filesWithMachineDefinitions: z.ZodNumber;
53
+ filesWithMachineHooks: z.ZodNumber;
54
+ filesWithJsxOnly: z.ZodNumber;
55
+ }, z.core.$strict>;
56
+ resolution: z.ZodObject<{
57
+ totalMachineUsages: z.ZodNumber;
58
+ bySource: z.ZodObject<{
59
+ explicit: z.ZodNumber;
60
+ import: z.ZodNumber;
61
+ inline: z.ZodNumber;
62
+ fallback: z.ZodNumber;
63
+ }, z.core.$strict>;
64
+ fallbackRate: z.ZodNumber;
65
+ fallbackExamples: z.ZodArray<z.ZodObject<{
66
+ filePath: z.ZodString;
67
+ machineRef: z.ZodString;
68
+ resolvedId: z.ZodString;
69
+ source: z.ZodEnum<{
70
+ explicit: "explicit";
71
+ import: "import";
72
+ inline: "inline";
73
+ fallback: "fallback";
74
+ }>;
75
+ }, z.core.$strict>>;
76
+ }, z.core.$strict>;
77
+ coverage: z.ZodObject<{
78
+ totalManifestMachines: z.ZodNumber;
79
+ linkedManifestMachines: z.ZodNumber;
80
+ unlinkedManifestMachines: z.ZodNumber;
81
+ machineLinkCoverage: z.ZodNumber;
82
+ unlinkedManifestMachineIds: z.ZodArray<z.ZodString>;
83
+ }, z.core.$strict>;
84
+ warnings: z.ZodArray<z.ZodObject<{
85
+ severity: z.ZodEnum<{
86
+ warning: "warning";
87
+ info: "info";
88
+ hint: "hint";
89
+ }>;
90
+ message: z.ZodString;
91
+ }, z.core.$strict>>;
92
+ }, z.core.$strict>;
93
+ export declare const StrictDetectStatusSchema: z.ZodObject<{
94
+ enabled: z.ZodLiteral<true>;
95
+ passed: z.ZodBoolean;
96
+ reasons: z.ZodArray<z.ZodString>;
97
+ }, z.core.$strict>;
30
98
  export declare const InjectTestAttrsOutputSchema: z.ZodObject<{
31
99
  totalFiles: z.ZodNumber;
32
100
  changedFiles: z.ZodNumber;
@@ -44,6 +112,56 @@ export declare const InjectTestAttrsOutputSchema: z.ZodObject<{
44
112
  id: z.ZodString;
45
113
  sourceFile: z.ZodString;
46
114
  }, z.core.$strip>>>;
115
+ detectionDiagnostics: z.ZodOptional<z.ZodObject<{
116
+ schemaVersion: z.ZodLiteral<1>;
117
+ scan: z.ZodObject<{
118
+ totalFiles: z.ZodNumber;
119
+ filesWithMachineDefinitions: z.ZodNumber;
120
+ filesWithMachineHooks: z.ZodNumber;
121
+ filesWithJsxOnly: z.ZodNumber;
122
+ }, z.core.$strict>;
123
+ resolution: z.ZodObject<{
124
+ totalMachineUsages: z.ZodNumber;
125
+ bySource: z.ZodObject<{
126
+ explicit: z.ZodNumber;
127
+ import: z.ZodNumber;
128
+ inline: z.ZodNumber;
129
+ fallback: z.ZodNumber;
130
+ }, z.core.$strict>;
131
+ fallbackRate: z.ZodNumber;
132
+ fallbackExamples: z.ZodArray<z.ZodObject<{
133
+ filePath: z.ZodString;
134
+ machineRef: z.ZodString;
135
+ resolvedId: z.ZodString;
136
+ source: z.ZodEnum<{
137
+ explicit: "explicit";
138
+ import: "import";
139
+ inline: "inline";
140
+ fallback: "fallback";
141
+ }>;
142
+ }, z.core.$strict>>;
143
+ }, z.core.$strict>;
144
+ coverage: z.ZodObject<{
145
+ totalManifestMachines: z.ZodNumber;
146
+ linkedManifestMachines: z.ZodNumber;
147
+ unlinkedManifestMachines: z.ZodNumber;
148
+ machineLinkCoverage: z.ZodNumber;
149
+ unlinkedManifestMachineIds: z.ZodArray<z.ZodString>;
150
+ }, z.core.$strict>;
151
+ warnings: z.ZodArray<z.ZodObject<{
152
+ severity: z.ZodEnum<{
153
+ warning: "warning";
154
+ info: "info";
155
+ hint: "hint";
156
+ }>;
157
+ message: z.ZodString;
158
+ }, z.core.$strict>>;
159
+ }, z.core.$strict>>;
160
+ strictDetect: z.ZodOptional<z.ZodObject<{
161
+ enabled: z.ZodLiteral<true>;
162
+ passed: z.ZodBoolean;
163
+ reasons: z.ZodArray<z.ZodString>;
164
+ }, z.core.$strict>>;
47
165
  }, z.core.$strict>;
48
166
  export type InjectTestAttrsInput = z.infer<typeof InjectTestAttrsInputSchema>;
49
167
  export type InjectTestAttrsOutput = z.infer<typeof InjectTestAttrsOutputSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,0BAA0B;;;;;;;;;kBA8B5B,CAAC;AAGZ,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;kBAc7B,CAAC;AAGZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0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AAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * AI HINT: Detection Diagnostics for inject-test-attrs / manifest
3
+ *
4
+ * Purpose: Summarize machine resolution quality and coverage in a structured way.
5
+ * Usage:
6
+ * - Embed diagnostics into manifest.json
7
+ * - Evaluate strict detection mode in CI
8
+ */
9
+ type WarningSeverity = 'warning' | 'info' | 'hint';
10
+ export type MachineResolutionSource = 'explicit' | 'import' | 'fallback' | 'inline';
11
+ export interface MachineResolutionDetail {
12
+ filePath: string;
13
+ machineRef: string;
14
+ resolvedId: string;
15
+ source: MachineResolutionSource;
16
+ }
17
+ export interface DetectionScanSummary {
18
+ totalFiles: number;
19
+ filesWithMachineDefinitions: number;
20
+ filesWithMachineHooks: number;
21
+ filesWithJsxOnly: number;
22
+ }
23
+ export interface DetectionDiagnosticsWarning {
24
+ severity: WarningSeverity;
25
+ message: string;
26
+ }
27
+ export interface DetectionDiagnostics {
28
+ schemaVersion: 1;
29
+ scan: DetectionScanSummary;
30
+ resolution: {
31
+ totalMachineUsages: number;
32
+ bySource: Record<MachineResolutionSource, number>;
33
+ fallbackRate: number;
34
+ fallbackExamples: MachineResolutionDetail[];
35
+ };
36
+ coverage: {
37
+ totalManifestMachines: number;
38
+ linkedManifestMachines: number;
39
+ unlinkedManifestMachines: number;
40
+ machineLinkCoverage: number;
41
+ unlinkedManifestMachineIds: string[];
42
+ };
43
+ warnings: DetectionDiagnosticsWarning[];
44
+ }
45
+ export interface StrictDetectResult {
46
+ enabled: true;
47
+ passed: boolean;
48
+ reasons: string[];
49
+ }
50
+ interface MachineLinkLike {
51
+ machineName: string;
52
+ usedIn: Array<{
53
+ filePath: string;
54
+ isPage: boolean;
55
+ route: string;
56
+ }>;
57
+ }
58
+ export declare function buildDetectionDiagnostics(params: {
59
+ scanSummary: DetectionScanSummary;
60
+ resolutionDetails: MachineResolutionDetail[];
61
+ manifestMachineIds: string[];
62
+ machineLinks: MachineLinkLike[];
63
+ warnings: DetectionDiagnosticsWarning[];
64
+ }): DetectionDiagnostics;
65
+ export declare function evaluateStrictDetect(diagnostics: DetectionDiagnostics): StrictDetectResult;
66
+ export {};
67
+ //# sourceMappingURL=detection-diagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detection-diagnostics.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/detection-diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,KAAK,eAAe,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AACnD,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEpF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,uBAAuB,CAAC;CACjC;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,2BAA2B,EAAE,MAAM,CAAC;IACpC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,CAAC,CAAC;IACjB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,EAAE;QACV,kBAAkB,EAAE,MAAM,CAAC;QAC3B,QAAQ,EAAE,MAAM,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;QAClD,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,uBAAuB,EAAE,CAAC;KAC7C,CAAC;IACF,QAAQ,EAAE;QACR,qBAAqB,EAAE,MAAM,CAAC;QAC9B,sBAAsB,EAAE,MAAM,CAAC;QAC/B,wBAAwB,EAAE,MAAM,CAAC;QACjC,mBAAmB,EAAE,MAAM,CAAC;QAC5B,0BAA0B,EAAE,MAAM,EAAE,CAAC;KACtC,CAAC;IACF,QAAQ,EAAE,2BAA2B,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,IAAI,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACrE;AAWD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE;IAChD,WAAW,EAAE,oBAAoB,CAAC;IAClC,iBAAiB,EAAE,uBAAuB,EAAE,CAAC;IAC7C,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,YAAY,EAAE,eAAe,EAAE,CAAC;IAChC,QAAQ,EAAE,2BAA2B,EAAE,CAAC;CACzC,GAAG,oBAAoB,CA0DvB;AAED,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,oBAAoB,GAAG,kBAAkB,CA8B1F"}
@@ -11,6 +11,11 @@
11
11
  * @see Issue #... - Manifest file path traversal vulnerability
12
12
  */
13
13
  import type { MachineWithoutE2EMeta } from './contract.js';
14
+ import type { DetectionDiagnostics, DetectionScanSummary, MachineResolutionDetail } from './types.js';
15
+ export interface ManifestGenerationDiagnosticsInput {
16
+ scanSummary: DetectionScanSummary;
17
+ resolutionDetails: MachineResolutionDetail[];
18
+ }
14
19
  /**
15
20
  * Generate and write manifest files with enhanced metadata
16
21
  *
@@ -19,9 +24,10 @@ import type { MachineWithoutE2EMeta } from './contract.js';
19
24
  * @param verbose - Enable verbose logging
20
25
  * @param resolveSchemas - Whether to resolve Zod schemas to JSON Schema (v7+)
21
26
  */
22
- export declare function generateManifestFiles(manifestDir: string, repoRoot: string, verbose: boolean, resolveSchemas?: boolean): Promise<{
27
+ export declare function generateManifestFiles(manifestDir: string, repoRoot: string, verbose: boolean, resolveSchemas?: boolean, diagnosticsInput?: ManifestGenerationDiagnosticsInput): Promise<{
23
28
  manifestPath: string;
24
29
  machineCount: number;
25
30
  machinesWithoutE2EMeta: MachineWithoutE2EMeta[];
31
+ detectionDiagnostics: DetectionDiagnostics;
26
32
  }>;
27
33
  //# sourceMappingURL=manifest-generator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manifest-generator.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/manifest-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAmEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAqY3D;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,GAAE,OAAe,GAC9B,OAAO,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;CACjD,CAAC,CAkID"}
1
+ {"version":3,"file":"manifest-generator.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/manifest-generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAuEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,kCAAkC;IACjD,WAAW,EAAE,oBAAoB,CAAC;IAClC,iBAAiB,EAAE,uBAAuB,EAAE,CAAC;CAC9C;AA2WD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,EAChB,cAAc,GAAE,OAAe,EAC/B,gBAAgB,CAAC,EAAE,kCAAkC,GACpD,OAAO,CAAC;IACT,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C,CAAC,CAoJD"}
@@ -1 +1 @@
1
- {"version":3,"file":"processor-utils.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/processor-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,kDAAkD;AAClD,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAkBlE;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B,6CAA6C;;IAE7C,4CAA4C;;IAE5C,6CAA6C;;IAE7C,iDAAiD;;CAEzC,CAAC;AAEX;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI9D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU5D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAQ9E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG;IACvD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAMA;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CA+B5F;AAED,qCAAqC;AACrC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAU/D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAI3D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAY5C"}
1
+ {"version":3,"file":"processor-utils.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/processor-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD,kDAAkD;AAClD,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAkBlE;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B,6CAA6C;;IAE7C,4CAA4C;;IAE5C,6CAA6C;;IAE7C,iDAAiD;;CAEzC,CAAC;AAEX;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI9D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU5D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAQ9E;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG;IACvD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAMA;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CA+B5F;AAED,qCAAqC;AACrC,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAW/D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAI3D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAY5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAcH,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,eAAe,CAAC;AAmBvB,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB;AA+RD;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAiF5F"}
1
+ {"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../../src/commands/inject-test-attrs/processor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAcH,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,eAAe,CAAC;AA6BvB,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB;AA0YD;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAyG5F"}
@@ -3,6 +3,61 @@
3
3
  *
4
4
  * Purpose: Type definitions shared across processor modules
5
5
  */
6
+ /**
7
+ * Result of processing a single file
8
+ */
9
+ export interface MachineResolutionDetail {
10
+ filePath: string;
11
+ machineRef: string;
12
+ resolvedId: string;
13
+ source: 'explicit' | 'import' | 'fallback' | 'inline';
14
+ }
15
+ /**
16
+ * Detection scan summary
17
+ */
18
+ export interface DetectionScanSummary {
19
+ totalFiles: number;
20
+ filesWithMachineDefinitions: number;
21
+ filesWithMachineHooks: number;
22
+ filesWithJsxOnly: number;
23
+ }
24
+ /**
25
+ * Strict detect result
26
+ */
27
+ export interface StrictDetectStatus {
28
+ enabled: true;
29
+ passed: boolean;
30
+ reasons: string[];
31
+ }
32
+ /**
33
+ * Detection diagnostics payload
34
+ */
35
+ export interface DetectionDiagnostics {
36
+ schemaVersion: 1;
37
+ scan: DetectionScanSummary;
38
+ resolution: {
39
+ totalMachineUsages: number;
40
+ bySource: {
41
+ explicit: number;
42
+ import: number;
43
+ inline: number;
44
+ fallback: number;
45
+ };
46
+ fallbackRate: number;
47
+ fallbackExamples: MachineResolutionDetail[];
48
+ };
49
+ coverage: {
50
+ totalManifestMachines: number;
51
+ linkedManifestMachines: number;
52
+ unlinkedManifestMachines: number;
53
+ machineLinkCoverage: number;
54
+ unlinkedManifestMachineIds: string[];
55
+ };
56
+ warnings: Array<{
57
+ severity: 'warning' | 'info' | 'hint';
58
+ message: string;
59
+ }>;
60
+ }
6
61
  /**
7
62
  * Result of processing a single file
8
63
  */
@@ -15,6 +70,7 @@ export interface ProcessFileResult {
15
70
  actions: string[];
16
71
  fields: string[];
17
72
  testIds: string[];
73
+ resolutionDetails: MachineResolutionDetail[];
18
74
  }
19
75
  /**
20
76
  * Common options for file preprocessing
@@ -44,5 +100,6 @@ export interface ProcessingState {
44
100
  }>;
45
101
  filesToFormat: string[];
46
102
  totalInjections: number;
103
+ resolutionDetails: MachineResolutionDetail[];
47
104
  }
48
105
  //# sourceMappingURL=types.d.ts.map