@skaile/workspaces 4.9.2 → 4.9.4

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 (140) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{asset-feeds-ZKMRNVV2.js → asset-feeds-WHWQJOAQ.js} +5 -5
  3. package/dist/{asset-feeds-ZKMRNVV2.js.map → asset-feeds-WHWQJOAQ.js.map} +1 -1
  4. package/dist/asset-manager/catalog-deployer.js +1 -1
  5. package/dist/asset-manager/index.js +2 -2
  6. package/dist/asset-manager/installer.js +1 -1
  7. package/dist/bridge/drivers/claude-sdk.js +3 -3
  8. package/dist/bridge/drivers/codex.js +4 -4
  9. package/dist/bridge/drivers/continue.js +3 -3
  10. package/dist/bridge/drivers/echo.js +2 -2
  11. package/dist/bridge/drivers/gemini.js +5 -5
  12. package/dist/bridge/drivers/goose.js +3 -3
  13. package/dist/bridge/drivers/omp.js +2 -2
  14. package/dist/bridge/drivers/opencode.js +3 -3
  15. package/dist/bridge/drivers/qwen.js +5 -5
  16. package/dist/bridge/index.js +4 -4
  17. package/dist/{chunk-45LLHKQ2.js → chunk-2HUQUTJ3.js} +3 -3
  18. package/dist/{chunk-45LLHKQ2.js.map → chunk-2HUQUTJ3.js.map} +1 -1
  19. package/dist/{chunk-OZAF24OQ.js → chunk-3BDWW7OE.js} +6 -6
  20. package/dist/{chunk-OZAF24OQ.js.map → chunk-3BDWW7OE.js.map} +1 -1
  21. package/dist/{chunk-FTG7CRFD.js → chunk-3HKYCT2M.js} +69 -6
  22. package/dist/chunk-3HKYCT2M.js.map +1 -0
  23. package/dist/{chunk-6YIFJW2I.js → chunk-5HZWDH3L.js} +88 -67
  24. package/dist/chunk-5HZWDH3L.js.map +1 -0
  25. package/dist/{chunk-7ZYKHL6Y.js → chunk-7F4FGEMI.js} +3 -3
  26. package/dist/{chunk-7ZYKHL6Y.js.map → chunk-7F4FGEMI.js.map} +1 -1
  27. package/dist/{chunk-5VKBD3QV.js → chunk-FTSXFA7P.js} +5 -5
  28. package/dist/{chunk-5VKBD3QV.js.map → chunk-FTSXFA7P.js.map} +1 -1
  29. package/dist/{chunk-5YB4GYMB.js → chunk-HRVXHRL4.js} +225 -39
  30. package/dist/chunk-HRVXHRL4.js.map +1 -0
  31. package/dist/{chunk-NHZR3NVY.js → chunk-KQTMJP3X.js} +3 -3
  32. package/dist/{chunk-NHZR3NVY.js.map → chunk-KQTMJP3X.js.map} +1 -1
  33. package/dist/{chunk-QBH7PC4D.js → chunk-LDQB5VEC.js} +2 -2
  34. package/dist/{chunk-QBH7PC4D.js.map → chunk-LDQB5VEC.js.map} +1 -1
  35. package/dist/{chunk-TLMDSUEL.js → chunk-OIXSGSKM.js} +3 -3
  36. package/dist/{chunk-TLMDSUEL.js.map → chunk-OIXSGSKM.js.map} +1 -1
  37. package/dist/{chunk-BZBRCPEB.js → chunk-PROIKXJR.js} +3 -3
  38. package/dist/{chunk-BZBRCPEB.js.map → chunk-PROIKXJR.js.map} +1 -1
  39. package/dist/{chunk-6QMWCPME.js → chunk-R5NALZHK.js} +6 -6
  40. package/dist/{chunk-6QMWCPME.js.map → chunk-R5NALZHK.js.map} +1 -1
  41. package/dist/{chunk-XJLB4OH2.js → chunk-SPAG2BWG.js} +2 -2
  42. package/dist/{chunk-XJLB4OH2.js.map → chunk-SPAG2BWG.js.map} +1 -1
  43. package/dist/{chunk-5OZVZI2E.js → chunk-TXXPJ5CQ.js} +2 -2
  44. package/dist/{chunk-5OZVZI2E.js.map → chunk-TXXPJ5CQ.js.map} +1 -1
  45. package/dist/{chunk-TAHJRTAD.js → chunk-US3NCUQF.js} +4 -4
  46. package/dist/{chunk-TAHJRTAD.js.map → chunk-US3NCUQF.js.map} +1 -1
  47. package/dist/{chunk-DB6H7M5O.js → chunk-WPW5XS6I.js} +2 -2
  48. package/dist/{chunk-DB6H7M5O.js.map → chunk-WPW5XS6I.js.map} +1 -1
  49. package/dist/{chunk-CJCZIWW6.js → chunk-XEWX4V7T.js} +3 -3
  50. package/dist/{chunk-CJCZIWW6.js.map → chunk-XEWX4V7T.js.map} +1 -1
  51. package/dist/{chunk-7LBL25WI.js → chunk-YCIW4YOT.js} +3 -3
  52. package/dist/{chunk-7LBL25WI.js.map → chunk-YCIW4YOT.js.map} +1 -1
  53. package/dist/{chunk-X5VZOIAP.js → chunk-YMHRKIMQ.js} +3 -3
  54. package/dist/{chunk-X5VZOIAP.js.map → chunk-YMHRKIMQ.js.map} +1 -1
  55. package/dist/{chunk-6DN6U2CK.js → chunk-ZVYWMD6Q.js} +3 -3
  56. package/dist/{chunk-6DN6U2CK.js.map → chunk-ZVYWMD6Q.js.map} +1 -1
  57. package/dist/cli/index.js +42 -42
  58. package/dist/connectors/config.js +1 -1
  59. package/dist/connectors/index.js +5 -5
  60. package/dist/core/index.js +1 -1
  61. package/dist/core/logging.js +1 -1
  62. package/dist/core/src/logging/index.d.ts +3 -1
  63. package/dist/core/src/logging/index.d.ts.map +1 -1
  64. package/dist/core/src/logging/retention.d.ts +29 -0
  65. package/dist/core/src/logging/retention.d.ts.map +1 -0
  66. package/dist/core/src/logging/sinks/sqlite-runtime.d.ts +6 -1
  67. package/dist/core/src/logging/sinks/sqlite-runtime.d.ts.map +1 -1
  68. package/dist/deploy/index.js +1 -1
  69. package/dist/{ensure-sources-FRG6HKPM.js → ensure-sources-QOQSDYIW.js} +5 -5
  70. package/dist/{ensure-sources-FRG6HKPM.js.map → ensure-sources-QOQSDYIW.js.map} +1 -1
  71. package/dist/factory-assets/connectors/box.js +5 -5
  72. package/dist/factory-assets/connectors/deploy.js +5 -5
  73. package/dist/factory-assets/connectors/devserver.js +5 -5
  74. package/dist/factory-assets/connectors/flow/adapter.js +5 -5
  75. package/dist/factory-assets/connectors/flow/engine.js +1 -1
  76. package/dist/factory-assets/connectors/flow/run-flow.js +6 -6
  77. package/dist/factory-assets/connectors/flow.js +5 -5
  78. package/dist/factory-assets/connectors/git/CONNECTOR.md +7 -1
  79. package/dist/factory-assets/connectors/git/driver.d.ts +60 -10
  80. package/dist/factory-assets/connectors/git/driver.d.ts.map +1 -1
  81. package/dist/factory-assets/connectors/git.js +5 -5
  82. package/dist/factory-assets/connectors/gmail.js +5 -5
  83. package/dist/factory-assets/connectors/googledrive.js +5 -5
  84. package/dist/factory-assets/connectors/local.js +5 -5
  85. package/dist/factory-assets/connectors/mattermost.js +5 -5
  86. package/dist/factory-assets/connectors/memory.js +5 -5
  87. package/dist/factory-assets/connectors/minio.js +5 -5
  88. package/dist/factory-assets/connectors/postgres.js +5 -5
  89. package/dist/factory-assets/connectors/s3.js +5 -5
  90. package/dist/factory-assets/connectors/sharepoint.js +5 -5
  91. package/dist/factory-assets/connectors/sqlite.js +5 -5
  92. package/dist/factory-assets/connectors/static-server.js +5 -5
  93. package/dist/factory-assets/connectors/tunnel.js +5 -5
  94. package/dist/factory-assets/connectors/webdav.js +5 -5
  95. package/dist/factory-assets/connectors/xstate-store.js +5 -5
  96. package/dist/factory-assets/connectors/xstate.js +5 -5
  97. package/dist/{flows-377JICTL.js → flows-SYYQDDCT.js} +4 -4
  98. package/dist/{flows-377JICTL.js.map → flows-SYYQDDCT.js.map} +1 -1
  99. package/dist/{helpers-JHGUA7T7.js → helpers-HGDWKXLE.js} +5 -5
  100. package/dist/{helpers-JHGUA7T7.js.map → helpers-HGDWKXLE.js.map} +1 -1
  101. package/dist/library/index.js +1 -1
  102. package/dist/library/install.js +1 -1
  103. package/dist/{library-publish-CUFLZUEV.js → library-publish-6QYWX635.js} +7 -7
  104. package/dist/{library-publish-CUFLZUEV.js.map → library-publish-6QYWX635.js.map} +1 -1
  105. package/dist/{open-library-ZI6TWEM6.js → open-library-R74XCRPC.js} +6 -6
  106. package/dist/{open-library-ZI6TWEM6.js.map → open-library-R74XCRPC.js.map} +1 -1
  107. package/dist/{paths-WJUPZXFS.js → paths-NHONUGUU.js} +3 -3
  108. package/dist/{paths-WJUPZXFS.js.map → paths-NHONUGUU.js.map} +1 -1
  109. package/dist/{plugin-store-ZW4GDES3.js → plugin-store-4RALGK5S.js} +3 -3
  110. package/dist/{plugin-store-ZW4GDES3.js.map → plugin-store-4RALGK5S.js.map} +1 -1
  111. package/dist/{project-TVZ6Y6AR.js → project-OFUZ5D3S.js} +6 -6
  112. package/dist/{project-TVZ6Y6AR.js.map → project-OFUZ5D3S.js.map} +1 -1
  113. package/dist/resolver/index.js +1 -1
  114. package/dist/runner/index.js +11 -11
  115. package/dist/runner/src/logging-bootstrap.d.ts +11 -0
  116. package/dist/runner/src/logging-bootstrap.d.ts.map +1 -1
  117. package/dist/runner/src/serve.d.ts.map +1 -1
  118. package/dist/sdk/asset-manager.js +2 -2
  119. package/dist/sdk/bridge.js +4 -4
  120. package/dist/sdk/core.js +1 -1
  121. package/dist/sdk/flow.js +1 -1
  122. package/dist/sdk/index.js +11 -11
  123. package/dist/sdk/resolver.js +1 -1
  124. package/dist/sdk/runner.js +11 -11
  125. package/dist/{setup-54FNPLTS.js → setup-OYXGVHBF.js} +9 -9
  126. package/dist/{setup-54FNPLTS.js.map → setup-OYXGVHBF.js.map} +1 -1
  127. package/dist/{skills-J6KZ2WUT.js → skills-VUPPILR5.js} +3 -3
  128. package/dist/{skills-J6KZ2WUT.js.map → skills-VUPPILR5.js.map} +1 -1
  129. package/dist/{source-SPMRD7S2.js → source-MEQTWW3S.js} +7 -7
  130. package/dist/{source-SPMRD7S2.js.map → source-MEQTWW3S.js.map} +1 -1
  131. package/dist/{source-manifest-publish-3LSSDCSI.js → source-manifest-publish-EPPOGSLD.js} +8 -8
  132. package/dist/{source-manifest-publish-3LSSDCSI.js.map → source-manifest-publish-EPPOGSLD.js.map} +1 -1
  133. package/dist/tui/index.js +11 -11
  134. package/dist/workspace-plugin/adapters/mcp.js +3 -3
  135. package/dist/workspace-plugin/adapters/omp.js +7 -7
  136. package/dist/workspace-plugin/index.js +2 -2
  137. package/package.json +1 -1
  138. package/dist/chunk-5YB4GYMB.js.map +0 -1
  139. package/dist/chunk-6YIFJW2I.js.map +0 -1
  140. package/dist/chunk-FTG7CRFD.js.map +0 -1
