@skaile/workspaces 5.1.3 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +68 -0
- package/README.md +1 -1
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-C4X4RTZV.js → asset-feeds-VIZXYDAO.js} +13 -13
- package/dist/{asset-feeds-C4X4RTZV.js.map → asset-feeds-VIZXYDAO.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +10 -10
- package/dist/asset-manager/index.js +14 -14
- package/dist/asset-manager/installer.js +10 -10
- package/dist/asset-manager/src/index.d.ts +39 -4
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts +2 -1
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/bridge/drivers/claude-sdk.js +16 -15
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +13 -12
- package/dist/bridge/drivers/codex.js.map +1 -1
- package/dist/bridge/drivers/continue.js +13 -13
- package/dist/bridge/drivers/echo.js +3 -3
- package/dist/bridge/drivers/gemini.js +5 -5
- package/dist/bridge/drivers/goose.js +13 -13
- package/dist/bridge/drivers/omp.js +6 -5
- package/dist/bridge/drivers/omp.js.map +1 -1
- package/dist/bridge/drivers/opencode.js +13 -13
- package/dist/bridge/drivers/qwen.js +5 -5
- package/dist/bridge/index.js +15 -15
- package/dist/bridge/src/driver-capabilities.d.ts +66 -0
- package/dist/bridge/src/driver-capabilities.d.ts.map +1 -0
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
- package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
- package/dist/bridge/src/index.d.ts +1 -0
- package/dist/bridge/src/index.d.ts.map +1 -1
- package/dist/bridge/src/registry.d.ts.map +1 -1
- package/dist/{chunk-7SAWDPUT.js → chunk-37GBJLF5.js} +5 -55
- package/dist/chunk-37GBJLF5.js.map +1 -0
- package/dist/{chunk-SP47UJKE.js → chunk-3ZVSINEV.js} +247 -118
- package/dist/chunk-3ZVSINEV.js.map +1 -0
- package/dist/{chunk-ZVKJNNME.js → chunk-4257Q2LH.js} +8 -8
- package/dist/{chunk-ZVKJNNME.js.map → chunk-4257Q2LH.js.map} +1 -1
- package/dist/{chunk-YDJZRLGN.js → chunk-4SSKKFDF.js} +4 -4
- package/dist/{chunk-YDJZRLGN.js.map → chunk-4SSKKFDF.js.map} +1 -1
- package/dist/{chunk-K5GBV4SA.js → chunk-5BEFNLOR.js} +6 -5
- package/dist/chunk-5BEFNLOR.js.map +1 -0
- package/dist/{chunk-IWCCZL7C.js → chunk-6GBQND2F.js} +99 -36
- package/dist/chunk-6GBQND2F.js.map +1 -0
- package/dist/{chunk-QU4J5YSJ.js → chunk-7L4WFH3Y.js} +4 -4
- package/dist/{chunk-QU4J5YSJ.js.map → chunk-7L4WFH3Y.js.map} +1 -1
- package/dist/{chunk-O4U7OL6D.js → chunk-A223FDDC.js} +6 -6
- package/dist/{chunk-O4U7OL6D.js.map → chunk-A223FDDC.js.map} +1 -1
- package/dist/{chunk-AZYIEK3F.js → chunk-AWGQVAC5.js} +3 -3
- package/dist/{chunk-AZYIEK3F.js.map → chunk-AWGQVAC5.js.map} +1 -1
- package/dist/{chunk-RDYI4MML.js → chunk-BNUZEYC3.js} +3 -3
- package/dist/{chunk-RDYI4MML.js.map → chunk-BNUZEYC3.js.map} +1 -1
- package/dist/{chunk-RNNUYFFD.js → chunk-BUZ3K2PT.js} +3 -3
- package/dist/{chunk-RNNUYFFD.js.map → chunk-BUZ3K2PT.js.map} +1 -1
- package/dist/{chunk-WKIOWDLQ.js → chunk-CZ35I4RK.js} +4 -4
- package/dist/{chunk-WKIOWDLQ.js.map → chunk-CZ35I4RK.js.map} +1 -1
- package/dist/{chunk-KWP4RVTJ.js → chunk-D63AJVBW.js} +761 -643
- package/dist/chunk-D63AJVBW.js.map +1 -0
- package/dist/{chunk-BJZHNSQO.js → chunk-DECPI7DN.js} +5 -5
- package/dist/{chunk-BJZHNSQO.js.map → chunk-DECPI7DN.js.map} +1 -1
- package/dist/{chunk-KVAI5DGL.js → chunk-ERCSHLTF.js} +3 -3
- package/dist/{chunk-KVAI5DGL.js.map → chunk-ERCSHLTF.js.map} +1 -1
- package/dist/{chunk-ZD7CX25M.js → chunk-FTYM4VRZ.js} +56 -7
- package/dist/chunk-FTYM4VRZ.js.map +1 -0
- package/dist/{chunk-DLLM4U6C.js → chunk-FXN4PLRO.js} +3 -3
- package/dist/{chunk-DLLM4U6C.js.map → chunk-FXN4PLRO.js.map} +1 -1
- package/dist/{chunk-KNC55536.js → chunk-FZGL7Z52.js} +5 -4
- package/dist/chunk-FZGL7Z52.js.map +1 -0
- package/dist/{chunk-WCQMXBO5.js → chunk-GCYD4EGY.js} +4 -4
- package/dist/{chunk-WCQMXBO5.js.map → chunk-GCYD4EGY.js.map} +1 -1
- package/dist/{chunk-EB6OPURC.js → chunk-HTKZ4AOW.js} +3 -3
- package/dist/{chunk-EB6OPURC.js.map → chunk-HTKZ4AOW.js.map} +1 -1
- package/dist/{chunk-YV4J7V53.js → chunk-JAJG4G5E.js} +3 -3
- package/dist/{chunk-YV4J7V53.js.map → chunk-JAJG4G5E.js.map} +1 -1
- package/dist/{chunk-TYUJB336.js → chunk-JELTQ4H7.js} +3 -3
- package/dist/{chunk-TYUJB336.js.map → chunk-JELTQ4H7.js.map} +1 -1
- package/dist/{chunk-VDJKWKH2.js → chunk-JKWU6ULI.js} +3 -3
- package/dist/{chunk-VDJKWKH2.js.map → chunk-JKWU6ULI.js.map} +1 -1
- package/dist/{chunk-AGWYBS2E.js → chunk-K2JVODQD.js} +18 -6
- package/dist/chunk-K2JVODQD.js.map +1 -0
- package/dist/{chunk-IDEA6CYI.js → chunk-K2K7OF4P.js} +95 -3
- package/dist/chunk-K2K7OF4P.js.map +1 -0
- package/dist/{chunk-MXXKTQXJ.js → chunk-KBAE7PU7.js} +18 -33
- package/dist/chunk-KBAE7PU7.js.map +1 -0
- package/dist/{chunk-ARUJBGAH.js → chunk-KXTO7HON.js} +3 -3
- package/dist/{chunk-ARUJBGAH.js.map → chunk-KXTO7HON.js.map} +1 -1
- package/dist/{chunk-TVOODIZE.js → chunk-LAI7X6I2.js} +3 -3
- package/dist/{chunk-TVOODIZE.js.map → chunk-LAI7X6I2.js.map} +1 -1
- package/dist/{chunk-DXUQCMVT.js → chunk-LFMX2UEF.js} +3 -3
- package/dist/{chunk-DXUQCMVT.js.map → chunk-LFMX2UEF.js.map} +1 -1
- package/dist/{chunk-UMSWQKCY.js → chunk-LM5XEFNS.js} +3 -3
- package/dist/{chunk-UMSWQKCY.js.map → chunk-LM5XEFNS.js.map} +1 -1
- package/dist/{chunk-TLKM4M47.js → chunk-MFHKHXDE.js} +6 -3
- package/dist/chunk-MFHKHXDE.js.map +1 -0
- package/dist/{chunk-5S4ZK75K.js → chunk-OMD4TAJX.js} +3 -3
- package/dist/{chunk-5S4ZK75K.js.map → chunk-OMD4TAJX.js.map} +1 -1
- package/dist/{chunk-M4ISBWXR.js → chunk-OOKFZW6H.js} +2472 -2265
- package/dist/chunk-OOKFZW6H.js.map +1 -0
- package/dist/{chunk-WPWJRDR3.js → chunk-QHIMMBJO.js} +8 -7
- package/dist/chunk-QHIMMBJO.js.map +1 -0
- package/dist/{chunk-KC3OF6B2.js → chunk-QMWMSZQ4.js} +3 -3
- package/dist/{chunk-KC3OF6B2.js.map → chunk-QMWMSZQ4.js.map} +1 -1
- package/dist/{chunk-AG44ZJ7W.js → chunk-SR4RFKHM.js} +35 -13
- package/dist/chunk-SR4RFKHM.js.map +1 -0
- package/dist/{chunk-RNOIDD3Y.js → chunk-TR7KFBIO.js} +7 -7
- package/dist/chunk-TR7KFBIO.js.map +1 -0
- package/dist/{chunk-YMOZC2D3.js → chunk-TVFSA5IQ.js} +4 -4
- package/dist/{chunk-YMOZC2D3.js.map → chunk-TVFSA5IQ.js.map} +1 -1
- package/dist/{chunk-H4EGUQ7M.js → chunk-VKSA2CDJ.js} +7 -8
- package/dist/chunk-VKSA2CDJ.js.map +1 -0
- package/dist/{chunk-I75CM2QF.js → chunk-VLEWVR44.js} +14 -15
- package/dist/chunk-VLEWVR44.js.map +1 -0
- package/dist/{chunk-RO4Z2CBP.js → chunk-WGN7Z36G.js} +21 -4
- package/dist/chunk-WGN7Z36G.js.map +1 -0
- package/dist/{chunk-BEOKEK3B.js → chunk-WGNFDLHT.js} +135 -64
- package/dist/chunk-WGNFDLHT.js.map +1 -0
- package/dist/{chunk-43ZBF3WH.js → chunk-WX74MVNA.js} +16 -3
- package/dist/chunk-WX74MVNA.js.map +1 -0
- package/dist/{chunk-U6K3I3AX.js → chunk-XGIS325V.js} +3 -3
- package/dist/{chunk-U6K3I3AX.js.map → chunk-XGIS325V.js.map} +1 -1
- package/dist/{chunk-UVOJSWD2.js → chunk-Y7UBRRKG.js} +107 -135
- package/dist/chunk-Y7UBRRKG.js.map +1 -0
- package/dist/{chunk-Y6V6NUEV.js → chunk-YTJZQ4HY.js} +3 -3
- package/dist/{chunk-Y6V6NUEV.js.map → chunk-YTJZQ4HY.js.map} +1 -1
- package/dist/{chunk-IAGCOAIW.js → chunk-YXNYBUQY.js} +5 -5
- package/dist/{chunk-IAGCOAIW.js.map → chunk-YXNYBUQY.js.map} +1 -1
- package/dist/chunk-ZCSFGGLG.js +15 -0
- package/dist/{chunk-XUQBVK4R.js.map → chunk-ZCSFGGLG.js.map} +1 -1
- package/dist/{chunk-2HR3RPWD.js → chunk-ZDMGMWK6.js} +13 -11
- package/dist/chunk-ZDMGMWK6.js.map +1 -0
- package/dist/cli/index.js +696 -552
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/commands/asset-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/catalog-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/catalog.d.ts.map +1 -1
- package/dist/cli/src/commands/config.d.ts.map +1 -1
- package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/library-index.d.ts +43 -1
- package/dist/cli/src/commands/library-index.d.ts.map +1 -1
- package/dist/cli/src/commands/library-publish.d.ts.map +1 -1
- package/dist/cli/src/commands/outdated.d.ts +3 -1
- package/dist/cli/src/commands/outdated.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/cli/src/commands/run.d.ts.map +1 -1
- package/dist/cli/src/commands/skailify-lib.d.ts +3 -47
- package/dist/cli/src/commands/skailify-lib.d.ts.map +1 -1
- package/dist/cli/src/commands/source.d.ts.map +1 -1
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/flow-discovery.d.ts +9 -0
- package/dist/cli/src/flow-discovery.d.ts.map +1 -1
- package/dist/cli/src/helpers.d.ts +13 -0
- package/dist/cli/src/helpers.d.ts.map +1 -1
- package/dist/cli/src/setup.d.ts.map +1 -1
- package/dist/connectors/config.js +6 -6
- package/dist/connectors/index.js +19 -19
- package/dist/connectors/src/connector-manager.d.ts +8 -27
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/index.d.ts +1 -1
- package/dist/connectors/src/index.d.ts.map +1 -1
- package/dist/connectors/src/mount-ledger.d.ts +61 -0
- package/dist/connectors/src/mount-ledger.d.ts.map +1 -0
- package/dist/{connectors-BQXFKISC.js → connectors-Z2FUGAJU.js} +22 -22
- package/dist/{connectors-BQXFKISC.js.map → connectors-Z2FUGAJU.js.map} +1 -1
- package/dist/connectors-shared/index.js +2 -2
- package/dist/core/framework.js +1 -1
- package/dist/core/index.js +9 -9
- package/dist/core/manifest.js +2 -2
- package/dist/core/models.js +1 -1
- package/dist/core/publish-manifest.js +2 -2
- package/dist/core/ref.js +1 -1
- package/dist/core/runtime-assets.js +6 -6
- package/dist/core/src/asset-roots.d.ts +8 -0
- package/dist/core/src/asset-roots.d.ts.map +1 -1
- package/dist/core/src/cache-paths.d.ts +6 -0
- package/dist/core/src/cache-paths.d.ts.map +1 -1
- package/dist/core/src/framework.d.ts +7 -0
- package/dist/core/src/framework.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +6 -6
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/lock.d.ts +12 -0
- package/dist/core/src/lock.d.ts.map +1 -1
- package/dist/core/src/manifest-yaml-editor.d.ts +14 -6
- package/dist/core/src/manifest-yaml-editor.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +22 -0
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/src/publish-manifest.d.ts +28 -6
- package/dist/core/src/publish-manifest.d.ts.map +1 -1
- package/dist/core/src/settings.d.ts.map +1 -1
- package/dist/core/src/walker.d.ts.map +1 -1
- package/dist/core/store.js +2 -2
- package/dist/core/workspace-config.js +5 -5
- package/dist/deploy/index.js +9 -9
- package/dist/discovery/index.js +4 -4
- package/dist/discovery/src/discover-manifest.d.ts +5 -0
- package/dist/discovery/src/discover-manifest.d.ts.map +1 -1
- package/dist/discovery/src/discover.d.ts.map +1 -1
- package/dist/discovery/src/hash.d.ts +45 -23
- package/dist/discovery/src/hash.d.ts.map +1 -1
- package/dist/discovery/src/index.d.ts +3 -1
- package/dist/discovery/src/index.d.ts.map +1 -1
- package/dist/discovery/src/parse-manifest.d.ts +27 -0
- package/dist/discovery/src/parse-manifest.d.ts.map +1 -0
- package/dist/discovery/src/tree-entries.d.ts.map +1 -1
- package/dist/{ensure-sources-CMHOTYFS.js → ensure-sources-3IH5XHAP.js} +17 -17
- package/dist/{ensure-sources-CMHOTYFS.js.map → ensure-sources-3IH5XHAP.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +19 -19
- package/dist/factory-assets/connectors/deploy.js +19 -19
- package/dist/factory-assets/connectors/devserver.js +19 -19
- package/dist/factory-assets/connectors/flow/adapter.d.ts +28 -4
- package/dist/factory-assets/connectors/flow/adapter.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/adapter.js +19 -19
- package/dist/factory-assets/connectors/flow/engine.js +10 -10
- package/dist/factory-assets/connectors/flow/index.d.ts +1 -1
- package/dist/factory-assets/connectors/flow/index.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +21 -21
- package/dist/factory-assets/connectors/flow.js +19 -19
- package/dist/factory-assets/connectors/git/checkout.d.ts +161 -0
- package/dist/factory-assets/connectors/git/checkout.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/config.d.ts +78 -0
- package/dist/factory-assets/connectors/git/config.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/credentials.d.ts +93 -0
- package/dist/factory-assets/connectors/git/credentials.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/driver.d.ts +39 -598
- package/dist/factory-assets/connectors/git/driver.d.ts.map +1 -1
- package/dist/factory-assets/connectors/git/exec.d.ts +177 -0
- package/dist/factory-assets/connectors/git/exec.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/inspect.d.ts +120 -0
- package/dist/factory-assets/connectors/git/inspect.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/lifecycle.d.ts +107 -0
- package/dist/factory-assets/connectors/git/lifecycle.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git/repo.d.ts +496 -0
- package/dist/factory-assets/connectors/git/repo.d.ts.map +1 -0
- package/dist/factory-assets/connectors/git.js +19 -19
- package/dist/factory-assets/connectors/gmail.js +19 -19
- package/dist/factory-assets/connectors/googledrive.js +19 -19
- package/dist/factory-assets/connectors/local.js +19 -19
- package/dist/factory-assets/connectors/mattermost.js +19 -19
- package/dist/factory-assets/connectors/memory.js +19 -19
- package/dist/factory-assets/connectors/minio.js +19 -19
- package/dist/factory-assets/connectors/postgres.js +19 -19
- package/dist/factory-assets/connectors/s3.js +19 -19
- package/dist/factory-assets/connectors/sharepoint.js +19 -19
- package/dist/factory-assets/connectors/sqlite.js +19 -19
- package/dist/factory-assets/connectors/static-server.js +19 -19
- package/dist/factory-assets/connectors/tunnel.js +19 -19
- package/dist/factory-assets/connectors/webdav.js +19 -19
- package/dist/factory-assets/connectors/xstate-store.js +19 -19
- package/dist/factory-assets/connectors/xstate.js +19 -19
- package/dist/flows-64OAOYLP.js +26 -0
- package/dist/{flows-SVCCADGE.js.map → flows-64OAOYLP.js.map} +1 -1
- package/dist/{helpers-R3GLTAER.js → helpers-HV5Y57CY.js} +17 -17
- package/dist/{helpers-R3GLTAER.js.map → helpers-HV5Y57CY.js.map} +1 -1
- package/dist/library/index.js +12 -12
- package/dist/library/install.js +3 -2
- package/dist/library/src/config.d.ts +5 -4
- package/dist/library/src/config.d.ts.map +1 -1
- package/dist/library/src/index.d.ts +6 -3
- package/dist/library/src/index.d.ts.map +1 -1
- package/dist/library/src/install/install-from-manifest.d.ts +21 -0
- package/dist/library/src/install/install-from-manifest.d.ts.map +1 -1
- package/dist/library/src/local/install-library-asset.d.ts +64 -0
- package/dist/library/src/local/install-library-asset.d.ts.map +1 -0
- package/dist/library/src/local/library.d.ts.map +1 -1
- package/dist/library/src/local/local-catalog-source.d.ts +30 -0
- package/dist/library/src/local/local-catalog-source.d.ts.map +1 -1
- package/dist/library/src/local/store-paths.d.ts +6 -0
- package/dist/library/src/local/store-paths.d.ts.map +1 -1
- package/dist/library/src/manifest-writer.d.ts +79 -0
- package/dist/library/src/manifest-writer.d.ts.map +1 -0
- package/dist/library/src/sync/git-driver.d.ts +8 -0
- package/dist/library/src/sync/git-driver.d.ts.map +1 -1
- package/dist/library/src/sync/manifest-writeback.d.ts +2 -17
- package/dist/library/src/sync/manifest-writeback.d.ts.map +1 -1
- package/dist/{library-publish-EL7VYICU.js → library-publish-TVS3WQ4C.js} +27 -25
- package/dist/library-publish-TVS3WQ4C.js.map +1 -0
- package/dist/{open-library-MTD34YX3.js → open-library-AT6RYQ5M.js} +20 -20
- package/dist/{open-library-MTD34YX3.js.map → open-library-AT6RYQ5M.js.map} +1 -1
- package/dist/open-registry-F2Z4OLXJ.js +32 -0
- package/dist/{open-registry-CHCWKV5W.js.map → open-registry-F2Z4OLXJ.js.map} +1 -1
- package/dist/paths-P7ZXMDCX.js +22 -0
- package/dist/{paths-MKSI52PF.js.map → paths-P7ZXMDCX.js.map} +1 -1
- package/dist/plugin-registry/src/targets.d.ts +3 -1
- package/dist/plugin-registry/src/targets.d.ts.map +1 -1
- package/dist/{plugin-store-SVYV7L4C.js → plugin-store-27KGLW4S.js} +11 -11
- package/dist/{plugin-store-SVYV7L4C.js.map → plugin-store-27KGLW4S.js.map} +1 -1
- package/dist/{project-HCNWJP7J.js → project-J2EROMBW.js} +18 -18
- package/dist/{project-HCNWJP7J.js.map → project-J2EROMBW.js.map} +1 -1
- package/dist/resolver/index.js +10 -10
- package/dist/runner/index.js +29 -29
- package/dist/runner/src/agent.d.ts +1 -1
- package/dist/runner/src/agent.d.ts.map +1 -1
- package/dist/runner/src/codex-init.d.ts.map +1 -1
- package/dist/runner/src/compaction-gate.d.ts +9 -33
- package/dist/runner/src/compaction-gate.d.ts.map +1 -1
- package/dist/runner/src/managed-codex-bootstrap.d.ts.map +1 -1
- package/dist/runner/src/pending-turns.d.ts +7 -2
- package/dist/runner/src/pending-turns.d.ts.map +1 -1
- package/dist/runner/src/resources.d.ts +2 -2
- package/dist/runner/src/resources.d.ts.map +1 -1
- package/dist/runner/src/serve-credentials.d.ts +2 -1
- package/dist/runner/src/serve-credentials.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts +19 -35
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/runner/src/session-builder.d.ts.map +1 -1
- package/dist/runner/src/turn-scheduler.d.ts +158 -0
- package/dist/runner/src/turn-scheduler.d.ts.map +1 -0
- package/dist/sdk/asset-manager.js +14 -14
- package/dist/sdk/bridge.js +15 -15
- package/dist/sdk/core.js +9 -9
- package/dist/sdk/flow.js +10 -10
- package/dist/sdk/index.js +29 -29
- package/dist/sdk/resolver.js +10 -10
- package/dist/sdk/runner.js +29 -29
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/types.js +1 -1
- package/dist/secrets/index.js +2 -2
- package/dist/session/index.js +2 -2
- package/dist/session/src/dispatcher.d.ts.map +1 -1
- package/dist/{setup-HTXNR2CZ.js → setup-IFGA4NQA.js} +25 -25
- package/dist/setup-IFGA4NQA.js.map +1 -0
- package/dist/skills-3T55L4YT.js +26 -0
- package/dist/{skills-7K2YO3KN.js.map → skills-3T55L4YT.js.map} +1 -1
- package/dist/{source-UIFC2PFC.js → source-HEAE43IL.js} +21 -21
- package/dist/{source-UIFC2PFC.js.map → source-HEAE43IL.js.map} +1 -1
- package/dist/{source-manifest-publish-QKAKXDVH.js → source-manifest-publish-SCAHAYSQ.js} +23 -23
- package/dist/{source-manifest-publish-QKAKXDVH.js.map → source-manifest-publish-SCAHAYSQ.js.map} +1 -1
- package/dist/tui/index.js +30 -30
- package/dist/tui/index.js.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/src/delivery.d.ts +26 -0
- package/dist/types/src/delivery.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/runtime.d.ts +51 -0
- package/dist/types/src/runtime.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +26 -26
- package/dist/workspace-plugin/adapters/omp.js +18 -17
- package/dist/workspace-plugin/adapters/omp.js.map +1 -1
- package/dist/workspace-plugin/index.js +2 -1
- package/dist/workspace-plugin/src/adapters/mcp.d.ts.map +1 -1
- package/dist/workspace-plugin/src/adapters/omp.d.ts.map +1 -1
- package/dist/workspace-plugin/src/plugin.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2HR3RPWD.js.map +0 -1
- package/dist/chunk-43ZBF3WH.js.map +0 -1
- package/dist/chunk-7SAWDPUT.js.map +0 -1
- package/dist/chunk-AG44ZJ7W.js.map +0 -1
- package/dist/chunk-AGWYBS2E.js.map +0 -1
- package/dist/chunk-BEOKEK3B.js.map +0 -1
- package/dist/chunk-F7JHP7JV.js +0 -122
- package/dist/chunk-F7JHP7JV.js.map +0 -1
- package/dist/chunk-H4EGUQ7M.js.map +0 -1
- package/dist/chunk-I75CM2QF.js.map +0 -1
- package/dist/chunk-IDEA6CYI.js.map +0 -1
- package/dist/chunk-IWCCZL7C.js.map +0 -1
- package/dist/chunk-K5GBV4SA.js.map +0 -1
- package/dist/chunk-KNC55536.js.map +0 -1
- package/dist/chunk-KWP4RVTJ.js.map +0 -1
- package/dist/chunk-M4ISBWXR.js.map +0 -1
- package/dist/chunk-MXXKTQXJ.js.map +0 -1
- package/dist/chunk-RNOIDD3Y.js.map +0 -1
- package/dist/chunk-RO4Z2CBP.js.map +0 -1
- package/dist/chunk-SP47UJKE.js.map +0 -1
- package/dist/chunk-TLKM4M47.js.map +0 -1
- package/dist/chunk-UVOJSWD2.js.map +0 -1
- package/dist/chunk-WPWJRDR3.js.map +0 -1
- package/dist/chunk-XUQBVK4R.js +0 -15
- package/dist/chunk-ZD7CX25M.js.map +0 -1
- package/dist/flows-SVCCADGE.js +0 -26
- package/dist/library-publish-EL7VYICU.js.map +0 -1
- package/dist/open-registry-CHCWKV5W.js +0 -32
- package/dist/paths-MKSI52PF.js +0 -22
- package/dist/runner/src/flow-turn-dispatch.d.ts +0 -41
- package/dist/runner/src/flow-turn-dispatch.d.ts.map +0 -1
- package/dist/runner/src/reply-routing.d.ts +0 -54
- package/dist/runner/src/reply-routing.d.ts.map +0 -1
- package/dist/setup-HTXNR2CZ.js.map +0 -1
- package/dist/skills-7K2YO3KN.js +0 -26
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
4
|
-
import '../../../chunk-
|
|
5
|
-
import '../../../chunk-
|
|
1
|
+
export { FlowAdapter, createConnector, describeFlowOperations } from '../../../chunk-OOKFZW6H.js';
|
|
2
|
+
import '../../../chunk-QMWMSZQ4.js';
|
|
3
|
+
import '../../../chunk-CZ35I4RK.js';
|
|
4
|
+
import '../../../chunk-7L4WFH3Y.js';
|
|
5
|
+
import '../../../chunk-LAI7X6I2.js';
|
|
6
6
|
import '../../../chunk-EINLFFP6.js';
|
|
7
7
|
import '../../../chunk-LOO5CB5M.js';
|
|
8
|
-
import '../../../chunk-
|
|
9
|
-
import '../../../chunk-
|
|
8
|
+
import '../../../chunk-BNUZEYC3.js';
|
|
9
|
+
import '../../../chunk-ERCSHLTF.js';
|
|
10
10
|
import '../../../chunk-XBSQ4KMC.js';
|
|
11
11
|
import '../../../chunk-YROR332M.js';
|
|
12
|
-
import '../../../chunk-
|
|
12
|
+
import '../../../chunk-FTYM4VRZ.js';
|
|
13
13
|
import '../../../chunk-6E6PKKAD.js';
|
|
14
14
|
import '../../../chunk-IFGTRL2I.js';
|
|
15
|
-
export { isBlocking } from '../../../chunk-
|
|
15
|
+
export { isBlocking } from '../../../chunk-LM5XEFNS.js';
|
|
16
16
|
import '../../../chunk-37FTLYFP.js';
|
|
17
17
|
import '../../../chunk-QZLWJETK.js';
|
|
18
18
|
import '../../../chunk-XUUYAS3Z.js';
|
|
19
19
|
import '../../../chunk-NFGRW3L7.js';
|
|
20
20
|
import '../../../chunk-QCI6D7E4.js';
|
|
21
|
-
import '../../../chunk-
|
|
22
|
-
import '../../../chunk-
|
|
21
|
+
import '../../../chunk-K2K7OF4P.js';
|
|
22
|
+
import '../../../chunk-6GBQND2F.js';
|
|
23
23
|
import '../../../chunk-4GY63JU6.js';
|
|
24
|
-
import '../../../chunk-
|
|
25
|
-
import '../../../chunk-
|
|
26
|
-
import '../../../chunk-
|
|
24
|
+
import '../../../chunk-4SSKKFDF.js';
|
|
25
|
+
import '../../../chunk-XGIS325V.js';
|
|
26
|
+
import '../../../chunk-5BEFNLOR.js';
|
|
27
27
|
import '../../../chunk-A2ULN3KX.js';
|
|
28
|
-
import '../../../chunk-
|
|
29
|
-
import '../../../chunk-
|
|
28
|
+
import '../../../chunk-KBAE7PU7.js';
|
|
29
|
+
import '../../../chunk-MFHKHXDE.js';
|
|
30
30
|
import '../../../chunk-TOSHZX4C.js';
|
|
31
|
-
import '../../../chunk-
|
|
31
|
+
import '../../../chunk-SR4RFKHM.js';
|
|
32
32
|
import '../../../chunk-RVRB27AN.js';
|
|
33
|
-
import '../../../chunk-
|
|
34
|
-
import '../../../chunk-
|
|
33
|
+
import '../../../chunk-LFMX2UEF.js';
|
|
34
|
+
import '../../../chunk-WX74MVNA.js';
|
|
35
35
|
import '../../../chunk-ICSCSM5D.js';
|
|
36
36
|
import '../../../chunk-JMKB7IB4.js';
|
|
37
37
|
import '../../../chunk-MJHSLODD.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, findFlowFileInRoots, flowFileCandidates, flowKindProvider, flowLookupRoots, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, projectAiAssetsRoots, remainingActiveExecutionMs, resolveAvailableRouter, resolveFlowOutputFields, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../../../chunk-
|
|
1
|
+
export { FLOW_FILE_EXTENSIONS, FlowManifestSchema, appendAttempt, buildFlowExpressionContext, computeFlowState, computeFlowStateFromSnapshots, computeSkippable, countFailedAttempts, deriveCheckEvidence, findFlowFileInRoots, flowFileCandidates, flowKindProvider, flowLookupRoots, hasAutomaticRetryBudget, interpolateNodeInstruction, isActiveExecutionExpired, isBlocking, loadAllFlowEntries, loadAllFlows, loadFlow, loadFlowEntriesFromDir, loadFlowsFromDir, nextAttemptNumber, producerOutputObtainedBy, projectAiAssetsRoots, remainingActiveExecutionMs, resolveAvailableRouter, resolveFlowOutputFields, resolveNextNodes, resolveNodeBindings, resolveTerminalFailureStatus, validateConsumedNodeOutput, validateFlow } from '../../../chunk-LM5XEFNS.js';
|
|
2
2
|
import '../../../chunk-QZLWJETK.js';
|
|
3
3
|
export { deterministicNodeKindLabel, flowDefaults, flowSkillVersionPins, isActiveRuntimeNode, isAgentNode, isCheckNode, isExecutableNode, isFunctionNode, isGateNode, isRouterNode, isSubFlowNode, isSubpromptNode, nodeAssets, nodeBindings, nodeInstruction, nodeIsInert, nodeIsOptional, nodeLabel, nodeRequiresApproval, nodeRunKind, nodeSkillAsset, nodeSkillId, nodeSkillVersionPins } from '../../../chunk-NFGRW3L7.js';
|
|
4
4
|
export { getConsumedOutputSchema } from '../../../chunk-QCI6D7E4.js';
|
|
5
|
-
import '../../../chunk-
|
|
5
|
+
import '../../../chunk-6GBQND2F.js';
|
|
6
6
|
import '../../../chunk-4GY63JU6.js';
|
|
7
|
-
import '../../../chunk-
|
|
8
|
-
import '../../../chunk-
|
|
9
|
-
import '../../../chunk-
|
|
7
|
+
import '../../../chunk-4SSKKFDF.js';
|
|
8
|
+
import '../../../chunk-XGIS325V.js';
|
|
9
|
+
import '../../../chunk-5BEFNLOR.js';
|
|
10
10
|
import '../../../chunk-A2ULN3KX.js';
|
|
11
|
-
import '../../../chunk-
|
|
12
|
-
import '../../../chunk-
|
|
11
|
+
import '../../../chunk-KBAE7PU7.js';
|
|
12
|
+
import '../../../chunk-MFHKHXDE.js';
|
|
13
13
|
import '../../../chunk-TOSHZX4C.js';
|
|
14
|
-
import '../../../chunk-
|
|
14
|
+
import '../../../chunk-SR4RFKHM.js';
|
|
15
15
|
import '../../../chunk-RVRB27AN.js';
|
|
16
|
-
import '../../../chunk-
|
|
17
|
-
import '../../../chunk-
|
|
16
|
+
import '../../../chunk-LFMX2UEF.js';
|
|
17
|
+
import '../../../chunk-WX74MVNA.js';
|
|
18
18
|
import '../../../chunk-ICSCSM5D.js';
|
|
19
19
|
import '../../../chunk-JMKB7IB4.js';
|
|
20
20
|
import '../../../chunk-MJHSLODD.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { FlowAdapterConnectOptions, FlowAdapterState, FlowAdapterStimulusBus, } from "./adapter.js";
|
|
1
|
+
export type { FlowAdapterConnectOptions, FlowAdapterState, FlowAdapterStimulusBus, FlowRestoreKick, FlowRunTurnRule, } from "./adapter.js";
|
|
2
2
|
export { createConnector, describeFlowOperations, FlowAdapter } from "./adapter.js";
|
|
3
3
|
export { type InlineSubFlowAgentTurn, SessionInlineSubFlowRunner, type SessionInlineSubFlowRunnerOptions, } from "./inline-sub-flow-host.js";
|
|
4
4
|
export { SessionNodeExecutor, type DeterministicFlowNode, type FunctionFlowNode, type NodeExecutor, type NodeExecutorOptions, type NodeExecutorRequest, type NodeExecutorResult, type SessionNodeExecutorOptions, } from "./node-executor.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/flow/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,EACL,KAAK,sBAAsB,EAC3B,0BAA0B,EAC1B,KAAK,iCAAiC,GACvC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,GAChC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,mBAAmB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export { awaitAgentEnd, resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-
|
|
1
|
+
export { awaitAgentEnd, resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-4257Q2LH.js';
|
|
2
2
|
import '../../../chunk-4R6DROGN.js';
|
|
3
|
-
import '../../../chunk-
|
|
4
|
-
import '../../../chunk-
|
|
5
|
-
import '../../../chunk-
|
|
6
|
-
import '../../../chunk-
|
|
7
|
-
import '../../../chunk-
|
|
8
|
-
import '../../../chunk-
|
|
3
|
+
import '../../../chunk-JAJG4G5E.js';
|
|
4
|
+
import '../../../chunk-OOKFZW6H.js';
|
|
5
|
+
import '../../../chunk-QMWMSZQ4.js';
|
|
6
|
+
import '../../../chunk-CZ35I4RK.js';
|
|
7
|
+
import '../../../chunk-7L4WFH3Y.js';
|
|
8
|
+
import '../../../chunk-LAI7X6I2.js';
|
|
9
9
|
import '../../../chunk-EINLFFP6.js';
|
|
10
10
|
import '../../../chunk-LOO5CB5M.js';
|
|
11
|
-
import '../../../chunk-
|
|
12
|
-
import '../../../chunk-
|
|
11
|
+
import '../../../chunk-BNUZEYC3.js';
|
|
12
|
+
import '../../../chunk-ERCSHLTF.js';
|
|
13
13
|
import '../../../chunk-XBSQ4KMC.js';
|
|
14
14
|
import '../../../chunk-YROR332M.js';
|
|
15
|
-
import '../../../chunk-
|
|
15
|
+
import '../../../chunk-FTYM4VRZ.js';
|
|
16
16
|
import '../../../chunk-6E6PKKAD.js';
|
|
17
17
|
import '../../../chunk-IFGTRL2I.js';
|
|
18
|
-
import '../../../chunk-
|
|
18
|
+
import '../../../chunk-LM5XEFNS.js';
|
|
19
19
|
import '../../../chunk-37FTLYFP.js';
|
|
20
20
|
import '../../../chunk-QZLWJETK.js';
|
|
21
21
|
import '../../../chunk-XUUYAS3Z.js';
|
|
22
22
|
import '../../../chunk-NFGRW3L7.js';
|
|
23
23
|
import '../../../chunk-QCI6D7E4.js';
|
|
24
|
-
import '../../../chunk-
|
|
25
|
-
import '../../../chunk-
|
|
24
|
+
import '../../../chunk-K2K7OF4P.js';
|
|
25
|
+
import '../../../chunk-6GBQND2F.js';
|
|
26
26
|
import '../../../chunk-4GY63JU6.js';
|
|
27
|
-
import '../../../chunk-
|
|
28
|
-
import '../../../chunk-
|
|
29
|
-
import '../../../chunk-
|
|
27
|
+
import '../../../chunk-4SSKKFDF.js';
|
|
28
|
+
import '../../../chunk-XGIS325V.js';
|
|
29
|
+
import '../../../chunk-5BEFNLOR.js';
|
|
30
30
|
import '../../../chunk-A2ULN3KX.js';
|
|
31
|
-
import '../../../chunk-
|
|
32
|
-
import '../../../chunk-
|
|
31
|
+
import '../../../chunk-KBAE7PU7.js';
|
|
32
|
+
import '../../../chunk-MFHKHXDE.js';
|
|
33
33
|
import '../../../chunk-TOSHZX4C.js';
|
|
34
|
-
import '../../../chunk-
|
|
34
|
+
import '../../../chunk-SR4RFKHM.js';
|
|
35
35
|
import '../../../chunk-RVRB27AN.js';
|
|
36
|
-
import '../../../chunk-
|
|
37
|
-
import '../../../chunk-
|
|
36
|
+
import '../../../chunk-LFMX2UEF.js';
|
|
37
|
+
import '../../../chunk-WX74MVNA.js';
|
|
38
38
|
import '../../../chunk-ICSCSM5D.js';
|
|
39
39
|
import '../../../chunk-JMKB7IB4.js';
|
|
40
40
|
import '../../../chunk-MJHSLODD.js';
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
export { ClassifierSubpromptRunner, FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, SubFlowContractError, buildFlowPromptEvent, classifierQuestion, createConnector, describeFlowOperations, driveOrchestratorTurn } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
1
|
+
export { ClassifierSubpromptRunner, FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, SubFlowContractError, buildFlowPromptEvent, classifierQuestion, createConnector, describeFlowOperations, driveOrchestratorTurn } from '../../chunk-OOKFZW6H.js';
|
|
2
|
+
import '../../chunk-QMWMSZQ4.js';
|
|
3
|
+
import '../../chunk-CZ35I4RK.js';
|
|
4
|
+
import '../../chunk-7L4WFH3Y.js';
|
|
5
|
+
import '../../chunk-LAI7X6I2.js';
|
|
6
6
|
import '../../chunk-EINLFFP6.js';
|
|
7
7
|
import '../../chunk-LOO5CB5M.js';
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-BNUZEYC3.js';
|
|
9
|
+
import '../../chunk-ERCSHLTF.js';
|
|
10
10
|
import '../../chunk-XBSQ4KMC.js';
|
|
11
11
|
import '../../chunk-YROR332M.js';
|
|
12
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-FTYM4VRZ.js';
|
|
13
13
|
import '../../chunk-6E6PKKAD.js';
|
|
14
14
|
import '../../chunk-IFGTRL2I.js';
|
|
15
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-LM5XEFNS.js';
|
|
16
16
|
import '../../chunk-37FTLYFP.js';
|
|
17
17
|
import '../../chunk-QZLWJETK.js';
|
|
18
18
|
import '../../chunk-XUUYAS3Z.js';
|
|
19
19
|
import '../../chunk-NFGRW3L7.js';
|
|
20
20
|
import '../../chunk-QCI6D7E4.js';
|
|
21
|
-
import '../../chunk-
|
|
22
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-K2K7OF4P.js';
|
|
22
|
+
import '../../chunk-6GBQND2F.js';
|
|
23
23
|
import '../../chunk-4GY63JU6.js';
|
|
24
|
-
import '../../chunk-
|
|
25
|
-
import '../../chunk-
|
|
26
|
-
import '../../chunk-
|
|
24
|
+
import '../../chunk-4SSKKFDF.js';
|
|
25
|
+
import '../../chunk-XGIS325V.js';
|
|
26
|
+
import '../../chunk-5BEFNLOR.js';
|
|
27
27
|
import '../../chunk-A2ULN3KX.js';
|
|
28
|
-
import '../../chunk-
|
|
29
|
-
import '../../chunk-
|
|
28
|
+
import '../../chunk-KBAE7PU7.js';
|
|
29
|
+
import '../../chunk-MFHKHXDE.js';
|
|
30
30
|
import '../../chunk-TOSHZX4C.js';
|
|
31
|
-
import '../../chunk-
|
|
31
|
+
import '../../chunk-SR4RFKHM.js';
|
|
32
32
|
import '../../chunk-RVRB27AN.js';
|
|
33
|
-
import '../../chunk-
|
|
34
|
-
import '../../chunk-
|
|
33
|
+
import '../../chunk-LFMX2UEF.js';
|
|
34
|
+
import '../../chunk-WX74MVNA.js';
|
|
35
35
|
import '../../chunk-ICSCSM5D.js';
|
|
36
36
|
import '../../chunk-JMKB7IB4.js';
|
|
37
37
|
import '../../chunk-MJHSLODD.js';
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkout-level git operations that need no per-mount state: hold the index
|
|
3
|
+
* lock down, stage and commit, keep `.skaile/` out of the index, sync
|
|
4
|
+
* submodules, manage session-branch fetch refspecs.
|
|
5
|
+
*
|
|
6
|
+
* Every function takes the checkout path (and, for network commands, a
|
|
7
|
+
* {@link GitRemoteAuth}). The per-mount state those operations are sequenced
|
|
8
|
+
* with lives in the repo module.
|
|
9
|
+
*/
|
|
10
|
+
import type { Logger } from "@skaile/workspaces/types";
|
|
11
|
+
import { type GitRemoteAuth } from "./exec.js";
|
|
12
|
+
/**
|
|
13
|
+
* `git pull origin <branch>` in two processes: the fetch carries the token, the
|
|
14
|
+
* merge does not. A merge runs programs the checkout's config and attributes
|
|
15
|
+
* name (filters, merge drivers), which must never see the token.
|
|
16
|
+
*
|
|
17
|
+
* A clean divergence is merged (never rebased: both sides may be published),
|
|
18
|
+
* where `git pull` without `pull.rebase` would refuse. A conflicting one is
|
|
19
|
+
* aborted and thrown, naming the files: left in place, the auto-commit's
|
|
20
|
+
* `add -A` would complete the merge with the conflict markers and push them.
|
|
21
|
+
* An unfinished merge or rebase found beforehand is someone else's (the
|
|
22
|
+
* agent's): the pull throws without touching it, so the abort only ever undoes
|
|
23
|
+
* this pull's own merge.
|
|
24
|
+
*/
|
|
25
|
+
export declare function pullByMerge(branch: string, cwd: string, auth: GitRemoteAuth, timeout?: number): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Make the checkout ignore `SKAILE_INTERNAL_DIR`, and drop it from the index
|
|
28
|
+
* if a previous session already staged it.
|
|
29
|
+
*
|
|
30
|
+
* Written to `info/exclude` rather than `.gitignore`: the rule is a property
|
|
31
|
+
* of this machine's checkout, not of the user's project, so it must never show
|
|
32
|
+
* up in their diff, their history, or on their remote.
|
|
33
|
+
*
|
|
34
|
+
* Excluding — rather than filtering at `git add` time — keeps
|
|
35
|
+
* `status --porcelain` and `add -A` answering the same question, and covers
|
|
36
|
+
* git the *agent* runs by hand just as much as the driver's own commits.
|
|
37
|
+
*
|
|
38
|
+
* Resolved through `--git-common-dir` because a fleet worktree's `.git` is a
|
|
39
|
+
* file; `info/exclude` lives in the shared common dir in both layouts.
|
|
40
|
+
*
|
|
41
|
+
* The unstage is deliberately narrow. An ignore rule does not evict a path
|
|
42
|
+
* that is already in the index, so a checkout carrying a half-finished save
|
|
43
|
+
* from before this fix would still commit it on the next hibernate. Only
|
|
44
|
+
* entries that are in the index and *not* in `HEAD` are dropped, so a project
|
|
45
|
+
* that genuinely tracks a `.skaile/` of its own is left exactly as it is.
|
|
46
|
+
*
|
|
47
|
+
* Best effort throughout: a checkout whose git dir cannot be written is still
|
|
48
|
+
* a usable checkout, and failing `connect` over an ignore rule would trade a
|
|
49
|
+
* leak for an outage.
|
|
50
|
+
*/
|
|
51
|
+
export declare function ensureSkaileExcluded(cwd: string, log: Logger): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Drop a `.git/index.lock` orphaned by a SIGKILL'd git child.
|
|
54
|
+
*
|
|
55
|
+
* `runGit` kills on SIGKILL by design, which gives git no chance to release the
|
|
56
|
+
* lock, and the checkout outlives the container that made it — so one killed
|
|
57
|
+
* child wedges every later `connect()` on the same repo, permanently. Measured
|
|
58
|
+
* in prod: two sessions dead for 23 and 4 days, recoverable only by hand.
|
|
59
|
+
*
|
|
60
|
+
* Called from the connect path alone, which rules out this driver's own git:
|
|
61
|
+
* the periodic timers arm only once connect returns, and a fleet-managed mount
|
|
62
|
+
* (where the host owns git against this very path) takes another branch
|
|
63
|
+
* entirely. The mtime gate covers what ordering does not — a previous
|
|
64
|
+
* container still shutting down, and, on the hot-plug connect of a live
|
|
65
|
+
* session, git the AGENT is running, which is under no deadline of ours.
|
|
66
|
+
*/
|
|
67
|
+
export declare function clearStaleIndexLock(targetDir: string, log: Logger): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Whether a failed git child died on the checkout's `.git/index.lock` — held
|
|
70
|
+
* by another process (`Unable to create '<path>/index.lock': File exists.`) or
|
|
71
|
+
* unwritable. A lock young enough to survive {@link clearStaleIndexLock} still
|
|
72
|
+
* fails the connect, and no new credential fixes either case.
|
|
73
|
+
*
|
|
74
|
+
* Matches the lock path alone: the words around it go through gettext, and
|
|
75
|
+
* git inherits whatever locale the host runs it under.
|
|
76
|
+
*/
|
|
77
|
+
export declare function isIndexLockFailure(err: unknown): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Run a purely local `git checkout` for the connect path, marking a refusal as
|
|
80
|
+
* repo-state: with no network in the command, only the checkout itself (a lock,
|
|
81
|
+
* local changes in the way, a broken HEAD) can be what refused it.
|
|
82
|
+
*
|
|
83
|
+
* Only a clean non-zero exit counts. A deadline kill (a wedged mount) or a
|
|
84
|
+
* failed spawn says nothing about the repository, so those stay unclassified.
|
|
85
|
+
*/
|
|
86
|
+
export declare function gitLocalCheckout(args: string[], cwd: string): Promise<string>;
|
|
87
|
+
export declare function syncSubmodules(cwd: string, log: Logger, auth: GitRemoteAuth): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* The agent's `pull` moves submodule pins without fetching them: a submodule
|
|
90
|
+
* fetch reads its URL from the agent-writable config and would carry the
|
|
91
|
+
* host-scoped header to any repo the agent names. Checks out pins whose commits
|
|
92
|
+
* are already local and returns the paths still behind, which the next driver
|
|
93
|
+
* sync fetches. Runs without the token; `--checkout` as in `syncSubmodules`.
|
|
94
|
+
*/
|
|
95
|
+
export declare function checkoutSubmodulesOffline(cwd: string): Promise<string[]>;
|
|
96
|
+
/** The fetch refspec that maps `branch` on origin to `refs/remotes/origin/<branch>`. */
|
|
97
|
+
export declare function trackingRefspec(branch: string): string;
|
|
98
|
+
/**
|
|
99
|
+
* Make sure a fetch refspec of `origin` maps `branch` to its remote-tracking
|
|
100
|
+
* ref. Idempotent: adds nothing when the exact refspec or the default
|
|
101
|
+
* `refs/heads/*` wildcard (a full clone) is already configured.
|
|
102
|
+
*
|
|
103
|
+
* Needed because the clone is `--single-branch`: its only refspec maps the base
|
|
104
|
+
* branch. Without a mapping for the session branch, git does not resolve
|
|
105
|
+
* `@{upstream}`, and neither a fetch nor a push updates
|
|
106
|
+
* `refs/remotes/origin/<branch>`. `branch` must already be refname-validated.
|
|
107
|
+
*/
|
|
108
|
+
export declare function ensureTrackingRefspec(branch: string, cwd: string): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Remove the exact session-branch refspec that {@link ensureTrackingRefspec}
|
|
111
|
+
* adds. A configured refspec without a wildcard makes every plain
|
|
112
|
+
* `git fetch origin` fail with "couldn't find remote ref" while origin does
|
|
113
|
+
* not have the branch, which stops the periodic fetch and the agent's own
|
|
114
|
+
* `git fetch` / `git pull`. Never throws.
|
|
115
|
+
*/
|
|
116
|
+
export declare function dropTrackingRefspec(branch: string, cwd: string): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Before the base branch is pushed: fetch `origin/<branch>` and merge it in
|
|
119
|
+
* through {@link pullByMerge} (a fast-forward when the local branch has
|
|
120
|
+
* nothing of its own; the fetch authenticates per command), so the push that
|
|
121
|
+
* follows is a fast-forward. A merge, never a rebase: origin's commits
|
|
122
|
+
* may already be pulled elsewhere. A conflicting merge is aborted and thrown
|
|
123
|
+
* naming the files, so nothing is pushed and no conflict markers reach a later
|
|
124
|
+
* auto-commit. Unlike a session branch, the base branch gets no
|
|
125
|
+
* `.conflict`-file resolution: it is shared, and silently keeping "ours" there
|
|
126
|
+
* would bury someone else's change.
|
|
127
|
+
*
|
|
128
|
+
* Skipped (the push then runs as before) when HEAD is not `<branch>` — the
|
|
129
|
+
* agent checked out another branch or is mid-rebase — or when a merge,
|
|
130
|
+
* rebase, cherry-pick or revert is unfinished: that state is the agent's, and
|
|
131
|
+
* the abort in `pullByMerge` must only ever undo this function's own merge.
|
|
132
|
+
*/
|
|
133
|
+
export declare function integrateOriginBaseBranch(branch: string, cwd: string, auth: GitRemoteAuth): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Set `branch`'s upstream to `origin/<branch>` through config, as `push -u`
|
|
136
|
+
* does. Unlike `branch --set-upstream-to`, this works before a fetch refspec
|
|
137
|
+
* maps the branch.
|
|
138
|
+
*/
|
|
139
|
+
export declare function setSessionUpstream(branch: string, cwd: string): Promise<void>;
|
|
140
|
+
/**
|
|
141
|
+
* True when `dir` is empty (no entries, including no dotfiles) or when the
|
|
142
|
+
* listing fails or misses its deadline (e.g. dir does not exist, wedged
|
|
143
|
+
* mount). The "fails → empty" mapping is intentional: the caller is about to
|
|
144
|
+
* `mkdir` and proceed, so a missing dir is functionally equivalent to an
|
|
145
|
+
* empty one.
|
|
146
|
+
*/
|
|
147
|
+
export declare function isDirEmpty(dir: string): Promise<boolean>;
|
|
148
|
+
/**
|
|
149
|
+
* Stage everything and commit. Returns `null` without committing when there is
|
|
150
|
+
* nothing to commit, or when an unfinished merge or rebase would make the
|
|
151
|
+
* commit carry conflict markers (see {@link unfinishedGitOperation}).
|
|
152
|
+
*/
|
|
153
|
+
export declare function commitAll(cwd: string, message: string, log: Logger): Promise<string | null>;
|
|
154
|
+
/**
|
|
155
|
+
* `git add -A` for the driver's own commits, minus any submodule pin it would
|
|
156
|
+
* move backwards. After a pull that could not fetch a submodule (the agent's
|
|
157
|
+
* `pull` never does), the submodule's checkout lags the merged pin, and a plain
|
|
158
|
+
* `add -A` would commit the old pin and so undo the upstream bump on push.
|
|
159
|
+
*/
|
|
160
|
+
export declare function stageAll(cwd: string, log: Logger): Promise<void>;
|
|
161
|
+
//# sourceMappingURL=checkout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/checkout.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAOH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAEL,KAAK,aAAa,EAOnB,MAAM,WAAW,CAAC;AAcnB;;;;;;;;;;;;GAYG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,aAAa,EACnB,OAAO,SAAS,GACf,OAAO,CAAC,IAAI,CAAC,CA+Bf;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2ElF;AASD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqCvF;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAGxD;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAM7E;AAMD,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBjG;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAS9E;AAED,wFAAwF;AACxF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAYtF;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAapF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,CAAC,CAWf;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGnF;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAG9D;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAOjG;AAED;;;;;GAKG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBtE"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git connector config - the session, sync and lifecycle blocks a mount
|
|
3
|
+
* declaration resolves to. `mode` seeds per-block defaults, explicit
|
|
4
|
+
* `options.{session,sync,lifecycle}` keys override them, and a read-only mount
|
|
5
|
+
* is forced onto the reference-checkout profile. Pure functions: no I/O, no
|
|
6
|
+
* per-mount state.
|
|
7
|
+
*/
|
|
8
|
+
import type { ConnectorDeclaration } from "@skaile/workspaces/connectors";
|
|
9
|
+
export interface GitSessionConfig {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
slug?: string;
|
|
12
|
+
isMain: boolean;
|
|
13
|
+
branchPrefix: string;
|
|
14
|
+
/**
|
|
15
|
+
* Starting point for a freshly-created session branch. When set and the
|
|
16
|
+
* session branch does not already exist on origin, the driver fetches this
|
|
17
|
+
* ref and branches from it instead of from the base branch tip. Used by
|
|
18
|
+
* the platform's fork flow so a forked session branches off the source
|
|
19
|
+
* session's tip rather than off `main`. May be a branch name (e.g.
|
|
20
|
+
* `skaile/session-source-slug`) or a commit SHA. Ignored when the session
|
|
21
|
+
* branch already exists on origin (existing branch wins). No-op when
|
|
22
|
+
* `enabled = false` or `isMain = true` (only branch sessions cut new
|
|
23
|
+
* branches). The value is validated against `isValidGitRefOrSha` before
|
|
24
|
+
* use; refs with shell metacharacters are rejected and the driver falls
|
|
25
|
+
* back to branching off base.
|
|
26
|
+
*/
|
|
27
|
+
fromRef?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface GitSyncConfig {
|
|
30
|
+
fetchIntervalSec: number;
|
|
31
|
+
autoRebase: boolean;
|
|
32
|
+
autoPull: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface GitLifecycleConfig {
|
|
35
|
+
commitOnHibernate: boolean;
|
|
36
|
+
pushOnHibernate: boolean;
|
|
37
|
+
mergeOnClose: boolean;
|
|
38
|
+
pushOnClose: boolean;
|
|
39
|
+
/** Auto-commit after N ms of no file changes. 0 = disabled. Default: 30000 (30s). */
|
|
40
|
+
autoCommitIdleMs: number;
|
|
41
|
+
/** Push to remote after each auto-commit. */
|
|
42
|
+
pushAfterCommit: boolean;
|
|
43
|
+
/** Push freshly-created session branch to origin on connect. Best-effort — push
|
|
44
|
+
* failures are swallowed; lifecycle push hooks remain the backstop. */
|
|
45
|
+
publishOnCreate: boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* True when at least one lifecycle hook may push to origin. With none on, the
|
|
49
|
+
* driver itself never writes to origin; the agent's explicit `push` op still can.
|
|
50
|
+
*/
|
|
51
|
+
export declare function lifecyclePushesEnabled(lc: GitLifecycleConfig): boolean;
|
|
52
|
+
/** The session, sync and lifecycle blocks a git mount runs with. */
|
|
53
|
+
export interface GitConfigBlocks {
|
|
54
|
+
session: GitSessionConfig;
|
|
55
|
+
sync: GitSyncConfig;
|
|
56
|
+
lifecycle: GitLifecycleConfig;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Resolve the session/sync/lifecycle config blocks for a git connector. `mode`
|
|
60
|
+
* seeds per-block defaults (`agent` / `sync`); explicit `options.{session,sync,
|
|
61
|
+
* lifecycle}` keys still override those defaults. Absent `mode` reproduces the
|
|
62
|
+
* legacy literals exactly, so behavior is unchanged for declarations that set none.
|
|
63
|
+
*/
|
|
64
|
+
export declare function resolveGitConfig(args: {
|
|
65
|
+
mode?: "agent" | "sync";
|
|
66
|
+
options?: Record<string, unknown>;
|
|
67
|
+
}): GitConfigBlocks;
|
|
68
|
+
/** The blocks a mount runs with, and whether it is a read-only reference checkout. */
|
|
69
|
+
export interface GitMountConfig extends GitConfigBlocks {
|
|
70
|
+
readOnly: boolean;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Resolve the config a declaration mounts with. Only an explicit `read-only`
|
|
74
|
+
* counts: a mount that declared no `access` got the default from the parser and
|
|
75
|
+
* keeps the behaviour it had before the mode existed.
|
|
76
|
+
*/
|
|
77
|
+
export declare function resolveMountConfig(declaration: ConnectorDeclaration): GitMountConfig;
|
|
78
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAG1E,MAAM,WAAW,gBAAgB;IAC/B,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,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,qFAAqF;IACrF,gBAAgB,EAAE,MAAM,CAAC;IACzB,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB;4EACwE;IACxE,eAAe,EAAE,OAAO,CAAC;CAC1B;AAqGD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,kBAAkB,GAAG,OAAO,CAQtE;AAED,oEAAoE;AACpE,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,SAAS,EAAE,kBAAkB,CAAC;CAC/B;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE;IACrC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,GAAG,eAAe,CAclB;AAoCD,sFAAsF;AACtF,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,oBAAoB,GAAG,cAAc,CAKpF"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git connector credentials — everything between a mount's `auth:` declaration
|
|
3
|
+
* and a token a git command can use.
|
|
4
|
+
*
|
|
5
|
+
* Owns token acquisition (platform mediator or PAT), the proactive refresh
|
|
6
|
+
* timer, the Tier-2 managed gitconfig and credential file the agent's own `git`
|
|
7
|
+
* reads, atomic writes to that file, and the teardown fence that stops a late
|
|
8
|
+
* refresh from writing back after the mount is gone. The rest of the connector
|
|
9
|
+
* only holds a {@link GitCredentials} handle: it reads `token` and calls
|
|
10
|
+
* `teardown`; it never writes a credential file itself.
|
|
11
|
+
*/
|
|
12
|
+
import type { ConnectContext, ConnectorDeclaration, SecretProvider } from "@skaile/workspaces/connectors";
|
|
13
|
+
import type { Logger } from "@skaile/workspaces/types";
|
|
14
|
+
type ConnectorTokenMediator = NonNullable<ConnectContext["tokenMediator"]>;
|
|
15
|
+
/**
|
|
16
|
+
* Longest delay ever handed to `setTimeout`, a margin below its 2^31-1 ms
|
|
17
|
+
* ceiling (above which the delay silently collapses to 1 ms). Same cap the
|
|
18
|
+
* runner's AI-credential scheduler uses.
|
|
19
|
+
*/
|
|
20
|
+
export declare const MAX_REARM_MS: number;
|
|
21
|
+
export interface GitCredentialsInit {
|
|
22
|
+
declaration: ConnectorDeclaration;
|
|
23
|
+
/** The declared remote (`mount.source`), used as the log scope of a driver-only credential. */
|
|
24
|
+
url: string;
|
|
25
|
+
secrets?: SecretProvider;
|
|
26
|
+
tokenMediator?: ConnectorTokenMediator;
|
|
27
|
+
log: Logger;
|
|
28
|
+
}
|
|
29
|
+
/** One mount's credential, as the rest of the git connector sees it. */
|
|
30
|
+
export interface GitCredentials {
|
|
31
|
+
/** The current token. Read per git command, so a rotated token reaches the next spawn. */
|
|
32
|
+
readonly token: string | undefined;
|
|
33
|
+
/** True once the agent's gitconfig carries this mount's credential (Tier-2). */
|
|
34
|
+
readonly exposedToAgent: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Tier-2: write the managed gitconfig block, helper script and credential
|
|
37
|
+
* file for `url`, and arm the refresh timer. Writes nothing (and leaves
|
|
38
|
+
* {@link exposedToAgent} false) when there is no token, the remote is not
|
|
39
|
+
* http(s) or `GIT_CONFIG_GLOBAL` is unset. Throws when the files cannot be written.
|
|
40
|
+
*/
|
|
41
|
+
exposeToAgent(url: string): void;
|
|
42
|
+
/**
|
|
43
|
+
* Tier-1: the credential stays inside the driver's own git. Reports the mint
|
|
44
|
+
* and arms the refresh timer, which keeps the token fresh in memory only.
|
|
45
|
+
*/
|
|
46
|
+
serveDriverOnly(): void;
|
|
47
|
+
/**
|
|
48
|
+
* The agent's git hit a 401 and asked for a new token. No-op unless the
|
|
49
|
+
* credential is exposed and backend-minted; never writes after teardown.
|
|
50
|
+
*/
|
|
51
|
+
refreshAfterRejection(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Stop refreshing and remove what was exposed to the agent. Idempotent.
|
|
54
|
+
* A refresh whose mint is still in flight finds the fence down and writes nothing.
|
|
55
|
+
*/
|
|
56
|
+
teardown(): void;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The sanitized full repository URL a credential helper is scoped to.
|
|
60
|
+
* Userinfo, query, and fragment data must never enter the managed gitconfig.
|
|
61
|
+
*/
|
|
62
|
+
export declare function credentialScope(url: string): string;
|
|
63
|
+
/**
|
|
64
|
+
* Register a credential helper that *reports* why there is no credential,
|
|
65
|
+
* after this connector failed to connect.
|
|
66
|
+
*
|
|
67
|
+
* Without it git finds no helper for the host and asks the terminal for a
|
|
68
|
+
* username, so the agent sees `fatal: could not read Username for
|
|
69
|
+
* 'https://github.com'` — which names neither the mount nor the cause, and
|
|
70
|
+
* which only ever appears on a write, since reads against a public remote
|
|
71
|
+
* keep succeeding. The helper written here makes git stop with the mediator's
|
|
72
|
+
* actual refusal text instead.
|
|
73
|
+
*
|
|
74
|
+
* Entirely best-effort: it runs on the failure path and must never mask the
|
|
75
|
+
* connect error that is already on its way up.
|
|
76
|
+
*/
|
|
77
|
+
export declare function registerUnavailableCredentialHelper(connectorId: string, url: string, err: unknown, log: Logger): void;
|
|
78
|
+
/**
|
|
79
|
+
* Best-effort removal of the unavailable-mount blocks that would answer this
|
|
80
|
+
* connector's git operations: its own from a previous failed session, and any
|
|
81
|
+
* left under the same repository scope by a sibling mount that failed earlier
|
|
82
|
+
* in this `connectAll` (git matches helpers by URL, not by mount id).
|
|
83
|
+
*/
|
|
84
|
+
export declare function clearUnavailableCredentialHelper(connectorId: string, url: string, log: Logger): void;
|
|
85
|
+
/**
|
|
86
|
+
* Resolve a mount's credential: ask the mediator (or secrets chain) for the
|
|
87
|
+
* initial token. Throws a classified connect error when the mount has no usable
|
|
88
|
+
* credential. Nothing is written or scheduled until `exposeToAgent` /
|
|
89
|
+
* `serveDriverOnly`.
|
|
90
|
+
*/
|
|
91
|
+
export declare function acquireGitCredentials(init: GitCredentialsInit): Promise<GitCredentials>;
|
|
92
|
+
export {};
|
|
93
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EAGpB,cAAc,EAEf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAsB,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAgB3E,KAAK,sBAAsB,GAAG,WAAW,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,CAAC;AAmB3E;;;;GAIG;AACH,eAAO,MAAM,YAAY,QAA2B,CAAC;AAgCrD,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,oBAAoB,CAAC;IAClC,+FAA+F;IAC/F,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wEAAwE;AACxE,MAAM,WAAW,cAAc;IAC7B,0FAA0F;IAC1F,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,gFAAgF;IAChF,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC;;;;;OAKG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;OAGG;IACH,eAAe,IAAI,IAAI,CAAC;IACxB;;;OAGG;IACH,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC;;;OAGG;IACH,QAAQ,IAAI,IAAI,CAAC;CAClB;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGnD;AAkBD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mCAAmC,CACjD,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,MAAM,GACV,IAAI,CA2CN;AAED;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAC9C,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,IAAI,CAuBN;AA2ED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,CAAC,CAkS7F"}
|