@mono-lit/utility 0.0.0-stage → 0.0.2

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 (54) hide show
  1. package/LICENSE.md +54 -0
  2. package/README.md +157 -3
  3. package/dist/app-roots-CvJnmXcs.js +128 -0
  4. package/dist/app-roots-DK41xMWj.d.ts +90 -0
  5. package/dist/config-node-UzJrXg0Z.js +76 -0
  6. package/dist/config-node.d.ts +923 -0
  7. package/dist/config-node.js +7 -0
  8. package/dist/config.d.ts +2 -0
  9. package/dist/config.js +3 -0
  10. package/dist/create-config-B8IhX4ht.d.ts +735 -0
  11. package/dist/create-config-DdL3Fh6T.js +357 -0
  12. package/dist/fetching.d.ts +244 -0
  13. package/dist/fetching.js +1015 -0
  14. package/dist/generate-CJ7MtcDd.js +291 -0
  15. package/dist/index-BAy6tbOG.d.ts +371 -0
  16. package/dist/index-DYlzhHq7.d.ts +514 -0
  17. package/dist/index.d.ts +25 -0
  18. package/dist/index.js +941 -0
  19. package/dist/merge-file-CLc3wxY4.d.ts +99 -0
  20. package/dist/merge-file-CtyKTu5L.js +133 -0
  21. package/dist/mock-db-4tTWrF-P.js +1282 -0
  22. package/dist/mock-db.d.ts +2 -0
  23. package/dist/mock-db.js +4 -0
  24. package/dist/mono-alias-DNDm-jB_.js +508 -0
  25. package/dist/mono-clone.mjs +958 -0
  26. package/dist/mono-db.d.ts +1 -0
  27. package/dist/mono-db.js +158 -0
  28. package/dist/mono-env.mjs +231 -0
  29. package/dist/mono-git.mjs +798 -0
  30. package/dist/mono-link-YlOQ2PVS.js +488 -0
  31. package/dist/mono-prepare.d.ts +1 -0
  32. package/dist/mono-prepare.js +28 -0
  33. package/dist/mono-skills.d.ts +1 -0
  34. package/dist/mono-skills.js +837 -0
  35. package/dist/mono-tsconfig-D2qRL9_R.js +204 -0
  36. package/dist/mono.mjs +34 -0
  37. package/dist/nuxt-layers-DP1m7f1-.js +176 -0
  38. package/dist/nuxt-layers.d.ts +36 -0
  39. package/dist/nuxt-layers.js +3 -0
  40. package/dist/nuxt-runtime.d.ts +17 -0
  41. package/dist/nuxt-runtime.js +102 -0
  42. package/dist/nuxt.d.ts +390 -0
  43. package/dist/nuxt.js +737 -0
  44. package/dist/runtime-vs7U9Ed4.js +6054 -0
  45. package/dist/runtime.d.ts +2518 -0
  46. package/dist/runtime.js +4 -0
  47. package/dist/session-Bcig-rPi.js +1721 -0
  48. package/dist/types-B6FdB7LJ.d.ts +57 -0
  49. package/dist/universal-BR0O7Qwk.d.ts +59 -0
  50. package/dist/universal-DIVEzCvN.js +600 -0
  51. package/dist/virtual-mono-apps.d.ts +16 -0
  52. package/dist/vite.d.ts +943 -0
  53. package/dist/vite.js +1132 -0
  54. package/package.json +141 -3