@@ -9,7 +9,7 @@ export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS, globalBackendRoot } from '../
9
9
  export { SKAILE_MANIFEST_FILENAME, decodeSkaileManifest, encodeSkaileManifest, loadSkPublishManifest, saveSkPublishManifest } from '../chunk-P4VHQA4N.js';
10
10
  export { DEFAULT_FS_DEADLINE_MS, DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, FS_DEADLINE_ENV_VAR, FsDeadlineError, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, fsDeadlineMs, parseFrontmatter, parseRequires, scanDirectory, tryWithFsDeadline, walkDir, withFsDeadline } from '../chunk-MKZOK4JU.js';
11
11
  export { ASSET_KINDS, ASSET_NAME_HINT, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, isValidAssetName, parseAssetRef, parseDep, repositoryFromRaw, repositoryToRaw, slugifyAssetName } from '../chunk-GEEW6SY2.js';
12
- export { OnLogBridgeSink, SqliteSink, WsLogSink, createLogStoreFromConfig, openSqlite, resolveLogStoreConfig } from '../chunk-FTG7CRFD.js';
12
+ export { DEFAULT_LOGS_RETENTION, OnLogBridgeSink, SqliteSink, WsLogSink, createLogStoreFromConfig, enforceLogsRetention, openSqlite, resolveLogStoreConfig, resolveLogsRetention } from '../chunk-3HKYCT2M.js';
13
13
  export { __resetCredentialCommandCache, portableSpawn, portableSpawnSync, resolveCredential } from '../chunk-KSIRR5PL.js';
14
14
  export { AI_PROVIDER_BASE_URL_TEMPLATES, AI_PROVIDER_CREDENTIAL_KINDS, AI_PROVIDER_DISCOVERY_TYPES, AI_PROVIDER_KINDS, AI_PROVIDER_LAYERS, AI_PROVIDER_SURFACES, AI_PROVIDER_TRANSPORTS, AI_PROVIDER_VOICE_KINDS, entryTransport, formatCredentialRef, isEntryEnabled, isSafeProviderId, looksLikeLiteralSecret, mergeRegistries, parseCredentialRef, parseModelRef, registryEntries, resolveEntryBaseUrl, validateMergedRegistry, validateRegistry } from '../chunk-ILG4BXYE.js';
15
15
  export { LogStore, LogStoreDisabledError, NoOpSink, StdoutSink, __resetBrokenStreams, createLogger, getLogStore, isBrokenPipeError, isStreamOpen, isStreamUsable, isUnwritableStreamError, markStreamBroken, normalizeError, registerLogStore, resetLogStore, sanitizeData } from '../chunk-W4IPN3DD.js';
@@ -1,4 +1,4 @@
1
- export { OnLogBridgeSink, SqliteSink, WsLogSink, createLogStoreFromConfig, openSqlite, resolveLogStoreConfig } from '../chunk-FTG7CRFD.js';
1
+ export { DEFAULT_LOGS_RETENTION, OnLogBridgeSink, SqliteSink, WsLogSink, createLogStoreFromConfig, enforceLogsRetention, openSqlite, resolveLogStoreConfig, resolveLogsRetention } from '../chunk-3HKYCT2M.js';
2
2
  export { LogStore, LogStoreDisabledError, NoOpSink, StdoutSink, __resetBrokenStreams, createLogger, getLogStore, isBrokenPipeError, isStreamOpen, isStreamUsable, isUnwritableStreamError, markStreamBroken, normalizeError, registerLogStore, resetLogStore, sanitizeData } from '../chunk-W4IPN3DD.js';
