@skaile/workspaces 0.20.0 → 0.22.0-beta.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 +58 -0
- package/dist/{asset-feeds-JSHWTTJC.js → asset-feeds-PJDJ3QYI.js} +11 -11
- package/dist/{asset-feeds-JSHWTTJC.js.map → asset-feeds-PJDJ3QYI.js.map} +1 -1
- package/dist/asset-manager/index.js +9 -9
- package/dist/asset-manager/installer.js +8 -8
- package/dist/base-assets/connectors/deploy.js +10 -9
- package/dist/base-assets/connectors/devserver.js +10 -9
- package/dist/base-assets/connectors/flow/adapter.js +10 -9
- package/dist/base-assets/connectors/flow/run-flow.js +11 -10
- package/dist/base-assets/connectors/flow.js +10 -9
- package/dist/base-assets/connectors/git.js +10 -9
- package/dist/base-assets/connectors/gmail.js +10 -9
- package/dist/base-assets/connectors/googledrive.js +10 -9
- package/dist/base-assets/connectors/local.js +10 -9
- package/dist/base-assets/connectors/mattermost.js +10 -9
- package/dist/base-assets/connectors/memory.js +10 -9
- package/dist/base-assets/connectors/minio.js +10 -9
- package/dist/base-assets/connectors/postgres.js +10 -9
- package/dist/base-assets/connectors/s3.js +10 -9
- package/dist/base-assets/connectors/sharepoint.js +10 -9
- package/dist/base-assets/connectors/sqlite.js +10 -9
- package/dist/base-assets/connectors/static-server.js +10 -9
- package/dist/base-assets/connectors/tunnel.js +10 -9
- package/dist/base-assets/connectors/webdav.js +10 -9
- package/dist/base-assets/connectors/xstate-store.js +10 -9
- package/dist/base-assets/connectors/xstate.js +10 -9
- package/dist/bridge/drivers/claude-sdk.js +13 -3
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +13 -3
- package/dist/bridge/drivers/codex.js.map +1 -1
- package/dist/bridge/drivers/echo.js +13 -4
- package/dist/bridge/drivers/echo.js.map +1 -1
- package/dist/bridge/drivers/omp.js +13 -3
- package/dist/bridge/drivers/omp.js.map +1 -1
- package/dist/bridge/index.js +3 -2
- package/dist/bridge/src/drivers/claude-sdk.d.ts +7 -0
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/drivers/codex.d.ts +7 -0
- package/dist/bridge/src/drivers/codex.d.ts.map +1 -1
- package/dist/bridge/src/drivers/echo.d.ts +6 -0
- package/dist/bridge/src/drivers/echo.d.ts.map +1 -1
- package/dist/bridge/src/drivers/omp.d.ts +6 -0
- package/dist/bridge/src/drivers/omp.d.ts.map +1 -1
- package/dist/bridge/src/registry.d.ts +32 -34
- package/dist/bridge/src/registry.d.ts.map +1 -1
- package/dist/{chunk-4YG2AAFV.js → chunk-2DNSSQ22.js} +7 -7
- package/dist/{chunk-4YG2AAFV.js.map → chunk-2DNSSQ22.js.map} +1 -1
- package/dist/{chunk-ZWIG55ZX.js → chunk-2XY6732A.js} +3 -3
- package/dist/{chunk-ZWIG55ZX.js.map → chunk-2XY6732A.js.map} +1 -1
- package/dist/{chunk-2DKWQLFS.js → chunk-CSDQBWE6.js} +5 -5
- package/dist/{chunk-2DKWQLFS.js.map → chunk-CSDQBWE6.js.map} +1 -1
- package/dist/{chunk-KYYMP5PT.js → chunk-F3MGZ5E6.js} +3 -3
- package/dist/{chunk-KYYMP5PT.js.map → chunk-F3MGZ5E6.js.map} +1 -1
- package/dist/{chunk-IQYWI5OG.js → chunk-G6GKWGOW.js} +114 -619
- package/dist/chunk-G6GKWGOW.js.map +1 -0
- package/dist/{chunk-LMDRMZ4F.js → chunk-GKM6MDUC.js} +3 -3
- package/dist/{chunk-LMDRMZ4F.js.map → chunk-GKM6MDUC.js.map} +1 -1
- package/dist/{chunk-4ACWI5YT.js → chunk-IGQEXBBG.js} +44 -36
- package/dist/chunk-IGQEXBBG.js.map +1 -0
- package/dist/{chunk-BZGDESAG.js → chunk-J2FCO6TM.js} +2 -2
- package/dist/{chunk-BZGDESAG.js.map → chunk-J2FCO6TM.js.map} +1 -1
- package/dist/{chunk-BSY56QS7.js → chunk-KA46DUM4.js} +3 -3
- package/dist/{chunk-BSY56QS7.js.map → chunk-KA46DUM4.js.map} +1 -1
- package/dist/{chunk-RCPFXP3Y.js → chunk-MO4JPTRD.js} +4 -4
- package/dist/{chunk-RCPFXP3Y.js.map → chunk-MO4JPTRD.js.map} +1 -1
- package/dist/{chunk-FNP4OGGY.js → chunk-NGC7ZQI4.js} +10 -10
- package/dist/{chunk-FNP4OGGY.js.map → chunk-NGC7ZQI4.js.map} +1 -1
- package/dist/{chunk-2ACJB6JF.js → chunk-RENHNO4J.js} +81 -4
- package/dist/chunk-RENHNO4J.js.map +1 -0
- package/dist/{chunk-4S4TZDCD.js → chunk-SL6JVGRD.js} +3 -3
- package/dist/{chunk-4S4TZDCD.js.map → chunk-SL6JVGRD.js.map} +1 -1
- package/dist/{chunk-VVS7MACX.js → chunk-TKOLD2O7.js} +213 -20
- package/dist/chunk-TKOLD2O7.js.map +1 -0
- package/dist/{chunk-R4FRSB47.js → chunk-TTY56FQQ.js} +4 -4
- package/dist/{chunk-R4FRSB47.js.map → chunk-TTY56FQQ.js.map} +1 -1
- package/dist/chunk-UZRY5UI2.js +96 -0
- package/dist/chunk-UZRY5UI2.js.map +1 -0
- package/dist/{chunk-NCUTHLRV.js → chunk-UZVHJ7LX.js} +4 -4
- package/dist/{chunk-NCUTHLRV.js.map → chunk-UZVHJ7LX.js.map} +1 -1
- package/dist/{chunk-FRPKLIEZ.js → chunk-WIR34WMU.js} +3 -3
- package/dist/{chunk-FRPKLIEZ.js.map → chunk-WIR34WMU.js.map} +1 -1
- package/dist/{chunk-37JKX6D7.js → chunk-X5Y4EGZB.js} +2 -2
- package/dist/{chunk-37JKX6D7.js.map → chunk-X5Y4EGZB.js.map} +1 -1
- package/dist/{chunk-S2OVTCAL.js → chunk-XHFMUGDD.js} +3 -3
- package/dist/{chunk-S2OVTCAL.js.map → chunk-XHFMUGDD.js.map} +1 -1
- package/dist/cli/index.js +701 -413
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/commands/deploy.d.ts +24 -0
- package/dist/cli/src/commands/deploy.d.ts.map +1 -0
- package/dist/cli/src/commands/integration.d.ts +19 -0
- package/dist/cli/src/commands/integration.d.ts.map +1 -0
- package/dist/cli/src/commands/plugin-registry-cmd.d.ts +22 -0
- package/dist/cli/src/commands/plugin-registry-cmd.d.ts.map +1 -0
- package/dist/cli/src/commands/serve.d.ts.map +1 -1
- package/dist/cli/src/plugin-store/index.d.ts +37 -0
- package/dist/cli/src/plugin-store/index.d.ts.map +1 -0
- package/dist/cli/src/plugin-store/load.d.ts +35 -0
- package/dist/cli/src/plugin-store/load.d.ts.map +1 -0
- package/dist/cli/src/plugin-store/paths.d.ts +23 -0
- package/dist/cli/src/plugin-store/paths.d.ts.map +1 -0
- package/dist/cli/src/plugin-store/reconcile.d.ts +50 -0
- package/dist/cli/src/plugin-store/reconcile.d.ts.map +1 -0
- package/dist/cli/src/plugin-store/spec.d.ts +25 -0
- package/dist/cli/src/plugin-store/spec.d.ts.map +1 -0
- package/dist/connectors/config.js +8 -8
- package/dist/connectors/index.js +10 -9
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/connector-registry.d.ts +42 -22
- package/dist/connectors/src/connector-registry.d.ts.map +1 -1
- package/dist/connectors/src/index.d.ts +2 -3
- package/dist/connectors/src/index.d.ts.map +1 -1
- package/dist/connectors-shared/index.js +8 -0
- package/dist/connectors-shared/index.js.map +1 -0
- package/dist/connectors-shared/src/index.d.ts +11 -0
- package/dist/connectors-shared/src/index.d.ts.map +1 -0
- package/dist/connectors-shared/src/schemas.d.ts +10 -0
- package/dist/connectors-shared/src/schemas.d.ts.map +1 -0
- package/dist/connectors-shared/src/types.d.ts +11 -0
- package/dist/connectors-shared/src/types.d.ts.map +1 -0
- package/dist/core/index.js +7 -7
- package/dist/core/manifest.js +2 -2
- package/dist/core/models.js +1 -1
- package/dist/core/runtime-assets.js +4 -4
- package/dist/core/src/index.d.ts +4 -4
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/lock.d.ts +20 -1
- package/dist/core/src/lock.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +13 -0
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts +68 -3
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/src/workspace-yaml-editor.d.ts +20 -0
- package/dist/core/src/workspace-yaml-editor.d.ts.map +1 -1
- package/dist/core/workspace-config.js +3 -3
- package/dist/deploy/index.js +454 -0
- package/dist/deploy/index.js.map +1 -0
- package/dist/deploy/src/handle-store.d.ts +22 -0
- package/dist/deploy/src/handle-store.d.ts.map +1 -0
- package/dist/deploy/src/index.d.ts +21 -0
- package/dist/deploy/src/index.d.ts.map +1 -0
- package/dist/deploy/src/targets/container-runtime.d.ts +38 -0
- package/dist/deploy/src/targets/container-runtime.d.ts.map +1 -0
- package/dist/deploy/src/targets/docker.d.ts +18 -0
- package/dist/deploy/src/targets/docker.d.ts.map +1 -0
- package/dist/deploy/src/targets/local.d.ts +30 -0
- package/dist/deploy/src/targets/local.d.ts.map +1 -0
- package/dist/deploy/src/targets/podman.d.ts +18 -0
- package/dist/deploy/src/targets/podman.d.ts.map +1 -0
- package/dist/deploy/src/targets/port.d.ts +10 -0
- package/dist/deploy/src/targets/port.d.ts.map +1 -0
- package/dist/deploy/src/targets/stream-lines.d.ts +44 -0
- package/dist/deploy/src/targets/stream-lines.d.ts.map +1 -0
- package/dist/discovery/index.js +3 -3
- package/dist/{ensure-sources-LRT3TIWI.js → ensure-sources-COGVKY44.js} +11 -11
- package/dist/{ensure-sources-LRT3TIWI.js.map → ensure-sources-COGVKY44.js.map} +1 -1
- package/dist/{flows-6BNO4GKK.js → flows-DYFTPCPM.js} +4 -4
- package/dist/{flows-6BNO4GKK.js.map → flows-DYFTPCPM.js.map} +1 -1
- package/dist/library/index.js +4 -4
- package/dist/open-library-DWAQFUSQ.js +13 -0
- package/dist/{open-library-IOYWFK7M.js.map → open-library-DWAQFUSQ.js.map} +1 -1
- package/dist/plugin-registry/index.js +4 -0
- package/dist/plugin-registry/index.js.map +1 -0
- package/dist/plugin-registry/src/context.d.ts +29 -0
- package/dist/plugin-registry/src/context.d.ts.map +1 -0
- package/dist/plugin-registry/src/deploy-handle.d.ts +60 -0
- package/dist/plugin-registry/src/deploy-handle.d.ts.map +1 -0
- package/dist/plugin-registry/src/errors.d.ts +23 -0
- package/dist/plugin-registry/src/errors.d.ts.map +1 -0
- package/dist/plugin-registry/src/index.d.ts +16 -0
- package/dist/plugin-registry/src/index.d.ts.map +1 -0
- package/dist/plugin-registry/src/internal.d.ts +13 -0
- package/dist/plugin-registry/src/internal.d.ts.map +1 -0
- package/dist/plugin-registry/src/registry.d.ts +25 -0
- package/dist/plugin-registry/src/registry.d.ts.map +1 -0
- package/dist/plugin-registry/src/targets.d.ts +42 -0
- package/dist/plugin-registry/src/targets.d.ts.map +1 -0
- package/dist/plugin-store-6OENKNFW.js +144 -0
- package/dist/plugin-store-6OENKNFW.js.map +1 -0
- package/dist/runner/index.js +14 -13
- package/dist/sdk/asset-manager.js +9 -9
- package/dist/sdk/bridge.js +3 -2
- package/dist/sdk/core.js +7 -7
- package/dist/sdk/index.js +15 -14
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runner.js +14 -13
- package/dist/{setup-CJWJWYEO.js → setup-ACMP3QZC.js} +12 -11
- package/dist/setup-ACMP3QZC.js.map +1 -0
- package/dist/store-client-ZSLNOOQG.js +14 -0
- package/dist/{store-client-H6BTDCA4.js.map → store-client-ZSLNOOQG.js.map} +1 -1
- package/dist/tui/index.js +14 -13
- package/dist/tui/index.js.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +2 -2
- package/dist/workspace-plugin/adapters/omp.js +3 -3
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +20 -23
- package/dist/base-assets/connectors/redis/adapter.d.ts +0 -39
- package/dist/base-assets/connectors/redis/adapter.d.ts.map +0 -1
- package/dist/base-assets/connectors/redis.js +0 -20
- package/dist/base-assets/connectors/redis.js.map +0 -1
- package/dist/base-assets/connectors/yjs/adapter.d.ts +0 -50
- package/dist/base-assets/connectors/yjs/adapter.d.ts.map +0 -1
- package/dist/base-assets/connectors/yjs.js +0 -20
- package/dist/base-assets/connectors/yjs.js.map +0 -1
- package/dist/chunk-2ACJB6JF.js.map +0 -1
- package/dist/chunk-4ACWI5YT.js.map +0 -1
- package/dist/chunk-IQYWI5OG.js.map +0 -1
- package/dist/chunk-VVS7MACX.js.map +0 -1
- package/dist/cli/src/commands/plugin.d.ts +0 -14
- package/dist/cli/src/commands/plugin.d.ts.map +0 -1
- package/dist/open-library-IOYWFK7M.js +0 -13
- package/dist/setup-CJWJWYEO.js.map +0 -1
- package/dist/store-client-H6BTDCA4.js +0 -14
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `skaile deploy` — stand a workspace up on a deploy target, then manage its
|
|
3
|
+
* lifecycle through the registry-owned detach handle.
|
|
4
|
+
*
|
|
5
|
+
* skaile deploy up [--project-dir <p>] [--target <id>] [--detach]
|
|
6
|
+
* skaile deploy down [--project-dir <p>]
|
|
7
|
+
* skaile deploy status [--project-dir <p>]
|
|
8
|
+
* skaile deploy logs [--project-dir <p>] [--follow]
|
|
9
|
+
*
|
|
10
|
+
* `up` resolves a target via the explicit precedence chain (CLI `--target`
|
|
11
|
+
* override > `skaile.yaml` `deploy:` > built-in `local`), loads any `plugins:`
|
|
12
|
+
* cloud providers, creates the handle, and either holds it (foreground, stops
|
|
13
|
+
* on SIGINT) or persists it (`--detach`). `down` / `status` / `logs` re-attach
|
|
14
|
+
* via `target.restore(payload, ctx)`.
|
|
15
|
+
*/
|
|
16
|
+
import { Command } from "commander";
|
|
17
|
+
/**
|
|
18
|
+
* Creates the `skaile deploy` command group.
|
|
19
|
+
*
|
|
20
|
+
* @returns Configured {@link Command} ready for `program.addCommand()`.
|
|
21
|
+
* @docLink cli/commands/deploy#make-deploy-command
|
|
22
|
+
*/
|
|
23
|
+
export declare function makeDeployCommand(): Command;
|
|
24
|
+
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/deploy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2NpC;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAkC3C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
/**
|
|
3
|
+
* Creates the `skaile integration` command group (agent integration /
|
|
4
|
+
* workspace-plugin adapter).
|
|
5
|
+
*
|
|
6
|
+
* Manages the skaile workspace integration across coding agent backends
|
|
7
|
+
* (Claude Code, OMP, Codex). Subcommands: `install`, `uninstall`, `enable`,
|
|
8
|
+
* `disable`, `status`. All subcommands accept `--driver` to target a specific
|
|
9
|
+
* backend or `all`.
|
|
10
|
+
*
|
|
11
|
+
* Renamed from `skaile plugin` — that name now belongs to the registry-plugin
|
|
12
|
+
* commands (`@skaile/workspaces/plugin-registry`). The subcommand behaviour
|
|
13
|
+
* here is unchanged.
|
|
14
|
+
*
|
|
15
|
+
* @returns Configured {@link Command} ready for `program.addCommand()`.
|
|
16
|
+
* @docLink cli/commands/integration#make-integration-command
|
|
17
|
+
*/
|
|
18
|
+
export declare function makeIntegrationCommand(): Command;
|
|
19
|
+
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/integration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqSpC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CA+EhD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `skaile plugin` — manage registry plugins (drivers / connectors / deploy
|
|
3
|
+
* targets) declared via `plugins:` in `skaile.yaml`.
|
|
4
|
+
*
|
|
5
|
+
* Not to be confused with `skaile integration` (the coding-agent adapter,
|
|
6
|
+
* formerly `skaile plugin`). This group edits the `plugins:` list, reconciles
|
|
7
|
+
* the project-local plugin store, and lists what each declared plugin
|
|
8
|
+
* contributes to `pluginRegistry`.
|
|
9
|
+
*
|
|
10
|
+
* skaile plugin install <spec> [--project-dir <p>]
|
|
11
|
+
* skaile plugin remove <name> [--project-dir <p>]
|
|
12
|
+
* skaile plugin list [--project-dir <p>]
|
|
13
|
+
*/
|
|
14
|
+
import { Command } from "commander";
|
|
15
|
+
/**
|
|
16
|
+
* Creates the `skaile plugin` command group (registry plugins).
|
|
17
|
+
*
|
|
18
|
+
* @returns Configured {@link Command} ready for `program.addCommand()`.
|
|
19
|
+
* @docLink cli/commands/plugin#make-plugin-command
|
|
20
|
+
*/
|
|
21
|
+
export declare function makePluginCommand(): Command;
|
|
22
|
+
//# sourceMappingURL=plugin-registry-cmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-registry-cmd.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/plugin-registry-cmd.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuHpC;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAyB3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/serve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../../../cli/src/commands/serve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAkD1C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The project-local plugin store: reconcile (`<projectDir>/.skaile/plugins/`)
|
|
3
|
+
* then load the reconciled plugins into the `pluginRegistry`.
|
|
4
|
+
*
|
|
5
|
+
* `ensurePluginsLoaded` is the single entrypoint commands wire in. It is a
|
|
6
|
+
* guarded no-op when `plugins` is empty/undefined — zero overhead for the
|
|
7
|
+
* common case where no project declares `plugins:` in `skaile.yaml`.
|
|
8
|
+
*/
|
|
9
|
+
import { type PluginRegistry } from "@skaile/workspaces/plugin-registry";
|
|
10
|
+
import type { Logger } from "@skaile/workspaces/types";
|
|
11
|
+
import { type LoadResult } from "./load.js";
|
|
12
|
+
import { type ReconcileOptions } from "./reconcile.js";
|
|
13
|
+
export type { LoadOptions, LoadResult } from "./load.js";
|
|
14
|
+
export { loadPlugins } from "./load.js";
|
|
15
|
+
export { lockPath, nodeModulesDir, pluginsDir, pluginsPkgJson, reconcileHashFile, resolvePluginEntry, } from "./paths.js";
|
|
16
|
+
export type { InstallFn, ReconcileOptions, ReconcileResult } from "./reconcile.js";
|
|
17
|
+
export { defaultInstall, reconcilePlugins } from "./reconcile.js";
|
|
18
|
+
export type { PluginSpec } from "./spec.js";
|
|
19
|
+
export { parseSpec, specName } from "./spec.js";
|
|
20
|
+
/** Options for {@link ensurePluginsLoaded}. */
|
|
21
|
+
export interface EnsurePluginsOptions extends ReconcileOptions {
|
|
22
|
+
log?: Logger;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Reconcile the plugin store then load each plugin into `registry`.
|
|
26
|
+
*
|
|
27
|
+
* No-op (returns immediately) when `plugins` is empty/undefined, so the common
|
|
28
|
+
* no-plugins path costs nothing.
|
|
29
|
+
*
|
|
30
|
+
* @param projectDir - Project root.
|
|
31
|
+
* @param plugins - The `skaile.yaml` `plugins:` list (may be undefined).
|
|
32
|
+
* @param registry - Registry to register into. Defaults to `pluginRegistry`.
|
|
33
|
+
* @param opts - Injectable installer / lock slice + optional logger.
|
|
34
|
+
* @returns The load result, or an empty result when there are no plugins.
|
|
35
|
+
*/
|
|
36
|
+
export declare function ensurePluginsLoaded(projectDir: string, plugins: string[] | undefined, registry?: PluginRegistry, opts?: EnsurePluginsOptions): Promise<LoadResult>;
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../cli/src/plugin-store/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,oCAAoC,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,KAAK,UAAU,EAAe,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,KAAK,gBAAgB,EAAoB,MAAM,gBAAgB,CAAC;AAEzE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,QAAQ,EACR,cAAc,EACd,UAAU,EACV,cAAc,EACd,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEhD,+CAA+C;AAC/C,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,mBAAmB,CACvC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,EAC7B,QAAQ,GAAE,cAA+B,EACzC,IAAI,GAAE,oBAAyB,GAC9B,OAAO,CAAC,UAAU,CAAC,CAMrB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime plugin loader: dynamic-import each reconciled plugin and let it
|
|
3
|
+
* self-register into the `pluginRegistry`.
|
|
4
|
+
*
|
|
5
|
+
* Each plugin specifier resolves to an absolute path under the store's
|
|
6
|
+
* `node_modules`; we import it via a `file://` URL so the import works inside
|
|
7
|
+
* `bun --compile` binaries (which bundle only the literal-string switches, but
|
|
8
|
+
* can still execute a `file://` import against the unpacked store on disk).
|
|
9
|
+
* Failures are caught per-plugin so one broken plugin never aborts the rest.
|
|
10
|
+
*/
|
|
11
|
+
import { type PluginRegistry } from "@skaile/workspaces/plugin-registry";
|
|
12
|
+
import type { Logger } from "@skaile/workspaces/types";
|
|
13
|
+
/** Options for {@link loadPlugins}. */
|
|
14
|
+
export interface LoadOptions {
|
|
15
|
+
log?: Logger;
|
|
16
|
+
}
|
|
17
|
+
/** Result of a load pass: which specs registered and which failed. */
|
|
18
|
+
export interface LoadResult {
|
|
19
|
+
loaded: string[];
|
|
20
|
+
failed: {
|
|
21
|
+
spec: string;
|
|
22
|
+
error: string;
|
|
23
|
+
}[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Load and register each plugin in `plugins` into `registry`.
|
|
27
|
+
*
|
|
28
|
+
* @param projectDir - Project root holding `.skaile/plugins/node_modules`.
|
|
29
|
+
* @param plugins - The `skaile.yaml` `plugins:` list (npm specifiers).
|
|
30
|
+
* @param registry - Registry to register into. Defaults to the process-wide `pluginRegistry`.
|
|
31
|
+
* @param opts - Optional logger.
|
|
32
|
+
* @returns Loaded specs + per-plugin failures (never throws).
|
|
33
|
+
*/
|
|
34
|
+
export declare function loadPlugins(projectDir: string, plugins: string[], registry?: PluginRegistry, opts?: LoadOptions): Promise<LoadResult>;
|
|
35
|
+
//# sourceMappingURL=load.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../cli/src/plugin-store/load.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,oCAAoC,CAAC;AACzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAIvD,uCAAuC;AACvC,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,sEAAsE;AACtE,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC3C;AAKD;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EAAE,EACjB,QAAQ,GAAE,cAA+B,EACzC,IAAI,GAAE,WAAgB,GACrB,OAAO,CAAC,UAAU,CAAC,CAsBrB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure path helpers for the project-local plugin store.
|
|
3
|
+
*
|
|
4
|
+
* The store is a self-contained npm workspace owned by the CLI under
|
|
5
|
+
* `<projectDir>/.skaile/plugins/`. Nothing here touches the filesystem.
|
|
6
|
+
*/
|
|
7
|
+
/** `<projectDir>/.skaile/plugins` — the store root. */
|
|
8
|
+
export declare function pluginsDir(projectDir: string): string;
|
|
9
|
+
/** `<store>/package.json` — generated, never user-edited. */
|
|
10
|
+
export declare function pluginsPkgJson(projectDir: string): string;
|
|
11
|
+
/** `<store>/node_modules` — where reconciled plugin packages land. */
|
|
12
|
+
export declare function nodeModulesDir(projectDir: string): string;
|
|
13
|
+
/** `<store>/.reconcile-hash` — SHA of plugins-list + lock slice; skip reinstall when unchanged. */
|
|
14
|
+
export declare function reconcileHashFile(projectDir: string): string;
|
|
15
|
+
/** `<projectDir>/skaile.lock.yaml` — the project lock file. */
|
|
16
|
+
export declare function lockPath(projectDir: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Absolute path to a plugin package's entry directory under the store's
|
|
19
|
+
* `node_modules`. Dynamic `import()` against this absolute path works inside
|
|
20
|
+
* compiled binaries via `pathToFileURL`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolvePluginEntry(projectDir: string, pkgName: string): string;
|
|
23
|
+
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../cli/src/plugin-store/paths.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,uDAAuD;AACvD,wBAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,6DAA6D;AAC7D,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,mGAAmG;AACnG,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,+DAA+D;AAC/D,wBAAgB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAE9E"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reconcile the project-local plugin store (`<projectDir>/.skaile/plugins/`).
|
|
3
|
+
*
|
|
4
|
+
* The reconciler is hash-skipped: it computes a SHA-256 over the sorted plugin
|
|
5
|
+
* list plus the lock file's `plugins` slice and compares it to the stored
|
|
6
|
+
* `.reconcile-hash`. On a match it returns with zero further I/O; otherwise it
|
|
7
|
+
* regenerates the store's `package.json` and runs `bun install` against it.
|
|
8
|
+
*
|
|
9
|
+
* The install step is injectable (`InstallFn`) so tests stay hermetic — they
|
|
10
|
+
* pass a fake installer that records calls and writes a stub `node_modules`.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Installs the store's dependencies. Returns `ok: false` (never throws) on a
|
|
14
|
+
* failed install so the reconciler can surface the captured `output`.
|
|
15
|
+
*/
|
|
16
|
+
export type InstallFn = (pluginsDir: string) => Promise<{
|
|
17
|
+
ok: boolean;
|
|
18
|
+
output: string;
|
|
19
|
+
}>;
|
|
20
|
+
/** Options for {@link reconcilePlugins}. */
|
|
21
|
+
export interface ReconcileOptions {
|
|
22
|
+
/** Injectable installer. Defaults to a real `bun install` of the store. */
|
|
23
|
+
runInstall?: InstallFn;
|
|
24
|
+
/**
|
|
25
|
+
* Lock slice to fold into the reconcile-hash. Defaults to
|
|
26
|
+
* `readPluginsLockSlice(projectDir)` so a lock edit invalidates the hash.
|
|
27
|
+
*/
|
|
28
|
+
lockSlice?: unknown;
|
|
29
|
+
}
|
|
30
|
+
/** Result of a reconcile pass. */
|
|
31
|
+
export interface ReconcileResult {
|
|
32
|
+
changed: boolean;
|
|
33
|
+
reason: "no-plugins" | "up-to-date" | "reconciled";
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The default real installer: `bun install` inside the store directory.
|
|
37
|
+
* Frozen on subsequent runs (a `bun.lock`/`bun.lockb` already exists), and
|
|
38
|
+
* non-frozen on the first run so a lock can be generated.
|
|
39
|
+
*/
|
|
40
|
+
export declare const defaultInstall: InstallFn;
|
|
41
|
+
/**
|
|
42
|
+
* Reconcile the plugin store for a project.
|
|
43
|
+
*
|
|
44
|
+
* @param projectDir - Project root containing `skaile.yaml` / `skaile.lock.yaml`.
|
|
45
|
+
* @param plugins - The `skaile.yaml` `plugins:` list (npm specifiers).
|
|
46
|
+
* @param opts - Optional injectable installer + lock slice override.
|
|
47
|
+
* @returns Whether the store changed and why.
|
|
48
|
+
*/
|
|
49
|
+
export declare function reconcilePlugins(projectDir: string, plugins: string[], opts?: ReconcileOptions): Promise<ReconcileResult>;
|
|
50
|
+
//# sourceMappingURL=reconcile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconcile.d.ts","sourceRoot":"","sources":["../../../../cli/src/plugin-store/reconcile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEzF,4CAA4C;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,2EAA2E;IAC3E,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,kCAAkC;AAClC,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,YAAY,GAAG,YAAY,GAAG,YAAY,CAAC;CACpD;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,SAqB5B,CAAC;AAkBF;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EAAE,EACjB,IAAI,GAAE,gBAAqB,GAC1B,OAAO,CAAC,eAAe,CAAC,CA4B1B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse npm package specifiers from the `plugins:` list into name + range.
|
|
3
|
+
*
|
|
4
|
+
* The leading `@` of a scope is NOT a separator: only the last `@` at a
|
|
5
|
+
* non-zero index splits the package name from its semver range.
|
|
6
|
+
* "@skaile/provider-fly@^0.1.0" → { name: "@skaile/provider-fly", range: "^0.1.0" }
|
|
7
|
+
* "@skaile/connector-redis" → { name: "@skaile/connector-redis", range: "*" }
|
|
8
|
+
* "lodash@^4" → { name: "lodash", range: "^4" }
|
|
9
|
+
*/
|
|
10
|
+
/** A parsed plugin specifier: package name plus a semver range (`"*"` when omitted). */
|
|
11
|
+
export interface PluginSpec {
|
|
12
|
+
name: string;
|
|
13
|
+
range: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Parse a single plugin specifier into `{ name, range }`.
|
|
17
|
+
*
|
|
18
|
+
* @param spec - An npm specifier, e.g. `"@skaile/provider-fly@^0.1.0"` or `"lodash"`.
|
|
19
|
+
* @returns The package name and semver range (range defaults to `"*"`).
|
|
20
|
+
* @throws Error when the specifier is empty.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseSpec(spec: string): PluginSpec;
|
|
23
|
+
/** Convenience: just the package name of a specifier. */
|
|
24
|
+
export declare function specName(spec: string): string;
|
|
25
|
+
//# sourceMappingURL=spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../../../cli/src/plugin-store/spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,wFAAwF;AACxF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAalD;AAED,yDAAyD;AACzD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE7C"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { LegacyAuthGrammarError, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, resolveAuth, resolveAuthRef, resolveBackendAuthFor } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-JKNWJ64A.js';
|
|
4
|
-
import '../chunk-O4JH3KUE.js';
|
|
1
|
+
export { LegacyAuthGrammarError, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, resolveAuth, resolveAuthRef, resolveBackendAuthFor } from '../chunk-GKM6MDUC.js';
|
|
2
|
+
import '../chunk-RENHNO4J.js';
|
|
5
3
|
import '../chunk-K5GBV4SA.js';
|
|
6
4
|
import '../chunk-KLNL7QHN.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-TTY56FQQ.js';
|
|
6
|
+
import '../chunk-TKOLD2O7.js';
|
|
7
|
+
import '../chunk-WIR34WMU.js';
|
|
8
|
+
import '../chunk-X5Y4EGZB.js';
|
|
9
|
+
import '../chunk-JKNWJ64A.js';
|
|
10
|
+
import '../chunk-O4JH3KUE.js';
|
|
11
11
|
import '../chunk-24UIWON4.js';
|
|
12
12
|
import '../chunk-NSBPE2FW.js';
|
|
13
13
|
//# sourceMappingURL=config.js.map
|
package/dist/connectors/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
export { AbstractConnector, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, createFsWatcher, createWorktree, defaultSpawn, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors,
|
|
2
|
-
export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, resolveAuth, resolveAuthRef, resolveBackendAuthFor } from '../chunk-
|
|
1
|
+
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, createFsWatcher, createWorktree, defaultSpawn, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock } from '../chunk-G6GKWGOW.js';
|
|
2
|
+
export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, resolveAuth, resolveAuthRef, resolveBackendAuthFor } from '../chunk-GKM6MDUC.js';
|
|
3
3
|
export { PortPool, RcloneProcessManager, ensureDirMode } from '../chunk-6MB7CRME.js';
|
|
4
4
|
export { renderGoogleDriveConfig, renderOneDriveConfig, renderWebDAVConfig } from '../chunk-QAVZOJCV.js';
|
|
5
|
+
import '../chunk-UZRY5UI2.js';
|
|
5
6
|
import '../chunk-ICS76R4T.js';
|
|
6
7
|
import '../chunk-GZWJGNNN.js';
|
|
7
8
|
import '../chunk-FVTV7M76.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-JKNWJ64A.js';
|
|
10
|
-
import '../chunk-O4JH3KUE.js';
|
|
9
|
+
import '../chunk-RENHNO4J.js';
|
|
11
10
|
import '../chunk-K5GBV4SA.js';
|
|
12
11
|
import '../chunk-KLNL7QHN.js';
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-TTY56FQQ.js';
|
|
13
|
+
import '../chunk-TKOLD2O7.js';
|
|
14
|
+
import '../chunk-WIR34WMU.js';
|
|
15
|
+
import '../chunk-X5Y4EGZB.js';
|
|
16
|
+
import '../chunk-JKNWJ64A.js';
|
|
17
|
+
import '../chunk-O4JH3KUE.js';
|
|
17
18
|
import '../chunk-24UIWON4.js';
|
|
18
19
|
import '../chunk-NSBPE2FW.js';
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-manager.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAU,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"connector-manager.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAU,MAAM,0BAA0B,CAAC;AAI7E,OAAO,KAAK,EAEV,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EAEpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,EAEd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACjG,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,UAAU,EACV,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,EAAE,CAAC;IAmBzF;;;;;OAKG;IACG,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;IA4B9F;;;OAGG;IACH,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,mBAAmB,EAAE;IAOhD;;;OAGG;IACH,UAAU,IAAI,sBAAsB,EAAE;IAStC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,UAAO,GAAG,MAAM;CAUlD"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Connector registry.
|
|
3
3
|
*
|
|
4
|
-
* Built-in connectors from `@skaile/workspaces/base-assets` are
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Built-in connectors from `@skaile/workspaces/base-assets` are registered here
|
|
5
|
+
* via static ESM imports of their subpath exports so they are bundled into any
|
|
6
|
+
* `bun --compile`'d agent binary AND any tsup-emitted ESM tarball. Each built-in
|
|
7
|
+
* factory is wrapped in a `ConnectorTarget` and registered into the unified
|
|
8
|
+
* `pluginRegistry` (`@skaile/workspaces/plugin-registry`). The public read
|
|
9
|
+
* helpers (`getConnector` / `tryGetConnector` / `listConnectors`) are thin
|
|
10
|
+
* kind-typed wrappers over that registry.
|
|
11
|
+
*
|
|
12
|
+
* The catalog path in `ConnectorManager.resolveConnector`
|
|
8
13
|
* (`await import(connectorPath)` of raw TS) is a dev-only fallback for
|
|
9
14
|
* project-local third-party connectors — it cannot work inside a compiled
|
|
10
15
|
* binary because bun cannot share its bundled symbol graph with
|
|
@@ -17,16 +22,38 @@
|
|
|
17
22
|
* static analysis and silently drops the module from the binary.
|
|
18
23
|
* Regression test: `tests/connector-tools-regression.test.ts`.
|
|
19
24
|
*/
|
|
20
|
-
import
|
|
25
|
+
import { type PluginRegistry } from "@skaile/workspaces/plugin-registry";
|
|
26
|
+
import type { Connector } from "./connector-types.js";
|
|
21
27
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
28
|
+
* Static metadata for every built-in connector — pure data, no imports.
|
|
29
|
+
*
|
|
30
|
+
* Mirrors the ids registered by {@link registerBuiltinConnectors}; selection UIs
|
|
31
|
+
* use it to enumerate the built-in set without loading any connector module
|
|
32
|
+
* (parity with `BUILTIN_DRIVER_CATALOG`).
|
|
33
|
+
*
|
|
34
|
+
* @docLink packages/connectors/api-reference#builtin-connector-catalog
|
|
26
35
|
*/
|
|
27
|
-
export declare
|
|
36
|
+
export declare const BUILTIN_CONNECTOR_CATALOG: readonly {
|
|
37
|
+
id: string;
|
|
38
|
+
displayName: string;
|
|
39
|
+
}[];
|
|
28
40
|
/**
|
|
29
|
-
*
|
|
41
|
+
* Register every built-in connector into the plugin registry.
|
|
42
|
+
*
|
|
43
|
+
* **Static import discipline.** Every subpath specifier in this file must be a
|
|
44
|
+
* string-literal `from "@skaile/workspaces/base-assets/connectors/<name>"` —
|
|
45
|
+
* never aliased through a variable. Indirection defeats `bun --compile`'s
|
|
46
|
+
* static analysis and silently drops the module from the binary.
|
|
47
|
+
*
|
|
48
|
+
* Idempotent: guarded by a module flag so a second call is a no-op (a duplicate
|
|
49
|
+
* `register` would otherwise throw `RegistrationError`).
|
|
50
|
+
*
|
|
51
|
+
* @docLink packages/connectors/api-reference#register-builtin-connectors
|
|
52
|
+
*/
|
|
53
|
+
export declare function registerBuiltinConnectors(registry?: PluginRegistry): void;
|
|
54
|
+
/**
|
|
55
|
+
* Get a connector by name, calling its target's factory to produce a fresh
|
|
56
|
+
* instance. Ensures the built-ins are registered first (cheap, idempotent).
|
|
30
57
|
* @param name - Connector key (e.g. `"postgres"`).
|
|
31
58
|
* @returns A fresh `Connector` instance.
|
|
32
59
|
* @throws {Error} when no connector is registered under `name`.
|
|
@@ -34,25 +61,18 @@ export declare function registerConnector(name: string, factory: ConnectorFactor
|
|
|
34
61
|
*/
|
|
35
62
|
export declare function getConnector(name: string): Connector;
|
|
36
63
|
/**
|
|
37
|
-
* Get a connector by name, or return `undefined` if not registered.
|
|
64
|
+
* Get a connector by name, or return `undefined` if not registered. Ensures the
|
|
65
|
+
* built-ins are registered first (cheap, idempotent).
|
|
38
66
|
* @param name - Connector key.
|
|
39
67
|
* @returns A fresh `Connector` instance or `undefined`.
|
|
40
68
|
* @docLink packages/connectors/api-reference#try-get-connector
|
|
41
69
|
*/
|
|
42
70
|
export declare function tryGetConnector(name: string): Connector | undefined;
|
|
43
71
|
/**
|
|
44
|
-
* Return the names of all currently registered connectors.
|
|
72
|
+
* Return the names of all currently registered connectors. Ensures the built-ins
|
|
73
|
+
* are registered first (cheap, idempotent).
|
|
45
74
|
* @returns Array of connector keys.
|
|
46
75
|
* @docLink packages/connectors/api-reference#list-connectors
|
|
47
76
|
*/
|
|
48
77
|
export declare function listConnectors(): string[];
|
|
49
|
-
/**
|
|
50
|
-
* Register every built-in connector.
|
|
51
|
-
*
|
|
52
|
-
* **Static import discipline.** Every subpath specifier in this file must be a
|
|
53
|
-
* string-literal `from "@skaile/workspaces/base-assets/connectors/<name>"` —
|
|
54
|
-
* never aliased through a variable. Indirection defeats `bun --compile`'s
|
|
55
|
-
* static analysis and silently drops the module from the binary.
|
|
56
|
-
*/
|
|
57
|
-
export declare function registerBuiltinConnectors(): void;
|
|
58
78
|
//# sourceMappingURL=connector-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-registry.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-registry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"connector-registry.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,sBAAsB,CAAC;AA+BxE;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,EAoBnF,CAAC;AAqBF;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,GAAE,cAA+B,GAAG,IAAI,CAuCzF;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAWpD;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAGnE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAGzC"}
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
* buildSdkConnectorTools — Claude SDK tool injection
|
|
7
7
|
* buildConnectorPromptSection — system prompt generation
|
|
8
8
|
* loadConnectorDeclarations — config from skaile.yaml `connectors:`
|
|
9
|
-
*
|
|
10
|
-
* registerBuiltinConnectors — register all built-in connectors
|
|
9
|
+
* registerBuiltinConnectors — register all built-in connectors into pluginRegistry
|
|
11
10
|
*
|
|
12
11
|
* A `Connector` exposes up to two faces: a `ToolFace` (agents access it
|
|
13
12
|
* through injected tools) and/or a `FilesystemFace` (the connector projects
|
|
@@ -22,7 +21,7 @@ export type { ConnectorManagerOptions, SyncConnectorResult } from "./connector-m
|
|
|
22
21
|
export { ConnectorManager } from "./connector-manager.js";
|
|
23
22
|
export type { ConnectorPromptOptions, ConnectorToolOptions } from "./connector-prompt.js";
|
|
24
23
|
export { buildConnectorPromptSection, buildSdkConnectorTools, } from "./connector-prompt.js";
|
|
25
|
-
export { getConnector, listConnectors, registerBuiltinConnectors,
|
|
24
|
+
export { BUILTIN_CONNECTOR_CATALOG, getConnector, listConnectors, registerBuiltinConnectors, tryGetConnector, } from "./connector-registry.js";
|
|
26
25
|
export type { ConnectContext, Connector, ConnectorChangeEvent, ConnectorDeclaration, ConnectorFactory, ConnectorFieldSpec, ConnectorHandle, ConnectorInfo, ConnectorReport, ConnectorStartupReport, FieldType, FilesystemFace, OperationDescriptor, RuntimeSkillDescriptor, TokenMediator, TokenMediatorResult, ToolFace, } from "./connector-types.js";
|
|
27
26
|
export { ConnectorFieldMissingError, ConnectorStartupError } from "./connector-types.js";
|
|
28
27
|
export { ensureDirMode } from "./fs-utils.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../connectors/src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../connectors/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EACV,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAC7E,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACtB,yBAAyB,EACzB,WAAW,EACX,cAAc,EACd,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,yBAAyB,EACzB,YAAY,EACZ,cAAc,EACd,yBAAyB,EACz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C;AAClC,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,YAAY,EACV,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,2BAA2B,EAC3B,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,aAAa,EACb,YAAY,EACZ,WAAW,EACX,UAAU,EACV,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../connectors-shared/src/schemas.ts"],"names":[],"mappings":";;;AAYO,IAAM,SAAA,GAAc,CAAA,CAAA,MAAA,EAAO,CAAE,GAAA","file":"index.js","sourcesContent":["/**\n * Identity-shared zod schemas for connector authors.\n *\n * Kept deliberately minimal so extracted connector packages validate URLs the\n * same way the built-ins do, without each redefining the rule.\n */\n\n// Namespace import — the repo convention so bun --compile statically bundles\n// zod and the binding survives under Bun (see core/bridge zod notes).\nimport * as z from \"zod\";\n\n/** Validates a URL string (any scheme accepted by the URL constructor). */\nexport const urlSchema = z.string().url();\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@skaile/workspaces/connectors-shared` — the minimum-viable public API that
|
|
3
|
+
* extracted connector packages depend on.
|
|
4
|
+
*
|
|
5
|
+
* Ships exactly: `Connector`, `ConnectorFactory`, `ConnectorCapability`,
|
|
6
|
+
* `urlSchema`. Stability contract — adding members is non-breaking; removing or
|
|
7
|
+
* renaming is a major bump.
|
|
8
|
+
*/
|
|
9
|
+
export type { Connector, ConnectorCapability, ConnectorFactory } from "./types.js";
|
|
10
|
+
export { urlSchema } from "./schemas.js";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../connectors-shared/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,SAAS,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Identity-shared zod schemas for connector authors.
|
|
3
|
+
*
|
|
4
|
+
* Kept deliberately minimal so extracted connector packages validate URLs the
|
|
5
|
+
* same way the built-ins do, without each redefining the rule.
|
|
6
|
+
*/
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
/** Validates a URL string (any scheme accepted by the URL constructor). */
|
|
9
|
+
export declare const urlSchema: z.ZodString;
|
|
10
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../connectors-shared/src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,2EAA2E;AAC3E,eAAO,MAAM,SAAS,aAAmB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Connector type re-exports for the public `connectors-shared` subpath.
|
|
3
|
+
*
|
|
4
|
+
* `Connector` / `ConnectorFactory` are re-exported from the connectors package
|
|
5
|
+
* (single source of truth — never redefined here). `ConnectorCapability` is the
|
|
6
|
+
* one new type: the two faces a connector can expose.
|
|
7
|
+
*/
|
|
8
|
+
export type { Connector, ConnectorFactory } from "../../connectors/src/connector-types.js";
|
|
9
|
+
/** The two faces a connector may expose: a filesystem mount and/or agent tools. */
|
|
10
|
+
export type ConnectorCapability = "filesystem" | "tools";
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../connectors-shared/src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAE3F,mFAAmF;AACnF,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,OAAO,CAAC"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { ALL_PROVIDERS, SETTINGS_DEFAULTS, WorkspaceYamlEditor, applyPatch, buildLockFile, computeHash, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, resolveAllKeys, resolveApiKey, resolveSettings, savePatch, saveSettings, verifyLock, walkForSettings, writeLock } from '../chunk-
|
|
2
|
-
export { deployedBase, deployedDir, isDeployed } from '../chunk-JKNWJ64A.js';
|
|
3
|
-
export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-O4JH3KUE.js';
|
|
1
|
+
export { ALL_PROVIDERS, SETTINGS_DEFAULTS, WorkspaceYamlEditor, applyPatch, buildLockFile, computeHash, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, readPluginsLockSlice, resolveAllKeys, resolveApiKey, resolveSettings, savePatch, saveSettings, verifyLock, walkForSettings, writeLock, writePluginsLockSlice } from '../chunk-RENHNO4J.js';
|
|
4
2
|
export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
|
|
5
3
|
export { detectAiResources, detectDomains, detectMonorepoRoot } from '../chunk-KLNL7QHN.js';
|
|
6
|
-
export { BASE_ASSETS_REPO_NAME, resolveBaseAssetsRoot, resolveRuntimeAssets } from '../chunk-
|
|
7
|
-
export { COMPACTION_DEFAULTS, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, checkRepoStatus, checkoutPin, cloneRepo, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, mergeSkWorkspaceConfigs, pullRepo, readLinks, resolveAgentDir, resolveAll, resolveAsset, resolveSkWorkspaceConfig, saveSkWorkspaceConfig, scanRepo, unlinkRepo, validateAssetRecipeAttr, workspaceConfigFilename, writeLinks } from '../chunk-
|
|
8
|
-
export { fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-
|
|
9
|
-
export { ASSET_KINDS, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, parseAssetRef, parseDep, repositoryFromRaw, repositoryToRaw } from '../chunk-
|
|
4
|
+
export { BASE_ASSETS_REPO_NAME, resolveBaseAssetsRoot, resolveRuntimeAssets } from '../chunk-TTY56FQQ.js';
|
|
5
|
+
export { COMPACTION_DEFAULTS, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, checkRepoStatus, checkoutPin, cloneRepo, decodeSkaileYaml, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, mergeSkWorkspaceConfigs, normalizeConfig, pullRepo, readLinks, resolveAgentDir, resolveAll, resolveAsset, resolveSkWorkspaceConfig, saveSkWorkspaceConfig, scanRepo, unlinkRepo, validateAssetRecipeAttr, workspaceConfigFilename, writeLinks } from '../chunk-TKOLD2O7.js';
|
|
6
|
+
export { fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-WIR34WMU.js';
|
|
7
|
+
export { ASSET_KINDS, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, parseAssetRef, parseDep, repositoryFromRaw, repositoryToRaw } from '../chunk-X5Y4EGZB.js';
|
|
8
|
+
export { deployedBase, deployedDir, isDeployed } from '../chunk-JKNWJ64A.js';
|
|
9
|
+
export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS } from '../chunk-O4JH3KUE.js';
|
|
10
10
|
export { LogStore, LogStoreDisabledError, NoOpSink, OnLogBridgeSink, SqliteSink, StdoutSink, WsLogSink, createLogStoreFromConfig, createLogger, getLogStore, normalizeError, openSqlite, registerLogStore, resetLogStore, resolveLogStoreConfig, sanitizeData } from '../chunk-24UIWON4.js';
|
|
11
11
|
import '../chunk-NSBPE2FW.js';
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
package/dist/core/manifest.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromKnowledgeYaml, fromMcpServerMd, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromKnowledgeYaml, fromMcpServerMd, fromPromptMd, fromSkillMd, parseFrontmatter, parseRequires, scanDirectory, walkDir } from '../chunk-WIR34WMU.js';
|
|
2
|
+
import '../chunk-X5Y4EGZB.js';
|
|
3
3
|
import '../chunk-NSBPE2FW.js';
|
|
4
4
|
//# sourceMappingURL=manifest.js.map
|
|
5
5
|
//# sourceMappingURL=manifest.js.map
|
package/dist/core/models.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ASSET_KINDS, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, parseAssetRef, parseDep, repositoryFromRaw, repositoryToRaw } from '../chunk-
|
|
1
|
+
export { ASSET_KINDS, INDIVIDUAL_KINDS, assetRefToDep, assetRefToStr, depToStr, entryFromRaw, entryToRaw, parseAssetRef, parseDep, repositoryFromRaw, repositoryToRaw } from '../chunk-X5Y4EGZB.js';
|
|
2
2
|
import '../chunk-NSBPE2FW.js';
|
|
3
3
|
//# sourceMappingURL=models.js.map
|
|
4
4
|
//# sourceMappingURL=models.js.map
|