@ontrails/trails 1.0.0-beta.14 → 1.0.0-beta.16

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 (197) hide show
  1. package/CHANGELOG.md +208 -0
  2. package/README.md +27 -0
  3. package/package.json +19 -8
  4. package/src/app.ts +17 -7
  5. package/src/clack.ts +1 -1
  6. package/src/cli.ts +304 -10
  7. package/src/completions.ts +240 -0
  8. package/src/load-app-mirror.ts +160 -0
  9. package/src/local-state-io.ts +153 -0
  10. package/src/project-writes.ts +320 -0
  11. package/src/run-collision.ts +125 -0
  12. package/src/run-completions-install.ts +179 -0
  13. package/src/run-example.ts +149 -0
  14. package/src/run-examples.ts +148 -0
  15. package/src/run-quiet.ts +75 -0
  16. package/src/run-trace.ts +273 -0
  17. package/src/run-warden.ts +39 -0
  18. package/src/run-watch.ts +432 -0
  19. package/src/scaffold-versions.generated.ts +12 -0
  20. package/src/trails/add-surface.ts +172 -0
  21. package/src/trails/add-trail.ts +73 -27
  22. package/src/trails/add-verify.ts +68 -23
  23. package/src/trails/completions-complete.ts +165 -0
  24. package/src/trails/completions.ts +47 -0
  25. package/src/trails/create-scaffold.ts +101 -35
  26. package/src/trails/create.ts +87 -74
  27. package/src/trails/dev-clean.ts +31 -22
  28. package/src/trails/dev-reset.ts +9 -3
  29. package/src/trails/dev-stats.ts +28 -20
  30. package/src/trails/dev-support.ts +109 -95
  31. package/src/trails/draft-promote.ts +351 -107
  32. package/src/trails/guide.ts +55 -38
  33. package/src/trails/load-app.ts +712 -38
  34. package/src/trails/root-dir.ts +21 -0
  35. package/src/trails/run-example.ts +482 -0
  36. package/src/trails/run-examples.ts +141 -0
  37. package/src/trails/run.ts +403 -0
  38. package/src/trails/survey.ts +517 -186
  39. package/src/trails/topo-activation.ts +385 -0
  40. package/src/trails/topo-compile.ts +55 -0
  41. package/src/trails/topo-history.ts +14 -11
  42. package/src/trails/topo-output-schemas.ts +175 -0
  43. package/src/trails/topo-pin.ts +25 -16
  44. package/src/trails/topo-read-support.ts +178 -238
  45. package/src/trails/topo-reports.ts +445 -63
  46. package/src/trails/topo-store-support.ts +67 -35
  47. package/src/trails/topo-support.ts +93 -147
  48. package/src/trails/topo-unpin.ts +17 -7
  49. package/src/trails/topo-verify.ts +19 -10
  50. package/src/trails/topo.ts +64 -31
  51. package/src/trails/warden-guide.ts +121 -0
  52. package/src/trails/warden.ts +137 -47
  53. package/src/versions.ts +28 -0
  54. package/.turbo/turbo-build.log +0 -1
  55. package/.turbo/turbo-lint.log +0 -3
  56. package/.turbo/turbo-typecheck.log +0 -1
  57. package/__tests__/examples.test.ts +0 -20
  58. package/dist/bin/trails.d.ts +0 -3
  59. package/dist/bin/trails.d.ts.map +0 -1
  60. package/dist/bin/trails.js +0 -4
  61. package/dist/bin/trails.js.map +0 -1
  62. package/dist/src/app.d.ts +0 -2
  63. package/dist/src/app.d.ts.map +0 -1
  64. package/dist/src/app.js +0 -22
  65. package/dist/src/app.js.map +0 -1
  66. package/dist/src/clack.d.ts +0 -9
  67. package/dist/src/clack.d.ts.map +0 -1
  68. package/dist/src/clack.js +0 -84
  69. package/dist/src/clack.js.map +0 -1
  70. package/dist/src/cli.d.ts +0 -2
  71. package/dist/src/cli.d.ts.map +0 -1
  72. package/dist/src/cli.js +0 -13
  73. package/dist/src/cli.js.map +0 -1
  74. package/dist/src/trails/add-surface.d.ts +0 -13
  75. package/dist/src/trails/add-surface.d.ts.map +0 -1
  76. package/dist/src/trails/add-surface.js +0 -88
  77. package/dist/src/trails/add-surface.js.map +0 -1
  78. package/dist/src/trails/add-trail.d.ts +0 -10
  79. package/dist/src/trails/add-trail.d.ts.map +0 -1
  80. package/dist/src/trails/add-trail.js +0 -77
  81. package/dist/src/trails/add-trail.js.map +0 -1
  82. package/dist/src/trails/add-trailhead.d.ts +0 -13
  83. package/dist/src/trails/add-trailhead.d.ts.map +0 -1
  84. package/dist/src/trails/add-trailhead.js +0 -88
  85. package/dist/src/trails/add-trailhead.js.map +0 -1
  86. package/dist/src/trails/add-verify.d.ts +0 -10
  87. package/dist/src/trails/add-verify.d.ts.map +0 -1
  88. package/dist/src/trails/add-verify.js +0 -67
  89. package/dist/src/trails/add-verify.js.map +0 -1
  90. package/dist/src/trails/create-scaffold.d.ts +0 -15
  91. package/dist/src/trails/create-scaffold.d.ts.map +0 -1
  92. package/dist/src/trails/create-scaffold.js +0 -288
  93. package/dist/src/trails/create-scaffold.js.map +0 -1
  94. package/dist/src/trails/create.d.ts +0 -22
  95. package/dist/src/trails/create.d.ts.map +0 -1
  96. package/dist/src/trails/create.js +0 -121
  97. package/dist/src/trails/create.js.map +0 -1
  98. package/dist/src/trails/dev-clean.d.ts +0 -9
  99. package/dist/src/trails/dev-clean.d.ts.map +0 -1
  100. package/dist/src/trails/dev-clean.js +0 -65
  101. package/dist/src/trails/dev-clean.js.map +0 -1
  102. package/dist/src/trails/dev-reset.d.ts +0 -6
  103. package/dist/src/trails/dev-reset.d.ts.map +0 -1
  104. package/dist/src/trails/dev-reset.js +0 -38
  105. package/dist/src/trails/dev-reset.js.map +0 -1
  106. package/dist/src/trails/dev-stats.d.ts +0 -7
  107. package/dist/src/trails/dev-stats.d.ts.map +0 -1
  108. package/dist/src/trails/dev-stats.js +0 -61
  109. package/dist/src/trails/dev-stats.js.map +0 -1
  110. package/dist/src/trails/dev-support.d.ts +0 -64
  111. package/dist/src/trails/dev-support.d.ts.map +0 -1
  112. package/dist/src/trails/dev-support.js +0 -178
  113. package/dist/src/trails/dev-support.js.map +0 -1
  114. package/dist/src/trails/draft-promote.d.ts +0 -18
  115. package/dist/src/trails/draft-promote.d.ts.map +0 -1
  116. package/dist/src/trails/draft-promote.js +0 -386
  117. package/dist/src/trails/draft-promote.js.map +0 -1
  118. package/dist/src/trails/guide.d.ts +0 -21
  119. package/dist/src/trails/guide.d.ts.map +0 -1
  120. package/dist/src/trails/guide.js +0 -64
  121. package/dist/src/trails/guide.js.map +0 -1
  122. package/dist/src/trails/load-app.d.ts +0 -6
  123. package/dist/src/trails/load-app.d.ts.map +0 -1
  124. package/dist/src/trails/load-app.js +0 -67
  125. package/dist/src/trails/load-app.js.map +0 -1
  126. package/dist/src/trails/project.d.ts +0 -8
  127. package/dist/src/trails/project.d.ts.map +0 -1
  128. package/dist/src/trails/project.js +0 -54
  129. package/dist/src/trails/project.js.map +0 -1
  130. package/dist/src/trails/survey.d.ts +0 -18
  131. package/dist/src/trails/survey.d.ts.map +0 -1
  132. package/dist/src/trails/survey.js +0 -212
  133. package/dist/src/trails/survey.js.map +0 -1
  134. package/dist/src/trails/topo-constants.d.ts +0 -3
  135. package/dist/src/trails/topo-constants.d.ts.map +0 -1
  136. package/dist/src/trails/topo-constants.js +0 -3
  137. package/dist/src/trails/topo-constants.js.map +0 -1
  138. package/dist/src/trails/topo-export.d.ts +0 -18
  139. package/dist/src/trails/topo-export.d.ts.map +0 -1
  140. package/dist/src/trails/topo-export.js +0 -34
  141. package/dist/src/trails/topo-export.js.map +0 -1
  142. package/dist/src/trails/topo-history.d.ts +0 -24
  143. package/dist/src/trails/topo-history.d.ts.map +0 -1
  144. package/dist/src/trails/topo-history.js +0 -33
  145. package/dist/src/trails/topo-history.js.map +0 -1
  146. package/dist/src/trails/topo-pin.d.ts +0 -21
  147. package/dist/src/trails/topo-pin.d.ts.map +0 -1
  148. package/dist/src/trails/topo-pin.js +0 -35
  149. package/dist/src/trails/topo-pin.js.map +0 -1
  150. package/dist/src/trails/topo-read-support.d.ts +0 -54
  151. package/dist/src/trails/topo-read-support.d.ts.map +0 -1
  152. package/dist/src/trails/topo-read-support.js +0 -178
  153. package/dist/src/trails/topo-read-support.js.map +0 -1
  154. package/dist/src/trails/topo-reports.d.ts +0 -50
  155. package/dist/src/trails/topo-reports.d.ts.map +0 -1
  156. package/dist/src/trails/topo-reports.js +0 -122
  157. package/dist/src/trails/topo-reports.js.map +0 -1
  158. package/dist/src/trails/topo-show.d.ts +0 -23
  159. package/dist/src/trails/topo-show.d.ts.map +0 -1
  160. package/dist/src/trails/topo-show.js +0 -53
  161. package/dist/src/trails/topo-show.js.map +0 -1
  162. package/dist/src/trails/topo-store-support.d.ts +0 -13
  163. package/dist/src/trails/topo-store-support.d.ts.map +0 -1
  164. package/dist/src/trails/topo-store-support.js +0 -55
  165. package/dist/src/trails/topo-store-support.js.map +0 -1
  166. package/dist/src/trails/topo-support.d.ts +0 -87
  167. package/dist/src/trails/topo-support.d.ts.map +0 -1
  168. package/dist/src/trails/topo-support.js +0 -165
  169. package/dist/src/trails/topo-support.js.map +0 -1
  170. package/dist/src/trails/topo-unpin.d.ts +0 -15
  171. package/dist/src/trails/topo-unpin.d.ts.map +0 -1
  172. package/dist/src/trails/topo-unpin.js +0 -39
  173. package/dist/src/trails/topo-unpin.js.map +0 -1
  174. package/dist/src/trails/topo-verify.d.ts +0 -5
  175. package/dist/src/trails/topo-verify.d.ts.map +0 -1
  176. package/dist/src/trails/topo-verify.js +0 -28
  177. package/dist/src/trails/topo-verify.js.map +0 -1
  178. package/dist/src/trails/topo.d.ts +0 -5
  179. package/dist/src/trails/topo.d.ts.map +0 -1
  180. package/dist/src/trails/topo.js +0 -67
  181. package/dist/src/trails/topo.js.map +0 -1
  182. package/dist/src/trails/warden.d.ts +0 -19
  183. package/dist/src/trails/warden.d.ts.map +0 -1
  184. package/dist/src/trails/warden.js +0 -89
  185. package/dist/src/trails/warden.js.map +0 -1
  186. package/dist/tsconfig.tsbuildinfo +0 -1
  187. package/src/__tests__/create.test.ts +0 -351
  188. package/src/__tests__/draft-promote.test.ts +0 -144
  189. package/src/__tests__/guide.test.ts +0 -91
  190. package/src/__tests__/load-app.test.ts +0 -58
  191. package/src/__tests__/survey.test.ts +0 -301
  192. package/src/__tests__/topo-dev.test.ts +0 -424
  193. package/src/__tests__/warden.test.ts +0 -74
  194. package/src/trails/add-trailhead.ts +0 -121
  195. package/src/trails/topo-export.ts +0 -39
  196. package/src/trails/topo-show.ts +0 -58
  197. package/tsconfig.json +0 -9