3
3
  import '../chunk-NSBPE2FW.js';
4
4
  //# sourceMappingURL=logging.js.map
@@ -3,12 +3,14 @@ export { createLogStoreFromConfig, resolveLogStoreConfig, } from "./config.js";
3
3
  export { createLogger, getLogStore, registerLogStore, resetLogStore, } from "./create-logger.js";
4
4
  export type { LogStoreOptions, RecordInput } from "./log-store.js";
5
5
  export { LogStore } from "./log-store.js";
6
+ export type { EnforceLogsRetentionResult } from "./retention.js";
7
+ export { DEFAULT_LOGS_RETENTION, enforceLogsRetention, resolveLogsRetention, } from "./retention.js";
6
8
  export { normalizeError, sanitizeData } from "./sanitize.js";
7
9
  export type { OutputStream } from "./stream-health.js";
8
10
  export { __resetBrokenStreams, isBrokenPipeError, isStreamOpen, isStreamUsable, isUnwritableStreamError, markStreamBroken, } from "./stream-health.js";
9
11
  export { NoOpSink } from "./sinks/no-op-sink.js";
10
12
  export { OnLogBridgeSink } from "./sinks/on-log-bridge-sink.js";
11
- export type { OpenSqliteOptions, PortableDatabase, PortableStatement, } from "./sinks/sqlite-runtime.js";
13
+ export type { OpenSqliteOptions, PortableDatabase, PortableRunResult, PortableStatement, } from "./sinks/sqlite-runtime.js";
12
14
  export { openSqlite } from "./sinks/sqlite-runtime.js";
13
15
  export type { SqliteSinkOptions } from "./sinks/sqlite-sink.js";
14
16
  export { SqliteSink } from "./sinks/sqlite-sink.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../core/src/logging/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EACL,wBAAwB,EACxB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7D,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;A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AgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,YAAY,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,YAAY,EACV,YAAY,EACZ,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { LogStoreRetention } from "@skaile/workspaces/types";
2
+ /** Rows removed by one {@link enforceLogsRetention} run. */
3
+ export interface EnforceLogsRetentionResult {
4
+ deletedByAge: number;
5
+ deletedByCount: number;
6
+ }
7
+ /**
8
+ * The platform's cloud-mode retention defaults (docker and broker). Used when
9
+ * `skaile.yaml` has no `logging.retention` value for a field.
10
+ */
11
+ export declare const DEFAULT_LOGS_RETENTION: Readonly<Required<LogStoreRetention>>;
12
+ /**
13
+ * Overlay the configured retention on {@link DEFAULT_LOGS_RETENTION}, field by
14
+ * field. A value that is not a non-negative finite number counts as unset.
15
+ * `0` is a valid value: `maxEntries: 0` or `maxAgeDays: 0` deletes every row,
16
+ * as it does on the platform.
17
+ */
18
+ export declare function resolveLogsRetention(configured: LogStoreRetention | undefined): Required<LogStoreRetention>;
19
+ /**
20
+ * Delete rows older than `maxAgeDays`, then keep at most the `maxEntries`
21
+ * newest rows (by ULID id). Uses its own connection with a busy timeout, in
22
+ * bounded batches that yield to the event loop between passes.
23
+ *
24
+ * Returns zero counts when the file does not exist or the policy is empty.
25
+ * Other failures (lock timeout, not a log store) reject; the caller decides
26
+ * how loud to be.
27
+ */
28
+ export declare function enforceLogsRetention(dbPath: string, retention: LogStoreRetention): Promise<EnforceLogsRetentionResult>;
29
+ //# sourceMappingURL=retention.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../../../core/src/logging/retention.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,4DAA4D;AAC5D,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAGvE,CAAC;AAiCH;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,iBAAiB,GAAG,SAAS,GACxC,QAAQ,CAAC,iBAAiB,CAAC,CAS7B;AAyBD;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,iBAAiB,GAC3B,OAAO,CAAC,0BAA0B,CAAC,CAyBrC"}
@@ -1,9 +1,14 @@
1
1
  /** A prepared statement bound with `$`-prefixed named parameters. */
2
2
  export interface PortableStatement {
3
- run(params?: Record<string, unknown>): void;
3
+ /** Returns the number of rows the statement changed. */
4
+ run(params?: Record<string, unknown>): PortableRunResult;
4
5
  all<T = unknown>(params?: Record<string, unknown>): T[];
5
6
  get<T = unknown>(params?: Record<string, unknown>): T | undefined;
6
7
  }
8
+ /** Outcome of {@link PortableStatement.run}, normalised across drivers. */
9
+ export interface PortableRunResult {
10
+ changes: number;
11
+ }
7
12
  /** A synchronous embedded SQLite handle, uniform across Bun and Node. */