@@ -0,0 +1,923 @@
1
+ import { S as MonoSkillConfig, c as MonoConfig, o as MonoAppType, w as MonoTemplate } from "./create-config-B8IhX4ht.js";
2
+ import { a as ResolveAppRootsOptions, c as isMissingPathError, d as pathAppRoots, f as resetAppPathWarnings, i as MonoMissingPathPolicy, l as linkedAppRoots, n as MonoAppRootInput, o as appRootDirs, p as resolveAppRoots, r as MonoAppRootSource, s as hasUrl, t as MonoAppRoot, u as missingPathMessage } from "./app-roots-DK41xMWj.js";
3
+ import { LoadConfigOptions } from "c12";
4
+ import { TSConfig } from "pkg-types";
5
+ //#region src/composables/config-node.d.ts
6
+ export interface LoadMonoConfigOptions extends Partial<LoadConfigOptions<MonoConfig>> {
7
+ cwd?: string;
8
+ }
9
+ export declare function loadMonoConfig(options?: LoadMonoConfigOptions): Promise<{
10
+ config: MonoConfig;
11
+ layers?: import("c12").ConfigLayer<MonoConfig, import("c12").ConfigLayerMeta>[] | undefined;
12
+ cwd?: string;
13
+ _configFile?: string;
14
+ source?: string;
15
+ sourceOptions?: import("c12").SourceOptions<MonoConfig, import("c12").ConfigLayerMeta> | undefined;
16
+ meta?: import("c12").ConfigLayerMeta | undefined;
17
+ configFile?: string;
18
+ }>;
19
+ export declare function getMonoConfig(options?: LoadMonoConfigOptions): Promise<MonoConfig>;
20
+ //#endregion
21
+ //#region src/composables/mono-alias.d.ts
22
+ export interface MonoAliasOptions {
23
+ /** App root (absolute). Pass `fileURLToPath(new URL('.', import.meta.url))`. */
24
+ dirname: string;
25
+ /** Override the own name instead of reading it from mono.config.ts. */
26
+ name?: string;
27
+ /** Folder scanned for remotes. Default './.mono/apps'. */
28
+ appsDir?: string;
29
+ /** Fallback source subdir when an app's `type` is unknown. Default 'src'. */
30
+ srcDir?: string;
31
+ /** Suffix for the root-level alias. Default '-root'. */
32
+ rootSuffix?: string;
33
+ /** Override the own app's kind (else read from mono.config.ts top-level `type`). */
34
+ ownType?: MonoAppType;
35
+ /** Override/augment per-remote kinds (else read from mono.config.ts `apps[].type`). */
36
+ appTypes?: Record<string, MonoAppType>;
37
+ /**
38
+ * @deprecated `apps[].path` is authoritative in every command (dev, build,
39
+ * prepare, sync); this option is ignored.
40
+ */
41
+ link?: boolean;
42
+ }
43
+ /**
44
+ * Strip `//` and `/* *​/` comments without touching string contents, so a
45
+ * commented-out `name:` never shadows the real one.
46
+ *
47
+ * Ported verbatim from `bin/mono-clone.mjs`.
48
+ */
49
+ export declare function stripCommentsSafe(code: string): string;
50
+ /**
51
+ * Absolute path of the mono config file in `dir`, or `null`. The same lookup
52
+ * order every static reader here uses.
53
+ */
54
+ export declare function monoConfigFileFor(dir: string): string | null;
55
+ /**
56
+ * Read the top-level `name: '...'` literal from mono.config.ts text without
57
+ * executing it. The first lowercase `name:` string literal is the config name —
58
+ * `apps[].name` entries appear later in the file.
59
+ */
60
+ export declare function extractConfigName(dir: string): string | null;
61
+ /**
62
+ * Read the top-level `template: 'host' | 'remote'` literal from mono.config.ts
63
+ * text without executing it — the same trick `extractConfigName` uses, and for
64
+ * the same reason: `monoNuxtLayers()` runs while `nuxt.config` is being loaded,
65
+ * where the config's `extends` chain (which imports the host's own config
66
+ * through an alias that does not exist yet) cannot be resolved.
67
+ *
68
+ * Only the text BEFORE `apps:` is searched, so a per-app key can never be
69
+ * mistaken for the top-level one. `null` when absent — which, per `MonoTemplate`,
70
+ * reads as `'remote'`.
71
+ */
72
+ export declare function extractTemplate(dir: string): MonoTemplate | null;
73
+ /** A statically-parsed `apps[]` entry (only fields we rely on here). */
74
+ export interface ExtractedApp {
75
+ name: string;
76
+ type?: MonoAppType;
77
+ /** Where `mono sync` clones from — optional when `path` is set. */
78
+ url?: string;
79
+ /** Directory the app is read from in place. See `MonoAppConfig.path`. */
80
+ path?: string;
81
+ [key: string]: unknown;
82
+ }
83
+ /** Statically read `{ name, type }` of a config without executing it. */
84
+ export interface ExtractedConfig {
85
+ name: string | null;
86
+ type: MonoAppType;
87
+ apps: ExtractedApp[];
88
+ }
89
+ /**
90
+ * Read a mono.config.ts's own `name`/`type` and its `apps[]` (name + type)
91
+ * WITHOUT executing it — `monoAlias` runs before the config is loaded, so it
92
+ * can only parse the source text. The apps array is eval'd in isolation (same
93
+ * approach as `bin/mono-clone.mjs`), so keep apps static (no variables/fns).
94
+ *
95
+ * The top-level `type` is read from the text BEFORE `apps:` so it can't be
96
+ * shadowed by an `apps[].type` (or a `fetching.api.*.type`). Declare the
97
+ * config's own `type` above `apps`.
98
+ */
99
+ export declare function extractConfig(dir: string): ExtractedConfig;
100
+ /**
101
+ * Statically read the top-level `skill: { url, envToken? }` literal of a
102
+ * mono.config.ts WITHOUT executing it — the `mono skills` CLI runs in a bare
103
+ * checkout where the config's `extends` imports (other apps' aliases) may not be
104
+ * resolvable, so it can only parse the source text, exactly like `extractConfig`.
105
+ *
106
+ * Read from THIS file only: `skill` is never inherited through `extends` (see
107
+ * `MonoConfig.skill`). The object literal is eval'd in isolation, so keep it
108
+ * static — no variables, no template expressions.
109
+ *
110
+ * `null` when the key is absent (the feature is off). THROWS when the key is
111
+ * present but is not a static object literal with a string `url` — a present
112
+ * but broken `skill` must surface as an error, not silently read as "off".
113
+ */
114
+ export declare function extractSkill(dir: string): MonoSkillConfig | null;
115
+ /**
116
+ * Every `apps[]` entry must say where it comes from: a `url` (`mono sync`
117
+ * clones it), a `path` (read in place), or both (`path` wins, `url` is the
118
+ * fallback when the directory is absent). An entry with neither is a config
119
+ * error, reported here by name rather than as a mysterious missing alias later.
120
+ *
121
+ * Run on the ROOT config only — a sibling's config is that sibling's business
122
+ * and is validated when IT runs.
123
+ */
124
+ export declare function assertAppSources(apps: ExtractedApp[], file: string): void;
125
+ export interface ResolveFederatedRootsOptions {
126
+ /** App root (absolute). */
127
+ dirname: string;
128
+ /** Folder holding the clones. @default './.mono/apps' */
129
+ appsDir?: string;
130
+ /** Policy for the ROOT config's own `path` entries. @default 'report' */
131
+ onMissingPath?: MonoMissingPathPolicy;
132
+ }
133
+ /**
134
+ * The root config's apps, plus ONE level of the apps each of those declares by
135
+ * `path` — resolved against THAT app's directory, not ours.
136
+ *
137
+ * In a mono-lith every sibling carries its own `mono.config.ts`, and a
138
+ * remote's config can name a third sibling this root never listed. Its
139
+ * `extends` chain then imports `@<third>-root/mono.config`, which only
140
+ * resolves if that app has an alias here. So "present" and "aliased" are
141
+ * decided by this one walk, and `monoAlias` / `monoMissingApps` both take its
142
+ * answer.
143
+ *
144
+ * One level, never recursive: a host and its remote list each other, and the
145
+ * cycle must not loop. A sibling's own `.mono/apps` is never listed
146
+ * (`listClones: false`) — its clones are its standalone-dev business — and a
147
+ * sibling's missing `path` is skipped silently (`onMissingPath: 'ignore'`):
148
+ * that sibling reports it when it runs.
149
+ */
150
+ export declare function resolveFederatedRoots(opts: ResolveFederatedRootsOptions): MonoAppRoot[];
151
+ /**
152
+ * Build the mono alias map for both Vite's `resolve.alias` and the jiti alias
153
+ * that `getMonoConfig` needs to parse `mono.config.ts`.
154
+ *
155
+ * The source subdir of each app is derived from its `type` (`vue` -> `src`,
156
+ * `nuxt` -> `app`): the own type from the config's top-level `type`, each
157
+ * remote's from its `apps[].type`. Unknown types fall back to `srcDir`.
158
+ *
159
+ * Convention (keyed off app names; `<src>` = `srcDirForType(type)`):
160
+ * - `@<own-name>` -> `<dirname>/<src>`
161
+ * - `@<own-name>-root` -> `<dirname>`
162
+ * - `@<remote>` -> `<dirname>/.mono/apps/<remote>/<src>`
163
+ * - `@<remote>-root` -> `<dirname>/.mono/apps/<remote>`
164
+ * - `@mono-apps` -> `<dirname>/.mono/apps`
165
+ *
166
+ * Name/type are read from `mono.config.ts` (or passed via `name`/`ownType`/
167
+ * `appTypes`). Remotes come from {@link resolveFederatedRoots}: the
168
+ * `.mono/apps/` listing, plus every app whose `apps[].path` names a directory
169
+ * — in which case `@<remote>` resolves THERE, in every command — plus the
170
+ * `path` apps those apps declare themselves. Returns absolute paths.
171
+ */
172
+ export declare function monoAlias(opts: MonoAliasOptions): Record<string, string>;
173
+ /** An app some config federates that has no directory under `.mono/apps/`. */
174
+ export interface MonoMissingApp {
175
+ /** The app's `name` — the thing `@<name>` / `@<name>-root` is keyed on. */
176
+ name: string;
177
+ /** Which config asked for it: this app's own name, or a cloned app's. */
178
+ via: string;
179
+ /** Its `apps[].envToken`, when it was declared — what to set for a private repo. */
180
+ envToken?: string;
181
+ }
182
+ export interface MonoMissingAppsOptions {
183
+ /** App root (absolute). */
184
+ dirname: string;
185
+ /** Folder scanned for remotes. Default './.mono/apps'. */
186
+ appsDir?: string;
187
+ /** Suffix for the root-level alias. Default '-root'. */
188
+ rootSuffix?: string;
189
+ /** @deprecated `apps[].path` is authoritative in every command; ignored. */
190
+ link?: boolean;
191
+ }
192
+ /**
193
+ * Apps that are federated somewhere in the chain but aren't on disk.
194
+ *
195
+ * A cloned app never carries its own `.mono/` (gitignored, so it's absent from the
196
+ * archive `mono sync` downloads), so a host that federates apps of its own arrives
197
+ * with `import … from '@some-app-root/mono.config'` and nothing to resolve it
198
+ * against. `monoAlias` keys off the `.mono/apps/` DIRECTORY LISTING, so there is no
199
+ * key and jiti falls through to bare-package resolution — `Cannot find module`, and
200
+ * the config never loads. Finding those names first is what lets
201
+ * {@link monoStubAliases} neutralise them.
202
+ *
203
+ * Static only — {@link extractConfig} text-parses each config without executing it,
204
+ * which is the sole option: this runs BEFORE any config can be loaded.
205
+ *
206
+ * Two sources, union'd:
207
+ * - names in any reachable `apps[]` with no directory (carries `envToken`)
208
+ * - `@<name>-root/…` import specifiers with no alias key — covers a config that
209
+ * imports an app it never declared in `apps[]`
210
+ *
211
+ * Only the `-root` suffix form is scanned for the second source: `@scope/pkg` npm
212
+ * imports are syntactically identical to `@app/file`, and mistaking `@vueuse/core`
213
+ * for a mono app would stub a real dependency out of the build.
214
+ */
215
+ export declare function monoMissingApps(opts: MonoMissingAppsOptions): MonoMissingApp[];
216
+ export interface MonoStubAliasesOptions extends MonoMissingAppsOptions {
217
+ /** Pre-computed missing apps (else discovered via {@link monoMissingApps}). */
218
+ missing?: MonoMissingApp[];
219
+ }
220
+ export interface MonoStubAliases {
221
+ /** Alias entries to merge ON TOP of {@link monoAlias}'s map. Empty when nothing is missing. */
222
+ alias: Record<string, string>;
223
+ /** What was stubbed — feed to {@link formatMissingApps}. */
224
+ missing: MonoMissingApp[];
225
+ /** The generated stub module, or `null` when nothing was missing. */
226
+ stubFile: string | null;
227
+ }
228
+ /**
229
+ * Alias entries that let a config chain load with apps missing from `.mono/apps/`.
230
+ *
231
+ * Each unsynced app gets EXACT keys for its config specifier only —
232
+ * `@<name>-root/mono.config` (+ `.ts`/`.js`/`.mjs`, and the `@<name>` form) — all
233
+ * pointing at one generated module that exports `{ apps: [], extends: [] }`. The
234
+ * import resolves, the layer merges to nothing, the build starts.
235
+ *
236
+ * Deliberately NOT the bare `@<name>` / `@<name>-root` prefixes: app code that
237
+ * imports a missing app (`@some-app/components/Foo.vue`) must still fail loudly. A
238
+ * page that can't exist is better than a page that silently renders blank.
239
+ *
240
+ * Exact keys work because alias matching (pathe's `resolveAlias`, used by jiti;
241
+ * the same rule in Vite) treats a key with no trailing segment as a full match, and
242
+ * sorts keys with more slashes first — so `@x-root/mono.config` is always tried
243
+ * before `@x-root`. For a missing app that prefix key doesn't exist anyway.
244
+ *
245
+ * Merge into BOTH alias maps: jiti's (so `getMonoConfig` can load) and Vite's (the
246
+ * browser graph resolves the same chain via `import monoConfig from '../mono.config'`
247
+ * in an app's `main.ts` — stub only jiti and the dev server starts, then dies on
248
+ * first page load).
249
+ */
250
+ export declare function monoStubAliases(opts: MonoStubAliasesOptions): MonoStubAliases;
251
+ /**
252
+ * The warning for stubbed apps — names them, says what was lost, and gives the
253
+ * command that fixes it. `envToken` is the actionable part: a private repo fails to
254
+ * sync silently until someone knows which variable to set.
255
+ */
256
+ export declare function formatMissingApps(missing: MonoMissingApp[]): string;
257
+ //#endregion
258
+ //#region src/composables/mono-tsconfig.d.ts
259
+ /** Folder (relative to an app root) that holds the generated tsconfig. */
260
+ export declare const MONO_DIR = ".mono";
261
+ /** Reference to the generated tsconfig, as written into the root `extends`. */
262
+ export declare const MONO_TSCONFIG_REF = "./.mono/tsconfig.json";
263
+ /** Folder (relative to an app root) that holds the cloned remotes. */
264
+ export declare const MONO_APPS_DIR = ".mono/apps";
265
+ /**
266
+ * Build the `compilerOptions.paths` map for `.mono/tsconfig.json` from the mono
267
+ * alias map.
268
+ *
269
+ * `monoAlias` returns absolute directory paths keyed WITHOUT a `/*` glob (e.g.
270
+ * `@mono-host` -> `<abs>/src`). tsconfig `paths` need the `/*` glob on both the
271
+ * key and the value, and the value must be relative to the `.mono/` folder that
272
+ * the file lives in. So `@mono-host` -> `{ "@mono-host/*": ["../src/*"] }`.
273
+ *
274
+ * All alias/type/srcDir rules are inherited from `monoAlias` — nothing is
275
+ * re-implemented here.
276
+ */
277
+ export declare function monoTsconfigPaths(opts: MonoAliasOptions): Record<string, string[]>;
278
+ /** The object written to `<dirname>/.mono/tsconfig.json`. */
279
+ export declare function buildMonoTsconfig(opts: MonoAliasOptions): TSConfig;
280
+ export interface RunMonoPrepareOptions {
281
+ /** App root (absolute) containing `mono.config.ts` and `tsconfig.json`. */
282
+ dirname: string;
283
+ }
284
+ export interface RunMonoPrepareResult {
285
+ /** Absolute path of the generated `.mono/tsconfig.json`. */
286
+ monoTsconfigPath: string;
287
+ /** Absolute path of the root `tsconfig.json` that was wired. */
288
+ rootTsconfigPath: string;
289
+ /** The alias keys (with `/*`) written into `.mono/tsconfig.json`. */
290
+ writtenKeys: string[];
291
+ /** Inline `@mono-*` path keys stripped from the root tsconfig. */
292
+ removedKeys: string[];
293
+ /** Whether the `extends` entry was added (false if it was already present). */
294
+ addedExtends: boolean;
295
+ /** Cloned remotes under `.mono/apps/` whose tsconfig was (re)wired. */
296
+ wiredApps: string[];
297
+ /**
298
+ * Alias keys whose directory lies outside the project (`apps[].path`
299
+ * siblings) while the root tsconfig sets `rootDir` — TypeScript will reject
300
+ * them until `rootDir` is removed or widened.
301
+ */
302
+ outsideProject: string[];
303
+ /**
304
+ * `path` apps whose own `tsconfig.json` extends a `.mono/tsconfig.json` that
305
+ * does not exist yet — they have not run their own `mono prepare`.
306
+ */
307
+ unpreparedApps: string[];
308
+ }
309
+ /**
310
+ * Generate `<dirname>/.mono/tsconfig.json` from the mono alias map and wire it
311
+ * into the root `tsconfig.json` via `extends`, stripping the now-redundant
312
+ * inline `@mono-*` paths. Idempotent: safe to run repeatedly.
313
+ */
314
+ export declare function runMonoPrepare(opts: RunMonoPrepareOptions): Promise<RunMonoPrepareResult>;
315
+ //#endregion
316
+ //#region src/skills/config.d.ts
317
+ /**
318
+ * Built-in behavioural defaults. Users never configure these — they only set
319
+ * `skill.url` / `skill.envToken`.
320
+ */
321
+ export declare const SKILLS_DEFAULTS: Readonly<{
322
+ /** Local staging + clone directory (under the already-gitignored `.mono/`). */
323
+ stagingDir: ".mono/skills";
324
+ /** Subfolder of `stagingDir` holding the working clone of the skills repo. */
325
+ repoDir: "repo";
326
+ /** Conversation chunk size before splitting into `part-NNNN.jsonl`. 750 KB. */
327
+ chunkSizeBytes: number;
328
+ /** Remove the local staging dir after a successful upload. */
329
+ cleanupAfterSuccess: true;
330
+ /** Move a failed session from `pending/` to `failed/`. */
331
+ moveFailedSessions: true;
332
+ /** `read`/`search` re-fetch the clone when its last fetch is older than this. */
333
+ refreshTtlMs: number;
334
+ /** How many times a rejected (non-fast-forward) push is replayed on a fresh tip. */
335
+ pushAttempts: 3;
336
+ /** Timeout for a single remote git operation (probe, fetch, push). */
337
+ gitTimeoutMs: number;
338
+ }>;
339
+ /**
340
+ * The ONLY CLI flags any `mono skills` subcommand may accept. The argument guard
341
+ * rejects everything else — in particular `--token`, `--owner`, `--repo`,
342
+ * `--branch`, `--url`, `--destination`, etc. — so the AI can never (accidentally
343
+ * or otherwise) retarget the repo or leak a token via argv.
344
+ */
345
+ export declare const ALLOWED_FLAGS: readonly string[];
346
+ /**
347
+ * Default/generic template app names. While an app still carries one of these
348
+ * placeholder names, `save`/`retry` are skipped — we don't want session history
349
+ * filed under a non-specific id. The user is expected to rename the app first
350
+ * (see Template Rule 1 — "confirm the app name"). Comparison is case-insensitive
351
+ * against the normalized app id.
352
+ */
353
+ export declare const GENERIC_APP_NAMES: readonly string[];
354
+ /** True when `id` is still a default/generic template name. */
355
+ export declare function isGenericAppName(id: string): boolean;
356
+ /**
357
+ * Load `.env` (and `.env.dev` if present) from `cwd` into `process.env` without
358
+ * overriding values already set in the real environment, so `skill.envToken`
359
+ * can name a variable kept in a dotenv file — exactly like `apps[].envToken`
360
+ * for `mono sync`. Missing files are ignored silently.
361
+ */
362
+ export declare function loadSkillsEnv(cwd?: string): void;
363
+ /**
364
+ * Read `skill` from the `mono.config.ts` in `cwd`. `null` = not configured (the
365
+ * feature is off). Throws when the key is present but malformed.
366
+ */
367
+ export declare function loadSkillConfig(cwd?: string): MonoSkillConfig | null;
368
+ /** How `skill.url` was recognised. Decides token support and probing. */
369
+ export type SkillUrlKind = 'github' | 'https' | 'ssh' | 'local';
370
+ /** `skill.url` parsed into what the git layer needs. Pure data, no I/O. */
371
+ export interface SkillTarget {
372
+ kind: SkillUrlKind;
373
+ /** Plain, credential-free clone URL — the ONLY form that is ever logged or stored. */
374
+ remoteUrl: string;
375
+ /** Hostname (`null` for a local path). */
376
+ host: string | null;
377
+ /** GitHub only. */
378
+ owner?: string;
379
+ repo?: string;
380
+ /**
381
+ * Branch to use. `null` = the remote's default branch (resolved by probing
382
+ * `HEAD`). For a GitHub deep URL this is filled in AFTER the probe splits
383
+ * `refAndDir`, so it stays `null` here.
384
+ */
385
+ ref: string | null;
386
+ /**
387
+ * Raw remainder of a GitHub `/tree/<…>` URL. `release/v2/app` could be branch
388
+ * `release/v2` + folder `app` or branch `release` + folder `v2/app`; only the
389
+ * remote knows, so the split happens in `resolveRemote`, not here.
390
+ */
391
+ refAndDir: string | null;
392
+ /** Subfolder inside the repo everything is written under. `''` = repo root. */
393
+ dir: string;
394
+ /** Env var NAME holding the PAT, when configured. */
395
+ tokenEnv?: string;
396
+ /** HTTPS only: a token can ride the URL. `ssh`/`local` = machine access only. */
397
+ tokenSupported: boolean;
398
+ }
399
+ /**
400
+ * Parse `skill.url` into a {@link SkillTarget}. Throws `Invalid skill.url: …`
401
+ * for anything that is not a repository (`/blob/` file links, an owner with no
402
+ * repo, garbage).
403
+ */
404
+ export declare function resolveSkillTarget(cfg: MonoSkillConfig): SkillTarget;
405
+ //#endregion
406
+ //#region src/skills/types.d.ts
407
+ /** Outcome status a session can carry. */
408
+ export type SessionStatus = 'completed' | 'partial' | 'failed';
409
+ /** A file the session touched — METADATA ONLY; contents are never uploaded. */
410
+ export interface ChangedFile {
411
+ path: string;
412
+ operation: 'added' | 'modified' | 'deleted' | 'renamed';
413
+ }
414
+ /** A technical/business decision recorded during the session. */
415
+ export interface SessionDecision {
416
+ title: string;
417
+ decision: string;
418
+ reason?: string;
419
+ }
420
+ /** Shape of `metadata.json` the AI (or a human) writes before `mono skills save`. */
421
+ export interface SessionMetadata {
422
+ schemaVersion: number;
423
+ sessionId: string;
424
+ status: SessionStatus;
425
+ startedAt?: string;
426
+ finishedAt?: string;
427
+ topics?: string[];
428
+ userRequests?: string[];
429
+ commandsRun?: string[];
430
+ validation?: {
431
+ testsRun?: boolean;
432
+ testsPassed?: boolean | null;
433
+ buildRun?: boolean;
434
+ buildPassed?: boolean | null;
435
+ };
436
+ outcome?: {
437
+ result?: string;
438
+ notes?: string;
439
+ };
440
+ [key: string]: unknown;
441
+ }
442
+ /** The effective local git identity used for attribution (`whoami`). */
443
+ export interface Actor {
444
+ name: string;
445
+ email: string;
446
+ /** `<name-slug>__<6 hex>` — the per-actor folder under `<app>/history/`. */
447
+ actorFolder: string;
448
+ }
449
+ /** Result of a successful `mono skills save` / `retry`. */
450
+ export interface SaveResult {
451
+ success: true;
452
+ sessionId: string;
453
+ /** The configured repository (plain URL, never a token). */
454
+ repository: string;
455
+ /** Branch the session was pushed to. */
456
+ ref: string;
457
+ /** Subfolder inside the repo (`''` = root). */
458
+ dir: string;
459
+ /** Which credentials got through: the machine's own git access, or `envToken`. */
460
+ transport: 'git' | 'token';
461
+ /** `<app>/history/<actor>/<date>/<time>_<id>` — relative to `dir`. */
462
+ savedPath: string;
463
+ /** `dir` + `savedPath` — the path as seen from the repository root. */
464
+ repoPath: string;
465
+ /** The commit that landed on the remote. */
466
+ commit: string;
467
+ /** 1 = first push; 2+ = replayed after a concurrent save. */
468
+ pushAttempts: number;
469
+ filesUploaded: number;
470
+ localCleanup: boolean;
471
+ }
472
+ /** Result when `skill` is not configured in mono.config.ts — NOT an error. */
473
+ export interface SkippedResult {
474
+ success: true;
475
+ skipped: true;
476
+ reason: 'MONO_SKILLS_NOT_CONFIGURED';
477
+ hint?: string;
478
+ }
479
+ /** Generic failure payload. */
480
+ export interface FailureResult {
481
+ success: false;
482
+ error: string;
483
+ [key: string]: unknown;
484
+ }
485
+ //#endregion
486
+ //#region src/skills/git.d.ts
487
+ /**
488
+ * Applied to EVERY git invocation (same list as `mono sync`, same reasons):
489
+ * stop Git Credential Manager from popping a dialog, keep LF so the tree is
490
+ * byte-identical across machines, no symlinks/submodules, long paths, no gc.
491
+ */
492
+ export declare const BASE_ARGS: string[];
493
+ /** Environment for every git child process. */
494
+ export declare function gitEnv(extra?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
495
+ export interface GitResult {
496
+ ok: boolean;
497
+ code: number | null;
498
+ signal: NodeJS.Signals | null;
499
+ stdout: string;
500
+ stderr: string;
501
+ error?: NodeJS.ErrnoException;
502
+ timedOut: boolean;
503
+ }
504
+ export interface RunGitOptions {
505
+ cwd?: string;
506
+ timeoutMs?: number;
507
+ env?: NodeJS.ProcessEnv;
508
+ }
509
+ export type GitRunner = (args: string[], opts?: RunGitOptions) => GitResult;
510
+ /**
511
+ * Run git. NEVER throws — returns a record for the caller to classify.
512
+ * `shell: false` so a path like `C:\Program Files\…` needs no quoting.
513
+ */
514
+ export declare function runGit(args: string[], { cwd, timeoutMs, env }?: RunGitOptions): GitResult;
515
+ /** First `fatal:`/`error:`/`remote:` line of stderr, tag stripped — and redacted. */
516
+ export declare function firstFatal(stderr: string): string;
517
+ export type GitFailureKind = 'no-git' | 'timeout' | 'ref-missing' | 'network' | 'no-access' | 'unknown';
518
+ export type GitNoAccessWhy = 'not-invited' | 'bad-credential' | 'no-credential';
519
+ export interface GitFailure {
520
+ kind: GitFailureKind;
521
+ why?: GitNoAccessWhy;
522
+ detail?: string;
523
+ }
524
+ /**
525
+ * Turn a `runGit` result into an actionable cause. The `not-invited` vs
526
+ * `bad-credential` split matters: GitHub answers 404 for private repos you
527
+ * cannot see, but a STALE cached credential answers "Authentication failed".
528
+ */
529
+ export declare function classifyGitFailure(res: GitResult | undefined): GitFailure;
530
+ /** Strip any embedded credential before a URL (or a line containing one) reaches a log or an error. */
531
+ export declare function redactUrl(text: string): string;
532
+ /**
533
+ * Put a token on an https clone URL for ONE fetch/push. GitHub authenticates a
534
+ * PAT as user `x-access-token`; GitLab-style hosts as `oauth2`; Azure DevOps
535
+ * accepts any user name with a PAT password. Never store the result — pass it
536
+ * as the positional remote argument only, so `.git/config` stays clean.
537
+ */
538
+ export declare function tokenRemote(remoteUrl: string, token: string): string;
539
+ /**
540
+ * Every legal split of a `/tree/<refAndDir>` URL remainder into ref + folder,
541
+ * longest ref first — `release/v2/app` may be branch `release/v2` + `app` or
542
+ * branch `release` + `v2/app`. Only the remote can tell, so the caller probes
543
+ * each candidate in this order. (Ported from `bin/mono-git.mjs`.)
544
+ */
545
+ export declare function refDirCandidates(refAndDir: string): Array<{
546
+ ref: string;
547
+ dir: string;
548
+ }>;
549
+ /** Refs to ask `ls-remote` about for a branch-or-tag name. */
550
+ export declare function refPatterns(ref: string): string[];
551
+ /** Pick the SHA for `ref` out of `ls-remote` output. Branch beats tag. */
552
+ export declare function parseLsRemote(stdout: string, ref: string): string | null;
553
+ /**
554
+ * The default branch from `git ls-remote --symref <url> HEAD`:
555
+ * `ref: refs/heads/main\tHEAD` → `main`. `null` for an empty (unborn) remote.
556
+ */
557
+ export declare function parseSymref(stdout: string): string | null;
558
+ /** The SHA that `ls-remote … HEAD` reports (second line of a `--symref` answer). */
559
+ export declare function parseHeadSha(stdout: string): string | null;
560
+ /** Did a push get rejected because the remote moved on (someone else pushed first)? */
561
+ export declare function isNonFastForward(stderr: string): boolean;
562
+ //#endregion
563
+ //#region src/skills/repo.d.ts
564
+ export type SkillTransport = 'git' | 'token';
565
+ /** `skill.url` resolved against the live remote: which URL works, which branch, which folder. */
566
+ export interface ResolvedRemote {
567
+ target: SkillTarget;
568
+ transport: SkillTransport;
569
+ /** The URL that reached the remote. MAY CARRY THE TOKEN — never log or store; `redactUrl()` it. */
570
+ fetchUrl: string;
571
+ /** Resolved branch. */
572
+ ref: string;
573
+ /** Resolved subfolder (`''` = repo root). */
574
+ dir: string;
575
+ /** Tip of `ref` at probe time; `null` when the remote is empty. */
576
+ headSha: string | null;
577
+ /** The remote has no refs at all — the first push creates `ref`. */
578
+ emptyRemote: boolean;
579
+ }
580
+ /** The remote could not be reached with any transport we were allowed to try. */
581
+ export declare class SkillsAccessError extends Error {
582
+ kind: GitFailureKind;
583
+ why?: GitNoAccessWhy;
584
+ transportTried: SkillTransport[];
585
+ constructor(message: string, failure: GitFailure, transportTried: SkillTransport[]);
586
+ }
587
+ /**
588
+ * Work out how to reach `skill.url` and what branch/folder it names.
589
+ * Throws {@link SkillsAccessError} (message already redacted) when neither the
590
+ * machine's credentials nor the configured token get through.
591
+ */
592
+ export declare function resolveRemote({ target, env, run, timeoutMs }: {
593
+ target: SkillTarget;
594
+ env?: NodeJS.ProcessEnv;
595
+ run?: GitRunner;
596
+ timeoutMs?: number;
597
+ }): ResolvedRemote;
598
+ /** Absolute path of the working clone: `<cwd>/.mono/skills/repo`. */
599
+ export declare function repoDir(cwd?: string): string;
600
+ export type RepoRefresh = 'always' | 'if-stale' | 'never';
601
+ export interface EnsureRepoResult {
602
+ repoDir: string;
603
+ /** A fetch ran and the working tree now matches the remote tip. */
604
+ refreshed: boolean;
605
+ /** A refresh was wanted but failed; the clone is being served as-is. */
606
+ stale: boolean;
607
+ /** Local HEAD after the call (`null` on an unborn branch — empty remote). */
608
+ headSha: string | null;
609
+ /** Age of the last successful fetch, ms (`null` if never fetched). */
610
+ lastFetchMs: number | null;
611
+ }
612
+ /**
613
+ * Make `.mono/skills/repo` a valid clone of the resolved remote on `ref`, and
614
+ * bring it up to date according to `refresh`:
615
+ *
616
+ * - `always` — fetch now (before a save).
617
+ * - `if-stale` — fetch when the last fetch is older than `refreshTtlMs`, or the
618
+ * branch was never fetched (before a read).
619
+ * - `never` — serve whatever is there (diagnostics), fetching only if the
620
+ * branch has never been fetched at all.
621
+ *
622
+ * A failed refresh of an EXISTING clone degrades to `stale: true` — offline
623
+ * reads still work. A failed FIRST fetch throws, since there is nothing to serve.
624
+ */
625
+ export declare function ensureRepo({ cwd, remote, refresh, run, timeoutMs }: {
626
+ cwd?: string;
627
+ remote: ResolvedRemote;
628
+ refresh: RepoRefresh;
629
+ run?: GitRunner;
630
+ timeoutMs?: number;
631
+ }): EnsureRepoResult;
632
+ export interface CommitAndPushResult {
633
+ /** SHA of the commit that landed on the remote. */
634
+ sha: string;
635
+ /** 1 = pushed first time; 2+ = replayed after someone else pushed first. */
636
+ attempts: number;
637
+ }
638
+ /**
639
+ * Write files (via `apply`), commit them as `actor`, push to `ref`. On a
640
+ * non-fast-forward rejection: fetch, hard-reset to the new remote tip, run
641
+ * `apply` again (it re-checks immutability on the fresh tree), commit, push —
642
+ * up to `attempts` times.
643
+ */
644
+ export declare function commitAndPush({ repoDir: dir, remote, actor, message, apply, attempts, run, timeoutMs }: {
645
+ repoDir: string;
646
+ remote: ResolvedRemote;
647
+ actor: Actor;
648
+ message: string;
649
+ apply: (repoDir: string) => void;
650
+ attempts?: number;
651
+ run?: GitRunner;
652
+ timeoutMs?: number;
653
+ }): CommitAndPushResult;
654
+ /** Absolute path of the skills root inside the clone (`repoDir/<dir>`). */
655
+ export declare function skillsRoot(dir: string, sub: string): string;
656
+ /** Read one file under `<repoDir>/<dir>/<rel>`; `null` when absent or a directory. */
657
+ export declare function readRepoFile(dir: string, sub: string, rel: string): string | null;
658
+ /**
659
+ * List files under `<repoDir>/<dir>/<prefix>` recursively, as forward-slash
660
+ * paths relative to `<repoDir>/<dir>`. `.git` is never entered.
661
+ */
662
+ export declare function listRepoFiles(dir: string, sub: string, prefix?: string): string[];
663
+ //#endregion
664
+ //#region src/skills/actor.d.ts
665
+ /**
666
+ * Resolve the actor from `git config user.name` / `user.email`.
667
+ *
668
+ * `actorFolder` = `<name-slug>__<6 hex>` where the 6 hex come from a sha256 of
669
+ * the email (stable per identity, so the same person always maps to the same
670
+ * folder). Example: `John Doe` / `john.doe@company.com` -> `john_doe__8f219a`.
671
+ */
672
+ export declare function detectActor(cwd?: string): Actor;
673
+ //#endregion
674
+ //#region src/skills/appid.d.ts
675
+ /**
676
+ * Normalize an app id: lowercase, keep only `[a-z0-9_-]`, collapse the rest to
677
+ * `-`, trim separators. Rejects path-traversal / separators outright.
678
+ */
679
+ export declare function normalizeAppId(raw: string): string;
680
+ /**
681
+ * Resolve the effective app id for a command. `app` is the explicit `--app`
682
+ * value (if any); `cwd` is the working directory.
683
+ */
684
+ export declare function resolveAppId({ app, cwd }: {
685
+ app?: string;
686
+ cwd?: string;
687
+ }): string;
688
+ //#endregion
689
+ //#region src/skills/staging.d.ts
690
+ /** Absolute `.mono/skills` for a given project root. */
691
+ export declare function stagingRoot(cwd?: string): string;
692
+ export declare const REQUIRED_FILES: readonly ["metadata.json", "summary.md"];
693
+ /** A single staged session on disk. */
694
+ export interface StagedSession {
695
+ sessionId: string;
696
+ dir: string;
697
+ files: string[];
698
+ metadata: SessionMetadata;
699
+ }
700
+ /**
701
+ * Load + validate a staged session directory. Throws a clear error when a
702
+ * required file is missing, `metadata.json` is malformed, or any staged file
703
+ * doesn't match the template standard — so the caller (save/retry) refuses to
704
+ * upload a session that doesn't conform, and nothing reaches GitHub.
705
+ */
706
+ export declare function loadStagedSession(dir: string): StagedSession;
707
+ /** List session ids under `pending/` (or `failed/`). */
708
+ export declare function listSessions(cwd: string, kind: 'pending' | 'failed'): string[];
709
+ /** Move a session directory from `pending/` to `failed/` (spec §22). Returns the new path. */
710
+ export declare function moveToFailed(cwd: string, sessionId: string): string;
711
+ /** Remove a staged session directory after a successful upload (spec §20 cleanup). */
712
+ export declare function removeSession(dir: string): void;
713
+ /** Cache directory for remote reads (`knowledge` / `skills` / `search`). */
714
+ export declare function cacheDir(cwd: string, kind: 'knowledge' | 'skills' | 'search'): string;
715
+ //#endregion
716
+ //#region src/skills/validate.d.ts
717
+ /**
718
+ * Validate a staged session's files against the template standard. Throws a
719
+ * single error listing every problem when the session doesn't conform, so
720
+ * `save`/`retry` refuse to upload it. A conforming session returns silently.
721
+ */
722
+ export declare function validateStagedSession(dir: string, metadata: SessionMetadata): void;
723
+ //#endregion
724
+ //#region src/skills/redact.d.ts
725
+ /**
726
+ * Redact a string. Returns the cleaned text. Safe to run on any text content
727
+ * (summaries, conversation lines, decisions, metadata serialized to JSON).
728
+ */
729
+ export declare function redact(input: string): string;
730
+ /**
731
+ * Redact a Buffer (e.g. a conversation chunk before upload) by round-tripping
732
+ * through UTF-8. Returns a new Buffer.
733
+ */
734
+ export declare function redactBuffer(buf: Buffer): Buffer;
735
+ //#endregion
736
+ //#region src/skills/chunk.d.ts
737
+ export interface ConversationPart {
738
+ /** `part-0001.jsonl` */
739
+ name: string;
740
+ /** The chunk's raw bytes (already newline-joined). */
741
+ content: Buffer;
742
+ }
743
+ /**
744
+ * Chunk newline-delimited `jsonl` text into parts. Blank lines are dropped.
745
+ * Returns `[]` for empty input.
746
+ */
747
+ export declare function chunkConversation(jsonl: string, chunkSizeBytes?: number): ConversationPart[];
748
+ //#endregion
749
+ //#region src/skills/save.d.ts
750
+ /** A single file to write into the permanent session folder. */
751
+ interface PlannedFile {
752
+ /** Path relative to the skills root (`dir`). */
753
+ repoPath: string;
754
+ /** Already-redacted bytes. */
755
+ content: Buffer;
756
+ }
757
+ export interface SavePlan {
758
+ appId: string;
759
+ actor: Actor;
760
+ sessionId: string;
761
+ /** The configured repository (plain URL). */
762
+ repository: string;
763
+ /** `<app>/history/<actor>/<date>/<time>_<id>` */
764
+ savedPath: string;
765
+ /** Files that WILL be written (skills-root-relative), in order. */
766
+ files: PlannedFile[];
767
+ }
768
+ /**
769
+ * Build the full upload plan from a staged session WITHOUT touching the network.
770
+ * `--dry-run` returns exactly this. Everything textual is redacted here.
771
+ */
772
+ export declare function buildSavePlan({ cwd, app, dir, target }: {
773
+ cwd?: string;
774
+ app?: string;
775
+ dir: string;
776
+ target?: SkillTarget;
777
+ }): SavePlan;
778
+ /**
779
+ * Write the plan into the clone. Runs inside `commitAndPush`, so it may run
780
+ * more than once (after a replay onto a newer tip) — every step is idempotent:
781
+ * `app.json` / `user.json` are created once and never overwritten (so human
782
+ * edits to them survive), and an existing session folder is REFUSED (sessions
783
+ * are immutable).
784
+ */
785
+ export declare function applyPlan(plan: SavePlan, root: string): void;
786
+ /**
787
+ * Execute a save: resolve the remote, refresh the clone, apply, commit, push.
788
+ * On any failure the local staging dir is preserved / moved to `failed/` and
789
+ * the error is rethrown (already redacted).
790
+ */
791
+ export declare function runSave({ cwd, app, dir, target, remote, env, run }: {
792
+ cwd?: string;
793
+ app?: string;
794
+ dir: string;
795
+ /** Pre-parsed `skill` (the CLI parses it once). */
796
+ target?: SkillTarget;
797
+ /** Pre-resolved remote (skips the probe). */
798
+ remote?: ResolvedRemote;
799
+ env?: NodeJS.ProcessEnv;
800
+ run?: GitRunner;
801
+ }): SaveResult;
802
+ //#endregion
803
+ //#region src/skills/read.d.ts
804
+ /** Where the answer came from — every read result carries this. */
805
+ export interface ReadSource {
806
+ source: 'local-clone';
807
+ /** The clone could not be refreshed and may be behind the remote. */
808
+ stale: boolean;
809
+ ref: string;
810
+ dir: string;
811
+ }
812
+ export interface ReadResult extends ReadSource {
813
+ app: string;
814
+ type?: 'knowledge' | 'skills';
815
+ /** Files returned: skills-root-relative path + text. */
816
+ files: Array<{
817
+ path: string;
818
+ text: string;
819
+ }>;
820
+ }
821
+ interface RepoAccess {
822
+ cwd?: string;
823
+ remote: ResolvedRemote;
824
+ run?: GitRunner;
825
+ }
826
+ /**
827
+ * Read either a whole `--type knowledge|skills` folder for an app, or a single
828
+ * safe `--path` under that app. Returns the matched files' text.
829
+ */
830
+ export declare function runRead({ cwd, app, type, path: relPath, remote, run }: RepoAccess & {
831
+ app?: string;
832
+ type?: 'knowledge' | 'skills';
833
+ path?: string;
834
+ }): ReadResult;
835
+ export interface SearchHit {
836
+ path: string;
837
+ score: number;
838
+ /** A short snippet around the first match. */
839
+ snippet: string;
840
+ }
841
+ export interface SearchResult extends ReadSource {
842
+ app: string;
843
+ query: string;
844
+ hits: SearchHit[];
845
+ }
846
+ /**
847
+ * Search an app's knowledge/skills + history summaries/decisions/index for a
848
+ * query. Returns the top `limit` matches with snippets. Conversation chunks are
849
+ * intentionally excluded from the scan (too large / low signal).
850
+ */
851
+ export declare function runSearch({ cwd, app, query, limit, remote, run }: RepoAccess & {
852
+ app?: string;
853
+ query: string;
854
+ limit?: number;
855
+ }): SearchResult;
856
+ //#endregion
857
+ //#region src/skills/check.d.ts
858
+ export interface CheckReport {
859
+ /** `skill` is present (and parseable) in mono.config.ts. */
860
+ configured: boolean;
861
+ /** Plain repository URL, never a token. */
862
+ url: string | null;
863
+ kind: SkillUrlKind | null;
864
+ /** Resolved branch / subfolder (after probing). */
865
+ ref: string | null;
866
+ dir: string | null;
867
+ /** The env var NAME from `skill.envToken`, and whether it is set. */
868
+ tokenEnv: string | null;
869
+ tokenPresent: boolean;
870
+ tokenSupported: boolean;
871
+ /** Which credentials reached the remote. */
872
+ transport: SkillTransport | null;
873
+ canRead: boolean | null;
874
+ canPush: boolean | null;
875
+ remoteHead: string | null;
876
+ emptyRemote: boolean | null;
877
+ localClone: {
878
+ path: string;
879
+ exists: boolean;
880
+ headSha: string | null;
881
+ /** ISO time of the last successful fetch, if any. */
882
+ lastFetchAt: string | null;
883
+ };
884
+ /** The resolved current app id, and whether it's still a generic template name. */
885
+ currentApp: string | null;
886
+ genericAppName: boolean;
887
+ actor: Actor;
888
+ gitIdentityConfigured: boolean;
889
+ notes: string[];
890
+ }
891
+ /**
892
+ * Run every check that is possible given the current config. Never throws:
893
+ * an absent `skill` reports `configured: false`; an unreachable remote reports
894
+ * `null`s plus a note.
895
+ */
896
+ export declare function runCheck({ cwd, env, run }?: {
897
+ cwd?: string;
898
+ env?: NodeJS.ProcessEnv;
899
+ run?: GitRunner;
900
+ }): CheckReport;
901
+ //#endregion
902
+ //#region src/skills/session.d.ts
903
+ export interface SessionShowResult extends ReadSource {
904
+ app: string;
905
+ sessionId: string;
906
+ /** Skills-root-relative session folder, if found. */
907
+ path: string | null;
908
+ metadata: unknown | null;
909
+ summary: string | null;
910
+ }
911
+ /**
912
+ * Locate `<app>/history/**​/HH-mm-ss_<sessionId>/` in the clone, then return its
913
+ * `metadata.json` + `summary.md`. Returns nulls when the session isn't found.
914
+ */
915
+ export declare function runSessionShow({ cwd, app, sessionId, remote, run }: {
916
+ cwd?: string;
917
+ app?: string;
918
+ sessionId: string;
919
+ remote: ResolvedRemote;
920
+ run?: GitRunner;
921
+ }): SessionShowResult;
922
+ //#endregion
923
+ export { MonoAppRoot, MonoAppRootInput, MonoAppRootSource, MonoMissingPathPolicy, type MonoSkillConfig, ResolveAppRootsOptions, appRootDirs, hasUrl, isMissingPathError, linkedAppRoots, missingPathMessage, pathAppRoots, resetAppPathWarnings, resolveAppRoots };