@@ -1 +0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CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;KACpE,CAAC;IACF,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,EAAE,qBAAqB,CAAC,CAAC;CAC5D,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Stored-export pipeline for topo persistence.
3
- *
4
- * Extracted from topo-support.ts so this branch (trl-131) owns its own file,
5
- * keeping absorb routing clean across the stack.
6
- */
7
- import type { Topo } from '@ontrails/core';
8
- import { Result } from '@ontrails/core';
9
- import type { TopoExportReport } from './topo-support.js';
10
- export declare const exportCurrentTopo: (app: Topo, options?: {
11
- readonly rootDir?: string;
12
- }) => Promise<Result<TopoExportReport, Error>>;
13
- //# sourceMappingURL=topo-store-support.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo-store-support.d.ts","sourceRoot":"","sources":["../../../src/trails/topo-store-support.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAiB,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAcvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAmD1D,eAAO,MAAM,iBAAiB,GAC5B,KAAK,IAAI,EACT,UAAU;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,KACtC,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAmBzC,CAAC"}
@@ -1,55 +0,0 @@
1
- /**
2
- * Stored-export pipeline for topo persistence.
3
- *
4
- * Extracted from topo-support.ts so this branch (trl-131) owns its own file,
5
- * keeping absorb routing clean across the stack.
6
- */
7
- import { InternalError, Result } from '@ontrails/core';
8
- import { getStoredTopoExport, persistEstablishedTopoSave, } from '@ontrails/core/internal/topo-store';
9
- import { openWriteTrailsDb, resolveTrailsDir, } from '@ontrails/core/internal/trails-db';
10
- import { writeTrailheadLock, writeTrailheadMap } from '@ontrails/schema';
11
- import { currentGitState, resolveRootDir, topoCounts } from './topo-support.js';
12
- const persistAndReadStoredExport = (app, db, rootDir) => {
13
- const saveResult = persistEstablishedTopoSave(db, app, {
14
- ...currentGitState(rootDir),
15
- ...topoCounts(app),
16
- });
17
- if (saveResult.isErr()) {
18
- return saveResult;
19
- }
20
- const save = saveResult.value;
21
- const storedExport = getStoredTopoExport(db, save.id);
22
- if (storedExport === undefined) {
23
- return Result.err(new InternalError(`Missing stored topo export for save "${save.id}"`));
24
- }
25
- return Result.ok({
26
- save,
27
- storedExport,
28
- });
29
- };
30
- const writeStoredExportArtifacts = async (storedExport, trailsDir) => {
31
- const mapPath = await writeTrailheadMap(JSON.parse(storedExport.trailheadMapJson), { dir: trailsDir });
32
- const lockPath = await writeTrailheadLock(JSON.parse(storedExport.lockContent), { dir: trailsDir });
33
- return {
34
- hash: storedExport.trailheadHash,
35
- lockPath,
36
- mapPath,
37
- };
38
- };
39
- export const exportCurrentTopo = async (app, options) => {
40
- const rootDir = resolveRootDir(options?.rootDir);
41
- const db = openWriteTrailsDb({ rootDir });
42
- try {
43
- const persisted = persistAndReadStoredExport(app, db, rootDir);
44
- if (persisted.isErr()) {
45
- return persisted;
46
- }
47
- const { save, storedExport } = persisted.value;
48
- const artifacts = await writeStoredExportArtifacts(storedExport, resolveTrailsDir({ rootDir }));
49
- return Result.ok({ ...artifacts, save });
50
- }
51
- finally {
52
- db.close();
53
- }
54
- };
55
- //# sourceMappingURL=topo-store-support.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo-store-support.js","sourceRoot":"","sources":["../../../src/trails/topo-store-support.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,oCAAoC,CAAC;AAC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EAAE,SAAS,EAAE,CACnB,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,YAAY,CAAC,aAAa;QAChC,QAAQ;QACR,OAAO;KACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,EACpC,GAAS,EACT,OAAuC,EACG,EAAE;IAC5C,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACjD,MAAM,EAAE,GAAG,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAE1C,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,0BAA0B,CAAC,GAAG,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;QAC/D,IAAI,SAAS,CAAC,KAAK,EAAE,EAAE,CAAC;YACtB,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC;QAC/C,MAAM,SAAS,GAAG,MAAM,0BAA0B,CAChD,YAAY,EACZ,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAC,CAC9B,CAAC;QACF,OAAO,MAAM,CAAC,EAAE,CAAC,EAAE,GAAG,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3C,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;AACH,CAAC,CAAC"}
@@ -1,87 +0,0 @@
1
- import type { Topo } from '@ontrails/core';
2
- import type { TopoPinRecord, TopoSaveRecord } from '@ontrails/core/internal/topo-saves';
3
- import { z } from 'zod';
4
- import type { BriefReport, SurveyListReport } from './topo-reports.js';
5
- /** Output schema for a topo save record. Shared across topo trails. */
6
- export declare const topoSaveOutput: z.ZodObject<{
7
- createdAt: z.ZodString;
8
- gitDirty: z.ZodBoolean;
9
- gitSha: z.ZodOptional<z.ZodString>;
10
- id: z.ZodString;
11
- provisionCount: z.ZodNumber;
12
- signalCount: z.ZodNumber;
13
- trailCount: z.ZodNumber;
14
- }, z.core.$strip>;
15
- /** Output schema for a topo pin record. Shared across topo trails. */
16
- export declare const topoPinOutput: z.ZodObject<{
17
- createdAt: z.ZodString;
18
- name: z.ZodString;
19
- saveId: z.ZodString;
20
- }, z.core.$strip>;
21
- export declare const DEFAULT_APP_MODULE = "./src/app.ts";
22
- export declare const DEFAULT_TOPO_HISTORY_LIMIT = 10;
23
- export declare const LOCK_PATH = ".trails/trails.lock";
24
- export declare const LEGACY_LOCK_PATH = ".trails/trailhead.lock";
25
- /** Resolve the lockfile path, preferring the current name with legacy fallback. */
26
- export declare const resolveLockPath: (trailsDir: string) => string;
27
- export interface TopoSummaryReport {
28
- readonly app: BriefReport;
29
- readonly dbPath: string;
30
- readonly list: SurveyListReport;
31
- readonly lockExists: boolean;
32
- readonly lockPath: string;
33
- }
34
- export interface TopoHistoryReport {
35
- readonly dbPath: string;
36
- readonly limit: number;
37
- readonly pinCount: number;
38
- readonly pins: TopoPinRecord[];
39
- readonly saveCount: number;
40
- readonly saves: TopoSaveRecord[];
41
- }
42
- export interface TopoExportReport {
43
- readonly hash: string;
44
- readonly lockPath: string;
45
- readonly mapPath: string;
46
- readonly save: TopoSaveRecord;
47
- }
48
- export interface TopoVerifyReport {
49
- readonly committedHash: string;
50
- readonly currentHash: string;
51
- readonly lockPath: string;
52
- readonly stale: false;
53
- }
54
- export declare const resolveRootDir: (cwd?: string) => string;
55
- export declare const currentGitState: (rootDir: string) => {
56
- readonly gitDirty: boolean;
57
- readonly gitSha?: string;
58
- };
59
- export declare const topoCounts: (app: Topo) => Pick<TopoSaveRecord, "provisionCount" | "signalCount" | "trailCount">;
60
- export declare const isolatedExampleInput: (name: string) => {
61
- readonly module: string;
62
- readonly rootDir: string;
63
- };
64
- export declare const createCurrentTopoSave: (app: Topo, options?: {
65
- readonly rootDir?: string;
66
- }) => TopoSaveRecord;
67
- export declare const listTopoHistory: (options?: {
68
- readonly limit?: number;
69
- readonly rootDir?: string;
70
- }) => TopoHistoryReport;
71
- export declare const pinCurrentTopo: (app: Topo, input: {
72
- readonly name: string;
73
- readonly rootDir?: string;
74
- }) => {
75
- readonly pin: TopoPinRecord;
76
- readonly save: TopoSaveRecord;
77
- };
78
- export declare const removeTopoPin: (input: {
79
- readonly dryRun: boolean;
80
- readonly name: string;
81
- readonly rootDir?: string;
82
- }) => {
83
- readonly dryRun: boolean;
84
- readonly pin?: TopoPinRecord;
85
- readonly removed: boolean;
86
- };
87
- //# sourceMappingURL=topo-support.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo-support.d.ts","sourceRoot":"","sources":["../../../src/trails/topo-support.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACf,MAAM,oCAAoC,CAAC;AAc5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAEvE,uEAAuE;AACvE,eAAO,MAAM,cAAc;;;;;;;;iBAQzB,CAAC;AAEH,sEAAsE;AACtE,eAAO,MAAM,aAAa;;;;iBAIxB,CAAC;AAEH,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AACjD,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,SAAS,wBAAwB,CAAC;AAC/C,eAAO,MAAM,gBAAgB,2BAA2B,CAAC;AAEzD,mFAAmF;AACnF,eAAO,MAAM,eAAe,GAAI,WAAW,MAAM,KAAG,MAOnD,CAAC;AAGF,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAA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AM,CAAA;CAQrD,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,KAAK,IAAI,EACT,UAAU;IAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,KACtC,cAgBF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,UAAU;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B,KAAG,iBAmBH,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,KAAK,IAAI,EACT,OAAO;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,KAC1D;IAAE,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAA;CAoB9D,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO;IACnC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B,KAAG;IACF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAmB3B,CAAC"}
@@ -1,165 +0,0 @@
1
- import { existsSync, mkdirSync, rmSync } from 'node:fs';
2
- import { tmpdir } from 'node:os';
3
- import { join } from 'node:path';
4
- import { fileURLToPath } from 'node:url';
5
- import { getTopoPin, listTopoPins, listTopoSaves, pinTopoSave, unpinTopoSave, } from '@ontrails/core/internal/topo-saves';
6
- import { persistEstablishedTopoSave } from '@ontrails/core/internal/topo-store';
7
- import { openReadTrailsDb, openWriteTrailsDb, resolveTrailsDbPath, } from '@ontrails/core/internal/trails-db';
8
- import { z } from 'zod';
9
- /** Output schema for a topo save record. Shared across topo trails. */
10
- export const topoSaveOutput = z.object({
11
- createdAt: z.string(),
12
- gitDirty: z.boolean(),
13
- gitSha: z.string().optional(),
14
- id: z.string(),
15
- provisionCount: z.number(),
16
- signalCount: z.number(),
17
- trailCount: z.number(),
18
- });
19
- /** Output schema for a topo pin record. Shared across topo trails. */
20
- export const topoPinOutput = z.object({
21
- createdAt: z.string(),
22
- name: z.string(),
23
- saveId: z.string(),
24
- });
25
- export const DEFAULT_APP_MODULE = './src/app.ts';
26
- export const DEFAULT_TOPO_HISTORY_LIMIT = 10;
27
- export const LOCK_PATH = '.trails/trails.lock';
28
- export const LEGACY_LOCK_PATH = '.trails/trailhead.lock';
29
- /** Resolve the lockfile path, preferring the current name with legacy fallback. */
30
- export const resolveLockPath = (trailsDir) => {
31
- const primary = join(trailsDir, 'trails.lock');
32
- if (existsSync(primary)) {
33
- return primary;
34
- }
35
- const legacy = join(trailsDir, 'trailhead.lock');
36
- return existsSync(legacy) ? legacy : primary;
37
- };
38
- const EXAMPLE_APP_MODULE = fileURLToPath(new URL('../app.ts', import.meta.url));
39
- export const resolveRootDir = (cwd) => cwd ?? process.cwd();
40
- const safeGit = (cwd, args) => {
41
- const proc = Bun.spawnSync({
42
- cmd: ['git', '-C', cwd, ...args],
43
- stderr: 'ignore',
44
- stdout: 'pipe',
45
- });
46
- if (!proc.success) {
47
- return undefined;
48
- }
49
- const text = Buffer.from(proc.stdout).toString('utf8').trim();
50
- return text.length === 0 ? undefined : text;
51
- };
52
- export const currentGitState = (rootDir) => {
53
- const gitSha = safeGit(rootDir, ['rev-parse', 'HEAD']);
54
- const status = safeGit(rootDir, ['status', '--porcelain']);
55
- return {
56
- gitDirty: (status?.length ?? 0) > 0,
57
- ...(gitSha === undefined ? {} : { gitSha }),
58
- };
59
- };
60
- export const topoCounts = (app) => ({
61
- provisionCount: app.provisions.size,
62
- signalCount: app.signals.size,
63
- trailCount: app.trails.size,
64
- });
65
- const emptyTopoHistory = (dbPath, limit) => ({
66
- dbPath,
67
- limit,
68
- pinCount: 0,
69
- pins: [],
70
- saveCount: 0,
71
- saves: [],
72
- });
73
- const collectedTopoHistory = (dbPath, limit, pins, allSaves) => ({
74
- dbPath,
75
- limit,
76
- pinCount: pins.length,
77
- pins: [...pins],
78
- saveCount: allSaves.length,
79
- saves: allSaves.slice(0, limit),
80
- });
81
- const removeTopoPinWithDb = (input, pin, db) => input.dryRun
82
- ? { dryRun: true, pin, removed: false }
83
- : { dryRun: false, pin, removed: unpinTopoSave(db, input.name) };
84
- export const isolatedExampleInput = (name) => {
85
- const rootDir = join(tmpdir(), 'ontrails-trails-examples', name);
86
- rmSync(rootDir, { force: true, recursive: true });
87
- mkdirSync(rootDir, { recursive: true });
88
- return {
89
- module: EXAMPLE_APP_MODULE,
90
- rootDir,
91
- };
92
- };
93
- export const createCurrentTopoSave = (app, options) => {
94
- const rootDir = resolveRootDir(options?.rootDir);
95
- const db = openWriteTrailsDb({ rootDir });
96
- try {
97
- const result = persistEstablishedTopoSave(db, app, {
98
- ...currentGitState(rootDir),
99
- ...topoCounts(app),
100
- });
101
- if (result.isErr()) {
102
- throw result.error;
103
- }
104
- return result.value;
105
- }
106
- finally {
107
- db.close();
108
- }
109
- };
110
- export const listTopoHistory = (options) => {
111
- const rootDir = resolveRootDir(options?.rootDir);
112
- const limit = options?.limit ?? DEFAULT_TOPO_HISTORY_LIMIT;
113
- const dbPath = resolveTrailsDbPath({ rootDir });
114
- if (!existsSync(dbPath)) {
115
- return emptyTopoHistory(dbPath, limit);
116
- }
117
- const db = openReadTrailsDb({ rootDir });
118
- try {
119
- return collectedTopoHistory(dbPath, limit, listTopoPins(db), listTopoSaves(db));
120
- }
121
- finally {
122
- db.close();
123
- }
124
- };
125
- export const pinCurrentTopo = (app, input) => {
126
- const rootDir = resolveRootDir(input.rootDir);
127
- const db = openWriteTrailsDb({ rootDir });
128
- try {
129
- const result = persistEstablishedTopoSave(db, app, {
130
- ...currentGitState(rootDir),
131
- ...topoCounts(app),
132
- });
133
- if (result.isErr()) {
134
- throw result.error;
135
- }
136
- const pin = pinTopoSave(db, {
137
- name: input.name,
138
- saveId: result.value.id,
139
- });
140
- return { pin, save: result.value };
141
- }
142
- finally {
143
- db.close();
144
- }
145
- };
146
- export const removeTopoPin = (input) => {
147
- const rootDir = resolveRootDir(input.rootDir);
148
- if (!existsSync(resolveTrailsDbPath({ rootDir }))) {
149
- return { dryRun: input.dryRun, removed: false };
150
- }
151
- const db = input.dryRun
152
- ? openReadTrailsDb({ rootDir })
153
- : openWriteTrailsDb({ rootDir });
154
- try {
155
- const pin = getTopoPin(db, input.name);
156
- if (pin === undefined) {
157
- return { dryRun: input.dryRun, removed: false };
158
- }
159
- return removeTopoPinWithDb(input, pin, db);
160
- }
161
- finally {
162
- db.close();
163
- }
164
- };
165
- //# sourceMappingURL=topo-support.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo-support.js","sourceRoot":"","sources":["../../../src/trails/topo-support.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAOzC,OAAO,EACL,UAAU,EACV,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,GACd,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,uEAAuE;AACvE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,SAAS,EAAE,CAA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EAAE,CAAC;QAClD,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAClD,CAAC;IACD,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM;QACrB,CAAC,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,CAAC;QAC/B,CAAC,CAAC,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAEnC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,UAAU,CAAC,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;YACtB,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAClD,CAAC;QACD,OAAO,mBAAmB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;IAC7C,CAAC;YAAS,CAAC;QACT,EAAE,CAAC,KAAK,EAAE,CAAC;IACb,CAAC;AACH,CAAC,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const topoUnpinTrail: import("@ontrails/core").Trail<{
2
- dryRun: boolean;
3
- name: string;
4
- yes: boolean;
5
- rootDir?: string | undefined;
6
- }, {
7
- dryRun: boolean;
8
- removed: boolean;
9
- pin?: {
10
- createdAt: string;
11
- name: string;
12
- saveId: string;
13
- } | undefined;
14
- }>;
15
- //# sourceMappingURL=topo-unpin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo-unpin.d.ts","sourceRoot":"","sources":["../../../src/trails/topo-unpin.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc;;;;;;;;;;;;;EAyCzB,CAAC"}
@@ -1,39 +0,0 @@
1
- import { Result, ValidationError, trail } from '@ontrails/core';
2
- import { z } from 'zod';
3
- import { isolatedExampleInput, removeTopoPin, topoPinOutput, } from './topo-support.js';
4
- export const topoUnpinTrail = trail('topo.unpin', {
5
- blaze: (input, ctx) => {
6
- if (input.dryRun !== true && input.yes !== true) {
7
- return Result.err(new ValidationError('Refusing to remove a pin without `--yes` or `--dry-run`.'));
8
- }
9
- const rootDir = input.rootDir ?? ctx.cwd ?? process.cwd();
10
- return Result.ok(removeTopoPin({ dryRun: input.dryRun, name: input.name, rootDir }));
11
- },
12
- description: 'Remove a named topo pin',
13
- examples: [
14
- {
15
- input: {
16
- ...isolatedExampleInput('topo-unpin'),
17
- dryRun: true,
18
- name: 'before-auth-refactor',
19
- },
20
- name: 'Preview pin removal',
21
- },
22
- ],
23
- input: z.object({
24
- dryRun: z
25
- .boolean()
26
- .default(true)
27
- .describe('Preview the removal without changing state'),
28
- name: z.string().describe('Pin name'),
29
- rootDir: z.string().optional().describe('Workspace root directory'),
30
- yes: z.boolean().default(false).describe('Confirm destructive changes'),
31
- }),
32
- intent: 'destroy',
33
- output: z.object({
34
- dryRun: z.boolean(),
35
- pin: topoPinOutput.optional(),
36
- removed: z.boolean(),
37
- }),
38
- });
39
- //# sourceMappingURL=topo-unpin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo-unpin.js","sourceRoot":"","sources":["../../../src/trails/topo-unpin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,aAAa,GACd,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,YAAY,EAAE;IAChD,KAAK,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACpB,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,IAAI,KAAK,CAAC,GAAG,KAAK,IAAI,EAAE,CAAC;YAChD,OAAO,MAAM,CAAC,GAAG,CACf,IAAI,eAAe,CACjB,0DAA0D,CAC3D,CACF,CAAC;QACJ,CAAC;QAED,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,IAAI,GAAG,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QAC1D,OAAO,MAAM,CAAC,EAAE,CACd,aAAa,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,CACnE,CAAC;IACJ,CAAC;IACD,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE;QACR;YACE,KAAK,EAAE;gBACL,GAAG,oBAAoB,CAAC,YAAY,CAAC;gBACrC,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,sBAAsB;aAC7B;YACD,IAAI,EAAE,qBAAqB;SAC5B;KACF;IACD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,CAAC;aACN,OAAO,EAAE;aACT,OAAO,CAAC,IAAI,CAAC;aACb,QAAQ,CAAC,4CAA4C,CAAC;QACzD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC;QACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;QACnE,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC;KACxE,CAAC;IACF,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;QACnB,GAAG,EAAE,aAAa,CAAC,QAAQ,EAAE;QAC7B,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;KACrB,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const topoVerifyTrail: import("@ontrails/core").Trail<{
2
- module: string;
3
- rootDir?: string | undefined;
4
- }, import("./topo-support.js").TopoVerifyReport>;
5
- //# sourceMappingURL=topo-verify.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo-verify.d.ts","sourceRoot":"","sources":["../../../src/trails/topo-verify.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;;;gDAqB1B,CAAC"}
@@ -1,28 +0,0 @@
1
- import { trail } from '@ontrails/core';
2
- import { z } from 'zod';
3
- import { loadApp } from './load-app.js';
4
- import { verifyCurrentTopo } from './topo-read-support.js';
5
- import { DEFAULT_APP_MODULE } from './topo-support.js';
6
- export const topoVerifyTrail = trail('topo.verify', {
7
- blaze: async (input, ctx) => {
8
- const rootDir = input.rootDir ?? ctx.cwd ?? process.cwd();
9
- const app = await loadApp(input.module, rootDir);
10
- return verifyCurrentTopo(app, { rootDir });
11
- },
12
- description: 'Verify that the committed lockfile matches the current topo',
13
- input: z.object({
14
- module: z
15
- .string()
16
- .default(DEFAULT_APP_MODULE)
17
- .describe('Path to the app module'),
18
- rootDir: z.string().optional().describe('Workspace root directory'),
19
- }),
20
- intent: 'read',
21
- output: z.object({
22
- committedHash: z.string(),
23
- currentHash: z.string(),
24
- lockPath: z.string(),
25
- stale: z.literal(false),
26
- }),
27
- });
28
- //# sourceMappingURL=topo-verify.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo-verify.js","sourceRoot":"","sources":["../../../src/trails/topo-verify.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,aAAa,EAAE;IAClD,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;QAC1B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,IAAI,GAAG,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QAC1D,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACjD,OAAO,iBAAiB,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7C,CAAC;IACD,WAAW,EAAE,6DAA6D;IAC1E,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,OAAO,CAAC,kBAAkB,CAAC;aAC3B,QAAQ,CAAC,wBAAwB,CAAC;QACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;KACpE,CAAC;IACF,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;QACzB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;QACpB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;KACxB,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const topoTrail: import("@ontrails/core").Trail<{
2
- module: string;
3
- rootDir?: string | undefined;
4
- }, import("./topo-support.js").TopoSummaryReport>;
5
- //# sourceMappingURL=topo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo.d.ts","sourceRoot":"","sources":["../../../src/trails/topo.ts"],"names":[],"mappings":"AAkDA,eAAO,MAAM,SAAS;;;iDAsBpB,CAAC"}
@@ -1,67 +0,0 @@
1
- import { Result, trail } from '@ontrails/core';
2
- import { z } from 'zod';
3
- import { loadApp } from './load-app.js';
4
- import { buildTopoSummary } from './topo-read-support.js';
5
- import { DEFAULT_APP_MODULE } from './topo-support.js';
6
- const summaryOutput = z.object({
7
- app: z.object({
8
- contractVersion: z.string(),
9
- features: z.object({
10
- detours: z.boolean(),
11
- examples: z.boolean(),
12
- outputSchemas: z.boolean(),
13
- provisions: z.boolean(),
14
- signals: z.boolean(),
15
- }),
16
- name: z.string(),
17
- provisions: z.number(),
18
- signals: z.number(),
19
- trails: z.number(),
20
- version: z.string(),
21
- }),
22
- dbPath: z.string(),
23
- list: z.object({
24
- count: z.number(),
25
- entries: z.array(z.object({
26
- examples: z.number(),
27
- id: z.string(),
28
- kind: z.string(),
29
- safety: z.string(),
30
- })),
31
- provisionCount: z.number(),
32
- provisions: z.array(z.object({
33
- description: z.string().nullable(),
34
- health: z.enum(['available', 'none']),
35
- id: z.string(),
36
- kind: z.literal('provision'),
37
- lifetime: z.literal('singleton'),
38
- usedBy: z.array(z.string()),
39
- })),
40
- }),
41
- lockExists: z.boolean(),
42
- lockPath: z.string(),
43
- });
44
- export const topoTrail = trail('topo', {
45
- blaze: async (input, ctx) => {
46
- const rootDir = input.rootDir ?? ctx.cwd ?? process.cwd();
47
- const app = await loadApp(input.module, rootDir);
48
- return Result.ok(buildTopoSummary(app, { rootDir }));
49
- },
50
- description: 'Show the current topo summary and entry list',
51
- examples: [
52
- {
53
- input: {},
54
- name: 'Show the current topo summary',
55
- },
56
- ],
57
- input: z.object({
58
- module: z
59
- .string()
60
- .default(DEFAULT_APP_MODULE)
61
- .describe('Path to the app module'),
62
- rootDir: z.string().optional().describe('Workspace root directory'),
63
- }),
64
- intent: 'read',
65
- output: summaryOutput,
66
- });
67
- //# sourceMappingURL=topo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topo.js","sourceRoot":"","sources":["../../../src/trails/topo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,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AE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;KACpE,CAAC;IACF,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,aAAa;CACtB,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- /**
2
- * `warden` trail -- Governance checks.
3
- *
4
- * Thin wrapper around `runWarden` and `formatWardenReport` from @ontrails/warden.
5
- */
6
- export declare const wardenTrail: import("@ontrails/core").Trail<{
7
- driftOnly: boolean;
8
- format: "text" | "summary" | "github" | "json";
9
- lintOnly: boolean;
10
- rootDir?: string | undefined;
11
- }, {
12
- diagnostics: readonly import("@ontrails/warden").WardenDiagnostic[];
13
- drift: import("@ontrails/warden").DriftResult | null;
14
- errorCount: number;
15
- formatted: string;
16
- passed: boolean;
17
- warnCount: number;
18
- }>;
19
- //# sourceMappingURL=warden.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"warden.d.ts","sourceRoot":"","sources":["../../../src/trails/warden.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAkBH,eAAO,MAAM,WAAW;;;;;;;;;;;;EAkFtB,CAAC"}