8
13
  export interface PortableDatabase {
9
14
  exec(sql: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"sqlite-runtime.d.ts","sourceRoot":"","sources":["../../../../../core/src/logging/sinks/sqlite-runtime.ts"],"names":[],"mappings":"AAoBA,qEAAqE;AACrE,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC5C,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;IACxD,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CACnE;AAED,yEAAyE;AACzE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACxC,qEAAqE;IACrE,WAAW,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IACjF,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA2ED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,iBAAsB,GAAG,gBAAgB,CAEvF"}
1
+ {"version":3,"file":"sqlite-runtime.d.ts","sourceRoot":"","sources":["../../../../../core/src/logging/sinks/sqlite-runtime.ts"],"names":[],"mappings":"AAoBA,qEAAqE;AACrE,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,iBAAiB,CAAC;IACzD,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;IACxD,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CACnE;AAED,2EAA2E;AAC3E,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,yEAAyE;AACzE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAC;IACxC,qEAAqE;IACrE,WAAW,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IACjF,KAAK,IAAI,IAAI,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA6ED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,iBAAsB,GAAG,gBAAgB,CAEvF"}
@@ -10,7 +10,7 @@ import '../chunk-MENCWIHW.js';
10
10
  import '../chunk-P4VHQA4N.js';
11
11
  import '../chunk-MKZOK4JU.js';
12
12
  import '../chunk-GEEW6SY2.js';
13
- import '../chunk-FTG7CRFD.js';
13
+ import '../chunk-3HKYCT2M.js';
14
14
  import { portableSpawnSync, portableSpawn } from '../chunk-KSIRR5PL.js';
15
15
  import '../chunk-ILG4BXYE.js';
16
16
  import '../chunk-W4IPN3DD.js';
@@ -1,5 +1,5 @@
1
- import { logErr, logOk, logInfo } from './chunk-TLMDSUEL.js';
2
- import './chunk-XJLB4OH2.js';
1
+ import { logErr, logOk, logInfo } from './chunk-OIXSGSKM.js';
2
+ import './chunk-SPAG2BWG.js';
3
3
  import './chunk-7LHSC2DS.js';
4
4
  import './chunk-M5H4DWIA.js';
5
5
  import './chunk-UKJMQZV6.js';
@@ -18,7 +18,7 @@ import './chunk-MENCWIHW.js';
18
18
  import './chunk-P4VHQA4N.js';
19
19
  import './chunk-MKZOK4JU.js';
20
20
  import './chunk-GEEW6SY2.js';
21
- import './chunk-FTG7CRFD.js';
21
+ import './chunk-3HKYCT2M.js';
22
22
  import './chunk-KSIRR5PL.js';
23
23
  import './chunk-ILG4BXYE.js';
24
24
  import './chunk-W4IPN3DD.js';
@@ -89,5 +89,5 @@ function ensureSourcesCloned(projectDir, opts = {}) {
89
89
  }
90
90
 
91
91
  export { ensureSourcesCloned };
92
- //# sourceMappingURL=ensure-sources-FRG6HKPM.js.map
93
- //# sourceMappingURL=ensure-sources-FRG6HKPM.js.map
92
+ //# sourceMappingURL=ensure-sources-QOQSDYIW.js.map
93
+ //# sourceMappingURL=ensure-sources-QOQSDYIW.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../cli/src/ensure-sources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,gBAAgB,GAAA,EAAqB;AAC5C,EAAA,OAAY,IAAA,CAAA,IAAA,CAAK,iBAAA,EAAkB,EAAG,GAAG,CAAA;AAC3C;AASA,SAAS,kBAAA,CAAmB,UAAkB,KAAA,EAAsC;AAClF,EAAA,IAAI;AACF,IAAA,OAAO,mBAAA,CAAoB,IAAA,CAAK,QAAQ,CAAA,CAAE,UAAA,EAAW;AAAA,EACvD,SAAS,GAAA,EAAK;AACZ,IAAA,IAAI,CAAC,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the `~/.skaile/cache/sources/` clone cache from a\n * project's `skaile.yaml` `sources:` entries.\n *\n * Called by `skaile init` (idempotent: no-op when no sources declared) and\n * `skaile install` so checking out a project pulls its source clones onto\n * the local machine.\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync } from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n getGlobalCacheDir,\n type SourceEntry,\n sourceCacheKey,\n sourceShortName,\n WorkspaceYamlEditor,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk } from \"./helpers.ts\";\n\nfunction sourceClonePath(key: string): string {\n return path.join(getGlobalCacheDir(), key);\n}\n\nexport interface EnsureResult {\n cloned: string[];\n cached: string[];\n failed: string[];\n}\n\n/** Load `sources:` from a project's `skaile.yaml`, or `null` when unavailable. */\nfunction loadProjectSources(yamlPath: string, quiet: boolean): SourceEntry[] | null {\n try {\n return WorkspaceYamlEditor.load(yamlPath).getSources();\n } catch (err) {\n if (!quiet) {\n logErr(`Could not read ${yamlPath}: ${err instanceof Error ? err.message : String(err)}`);\n }\n return null;\n }\n}\n\n/**\n * Hydrate a single source entry into `result`: skip when already cached,\n * otherwise clone and record success/failure. Mutates `result` in place.\n */\nfunction hydrateSourceEntry(entry: SourceEntry, quiet: boolean, result: EnsureResult): void {\n const key = sourceCacheKey(entry.url);\n const slug = sourceShortName(entry.url);\n const dest = sourceClonePath(key);\n if (existsSync(dest)) {\n result.cached.push(slug);\n return;\n }\n mkdirSync(path.dirname(dest), { recursive: true });\n const args = [\"clone\", entry.url, dest];\n if (entry.pin) args.splice(1, 0, \"--branch\", entry.pin);\n const clone = spawnSync(\"git\", args, { stdio: quiet ? \"pipe\" : \"inherit\" });\n if (clone.status !== 0) {\n result.failed.push(slug);\n if (quiet) {\n logErr(`git clone failed for ${entry.url}`);\n }\n return;\n }\n result.cloned.push(slug);\n}\n\n/** Log a full-hydrate summary of cloned + reused-cached entries. */\nfunction logHydrateSummary(result: EnsureResult): void {\n for (const n of result.cloned) logOk(`Cloned source \"${n}\".`);\n if (result.cached.length > 0) {\n logInfo(`Reused cached clones: ${result.cached.join(\", \")}`);\n }\n}\n\n/**\n * Walk `projectDir/skaile.yaml` `sources:` and clone any entries whose\n * clone directory does not yet exist under `~/.skaile/cache/sources/`. Existing\n * clones are left untouched — this is hydration, not sync.\n *\n * Quiet by default: when `quiet: true` the helper only prints failures.\n * On full hydrate (`quiet: false`) it logs each cloned/cached entry.\n */\nexport function ensureSourcesCloned(\n projectDir: string,\n opts: { quiet?: boolean } = {},\n): EnsureResult {\n const result: EnsureResult = { cloned: [], cached: [], failed: [] };\n const yamlPath = path.join(projectDir, \"skaile.yaml\");\n if (!existsSync(yamlPath)) return result;\n\n const quiet = opts.quiet ?? false;\n const sources = loadProjectSources(yamlPath, quiet);\n if (sources === null) return result;\n if (sources.length === 0) return result;\n\n for (const entry of sources) {\n hydrateSourceEntry(entry, quiet, result);\n }\n\n if (!quiet) {\n logHydrateSummary(result);\n }\n\n return result;\n}\n"]}
1
+ {"version":3,"sources":["../cli/src/ensure-sources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,gBAAgB,GAAA,EAAqB;AAC5C,EAAA,OAAY,IAAA,CAAA,IAAA,CAAK,iBAAA,EAAkB,EAAG,GAAG,CAAA;AAC3C;AASA,SAAS,kBAAA,CAAmB,UAAkB,KAAA,EAAsC;AAClF,EAAA,IAAI;AACF,IAAA,OAAO,mBAAA,CAAoB,IAAA,CAAK,QAAQ,CAAA,CAAE,UAAA,EAAW;AAAA,EACvD,SAAS,GAAA,EAAK;AACZ,IAAA,IAAI,CAAC,KAAA,EAAO;AACV,MAAA,MAAA,CAAO,CAAA,eAAA,EAAkB,QAAQ,CAAA,EAAA,EAAK,GAAA,YAAe,KAAA,GAAQ,IAAI,OAAA,GAAU,MAAA,CAAO,GAAG,CAAC,CAAA,CAAE,CAAA;AAAA,IAC1F;AACA,IAAA,OAAO,IAAA;AAAA,EAC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5D,EAAA,IAAI,MAAA,CAAO,MAAA,CAAO,MAAA,GAAS,CAAA,EAAG;AAC5B,IAAA,OAAA,CAAQ,yBAAyB,MAAA,CAAO,MAAA,CAAO,IAAA,CAAK,IAAI,CAAC,CAAA,CAAE,CAAA;AAAA,EAC7D;AACF;AAUO,SAAS,mBAAA,CACd,UAAA,EACA,IAAA,GAA4B,EAAC,EACf;AACd,EAAA,MAAM,MAAA,GAAuB,EAAE,MAAA,EAAQ,EAAC,EAAG,QAAQ,EAAC,EAAG,MAAA,EAAQ,EAAC,EAAE;AAClE,EAAA,MAAM,QAAA,GAAgB,IAAA,CAAA,IAAA,CAAK,UAAA,EAAY,aAAa,CAAA;AACpD,EAAA,IAAI,CAAC,UAAA,CAAW,QAAQ,CAAA,EAAG,OAAO,MAAA;AAElC,EAAA,MAAM,KAAA,GAAQ,KAAK,KAAA,IAAS,KAAA;AAC5B,EAAA,MAAM,OAAA,GAAU,kBAAA,CAAmB,QAAA,EAAU,KAAK,CAAA;AAClD,EAAA,IAAI,OAAA,KAAY,MAAM,OAAO,MAAA;AAC7B,EAAA,IAAI,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG,OAAO,MAAA;AAEjC,EAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC3B,IAAA,kBAAA,CAAmB,KAAA,EAAO,OAAO,MAAM,CAAA;AAAA,EACzC;AAEA,EAAA,IAAI,CAAC,KAAA,EAAO;AACV,IAAA,iBAAA,CAAkB,MAAM,CAAA;AAAA,EAC1B;AAEA,EAAA,OAAO,MAAA;AACT","file":"ensure-sources-QOQSDYIW.js","sourcesContent":["/**\n * ensure-sources.ts — hydrate the `~/.skaile/cache/sources/` clone cache from a\n * project's `skaile.yaml` `sources:` entries.\n *\n * Called by `skaile init` (idempotent: no-op when no sources declared) and\n * `skaile install` so checking out a project pulls its source clones onto\n * the local machine.\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync } from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n getGlobalCacheDir,\n type SourceEntry,\n sourceCacheKey,\n sourceShortName,\n WorkspaceYamlEditor,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk } from \"./helpers.ts\";\n\nfunction sourceClonePath(key: string): string {\n return path.join(getGlobalCacheDir(), key);\n}\n\nexport interface EnsureResult {\n cloned: string[];\n cached: string[];\n failed: string[];\n}\n\n/** Load `sources:` from a project's `skaile.yaml`, or `null` when unavailable. */\nfunction loadProjectSources(yamlPath: string, quiet: boolean): SourceEntry[] | null {\n try {\n return WorkspaceYamlEditor.load(yamlPath).getSources();\n } catch (err) {\n if (!quiet) {\n logErr(`Could not read ${yamlPath}: ${err instanceof Error ? err.message : String(err)}`);\n }\n return null;\n }\n}\n\n/**\n * Hydrate a single source entry into `result`: skip when already cached,\n * otherwise clone and record success/failure. Mutates `result` in place.\n */\nfunction hydrateSourceEntry(entry: SourceEntry, quiet: boolean, result: EnsureResult): void {\n const key = sourceCacheKey(entry.url);\n const slug = sourceShortName(entry.url);\n const dest = sourceClonePath(key);\n if (existsSync(dest)) {\n result.cached.push(slug);\n return;\n }\n mkdirSync(path.dirname(dest), { recursive: true });\n const args = [\"clone\", entry.url, dest];\n if (entry.pin) args.splice(1, 0, \"--branch\", entry.pin);\n const clone = spawnSync(\"git\", args, { stdio: quiet ? \"pipe\" : \"inherit\" });\n if (clone.status !== 0) {\n result.failed.push(slug);\n if (quiet) {\n logErr(`git clone failed for ${entry.url}`);\n }\n return;\n }\n result.cloned.push(slug);\n}\n\n/** Log a full-hydrate summary of cloned + reused-cached entries. */\nfunction logHydrateSummary(result: EnsureResult): void {\n for (const n of result.cloned) logOk(`Cloned source \"${n}\".`);\n if (result.cached.length > 0) {\n logInfo(`Reused cached clones: ${result.cached.join(\", \")}`);\n }\n}\n\n/**\n * Walk `projectDir/skaile.yaml` `sources:` and clone any entries whose\n * clone directory does not yet exist under `~/.skaile/cache/sources/`. Existing\n * clones are left untouched — this is hydration, not sync.\n *\n * Quiet by default: when `quiet: true` the helper only prints failures.\n * On full hydrate (`quiet: false`) it logs each cloned/cached entry.\n */\nexport function ensureSourcesCloned(\n projectDir: string,\n opts: { quiet?: boolean } = {},\n): EnsureResult {\n const result: EnsureResult = { cloned: [], cached: [], failed: [] };\n const yamlPath = path.join(projectDir, \"skaile.yaml\");\n if (!existsSync(yamlPath)) return result;\n\n const quiet = opts.quiet ?? false;\n const sources = loadProjectSources(yamlPath, quiet);\n if (sources === null) return result;\n if (sources.length === 0) return result;\n\n for (const entry of sources) {\n hydrateSourceEntry(entry, quiet, result);\n }\n\n if (!quiet) {\n logHydrateSummary(result);\n }\n\n return result;\n}\n"]}
@@ -1,13 +1,13 @@
1
- export { BoxConnector, createConnector4 as createConnector } from '../../chunk-5YB4GYMB.js';
1
+ export { BoxConnector, createConnector4 as createConnector } from '../../chunk-HRVXHRL4.js';
2
2
  import '../../chunk-SDNGG6FB.js';
3
3
  import '../../chunk-JUZJUKWM.js';
4
- import '../../chunk-6DN6U2CK.js';
4
+ import '../../chunk-ZVYWMD6Q.js';
5
5
  import '../../chunk-OUJVFZWJ.js';
6
6
  import '../../chunk-LOO5CB5M.js';
7
7
  import '../../chunk-3GKBSHUG.js';
8
- import '../../chunk-7LBL25WI.js';
8
+ import '../../chunk-YCIW4YOT.js';
9
9
  import '../../chunk-GAH4YRCI.js';
10
- import '../../chunk-QBH7PC4D.js';
10
+ import '../../chunk-LDQB5VEC.js';
11
11
  import '../../chunk-6E6PKKAD.js';
12
12
  import '../../chunk-IFGTRL2I.js';
13
13
  import '../../chunk-AOE4KOMJ.js';
@@ -27,7 +27,7 @@ import '../../chunk-MENCWIHW.js';
27
27
  import '../../chunk-P4VHQA4N.js';
28
28
  import '../../chunk-MKZOK4JU.js';
29
29
  import '../../chunk-GEEW6SY2.js';
30
- import '../../chunk-FTG7CRFD.js';
30
+ import '../../chunk-3HKYCT2M.js';
31
31
  import '../../chunk-KSIRR5PL.js';
32
32
  import '../../chunk-ILG4BXYE.js';
33
33
  import '../../chunk-W4IPN3DD.js';
@@ -1,13 +1,13 @@
1
- export { DeployConnector, createConnector2 as createConnector } from '../../chunk-5YB4GYMB.js';
1
+ export { DeployConnector, createConnector2 as createConnector } from '../../chunk-HRVXHRL4.js';
2
2
  import '../../chunk-SDNGG6FB.js';
3
3
  import '../../chunk-JUZJUKWM.js';
4
- import '../../chunk-6DN6U2CK.js';
4
+ import '../../chunk-ZVYWMD6Q.js';
5
5
  import '../../chunk-OUJVFZWJ.js';
6
6
  import '../../chunk-LOO5CB5M.js';
7
7
  import '../../chunk-3GKBSHUG.js';
8
- import '../../chunk-7LBL25WI.js';
8
+ import '../../chunk-YCIW4YOT.js';
9
9
  import '../../chunk-GAH4YRCI.js';
10
- import '../../chunk-QBH7PC4D.js';
10
+ import '../../chunk-LDQB5VEC.js';
11
11
  import '../../chunk-6E6PKKAD.js';
12
12
  import '../../chunk-IFGTRL2I.js';
13
13
  import '../../chunk-AOE4KOMJ.js';
@@ -27,7 +27,7 @@ import '../../chunk-MENCWIHW.js';
27
27
  import '../../chunk-P4VHQA4N.js';
28
28
  import '../../chunk-MKZOK4JU.js';
29
29
  import '../../chunk-GEEW6SY2.js';
30
- import '../../chunk-FTG7CRFD.js';
30
+ import '../../chunk-3HKYCT2M.js';
31
31
  import '../../chunk-KSIRR5PL.js';
32
32
  import '../../chunk-ILG4BXYE.js';
33
33
  import '../../chunk-W4IPN3DD.js';
@@ -1,13 +1,13 @@
1
- export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-5YB4GYMB.js';
1
+ export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-HRVXHRL4.js';
2
2
  import '../../chunk-SDNGG6FB.js';
3
3
  import '../../chunk-JUZJUKWM.js';
4
- import '../../chunk-6DN6U2CK.js';
4
+ import '../../chunk-ZVYWMD6Q.js';
5
5
  import '../../chunk-OUJVFZWJ.js';
6
6
  import '../../chunk-LOO5CB5M.js';
7
7
  import '../../chunk-3GKBSHUG.js';
8
- import '../../chunk-7LBL25WI.js';
8
+ import '../../chunk-YCIW4YOT.js';
9
9
  import '../../chunk-GAH4YRCI.js';
10
- import '../../chunk-QBH7PC4D.js';
10
+ import '../../chunk-LDQB5VEC.js';
11
11
  import '../../chunk-6E6PKKAD.js';
12
12
  import '../../chunk-IFGTRL2I.js';
13
13
  import '../../chunk-AOE4KOMJ.js';
@@ -27,7 +27,7 @@ import '../../chunk-MENCWIHW.js';
27
27
  import '../../chunk-P4VHQA4N.js';
28
28
  import '../../chunk-MKZOK4JU.js';
29
29
  import '../../chunk-GEEW6SY2.js';
30
- import '../../chunk-FTG7CRFD.js';
30
+ import '../../chunk-3HKYCT2M.js';
31
31
  import '../../chunk-KSIRR5PL.js';
32
32
  import '../../chunk-ILG4BXYE.js';
33
33
  import '../../chunk-W4IPN3DD.js';
@@ -1,13 +1,13 @@
1
- export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-5YB4GYMB.js';
1
+ export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-HRVXHRL4.js';
2
2
  import '../../../chunk-SDNGG6FB.js';
3
3
  import '../../../chunk-JUZJUKWM.js';
4
- import '../../../chunk-6DN6U2CK.js';
4
+ import '../../../chunk-ZVYWMD6Q.js';
5
5
  import '../../../chunk-OUJVFZWJ.js';
6
6
  import '../../../chunk-LOO5CB5M.js';
7
7
  import '../../../chunk-3GKBSHUG.js';
8
- import '../../../chunk-7LBL25WI.js';
8
+ import '../../../chunk-YCIW4YOT.js';
9
9
  import '../../../chunk-GAH4YRCI.js';
10
- import '../../../chunk-QBH7PC4D.js';
10
+ import '../../../chunk-LDQB5VEC.js';
11
11
  import '../../../chunk-6E6PKKAD.js';
12
12
  import '../../../chunk-IFGTRL2I.js';
13
13
  export { isBlocking } from '../../../chunk-AOE4KOMJ.js';
@@ -27,7 +27,7 @@ import '../../../chunk-MENCWIHW.js';
27
27
  import '../../../chunk-P4VHQA4N.js';
28
28
  import '../../../chunk-MKZOK4JU.js';
29
29
  import '../../../chunk-GEEW6SY2.js';
30
- import '../../../chunk-FTG7CRFD.js';
30
+ import '../../../chunk-3HKYCT2M.js';
31
31
  import '../../../chunk-KSIRR5PL.js';
32
32
  import '../../../chunk-ILG4BXYE.js';
33
33
  import '../../../chunk-W4IPN3DD.js';
@@ -12,7 +12,7 @@ import '../../../chunk-MENCWIHW.js';
12
12
  import '../../../chunk-P4VHQA4N.js';
13
13
  import '../../../chunk-MKZOK4JU.js';
14
14
  import '../../../chunk-GEEW6SY2.js';
15
- import '../../../chunk-FTG7CRFD.js';
15
+ import '../../../chunk-3HKYCT2M.js';
16
16
  import '../../../chunk-KSIRR5PL.js';
17
17
  import '../../../chunk-ILG4BXYE.js';
18
18
  import '../../../chunk-W4IPN3DD.js';
@@ -1,16 +1,16 @@
1
- export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-BZBRCPEB.js';
1
+ export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-PROIKXJR.js';
2
2
  import '../../../chunk-4R6DROGN.js';
3
3
  import '../../../chunk-3XXQPHGL.js';
4
- import '../../../chunk-5YB4GYMB.js';
4
+ import '../../../chunk-HRVXHRL4.js';
5
5
  import '../../../chunk-SDNGG6FB.js';
6
6
  import '../../../chunk-JUZJUKWM.js';
7
- import '../../../chunk-6DN6U2CK.js';
7
+ import '../../../chunk-ZVYWMD6Q.js';
8
8
  import '../../../chunk-OUJVFZWJ.js';
9
9
  import '../../../chunk-LOO5CB5M.js';
10
10
  import '../../../chunk-3GKBSHUG.js';
11
- import '../../../chunk-7LBL25WI.js';
11
+ import '../../../chunk-YCIW4YOT.js';
12
12
  import '../../../chunk-GAH4YRCI.js';
13
- import '../../../chunk-QBH7PC4D.js';
13
+ import '../../../chunk-LDQB5VEC.js';
14
14
  import '../../../chunk-6E6PKKAD.js';
15
15
  import '../../../chunk-IFGTRL2I.js';
16
16
  import '../../../chunk-AOE4KOMJ.js';
@@ -30,7 +30,7 @@ import '../../../chunk-MENCWIHW.js';
30
30
  import '../../../chunk-P4VHQA4N.js';
31
31
  import '../../../chunk-MKZOK4JU.js';
32
32
  import '../../../chunk-GEEW6SY2.js';
33
- import '../../../chunk-FTG7CRFD.js';
33
+ import '../../../chunk-3HKYCT2M.js';
34
34
  import '../../../chunk-KSIRR5PL.js';
35
35
  import '../../../chunk-ILG4BXYE.js';
36
36
  import '../../../chunk-W4IPN3DD.js';
@@ -1,13 +1,13 @@
1
- export { ClassifierSubpromptRunner, FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, buildFlowPromptEvent, classifierQuestion, createConnector, describeFlowOperations, driveOrchestratorTurn } from '../../chunk-5YB4GYMB.js';
1
+ export { ClassifierSubpromptRunner, FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, buildFlowPromptEvent, classifierQuestion, createConnector, describeFlowOperations, driveOrchestratorTurn } from '../../chunk-HRVXHRL4.js';
2
2
  import '../../chunk-SDNGG6FB.js';
3
3
  import '../../chunk-JUZJUKWM.js';
4
- import '../../chunk-6DN6U2CK.js';
4
+ import '../../chunk-ZVYWMD6Q.js';
5
5
  import '../../chunk-OUJVFZWJ.js';
6
6
  import '../../chunk-LOO5CB5M.js';
7
7
  import '../../chunk-3GKBSHUG.js';
8
- import '../../chunk-7LBL25WI.js';
8
+ import '../../chunk-YCIW4YOT.js';
9
9
  import '../../chunk-GAH4YRCI.js';
10
- import '../../chunk-QBH7PC4D.js';
10
+ import '../../chunk-LDQB5VEC.js';
11
11
  import '../../chunk-6E6PKKAD.js';
12
12
  import '../../chunk-IFGTRL2I.js';
13
13
  import '../../chunk-AOE4KOMJ.js';
@@ -27,7 +27,7 @@ import '../../chunk-MENCWIHW.js';
27
27
  import '../../chunk-P4VHQA4N.js';
28
28
  import '../../chunk-MKZOK4JU.js';
29
29
  import '../../chunk-GEEW6SY2.js';
30
- import '../../chunk-FTG7CRFD.js';
30
+ import '../../chunk-3HKYCT2M.js';
31
31
  import '../../chunk-KSIRR5PL.js';
32
32
  import '../../chunk-ILG4BXYE.js';
33
33
  import '../../chunk-W4IPN3DD.js';
@@ -138,7 +138,13 @@ migration error pointing at this doc.
138
138
  ### Behavior
139
139
 
140
140
  - **mount**: Clones the repo (or pulls if `.git` exists). Creates a session branch if configured.
141
- - **session branch tracking**: The clone is `--single-branch`, so its only fetch refspec maps the base branch. On every connect, the driver adds `+refs/heads/<sessionBranch>:refs/remotes/origin/<sessionBranch>` to `remote.origin.fetch` (only if no refspec maps it yet) and fetches that ref. A session branch already on origin (for example after a wake on a new node) is checked out from `origin/<sessionBranch>`; otherwise it is created from the base as before. The driver pushes a session branch with `-u`, so `@{upstream}` resolves and `sync_status` reports `hasUpstream: true`. The refspec also makes an agent's own `git push` update the remote-tracking ref.
141
+ - **session branch tracking**: The clone is `--single-branch`, so its only fetch refspec maps the base branch. On every connect, the driver fetches `+refs/heads/<sessionBranch>:refs/remotes/origin/<sessionBranch>`. When origin has the branch, the driver adds that refspec to `remote.origin.fetch` (only if no refspec maps it yet). When origin does not have it, the driver removes the refspec, because a refspec for a missing branch makes every plain `git fetch origin` fail. A session branch already on origin (for example after a wake on a new node) is checked out from `origin/<sessionBranch>`; otherwise it is created from the base as before. The driver pushes a session branch with `-u` and then records the refspec and the remote-tracking ref, so `@{upstream}` resolves and `sync_status` reports `hasUpstream: true`. The refspec also makes a later `git push` by the agent update the remote-tracking ref.
142
+ - **reused local session branch**: When the local session branch already exists (a warm checkout) and origin has the branch, the driver sets the upstream to `origin/<sessionBranch>` and then:
143
+ - fast-forwards the local branch (`merge --ff-only`) when it is an ancestor of `origin/<sessionBranch>` (another node pushed newer work);
144
+ - keeps the local branch and logs a warning when it has commits that origin does not have. The driver never rewrites it. When origin also has commits that the local branch does not have (the branches diverged, for example after an older driver rewrote the branch), the driver merges `origin/<sessionBranch>` in.
145
+ When origin does not have the branch, the local branch is used as it is. For Tier-1, the driver refreshes the token in the origin URL before this fetch, so the stale token of an old clone does not fail it. For Tier-2, a failed first fetch is retried after auth is reconciled, and the retry applies the same rules.
146
+ - **periodic fetch with `sync.autoRebase`**: The driver keeps the session branch current with `origin/<base>`, but it never rewrites published commits. Each tick fetches the session branch from origin. Only when origin does not have it is the branch rebased onto `origin/<base>`, as before. In all other cases (origin has it, or the fetch failed) the driver merges `origin/<base>` in. A merge can run with uncommitted changes that do not touch the merged files, where a rebase refuses. Merge conflicts are handled as on close: keep "ours" and save "theirs" as `.conflict` files. When a refspec names a branch that origin does not have (other than the base), the tick removes that refspec and its stale tracking ref, then fetches again. Until the branch is pushed, `sync_status` then reports `hasUpstream: false`.
147
+ - **driver push of a session branch** (hibernate, close, auto-commit): When `origin/<sessionBranch>` holds commits that the local branch does not have, the driver first merges them in. The push is then a fast-forward and never needs a force.
142
148
  - **unmount**: Stops periodic fetch and auto-commit timers.
143
149
  - **sync**: Pulls from origin on the active branch.
144
150
  - **watch**: Uses chokidar with `.git/**` ignored. Resets the auto-commit idle timer on changes.
@@ -166,13 +166,15 @@ export declare class GitConnector extends AbstractConnector {
166
166
  */
167
167
  private checkoutSessionBranch;
168
168
  /**
169
- * Map the session branch to `refs/remotes/origin/<sessionBranch>` (fetch
170
- * refspec) and fetch it once. Never throws: a missing remote branch is the
171
- * normal case for a new session, and any other failure leaves the checkout as
172
- * it was before this fix (the caller creates the branch from the base).
169
+ * Fetch the session branch into `refs/remotes/origin/<sessionBranch>` and,
170
+ * when origin has it, map it with a fetch refspec. Never throws: a missing
171
+ * remote branch is the normal case for a new session, and any other failure
172
+ * leaves the checkout as it was (the caller creates the branch from the base).
173
173
  *
174
- * Also repairs a checkout cloned before this refspec existed, because it runs
175
- * on every connect.
174
+ * The refspec is added only once origin has the branch, and removed when
175
+ * origin does not have it: a configured refspec for a missing branch makes
176
+ * every plain `git fetch origin` fail. Runs on every connect, so it also
177
+ * repairs a checkout cloned before the refspec existed.
176
178
  */
177
179
  private trackSessionBranch;
178
180
  /**
@@ -184,10 +186,43 @@ export declare class GitConnector extends AbstractConnector {
184
186
  */
185
187
  private adoptOriginSessionBranch;
186
188
  /**
187
- * Push the active branch. A session branch is pushed with `-u` after its
188
- * fetch refspec is ensured, so the push also updates
189
- * `refs/remotes/origin/<branch>` and `@{upstream}` resolves — the platform's
190
- * hibernate save gate reads exactly that. The base branch keeps its plain push.
189
+ * Line up a reused local session branch (checked out) with
190
+ * `origin/<sessionBranch>` after a successful fetch. Never rewrites local
191
+ * history and never throws:
192
+ * - local is an ancestor of origin → fast-forward (another node pushed
193
+ * newer work);
194
+ * - local has commits that origin does not have → keep them and log a
195
+ * warning; when origin also has commits that local lacks (diverged),
196
+ * merge origin in with {@link integrateOriginSessionBranch};
197
+ * - origin has no such branch → nothing to do.
198
+ * In the first two cases the upstream is set to `origin/<sessionBranch>`.
199
+ */
200
+ private reconcileLocalSessionBranch;
201
+ /**
202
+ * Merge `origin/<branch>` into the checked-out session branch when origin
203
+ * holds commits that the local branch lacks (another node or the agent
204
+ * pushed, or an older driver rewrote the local branch). A merge, never a
205
+ * rebase: the commits on origin are published. After this, a push of the
206
+ * branch is a fast-forward and needs no force. Never throws; a merge that
207
+ * cannot complete is aborted, and the push that follows fails as before.
208
+ */
209
+ private integrateOriginSessionBranch;
210
+ /**
211
+ * After a successful push of a session branch: map it with a fetch refspec
212
+ * and point `refs/remotes/origin/<branch>` at the pushed tip. The push ran
213
+ * before the refspec existed (a refspec for a branch that origin does not
214
+ * have yet would break `git fetch origin`), so git did not update the
215
+ * tracking ref itself. With both, `@{upstream}` resolves and the platform's
216
+ * hibernate save gate sees `ahead` 0. Never throws.
217
+ */
218
+ private recordPushedSessionBranch;
219
+ /**
220
+ * Push the active branch. A session branch first gets any commits that are
221
+ * only on `origin/<branch>` merged in, so the push is a fast-forward and
222
+ * never needs a force. It is pushed with `-u` and then recorded (see
223
+ * {@link recordPushedSessionBranch}), so `@{upstream}` resolves — the
224
+ * platform's hibernate save gate reads exactly that. The base branch keeps
225
+ * its plain push.
191
226
  */
192
227
  private pushActiveBranch;
193
228
  /**
@@ -417,6 +452,21 @@ export declare class GitConnector extends AbstractConnector {
417
452
  private startPeriodicFetch;
418
453
  /** One periodic-fetch tick. Bails out at each resumption point once disconnected. */
419
454
  private runPeriodicFetch;
455
+ /**
456
+ * `git fetch origin` for the periodic tick. When origin no longer has a
457
+ * branch that a session refspec names (for example a session branch deleted
458
+ * after a merge, or one from an earlier session on this checkout), that
459
+ * refspec fails the whole fetch. Drop it and fetch again. The base branch
460
+ * refspec is never dropped.
461
+ */
462
+ private fetchOrigin;
463
+ /**
464
+ * Merge `origin/<base>` into a published session branch (periodic tick with
465
+ * `autoRebase`). No-op when the base is already contained. Conflicts are
466
+ * handled like the merge on close: keep "ours" (the session branch) and
467
+ * save "theirs" as `.conflict` files.
468
+ */
469
+ private mergeBaseIntoSessionBranch;
420
470
  /**
421
471
  * Attempt to resolve merge/rebase conflicts by keeping "ours" and copying
422
472
  * "theirs" to a .conflict file. If resolution fails entirely, abort.
@@ -1 +1 @@
1
- {"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EAEf,cAAc,EAMd,QAAQ,EAER,WAAW,EACX,YAAY,EACb,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EACL,iBAAiB,EAelB,MAAM,+BAA+B,CAAC;AAOvC,UAAU,gBAAgB;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,aAAa;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,kBAAkB;IAC1B,iB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C,mCAAmC;IAiD3C;;;;OAIG;IACH,OAAO,CAAC,kBAAkB;IAW1B;;;;;OAKG;IACH,OAAO,CAAC,gCAAgC;IAyBxC,OAAO,CAAC,uBAAuB;IAiH/B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,eAAe;YA8BT,wBAAwB;IAwDtC,OAAO,CAAC,yBAAyB;IAiCjC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;YACW,WAAW;IAWzB;;;;;;;OAOG;YACW,gBAAgB;IAqB9B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;YACW,oBAAoB;IA4DlC;;;;;;;;OAQG;YACW,qBAAqB;IASnC;;;;;;;;;;;;;;;;;;;OAmBG;YACW,mBAAmB;IAyBjC;;;;;;;;;;;;;;OAcG;YACW,4BAA4B;IAoC1C,OAAO,CAAC,OAAO;IAUf;;;;;OAKG;YACW,8BAA8B;IAgB5C;;;;;;OAMG;YACW,gBAAgB;IAa9B,OAAO,CAAC,kBAAkB;IAkC1B,qFAAqF;YACvE,gBAAgB;IA2B9B;;;;OAIG;YACW,uBAAuB;IAkDrC;;OAEG;YACW,mBAAmB;IAgDjC,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,oBAAoB;YAiCd,iBAAiB;YAkBjB,qBAAqB;CAapC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED,gFAAgF;AAChF,eAAO,MAAM,MAAM;;CAAuB,CAAC"}
1
+ {"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EAEf,cAAc,EAMd,QAAQ,EAER,WAAW,EACX,YAAY,EACb,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EACL,iBAAiB,EAelB,MAAM,+BAA+B,CAAC;AAOvC,UAAU,gBAAgB;IACxB,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BAAqB;IAM7B,OAAO,CAAC,oBAAoB;YAiCd,iBAAiB;YAkBjB,qBAAqB;CAapC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED,gFAAgF;AAChF,eAAO,MAAM,MAAM;;CAAuB,CAAC"}
@@ -1,13 +1,13 @@
1
- export { GitConnector, MAX_REARM_MS, MIN_REFRESH_DELAY_MS, REFRESH_LEAD_MS, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-5YB4GYMB.js';
1
+ export { GitConnector, MAX_REARM_MS, MIN_REFRESH_DELAY_MS, REFRESH_LEAD_MS, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-HRVXHRL4.js';
2
2
  import '../../chunk-SDNGG6FB.js';
3
3
  import '../../chunk-JUZJUKWM.js';
4
- import '../../chunk-6DN6U2CK.js';
4
+ import '../../chunk-ZVYWMD6Q.js';
5
5
  import '../../chunk-OUJVFZWJ.js';
6
6
  import '../../chunk-LOO5CB5M.js';
7
7
  import '../../chunk-3GKBSHUG.js';
8
- import '../../chunk-7LBL25WI.js';
8
+ import '../../chunk-YCIW4YOT.js';
9
9
  import '../../chunk-GAH4YRCI.js';
10
- import '../../chunk-QBH7PC4D.js';
10
+ import '../../chunk-LDQB5VEC.js';
11
11
  import '../../chunk-6E6PKKAD.js';
12
12
  import '../../chunk-IFGTRL2I.js';
13
13
  import '../../chunk-AOE4KOMJ.js';
@@ -27,7 +27,7 @@ import '../../chunk-MENCWIHW.js';
27
27
  import '../../chunk-P4VHQA4N.js';
28
28
  import '../../chunk-MKZOK4JU.js';
29
29
  import '../../chunk-GEEW6SY2.js';
30
- import '../../chunk-FTG7CRFD.js';
30
+ import '../../chunk-3HKYCT2M.js';
31
31
  import '../../chunk-KSIRR5PL.js';
32
32
  import '../../chunk-ILG4BXYE.js';
33
33
  import '../../chunk-W4IPN3DD.js';
@@ -1,13 +1,13 @@
1
- export { GmailConnector, createConnector6 as createConnector } from '../../chunk-5YB4GYMB.js';
1
+ export { GmailConnector, createConnector6 as createConnector } from '../../chunk-HRVXHRL4.js';
2
2
  import '../../chunk-SDNGG6FB.js';
3
3
  import '../../chunk-JUZJUKWM.js';
4
- import '../../chunk-6DN6U2CK.js';
4
+ import '../../chunk-ZVYWMD6Q.js';
5
5
  import '../../chunk-OUJVFZWJ.js';
6
6
  import '../../chunk-LOO5CB5M.js';
7
7
  import '../../chunk-3GKBSHUG.js';
8
- import '../../chunk-7LBL25WI.js';
8
+ import '../../chunk-YCIW4YOT.js';
9
9
  import '../../chunk-GAH4YRCI.js';
10
- import '../../chunk-QBH7PC4D.js';
10
+ import '../../chunk-LDQB5VEC.js';
11
11
  import '../../chunk-6E6PKKAD.js';
12
12
  import '../../chunk-IFGTRL2I.js';
13
13
  import '../../chunk-AOE4KOMJ.js';
@@ -27,7 +27,7 @@ import '../../chunk-MENCWIHW.js';
27
27
  import '../../chunk-P4VHQA4N.js';
28
28
  import '../../chunk-MKZOK4JU.js';
29
29
  import '../../chunk-GEEW6SY2.js';
30
- import '../../chunk-FTG7CRFD.js';
30
+ import '../../chunk-3HKYCT2M.js';
31
31
  import '../../chunk-KSIRR5PL.js';
32
32
  import '../../chunk-ILG4BXYE.js';
33
33
  import '../../chunk-W4IPN3DD.js';
@@ -1,13 +1,13 @@
1
- export { GoogleDriveConnector, createConnector7 as createConnector } from '../../chunk-5YB4GYMB.js';
1
+ export { GoogleDriveConnector, createConnector7 as createConnector } from '../../chunk-HRVXHRL4.js';
2
2
  import '../../chunk-SDNGG6FB.js';
3
3
  import '../../chunk-JUZJUKWM.js';
4
- import '../../chunk-6DN6U2CK.js';
4
+ import '../../chunk-ZVYWMD6Q.js';
5
5
  import '../../chunk-OUJVFZWJ.js';
6
6
  import '../../chunk-LOO5CB5M.js';
7
7
  import '../../chunk-3GKBSHUG.js';
8
- import '../../chunk-7LBL25WI.js';
8
+ import '../../chunk-YCIW4YOT.js';
9
9
  import '../../chunk-GAH4YRCI.js';
10
- import '../../chunk-QBH7PC4D.js';
10
+ import '../../chunk-LDQB5VEC.js';
11
11
  import '../../chunk-6E6PKKAD.js';
12
12
  import '../../chunk-IFGTRL2I.js';
13
13
  import '../../chunk-AOE4KOMJ.js';
@@ -27,7 +27,7 @@ import '../../chunk-MENCWIHW.js';
27
27
  import '../../chunk-P4VHQA4N.js';
28
28
  import '../../chunk-MKZOK4JU.js';
29
29
  import '../../chunk-GEEW6SY2.js';
30
- import '../../chunk-FTG7CRFD.js';
30
+ import '../../chunk-3HKYCT2M.js';
31
31
  import '../../chunk-KSIRR5PL.js';
32
32
  import '../../chunk-ILG4BXYE.js';
33
33
  import '../../chunk-W4IPN3DD.js';
@@ -1,13 +1,13 @@
1
- export { LocalConnector, createConnector8 as createConnector } from '../../chunk-5YB4GYMB.js';
1
+ export { LocalConnector, createConnector8 as createConnector } from '../../chunk-HRVXHRL4.js';
2
2
  import '../../chunk-SDNGG6FB.js';
3
3
  import '../../chunk-JUZJUKWM.js';
4
- import '../../chunk-6DN6U2CK.js';
4
+ import '../../chunk-ZVYWMD6Q.js';
5
5
  import '../../chunk-OUJVFZWJ.js';
6
6
  import '../../chunk-LOO5CB5M.js';
7
7
  import '../../chunk-3GKBSHUG.js';
8
- import '../../chunk-7LBL25WI.js';
8
+ import '../../chunk-YCIW4YOT.js';
9
9
  import '../../chunk-GAH4YRCI.js';
10
- import '../../chunk-QBH7PC4D.js';
10
+ import '../../chunk-LDQB5VEC.js';
11
11
  import '../../chunk-6E6PKKAD.js';
12
12
  import '../../chunk-IFGTRL2I.js';
13
13
  import '../../chunk-AOE4KOMJ.js';
@@ -27,7 +27,7 @@ import '../../chunk-MENCWIHW.js';
27
27
  import '../../chunk-P4VHQA4N.js';
28
28
  import '../../chunk-MKZOK4JU.js';
29
29
  import '../../chunk-GEEW6SY2.js';
30
- import '../../chunk-FTG7CRFD.js';
30
+ import '../../chunk-3HKYCT2M.js';
31
31
  import '../../chunk-KSIRR5PL.js';
32
32
  import '../../chunk-ILG4BXYE.js';
33
33
  import '../../chunk-W4IPN3DD.js';