@skaile/workspaces 5.0.0 → 5.1.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 +14 -0
- package/dist/{asset-feeds-HIWT4DVT.js → asset-feeds-TU5CS6QL.js} +10 -17
- package/dist/asset-feeds-TU5CS6QL.js.map +1 -0
- package/dist/asset-manager/catalog-deployer.js +5 -5
- package/dist/asset-manager/index.js +8 -8
- package/dist/asset-manager/installer.js +6 -6
- package/dist/asset-manager/src/index.d.ts +2 -1
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/bridge/drivers/claude-sdk.js +7 -7
- package/dist/bridge/drivers/codex.js +7 -7
- package/dist/bridge/drivers/continue.js +8 -8
- package/dist/bridge/drivers/echo.js +1 -1
- package/dist/bridge/drivers/gemini.js +5 -5
- package/dist/bridge/drivers/goose.js +8 -8
- package/dist/bridge/drivers/omp.js +2 -2
- package/dist/bridge/drivers/opencode.js +8 -8
- package/dist/bridge/drivers/qwen.js +5 -5
- package/dist/bridge/index.js +8 -8
- package/dist/{chunk-WOJ4AK3Q.js → chunk-2Y6DSR36.js} +5 -4
- package/dist/chunk-2Y6DSR36.js.map +1 -0
- package/dist/{chunk-I7Z4FN52.js → chunk-3KSAFYD4.js} +9 -5
- package/dist/chunk-3KSAFYD4.js.map +1 -0
- package/dist/{chunk-32DMH2GD.js → chunk-3NGPZC44.js} +10 -10
- package/dist/chunk-3NGPZC44.js.map +1 -0
- package/dist/{chunk-YOWFUJO7.js → chunk-55RMUF4G.js} +20 -15
- package/dist/chunk-55RMUF4G.js.map +1 -0
- package/dist/{chunk-LHFZTVIM.js → chunk-6LDUA57J.js} +9 -9
- package/dist/chunk-6LDUA57J.js.map +1 -0
- package/dist/{chunk-7QMRP6BC.js → chunk-AGWYBS2E.js} +6 -6
- package/dist/{chunk-7QMRP6BC.js.map → chunk-AGWYBS2E.js.map} +1 -1
- package/dist/{chunk-35G4M33T.js → chunk-AOMWF2OE.js} +4 -4
- package/dist/chunk-AOMWF2OE.js.map +1 -0
- package/dist/{chunk-RSHMAEK3.js → chunk-AYNPGPT5.js} +5 -5
- package/dist/{chunk-RSHMAEK3.js.map → chunk-AYNPGPT5.js.map} +1 -1
- package/dist/{chunk-CFL5IJHV.js → chunk-CI6FQ654.js} +3 -3
- package/dist/{chunk-CFL5IJHV.js.map → chunk-CI6FQ654.js.map} +1 -1
- package/dist/{chunk-MX7IRKTO.js → chunk-E3ZACBHD.js} +13 -16
- package/dist/chunk-E3ZACBHD.js.map +1 -0
- package/dist/{chunk-HD5K3BYW.js → chunk-E67J56FJ.js} +3 -3
- package/dist/{chunk-HD5K3BYW.js.map → chunk-E67J56FJ.js.map} +1 -1
- package/dist/{chunk-JFVEX4G5.js → chunk-EPHQWHOH.js} +6 -6
- package/dist/{chunk-JFVEX4G5.js.map → chunk-EPHQWHOH.js.map} +1 -1
- package/dist/chunk-F7JHP7JV.js +122 -0
- package/dist/chunk-F7JHP7JV.js.map +1 -0
- package/dist/{chunk-TVYLXZTT.js → chunk-G47EV3V6.js} +2 -2
- package/dist/{chunk-TVYLXZTT.js.map → chunk-G47EV3V6.js.map} +1 -1
- package/dist/{chunk-GFPG27HK.js → chunk-G4T7MYTA.js} +6 -6
- package/dist/{chunk-GFPG27HK.js.map → chunk-G4T7MYTA.js.map} +1 -1
- package/dist/{chunk-MBVNMPG7.js → chunk-IWCCZL7C.js} +17 -11
- package/dist/chunk-IWCCZL7C.js.map +1 -0
- package/dist/{chunk-I3ITSUWS.js → chunk-IYIIT4R3.js} +5 -5
- package/dist/{chunk-I3ITSUWS.js.map → chunk-IYIIT4R3.js.map} +1 -1
- package/dist/{chunk-XWLEXD34.js → chunk-KAYH6AXN.js} +3 -3
- package/dist/{chunk-XWLEXD34.js.map → chunk-KAYH6AXN.js.map} +1 -1
- package/dist/{chunk-HWE3FXF4.js → chunk-MXXKTQXJ.js} +3 -3
- package/dist/{chunk-HWE3FXF4.js.map → chunk-MXXKTQXJ.js.map} +1 -1
- package/dist/{chunk-IGXKUCLI.js → chunk-P5UQ56RA.js} +3 -3
- package/dist/{chunk-IGXKUCLI.js.map → chunk-P5UQ56RA.js.map} +1 -1
- package/dist/{chunk-53WMBXSL.js → chunk-QFZFZXQW.js} +118 -21
- package/dist/chunk-QFZFZXQW.js.map +1 -0
- package/dist/{chunk-RP4B4HVX.js → chunk-RDTHJSGY.js} +2 -2
- package/dist/{chunk-RP4B4HVX.js.map → chunk-RDTHJSGY.js.map} +1 -1
- package/dist/{chunk-PV4OBVA3.js → chunk-RNNUYFFD.js} +2 -2
- package/dist/{chunk-PV4OBVA3.js.map → chunk-RNNUYFFD.js.map} +1 -1
- package/dist/{chunk-X7MHVL4R.js → chunk-SP47UJKE.js} +28 -16
- package/dist/{chunk-X7MHVL4R.js.map → chunk-SP47UJKE.js.map} +1 -1
- package/dist/{chunk-EB4ZTESQ.js → chunk-TOSHZX4C.js} +8 -3
- package/dist/chunk-TOSHZX4C.js.map +1 -0
- package/dist/{chunk-KAJH3XPW.js → chunk-U6K3I3AX.js} +3 -3
- package/dist/{chunk-KAJH3XPW.js.map → chunk-U6K3I3AX.js.map} +1 -1
- package/dist/{chunk-22DN3DB2.js → chunk-UMSWQKCY.js} +3 -3
- package/dist/{chunk-22DN3DB2.js.map → chunk-UMSWQKCY.js.map} +1 -1
- package/dist/{chunk-H5G3OYY6.js → chunk-WKIOWDLQ.js} +3 -3
- package/dist/{chunk-H5G3OYY6.js.map → chunk-WKIOWDLQ.js.map} +1 -1
- package/dist/{chunk-ODT7HSLI.js → chunk-X6E7Y4JD.js} +10 -9
- package/dist/chunk-X6E7Y4JD.js.map +1 -0
- package/dist/chunk-XUQBVK4R.js +15 -0
- package/dist/chunk-XUQBVK4R.js.map +1 -0
- package/dist/{chunk-CGJ7B6MZ.js → chunk-YDJZRLGN.js} +3 -3
- package/dist/{chunk-CGJ7B6MZ.js.map → chunk-YDJZRLGN.js.map} +1 -1
- package/dist/{chunk-KREXWKVX.js → chunk-YIVB7GIP.js} +3 -3
- package/dist/{chunk-KREXWKVX.js.map → chunk-YIVB7GIP.js.map} +1 -1
- package/dist/{chunk-HTBGJCKP.js → chunk-YMOZC2D3.js} +4 -4
- package/dist/{chunk-HTBGJCKP.js.map → chunk-YMOZC2D3.js.map} +1 -1
- package/dist/cli/index.js +460 -479
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/asset-feeds.d.ts.map +1 -1
- package/dist/cli/src/commands/catalog.d.ts.map +1 -1
- package/dist/cli/src/commands/flow.d.ts +5 -5
- package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/library-publish.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/cli/src/commands/publish-core.d.ts +10 -0
- package/dist/cli/src/commands/publish-core.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 +17 -0
- package/dist/cli/src/commands/skailify-lib.d.ts.map +1 -1
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/flow-discovery.d.ts +44 -1
- package/dist/cli/src/flow-discovery.d.ts.map +1 -1
- package/dist/cli/src/helpers.d.ts +6 -0
- package/dist/cli/src/helpers.d.ts.map +1 -1
- package/dist/cli/src/open-library.d.ts +11 -0
- package/dist/cli/src/open-library.d.ts.map +1 -1
- package/dist/connectors/config.js +3 -3
- package/dist/connectors/index.js +11 -11
- package/dist/connectors/src/connector-manager.d.ts +53 -3
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/connector-prompt.d.ts +16 -2
- package/dist/connectors/src/connector-prompt.d.ts.map +1 -1
- package/dist/connectors/src/fleet-utils.d.ts +3 -4
- package/dist/connectors/src/fleet-utils.d.ts.map +1 -1
- package/dist/connectors/src/index.d.ts +3 -3
- package/dist/connectors/src/index.d.ts.map +1 -1
- package/dist/connectors-VX7YRFFS.js +45 -0
- package/dist/{connectors-T57XL7EA.js.map → connectors-VX7YRFFS.js.map} +1 -1
- package/dist/core/driver-targets.js +1 -1
- package/dist/core/index.js +5 -5
- package/dist/core/runtime-assets.js +3 -3
- package/dist/core/src/driver-targets.d.ts +10 -0
- package/dist/core/src/driver-targets.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +2 -2
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/settings.d.ts +13 -0
- package/dist/core/src/settings.d.ts.map +1 -1
- package/dist/core/store.js +2 -2
- package/dist/core/workspace-config.js +2 -2
- package/dist/deploy/index.js +5 -5
- package/dist/{ensure-sources-G4FXTJDB.js → ensure-sources-2XQS32WI.js} +11 -11
- package/dist/{ensure-sources-G4FXTJDB.js.map → ensure-sources-2XQS32WI.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +11 -11
- package/dist/factory-assets/connectors/deploy.js +11 -11
- package/dist/factory-assets/connectors/devserver.js +11 -11
- package/dist/factory-assets/connectors/flow/adapter.js +11 -11
- package/dist/factory-assets/connectors/flow/engine.js +6 -6
- package/dist/factory-assets/connectors/flow/run-flow.js +12 -12
- package/dist/factory-assets/connectors/flow.js +11 -11
- package/dist/factory-assets/connectors/git.js +11 -11
- package/dist/factory-assets/connectors/gmail.js +11 -11
- package/dist/factory-assets/connectors/googledrive.js +11 -11
- package/dist/factory-assets/connectors/local.js +11 -11
- package/dist/factory-assets/connectors/mattermost.js +11 -11
- package/dist/factory-assets/connectors/memory.js +11 -11
- package/dist/factory-assets/connectors/minio.js +11 -11
- package/dist/factory-assets/connectors/postgres.js +11 -11
- package/dist/factory-assets/connectors/s3.js +11 -11
- package/dist/factory-assets/connectors/sharepoint.js +11 -11
- package/dist/factory-assets/connectors/sqlite.js +11 -11
- package/dist/factory-assets/connectors/static-server.js +11 -11
- package/dist/factory-assets/connectors/tunnel.js +11 -11
- package/dist/factory-assets/connectors/webdav.js +11 -11
- package/dist/factory-assets/connectors/xstate-store.js +11 -11
- package/dist/factory-assets/connectors/xstate.js +11 -11
- package/dist/{flows-7E2GVW5L.js → flows-SVCCADGE.js} +8 -8
- package/dist/{flows-7E2GVW5L.js.map → flows-SVCCADGE.js.map} +1 -1
- package/dist/{helpers-EVPKJXGS.js → helpers-IELQGVGB.js} +11 -11
- package/dist/{helpers-EVPKJXGS.js.map → helpers-IELQGVGB.js.map} +1 -1
- package/dist/library/index.js +6 -6
- package/dist/library/src/local/local-catalog-source.d.ts +14 -1
- package/dist/library/src/local/local-catalog-source.d.ts.map +1 -1
- package/dist/{library-publish-SBEWWTPM.js → library-publish-TCFU3X5L.js} +27 -15
- package/dist/library-publish-TCFU3X5L.js.map +1 -0
- package/dist/{open-library-UAZIGZUQ.js → open-library-SSBN4FX2.js} +14 -13
- package/dist/{open-library-UAZIGZUQ.js.map → open-library-SSBN4FX2.js.map} +1 -1
- package/dist/open-registry-CHCWKV5W.js +32 -0
- package/dist/open-registry-CHCWKV5W.js.map +1 -0
- package/dist/{paths-U7TA7MTE.js → paths-MKSI52PF.js} +8 -8
- package/dist/{paths-U7TA7MTE.js.map → paths-MKSI52PF.js.map} +1 -1
- package/dist/{plugin-store-TT45MGQZ.js → plugin-store-SVYV7L4C.js} +7 -7
- package/dist/{plugin-store-TT45MGQZ.js.map → plugin-store-SVYV7L4C.js.map} +1 -1
- package/dist/{project-JLD5RCVK.js → project-PJ37PM6N.js} +12 -12
- package/dist/{project-JLD5RCVK.js.map → project-PJ37PM6N.js.map} +1 -1
- package/dist/resolver/index.js +5 -5
- package/dist/runner/index.js +17 -17
- package/dist/runner/src/fleet-health-flag-dispatcher.d.ts +14 -11
- package/dist/runner/src/fleet-health-flag-dispatcher.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +8 -8
- package/dist/sdk/bridge.js +8 -8
- package/dist/sdk/core.js +5 -5
- package/dist/sdk/flow.js +6 -6
- package/dist/sdk/index.js +17 -17
- package/dist/sdk/resolver.js +5 -5
- package/dist/sdk/runner.js +17 -17
- package/dist/{setup-PGZM4SOO.js → setup-JW2ZGCUG.js} +15 -15
- package/dist/{setup-PGZM4SOO.js.map → setup-JW2ZGCUG.js.map} +1 -1
- package/dist/{skills-7QVYPIXI.js → skills-7K2YO3KN.js} +7 -7
- package/dist/{skills-7QVYPIXI.js.map → skills-7K2YO3KN.js.map} +1 -1
- package/dist/{source-SDZYXVVV.js → source-F2VO32W6.js} +15 -14
- package/dist/{source-SDZYXVVV.js.map → source-F2VO32W6.js.map} +1 -1
- package/dist/{source-manifest-publish-UDLTYV6Y.js → source-manifest-publish-AXNII2J4.js} +17 -16
- package/dist/source-manifest-publish-AXNII2J4.js.map +1 -0
- package/dist/tui/index.js +17 -17
- package/dist/workspace-plugin/adapters/mcp.js +29 -8
- package/dist/workspace-plugin/adapters/omp.js +15 -15
- package/dist/workspace-plugin/adapters/omp.js.map +1 -1
- package/dist/workspace-plugin/index.js +1 -1
- package/dist/workspace-plugin/src/tools/connectors.d.ts +1 -1
- package/dist/workspace-plugin/src/tools/connectors.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/asset-feeds-HIWT4DVT.js.map +0 -1
- package/dist/chunk-32DMH2GD.js.map +0 -1
- package/dist/chunk-35G4M33T.js.map +0 -1
- package/dist/chunk-53WMBXSL.js.map +0 -1
- package/dist/chunk-EB4ZTESQ.js.map +0 -1
- package/dist/chunk-I7Z4FN52.js.map +0 -1
- package/dist/chunk-LHFZTVIM.js.map +0 -1
- package/dist/chunk-MBVNMPG7.js.map +0 -1
- package/dist/chunk-MX7IRKTO.js.map +0 -1
- package/dist/chunk-ODT7HSLI.js.map +0 -1
- package/dist/chunk-WOJ4AK3Q.js.map +0 -1
- package/dist/chunk-YOWFUJO7.js.map +0 -1
- package/dist/connectors-T57XL7EA.js +0 -5
- package/dist/library-publish-SBEWWTPM.js.map +0 -1
- package/dist/source-manifest-publish-UDLTYV6Y.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#997](https://github.com/skaile-ai/workspaces/pull/997) [`cf877b2`](https://github.com/skaile-ai/workspaces/commit/cf877b2e9ae6e9a657e6434c4b07f6298562cc1e) Thanks [@Frozen666](https://github.com/Frozen666)! - `connector_list` now reports each host fleet mount's health, so an agent can see a mount that died mid-session and tell the user instead of writing into it. Each fleet mount in `connected` carries `health: { status: "ok" | "stale" | "failed", errorClass?, detail?, checkedAt }`, built from the in-container liveness probe and the host's verdict in `.skaile/fleet-health/<id>` (which `reportFleetHealth` now records instead of dropping). When a mount is not ok the result adds a one-line `notice`: "Tell the user; do not write to it." The `## Mounts` prompt section gets one line telling the agent when to check. Report-only: nothing blocks writes. New: `ConnectorManager.checkMountHealth`, `listConnectorsWithHealth`, `isFleetManagedMount`, `clearFleetHealth`, `buildConnectorListPayload`, and the `MountHealth` types.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#995](https://github.com/skaile-ai/workspaces/pull/995) [`4aa174f`](https://github.com/skaile-ai/workspaces/commit/4aa174fdcb0b2fc4fb18adba20b8639a14e74713) Thanks [@mortegro](https://github.com/mortegro)! - `skaile add`, `install`, `update`, `remove`, `list` and `clean` now deploy into the harness the project is configured for. Before, a project created with `skaile init --harness codex` (or `--harness omp`) got every asset in `.claude/skills/`, although `skaile config show` reported `.codex/skills` (or `.omp/skills`) and the harness never reads `.claude/`; `list` showed the asset as `installed` because it looked in the same wrong place. Now the default target is the `driver` from `skaile.yaml` / `.skaile/settings.json` — the one `skaile config show` resolves — so `add` writes `.codex/skills/<name>/SKILL.md` (or `.omp/skills/…`), and `install --locked` and `remove` use the same directory. A project that configures no driver still uses `.claude/`, and an explicit `--target <agent>` still wins.
|
|
12
|
+
|
|
13
|
+
- [#995](https://github.com/skaile-ai/workspaces/pull/995) [`4aa174f`](https://github.com/skaile-ai/workspaces/commit/4aa174fdcb0b2fc4fb18adba20b8639a14e74713) Thanks [@mortegro](https://github.com/mortegro)! - `skaile flow list` and `flow show` now find the flows in your local libraries. Before, a flow made with `skaile library create flow <name>` (or `… --dir <dir>`) was found by `skaile search flow --local`, but `skaile flow list` printed `No flows found.` until you ran `skaile add`: `flow list` only looked inside `flows/` directories, while `library create` writes the flow to `<library>/<name>/` or `<library>/<dir>/<name>/`. Now `flow list`, `flow show` and `skaile run <flow-id>` also read every registered local library with the same scan `skaile library index` uses, so a new flow shows up straight away. An installed copy in `.skaile/flows/` still wins over the library original, so a flow added to a project is listed once. Resuming a run, sub-flow targets and `skaile serve` still need the flow added first.
|
|
14
|
+
|
|
15
|
+
- [#995](https://github.com/skaile-ai/workspaces/pull/995) [`4aa174f`](https://github.com/skaile-ai/workspaces/commit/4aa174fdcb0b2fc4fb18adba20b8639a14e74713) Thanks [@mortegro](https://github.com/mortegro)! - Libraries: deleting an asset's directory no longer leaves a ghost in `skaile.manifest.yaml`. Before, the entry stayed, `skaile validate` still passed and `skaile library publish --dry-run` still planned to publish it. Now `skaile library index <lib>` removes manifest entries whose `root` directory is gone and prints one `Removed manifest entry <ref> (root <dir> is gone)` line per entry (a root that exists but is malformed is kept and warned about, as before). `skaile library publish` / `register` (also `--dry-run`) refuse with exit 1 while the manifest lists a missing root, naming it and pointing at `skaile library index <lib>`. `skaile validate` on a library fails for such an entry, naming the entry and the fix.
|
|
16
|
+
|
|
3
17
|
## 5.0.0
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import './chunk-
|
|
1
|
+
import './chunk-IWCCZL7C.js';
|
|
2
2
|
import './chunk-4GY63JU6.js';
|
|
3
|
-
import { factoryAssetRoots } from './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import { factoryAssetRoots } from './chunk-YDJZRLGN.js';
|
|
4
|
+
import './chunk-U6K3I3AX.js';
|
|
5
5
|
import './chunk-K5GBV4SA.js';
|
|
6
6
|
import './chunk-A2ULN3KX.js';
|
|
7
|
-
import { scanRepo } from './chunk-
|
|
7
|
+
import { scanRepo } from './chunk-MXXKTQXJ.js';
|
|
8
8
|
import './chunk-TLKM4M47.js';
|
|
9
|
-
import './chunk-
|
|
9
|
+
import './chunk-TOSHZX4C.js';
|
|
10
10
|
import './chunk-AG44ZJ7W.js';
|
|
11
11
|
import './chunk-RVRB27AN.js';
|
|
12
12
|
import './chunk-DXUQCMVT.js';
|
|
@@ -23,17 +23,10 @@ import * as path from 'path';
|
|
|
23
23
|
async function libraryAssets() {
|
|
24
24
|
const notes = [];
|
|
25
25
|
try {
|
|
26
|
-
const
|
|
27
|
-
import('./open-library-UAZIGZUQ.js'),
|
|
28
|
-
import('./core/index.js')
|
|
29
|
-
]);
|
|
26
|
+
const { openLibraryManager, authoringLibraries } = await import('./open-library-SSBN4FX2.js');
|
|
30
27
|
const { manager, close } = await openLibraryManager();
|
|
31
28
|
try {
|
|
32
|
-
const
|
|
33
|
-
const legacyRoot = path.join(globalSkaileDir(), "sources");
|
|
34
|
-
const libs = (await manager.listLibraries()).filter(
|
|
35
|
-
(l) => !l.path.startsWith(newRoot) && !l.path.startsWith(legacyRoot)
|
|
36
|
-
);
|
|
29
|
+
const libs = authoringLibraries(await manager.listLibraries());
|
|
37
30
|
const entries = [];
|
|
38
31
|
for (const lib of libs) {
|
|
39
32
|
if (!existsSync(lib.path)) continue;
|
|
@@ -55,7 +48,7 @@ async function libraryAssets() {
|
|
|
55
48
|
async function storeAssets(projectDir) {
|
|
56
49
|
const notes = [];
|
|
57
50
|
try {
|
|
58
|
-
const { resolveCatalogSource } = await import('./open-library-
|
|
51
|
+
const { resolveCatalogSource } = await import('./open-library-SSBN4FX2.js');
|
|
59
52
|
const { source, close } = await resolveCatalogSource({ projectDir });
|
|
60
53
|
try {
|
|
61
54
|
const assets = await source.listAssets();
|
|
@@ -134,5 +127,5 @@ async function gatherAssetFeeds(am, projectDir) {
|
|
|
134
127
|
}
|
|
135
128
|
|
|
136
129
|
export { gatherAssetFeeds };
|
|
137
|
-
//# sourceMappingURL=asset-feeds-
|
|
138
|
-
//# sourceMappingURL=asset-feeds-
|
|
130
|
+
//# sourceMappingURL=asset-feeds-TU5CS6QL.js.map
|
|
131
|
+
//# sourceMappingURL=asset-feeds-TU5CS6QL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../cli/src/asset-feeds.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkEA,eAAe,aAAA,GAGZ;AACD,EAAA,MAAM,QAAoB,EAAC;AAC3B,EAAA,IAAI;AACF,IAAA,MAAM,EAAE,kBAAA,EAAoB,kBAAA,EAAmB,GAAI,MAAM,OAAO,4BAAmB,CAAA;AACnF,IAAA,MAAM,EAAE,OAAA,EAAS,KAAA,EAAM,GAAI,MAAM,kBAAA,EAAmB;AACpD,IAAA,IAAI;AAEF,MAAA,MAAM,IAAA,GAAO,kBAAA,CAAmB,MAAM,OAAA,CAAQ,eAAe,CAAA;AAC7D,MAAA,MAAM,UAAyB,EAAC;AAChC,MAAA,KAAA,MAAW,OAAO,IAAA,EAAM;AACtB,QAAA,IAAI,CAAC,UAAA,CAAW,GAAA,CAAI,IAAI,CAAA,EAAG;AAC3B,QAAA,MAAM,UAAA,GAAa,CAAC,GAAI,MAAM,SAAS,GAAA,CAAI,IAAA,EAAM,GAAA,CAAI,IAAI,CAAE,CAAA;AAC3D,QAAA,KAAA,MAAW,KAAA,IAAS,UAAA,EAAY,OAAA,CAAQ,IAAA,CAAK,EAAE,MAAA,EAAQ,SAAA,EAAW,KAAA,EAAO,KAAA,EAAO,GAAA,CAAI,IAAA,EAAM,CAAA;AAAA,MAC5F;AACA,MAAA,OAAO,EAAE,SAAS,KAAA,EAAM;AAAA,IAC1B,CAAA,SAAE;AACA,MAAA,KAAA,EAAM;AAAA,IACR;AAAA,EACF,SAAS,GAAA,EAAK;AACZ,IAAA,KAAA,CAAM,IAAA,CAAK;AAAA,MACT,IAAA,EAAM,WAAA;AA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MAAM,OAAA,GAAU,MAAM,aAAA,EAAc;AACpC,EAAA,MAAM,GAAA,GAAM,MAAM,YAAA,CAAa,EAAE,CAAA;AACjC,EAAA,OAAO;AAAA,IACL,OAAA,EAAS;AAAA,MACP,GAAG,GAAA;AAAA,MACH,GAAG,IAAA,CAAK,OAAA;AAAA,MACR,GAAG,GAAA,CAAI,SAAA,EAAW,OAAA,CAAQ,OAAO,CAAA;AAAA,MACjC,GAAG,GAAA,CAAI,OAAA,EAAS,KAAA,CAAM,OAAO;AAAA,KAC/B;AAAA,IACA,KAAA,EAAO,CAAC,GAAG,IAAA,CAAK,KAAA,EAAO,GAAG,KAAA,CAAM,KAAA,EAAO,GAAG,OAAA,CAAQ,KAAK;AAAA,GACzD;AACF","file":"asset-feeds-TU5CS6QL.js","sourcesContent":["/**\n * asset-feeds.ts — gather installable assets from every feed the manage TUI\n * surfaces.\n *\n * Four feeds, normalized into `CatalogEntry`:\n * - **Project sources** — `skaile.yaml` `sources:` entries (scanned via\n * `AssetManager.search()`; the new `sources:` field is merged into the\n * legacy repositories map in `AssetManager.loadConfig`).\n * - **Local libraries** — user authoring places from `LocalIndex` (filesystem\n * scan of each library's `path`).\n * - **Factory assets** — the bundled first-party `factory-assets` tree\n * (`factoryAssetRoots()`), scanned from disk. Always present; no network.\n * - **Remote store** — the configured catalog source when `catalog.url` is\n * not `local`. Failures are non-fatal — they surface as notes.\n */\n\nimport { existsSync } from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n type AssetKind,\n type CatalogEntry,\n factoryAssetRoots,\n scanRepo,\n} from \"@skaile/workspaces/core\";\n\n/** One non-fatal note returned to the caller for surfacing in the UI. */\nexport interface FeedNote {\n feed: \"sources\" | \"libraries\" | \"store\" | \"factory\";\n message: string;\n}\n\n/**\n * Which feed an asset came from. This is the top-level grouping axis in the\n * manage TUI (\"where is this skill coming from?\") and is intentionally distinct\n * from `publisher` (asset-intrinsic identity): the same publisher can legitimately\n * appear under more than one origin (e.g. a github repo you added as a `source`\n * that is also listed in the remote `store`).\n */\nexport type AssetOrigin = \"source\" | \"library\" | \"factory\" | \"store\";\n\n/** A catalog entry tagged with the feed it was gathered from. */\nexport interface OriginEntry {\n origin: AssetOrigin;\n entry: CatalogEntry;\n /**\n * Second-level grouping label for the manage tree. Defaults (when unset) to the\n * entry's `publisher`; the source feed sets it to the source's short repo name\n * so the Sources band groups by source — \"which repo did this come from\" — not\n * by the asset-intrinsic publisher.\n */\n group?: string;\n}\n\nexport interface AssetFeedResult {\n entries: OriginEntry[];\n notes: FeedNote[];\n}\n\n/**\n * Pull assets from local libraries (the authoring places under\n * `~/.skaile/libraries/<name>/`, not the `~/.skaile/cache/sources/` cache). Each\n * library's `path` is scanned with `scanRepo` and grouped under the bare library\n * name (`group: <name>`) so the manage TUI shows a clean `<name>` band — no\n * `library:` prefix (mirrors the source feed). Plugin grouping (`entry.plugin`)\n * is stamped by `scanRepo`.\n */\nasync function libraryAssets(): Promise<{\n entries: OriginEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const { openLibraryManager, authoringLibraries } = await import(\"./open-library.ts\");\n const { manager, close } = await openLibraryManager();\n try {\n // Authoring libraries are the rows that are NOT source clones.\n const libs = authoringLibraries(await manager.listLibraries());\n const entries: OriginEntry[] = [];\n for (const lib of libs) {\n if (!existsSync(lib.path)) continue;\n const libEntries = [...(await scanRepo(lib.path, lib.name))];\n for (const entry of libEntries) entries.push({ origin: \"library\", entry, group: lib.name });\n }\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n notes.push({\n feed: \"libraries\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/**\n * Pull a (best-effort) snapshot of the connected remote store catalog.\n *\n * - Returns no entries when the resolved catalog is local-only or the host\n * is unreachable (the failure becomes a note, not an exception).\n * - Maps `CatalogAsset` → `CatalogEntry`, carrying `publisher`, `repo`, and\n * `category` straight through and using `source = \"store://<id>\"`; per-file\n * `source` paths are not available for remote assets so the canonical ref is\n * a stable placeholder.\n */\nasync function storeAssets(projectDir: string): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const { resolveCatalogSource } = await import(\"./open-library.ts\");\n const { source, close } = await resolveCatalogSource({ projectDir });\n try {\n const assets = await source.listAssets();\n const entries: CatalogEntry[] = assets.map((a) => ({\n name: a.name,\n kind: (a.kind as AssetKind) ?? \"skill\",\n description: a.description ?? \"\",\n source: `store://${a.id}`,\n publisher: a.publisher,\n repo: a.repo,\n plugin: a.plugin,\n category: a.category,\n version: a.version,\n requires: [],\n dependencies: [],\n }));\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n const msg = err instanceof Error ? err.message : String(err);\n // Local-only catalog throws a recognizable message — silence it; absence\n // is the user's choice, not an error.\n if (!/local/i.test(msg)) {\n notes.push({ feed: \"store\", message: msg });\n }\n return { entries: [], notes };\n }\n}\n\n/** The slice of `AssetManager` the source feed needs (kept narrow for tests). */\ninterface AssetManagerLike {\n search: () => Promise<CatalogEntry[]>;\n searchRepoRoots: () => { repoName: string; root: string }[];\n}\n\n/**\n * Project-source feed: leans on `AssetManager.search()`, which merges\n * `skaile.yaml`'s `sources:` field into the repositories map. Plugin grouping\n * (`entry.plugin`) is stamped by the scanner, so entries pass through as-is.\n */\nasync function sourceAssets(am: AssetManagerLike): Promise<OriginEntry[]> {\n // The bundled factory tree is injected into the repositories map as an implicit\n // source, so `am.search()` returns it too. It has its own `factory` origin band,\n // so drop it here — otherwise the same first-party skills list twice under Sources.\n const factoryPrefixes = factoryAssetRoots().map((r) => (r.endsWith(path.sep) ? r : r + path.sep));\n const isFactoryPath = (p: string) =>\n factoryPrefixes.some((fp) => p === fp.slice(0, -1) || p.startsWith(fp));\n\n const all = (await am.search()).filter((e) => !isFactoryPath(e.source));\n const entries: OriginEntry[] = [];\n // Group each source's entries under the source node (its short repo name), not\n // the publisher: under Sources the navigational question is \"which repo did\n // this come from\". Each entry's `source` (absolute manifest path) lives under\n // exactly one declared root, so group by prefix. The cache slug is\n // URL-keyed `github.com/<org>/<repo>` — take the trailing segment.\n for (const { repoName, root } of am.searchRepoRoots()) {\n if (isFactoryPath(root)) continue;\n const prefix = root.endsWith(path.sep) ? root : root + path.sep;\n const owned = all.filter((e) => e.source === root || e.source.startsWith(prefix));\n if (owned.length === 0) continue;\n const sourceName = repoName.split(\"/\").pop() || repoName;\n for (const entry of owned) entries.push({ origin: \"source\", entry, group: sourceName });\n }\n return entries;\n}\n\n/**\n * Factory-asset feed: scan the bundled first-party `factory-assets` tree(s)\n * resolved by `factoryAssetRoots()` (the `SKAILE_FACTORY_ASSETS_DIR` override\n * layer ahead of the bundled tree). Local disk only, no network — the entries are\n * the built-in skills / connectors / bundles that ship with `@skaile/workspaces`.\n * `factoryAssetRoots()` already dedupes, so the env override pointing at the\n * bundled dir collapses to one root.\n */\nasync function factoryAssets(): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const entries: CatalogEntry[] = [];\n for (const root of factoryAssetRoots()) {\n entries.push(...(await scanRepo(root, \"skaile-factory\")));\n }\n return { entries, notes };\n } catch (err) {\n notes.push({\n feed: \"factory\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/** Tag a flat entry list with a single origin. */\nfunction tag(origin: AssetOrigin, entries: CatalogEntry[]): OriginEntry[] {\n return entries.map((entry) => ({ origin, entry }));\n}\n\n/**\n * Run all feeds and return a single normalized result.\n *\n * Feeds run in parallel where possible — the store fetch is the slow one\n * (one HTTP call) and is fired alongside the local library walk. The factory\n * scan is local disk only, so it runs inline.\n */\nexport async function gatherAssetFeeds(\n am: AssetManagerLike,\n projectDir: string,\n): Promise<AssetFeedResult> {\n const [libs, store] = await Promise.all([libraryAssets(), storeAssets(projectDir)]);\n const factory = await factoryAssets();\n const src = await sourceAssets(am);\n return {\n entries: [\n ...src,\n ...libs.entries,\n ...tag(\"factory\", factory.entries),\n ...tag(\"store\", store.entries),\n ],\n notes: [...libs.notes, ...store.notes, ...factory.notes],\n };\n}\n"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { WORKSPACE_MOUNT_ENV_VAR, deployAll, deployCatalogEntry, findAiAssetsRoot, isUnderWorkspaceMount, resolveFlowSkills, undeployCatalogEntry, workspaceMountDirs } from '../chunk-VDJKWKH2.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-IWCCZL7C.js';
|
|
3
3
|
import '../chunk-4GY63JU6.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-YDJZRLGN.js';
|
|
5
|
+
import '../chunk-U6K3I3AX.js';
|
|
6
6
|
import '../chunk-K5GBV4SA.js';
|
|
7
7
|
import '../chunk-A2ULN3KX.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-MXXKTQXJ.js';
|
|
9
9
|
import '../chunk-TLKM4M47.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-TOSHZX4C.js';
|
|
11
11
|
import '../chunk-AG44ZJ7W.js';
|
|
12
12
|
import '../chunk-RVRB27AN.js';
|
|
13
13
|
import '../chunk-DXUQCMVT.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, NON_DEPLOYABLE_KINDS, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, softDepName } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { AssetManager, FACTORY_SOURCE_URL, MissingManifestError, NON_DEPLOYABLE_KINDS, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, softDepName } from '../chunk-6LDUA57J.js';
|
|
2
|
+
import '../chunk-SP47UJKE.js';
|
|
3
3
|
import '../chunk-UVOJSWD2.js';
|
|
4
4
|
import '../chunk-H4EGUQ7M.js';
|
|
5
5
|
import '../chunk-R7FOF242.js';
|
|
6
6
|
import '../chunk-ZDKJHQY2.js';
|
|
7
|
-
export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-
|
|
7
|
+
export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-AGWYBS2E.js';
|
|
8
8
|
export { BUILT_IN_FRAGMENTS, loadPromptExtensions, resolveFragments } from '../chunk-CGYEHQOX.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-IWCCZL7C.js';
|
|
10
10
|
import '../chunk-4GY63JU6.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-YDJZRLGN.js';
|
|
12
|
+
import '../chunk-U6K3I3AX.js';
|
|
13
13
|
import '../chunk-K5GBV4SA.js';
|
|
14
14
|
import '../chunk-A2ULN3KX.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-MXXKTQXJ.js';
|
|
16
16
|
import '../chunk-TLKM4M47.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-TOSHZX4C.js';
|
|
18
18
|
import '../chunk-AG44ZJ7W.js';
|
|
19
19
|
import '../chunk-RVRB27AN.js';
|
|
20
20
|
import '../chunk-DXUQCMVT.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { createScaffold, deployAll, deployAsset, removeAsset } from '../chunk-
|
|
1
|
+
export { createScaffold, deployAll, deployAsset, removeAsset } from '../chunk-AGWYBS2E.js';
|
|
2
2
|
import '../chunk-CGYEHQOX.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-IWCCZL7C.js';
|
|
4
4
|
import '../chunk-4GY63JU6.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-YDJZRLGN.js';
|
|
6
|
+
import '../chunk-U6K3I3AX.js';
|
|
7
7
|
import '../chunk-K5GBV4SA.js';
|
|
8
8
|
import '../chunk-A2ULN3KX.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-MXXKTQXJ.js';
|
|
10
10
|
import '../chunk-TLKM4M47.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-TOSHZX4C.js';
|
|
12
12
|
import '../chunk-AG44ZJ7W.js';
|
|
13
13
|
import '../chunk-RVRB27AN.js';
|
|
14
14
|
import '../chunk-DXUQCMVT.js';
|
|
@@ -315,7 +315,8 @@ export interface AssetManagerOptions {
|
|
|
315
315
|
/**
|
|
316
316
|
* Agent framework to target for asset deployment.
|
|
317
317
|
* Determines which framework directories (``.claude/``, ``.omp/``, etc.) are used.
|
|
318
|
-
* Defaults to `
|
|
318
|
+
* Defaults to the harness the project is configured for (`skaile.yaml`
|
|
319
|
+
* `agent-config.default.driver`, `.skaile/settings.json`), else `"claude-code"`.
|
|
319
320
|
*/
|
|
320
321
|
driverTarget?: DriverTarget;
|
|
321
322
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../asset-manager/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,OAAO,KAAK,EAEV,QAAQ,EACR,YAAY,EACZ,YAAY,EAEZ,QAAQ,EAQR,YAAY,EACb,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../asset-manager/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAcH,OAAO,KAAK,EAEV,QAAQ,EACR,YAAY,EACZ,YAAY,EAEZ,QAAQ,EAQR,YAAY,EACb,MAAM,yBAAyB,CAAC;AA+CjC,OAAO,KAAK,EAAmB,YAAY,EAAW,MAAM,4BAA4B,CAAC;AAMzF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,KAAK,EAAiB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIrE;;;;;GAKG;AACH,wBAAgB,gBAA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MAAM,gBAAgB,CAAC"}
|
|
@@ -2,21 +2,21 @@ import { formatDroppedToolsNotice, filterInProcessMcpServerTools, checkToolPrope
|
|
|
2
2
|
import { scrubPoisonedTranscript, transcriptStoreForRuntime, resolveClaudeConfigDir, claudeEndpointMode, buildClaudeEndpointEnv } from '../../chunk-TVOODIZE.js';
|
|
3
3
|
import { scopeReconfigureModel } from '../../chunk-EINLFFP6.js';
|
|
4
4
|
import { dispatchCapability } from '../../chunk-RDYI4MML.js';
|
|
5
|
-
import { fetchProviderModels } from '../../chunk-
|
|
5
|
+
import { fetchProviderModels } from '../../chunk-P5UQ56RA.js';
|
|
6
6
|
import { AuthError, stripRunnerPrivateEnv, classifyClaudeSdkError, reclassifyAuthAsAccountUnavailable, AccountUnavailableError, isLongContextEntitlementRejection, LONG_CONTEXT_CREDITS_API_ERROR } from '../../chunk-XBSQ4KMC.js';
|
|
7
7
|
import { agentExecRequested, wrapAgentCommand, resolveAgentExec } from '../../chunk-YROR332M.js';
|
|
8
|
-
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, entryCredentialValue, registryDriverConfig } from '../../chunk-
|
|
8
|
+
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, entryCredentialValue, registryDriverConfig } from '../../chunk-RDTHJSGY.js';
|
|
9
9
|
import '../../chunk-6E6PKKAD.js';
|
|
10
10
|
import { withActivityLabelShape } from '../../chunk-IDEA6CYI.js';
|
|
11
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-IWCCZL7C.js';
|
|
12
12
|
import '../../chunk-4GY63JU6.js';
|
|
13
|
-
import '../../chunk-
|
|
14
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-YDJZRLGN.js';
|
|
14
|
+
import '../../chunk-U6K3I3AX.js';
|
|
15
15
|
import '../../chunk-K5GBV4SA.js';
|
|
16
16
|
import '../../chunk-A2ULN3KX.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-MXXKTQXJ.js';
|
|
18
18
|
import '../../chunk-TLKM4M47.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-TOSHZX4C.js';
|
|
20
20
|
import '../../chunk-AG44ZJ7W.js';
|
|
21
21
|
import '../../chunk-RVRB27AN.js';
|
|
22
22
|
import '../../chunk-DXUQCMVT.js';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { CodexAppServerClient } from '../../chunk-K4O6L3WH.js';
|
|
2
2
|
import { managedCodexRegistryViolation, parseCodexCredential, prepareNativePolicy, prepareCodexInstance, codexInstanceEnvironment, isNativeApprovalPolicyActive, activateNativeApprovalPolicy, parseCodexRefreshResult, allowsNativeApprovalPath } from '../../chunk-HCYS7GFP.js';
|
|
3
3
|
import { CodexNativeStateUnavailable } from '../../chunk-LOO5CB5M.js';
|
|
4
|
-
import { fetchProviderModels } from '../../chunk-
|
|
4
|
+
import { fetchProviderModels } from '../../chunk-P5UQ56RA.js';
|
|
5
5
|
import { stripRunnerPrivateEnv, classifyGenericErrorMessage } from '../../chunk-XBSQ4KMC.js';
|
|
6
6
|
import '../../chunk-YROR332M.js';
|
|
7
|
-
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, registryCredentialEnv, entryCredentialValue, registryDriverConfig, getProviderPreset, providerCredentialEnvName } from '../../chunk-
|
|
7
|
+
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, registryCredentialEnv, entryCredentialValue, registryDriverConfig, getProviderPreset, providerCredentialEnvName } from '../../chunk-RDTHJSGY.js';
|
|
8
8
|
import '../../chunk-6E6PKKAD.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-IWCCZL7C.js';
|
|
10
10
|
import '../../chunk-4GY63JU6.js';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-YDJZRLGN.js';
|
|
12
|
+
import '../../chunk-U6K3I3AX.js';
|
|
13
13
|
import '../../chunk-K5GBV4SA.js';
|
|
14
14
|
import '../../chunk-A2ULN3KX.js';
|
|
15
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-MXXKTQXJ.js';
|
|
16
16
|
import { globalSkaileDir } from '../../chunk-TLKM4M47.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-TOSHZX4C.js';
|
|
18
18
|
import '../../chunk-AG44ZJ7W.js';
|
|
19
19
|
import '../../chunk-RVRB27AN.js';
|
|
20
20
|
import '../../chunk-DXUQCMVT.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { driverSessionConfigHome, removeSessionConfigFile, writeSessionConfigFile } from '../../chunk-ARUJBGAH.js';
|
|
2
|
-
import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-
|
|
3
|
-
import { resolveEnvDriverSession, continueRoleBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, entrySurface, harnessProviderName, entryBaseUrl, versionedAnthropicBaseUrl } from '../../chunk-
|
|
2
|
+
import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-E67J56FJ.js';
|
|
3
|
+
import { resolveEnvDriverSession, continueRoleBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, entrySurface, harnessProviderName, entryBaseUrl, versionedAnthropicBaseUrl } from '../../chunk-KAYH6AXN.js';
|
|
4
4
|
import '../../chunk-XBSQ4KMC.js';
|
|
5
5
|
import '../../chunk-YROR332M.js';
|
|
6
|
-
import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, entryCredentialValue, registryDriverConfig, providerCredentialEnvName } from '../../chunk-
|
|
6
|
+
import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, entryCredentialValue, registryDriverConfig, providerCredentialEnvName } from '../../chunk-RDTHJSGY.js';
|
|
7
7
|
import '../../chunk-6E6PKKAD.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-IWCCZL7C.js';
|
|
9
9
|
import '../../chunk-4GY63JU6.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-YDJZRLGN.js';
|
|
11
|
+
import '../../chunk-U6K3I3AX.js';
|
|
12
12
|
import '../../chunk-K5GBV4SA.js';
|
|
13
13
|
import '../../chunk-A2ULN3KX.js';
|
|
14
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-MXXKTQXJ.js';
|
|
15
15
|
import '../../chunk-TLKM4M47.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-TOSHZX4C.js';
|
|
17
17
|
import '../../chunk-AG44ZJ7W.js';
|
|
18
18
|
import '../../chunk-RVRB27AN.js';
|
|
19
19
|
import '../../chunk-DXUQCMVT.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dispatchCapability } from '../../chunk-RDYI4MML.js';
|
|
2
|
-
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, registryDriverConfig } from '../../chunk-
|
|
2
|
+
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, registryDriverConfig } from '../../chunk-RDTHJSGY.js';
|
|
3
3
|
import '../../chunk-6E6PKKAD.js';
|
|
4
4
|
import '../../chunk-IDEA6CYI.js';
|
|
5
5
|
import '../../chunk-ICSCSM5D.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { GeminiDriver, GeminiFamilyDriver, geminiDriverTarget } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
1
|
+
export { GeminiDriver, GeminiFamilyDriver, geminiDriverTarget } from '../../chunk-EPHQWHOH.js';
|
|
2
|
+
import '../../chunk-E67J56FJ.js';
|
|
3
|
+
import '../../chunk-KAYH6AXN.js';
|
|
4
|
+
import '../../chunk-P5UQ56RA.js';
|
|
5
5
|
import '../../chunk-XBSQ4KMC.js';
|
|
6
6
|
import '../../chunk-YROR332M.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-RDTHJSGY.js';
|
|
8
8
|
import '../../chunk-6E6PKKAD.js';
|
|
9
9
|
import '../../chunk-ICSCSM5D.js';
|
|
10
10
|
import '../../chunk-JMKB7IB4.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { driverSessionConfigHome, pruneSessionConfigDir, writeSessionConfigFile } from '../../chunk-ARUJBGAH.js';
|
|
2
|
-
import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-
|
|
3
|
-
import { resolveEnvDriverSession, resolveRegistryBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds } from '../../chunk-
|
|
2
|
+
import { SubprocessCliDriver, extractText, extractCost, extractTokens } from '../../chunk-E67J56FJ.js';
|
|
3
|
+
import { resolveEnvDriverSession, resolveRegistryBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds } from '../../chunk-KAYH6AXN.js';
|
|
4
4
|
import '../../chunk-XBSQ4KMC.js';
|
|
5
5
|
import '../../chunk-YROR332M.js';
|
|
6
|
-
import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, registryDriverConfig, providerCredentialEnvName } from '../../chunk-
|
|
6
|
+
import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, registryDriverConfig, providerCredentialEnvName } from '../../chunk-RDTHJSGY.js';
|
|
7
7
|
import '../../chunk-6E6PKKAD.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-IWCCZL7C.js';
|
|
9
9
|
import '../../chunk-4GY63JU6.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-YDJZRLGN.js';
|
|
11
|
+
import '../../chunk-U6K3I3AX.js';
|
|
12
12
|
import '../../chunk-K5GBV4SA.js';
|
|
13
13
|
import '../../chunk-A2ULN3KX.js';
|
|
14
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-MXXKTQXJ.js';
|
|
15
15
|
import '../../chunk-TLKM4M47.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-TOSHZX4C.js';
|
|
17
17
|
import '../../chunk-AG44ZJ7W.js';
|
|
18
18
|
import '../../chunk-RVRB27AN.js';
|
|
19
19
|
import '../../chunk-DXUQCMVT.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { checkToolInputSchema } from '../../chunk-X5O56UO4.js';
|
|
2
|
-
import { entrySurface } from '../../chunk-
|
|
2
|
+
import { entrySurface } from '../../chunk-KAYH6AXN.js';
|
|
3
3
|
import { scopeReconfigureModel } from '../../chunk-EINLFFP6.js';
|
|
4
4
|
import { dispatchCapability } from '../../chunk-RDYI4MML.js';
|
|
5
5
|
import { stripRunnerPrivateEnv, classifyGenericErrorMessage } from '../../chunk-XBSQ4KMC.js';
|
|
6
6
|
import { wrapAgentCommand, resolveAgentExec } from '../../chunk-YROR332M.js';
|
|
7
|
-
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, registryDriverConfig, entryCredentialValue, providerCredentialEnvName } from '../../chunk-
|
|
7
|
+
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger, registryDriverConfig, entryCredentialValue, providerCredentialEnvName } from '../../chunk-RDTHJSGY.js';
|
|
8
8
|
import '../../chunk-6E6PKKAD.js';
|
|
9
9
|
import { withActivityLabelJsonSchema } from '../../chunk-IDEA6CYI.js';
|
|
10
10
|
import '../../chunk-ICSCSM5D.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { driverSessionConfigHome, removeSessionConfigFile, writeSessionConfigFile } from '../../chunk-ARUJBGAH.js';
|
|
2
|
-
import { SubprocessCliDriver, extractText } from '../../chunk-
|
|
3
|
-
import { resolveEnvDriverSession, resolveRegistryBinding, harnessModelSelector, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds, versionedAnthropicBaseUrl } from '../../chunk-
|
|
2
|
+
import { SubprocessCliDriver, extractText } from '../../chunk-E67J56FJ.js';
|
|
3
|
+
import { resolveEnvDriverSession, resolveRegistryBinding, harnessModelSelector, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds, versionedAnthropicBaseUrl } from '../../chunk-KAYH6AXN.js';
|
|
4
4
|
import '../../chunk-XBSQ4KMC.js';
|
|
5
5
|
import '../../chunk-YROR332M.js';
|
|
6
|
-
import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, registryDriverConfig, providerCredentialEnvName } from '../../chunk-
|
|
6
|
+
import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, registryDriverConfig, providerCredentialEnvName } from '../../chunk-RDTHJSGY.js';
|
|
7
7
|
import '../../chunk-6E6PKKAD.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-IWCCZL7C.js';
|
|
9
9
|
import '../../chunk-4GY63JU6.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-YDJZRLGN.js';
|
|
11
|
+
import '../../chunk-U6K3I3AX.js';
|
|
12
12
|
import '../../chunk-K5GBV4SA.js';
|
|
13
13
|
import '../../chunk-A2ULN3KX.js';
|
|
14
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-MXXKTQXJ.js';
|
|
15
15
|
import '../../chunk-TLKM4M47.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-TOSHZX4C.js';
|
|
17
17
|
import '../../chunk-AG44ZJ7W.js';
|
|
18
18
|
import '../../chunk-RVRB27AN.js';
|
|
19
19
|
import '../../chunk-DXUQCMVT.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { GeminiFamilyDriver } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import { resolveRegistryBinding } from '../../chunk-
|
|
4
|
-
import { fetchProviderModels } from '../../chunk-
|
|
1
|
+
import { GeminiFamilyDriver } from '../../chunk-EPHQWHOH.js';
|
|
2
|
+
import '../../chunk-E67J56FJ.js';
|
|
3
|
+
import { resolveRegistryBinding } from '../../chunk-KAYH6AXN.js';
|
|
4
|
+
import { fetchProviderModels } from '../../chunk-P5UQ56RA.js';
|
|
5
5
|
import '../../chunk-XBSQ4KMC.js';
|
|
6
6
|
import '../../chunk-YROR332M.js';
|
|
7
|
-
import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, entryCredentialValue, registryDriverConfig } from '../../chunk-
|
|
7
|
+
import { BUILTIN_DRIVER_CATALOG, getBridgeLogger, entryCredentialValue, registryDriverConfig } from '../../chunk-RDTHJSGY.js';
|
|
8
8
|
import '../../chunk-6E6PKKAD.js';
|
|
9
9
|
import '../../chunk-ICSCSM5D.js';
|
|
10
10
|
import '../../chunk-JMKB7IB4.js';
|
package/dist/bridge/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export { BridgeRuntime, EventNormalizer, createRuntime, detectFileChange, detectFileChanges, labelToolCall, summarizeToolCall, summarizeToolResult, validateApiKey } from '../chunk-
|
|
1
|
+
export { BridgeRuntime, EventNormalizer, createRuntime, detectFileChange, detectFileChanges, labelToolCall, summarizeToolCall, summarizeToolResult, validateApiKey } from '../chunk-YIVB7GIP.js';
|
|
2
2
|
export { ANTHROPIC_DEFAULT_BASE_URL, agentTranscriptStore, buildClaudeEndpointEnv, claudeEndpointMode, localTranscriptStore, probeResumeTranscript, resolveClaudeConfigDir, transcriptStoreForRuntime } from '../chunk-TVOODIZE.js';
|
|
3
3
|
export { scopeReconfigureModel } from '../chunk-EINLFFP6.js';
|
|
4
4
|
export { CODEX_NATIVE_STATE_FORMAT, CodexNativeStateUnavailable } from '../chunk-LOO5CB5M.js';
|
|
5
5
|
export { dispatchCapability, filterRenderCapabilities, renderFallback } from '../chunk-RDYI4MML.js';
|
|
6
|
-
export { ModelTierResolutionError, PROVIDER_MODEL_TIERS, STATIC_MODELS, fetchProviderModels, getModels, getStaticModels, modelIdTargetForEntry, resolveManifestModel, resolveModelCapabilities, resolveModelTier } from '../chunk-
|
|
6
|
+
export { ModelTierResolutionError, PROVIDER_MODEL_TIERS, STATIC_MODELS, fetchProviderModels, getModels, getStaticModels, modelIdTargetForEntry, resolveManifestModel, resolveModelCapabilities, resolveModelTier } from '../chunk-P5UQ56RA.js';
|
|
7
7
|
export { AccountUnavailableError, AuthError, RUNNER_PRIVATE_ENV_KEYS, classifyClaudeSdkError, reclassifyAuthAsAccountUnavailable, stripRunnerPrivateEnv } from '../chunk-XBSQ4KMC.js';
|
|
8
8
|
export { AGENT_EXEC_ENV, agentExecRequested, resolveAgentExec, wrapAgentCommand } from '../chunk-YROR332M.js';
|
|
9
|
-
export { AGENT_EFFORT_LEVELS, AI_PROVIDER_PRESETS, AgentDriver, BUILTIN_DRIVER_CATALOG, DRIVER_CATALOG, PROVIDER_CREDENTIAL_ENV_PREFIX, PROVIDER_CREDENTIAL_ENV_SUFFIX, buildCredentialHeaders, catalogLayer, conventionalCredentialEnvName, createDriver, entryCredentialEnv, entryCredentialValue, expandPreset, getBridgeLogger, getProviderPreset, listDrivers, listModelsForDriver, listProviderPresets, presetBaseUrl, probeProviderEntry, providerCredentialEnvName, registerBuiltinDrivers, registryCredentialEnv, registryDriverConfig, resolveEntryCredential, resolvePresetBaseUrl, resolveProbeUrl, toAgentEffort, toMergedRegistry } from '../chunk-
|
|
9
|
+
export { AGENT_EFFORT_LEVELS, AI_PROVIDER_PRESETS, AgentDriver, BUILTIN_DRIVER_CATALOG, DRIVER_CATALOG, PROVIDER_CREDENTIAL_ENV_PREFIX, PROVIDER_CREDENTIAL_ENV_SUFFIX, buildCredentialHeaders, catalogLayer, conventionalCredentialEnvName, createDriver, entryCredentialEnv, entryCredentialValue, expandPreset, getBridgeLogger, getProviderPreset, listDrivers, listModelsForDriver, listProviderPresets, presetBaseUrl, probeProviderEntry, providerCredentialEnvName, registerBuiltinDrivers, registryCredentialEnv, registryDriverConfig, resolveEntryCredential, resolvePresetBaseUrl, resolveProbeUrl, toAgentEffort, toMergedRegistry } from '../chunk-RDTHJSGY.js';
|
|
10
10
|
import '../chunk-6E6PKKAD.js';
|
|
11
11
|
import '../chunk-IDEA6CYI.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-IWCCZL7C.js';
|
|
13
13
|
import '../chunk-4GY63JU6.js';
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-YDJZRLGN.js';
|
|
15
|
+
import '../chunk-U6K3I3AX.js';
|
|
16
16
|
import '../chunk-K5GBV4SA.js';
|
|
17
17
|
import '../chunk-A2ULN3KX.js';
|
|
18
|
-
import '../chunk-
|
|
18
|
+
import '../chunk-MXXKTQXJ.js';
|
|
19
19
|
import '../chunk-TLKM4M47.js';
|
|
20
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-TOSHZX4C.js';
|
|
21
21
|
import '../chunk-AG44ZJ7W.js';
|
|
22
22
|
import '../chunk-RVRB27AN.js';
|
|
23
23
|
import '../chunk-DXUQCMVT.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { softDepName } from './chunk-
|
|
1
|
+
import { softDepName } from './chunk-6LDUA57J.js';
|
|
2
2
|
import pc from 'picocolors';
|
|
3
3
|
|
|
4
4
|
var S = {
|
|
@@ -37,6 +37,7 @@ function kindColor(kind) {
|
|
|
37
37
|
return colorFn(kind);
|
|
38
38
|
}
|
|
39
39
|
var KIND_COL_WIDTH = 10;
|
|
40
|
+
var TARGET_DEFAULT_HINT = "default: the project's configured harness, else claude-code";
|
|
40
41
|
function kindColorPad(kind, width = KIND_COL_WIDTH) {
|
|
41
42
|
const colorFn = KIND_COLORS[kind] ?? pc.dim;
|
|
42
43
|
return colorFn(fitWidth(kind, width));
|
|
@@ -93,6 +94,6 @@ function formatRelativeTime(date) {
|
|
|
93
94
|
return `${days}d ago`;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
|
-
export { KIND_COL_WIDTH, S, bareSoftDepName, colorRef, fitWidth, formatRelativeTime, formatSoftDepAddPreview, formatSoftDepHint, formatSoftDepRemovePreview, formatSoftDepSection, kindColor, kindColorPad, logErr, logInfo, logOk, logWarn };
|
|
97
|
-
//# sourceMappingURL=chunk-
|
|
98
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
export { KIND_COL_WIDTH, S, TARGET_DEFAULT_HINT, bareSoftDepName, colorRef, fitWidth, formatRelativeTime, formatSoftDepAddPreview, formatSoftDepHint, formatSoftDepRemovePreview, formatSoftDepSection, kindColor, kindColorPad, logErr, logInfo, logOk, logWarn };
|
|
98
|
+
//# sourceMappingURL=chunk-2Y6DSR36.js.map
|
|
99
|
+
//# sourceMappingURL=chunk-2Y6DSR36.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../cli/src/helpers.ts"],"names":[],"mappings":";;;AAQO,IAAM,CAAA,GAAI;AAAA,EACf,KAAA,EAAO,CAAC,CAAA,KAAc,EAAA,CAAG,KAAK,EAAA,CAAG,IAAA,CAAK,CAAC,CAAC,CAAA;AAAA,EACxC,GAAA,EAAK,CAAC,CAAA,KAAc,EAAA,CAAG,KAAK,CAAC,CAAA;AAAA,EAC7B,OAAA,EAAS,CAAC,CAAA,KAAc,EAAA,CAAG,KAAK,CAAC,CAAA;AAAA,EACjC,IAAA,EAAM,CAAC,CAAA,KAAc,EAAA,CAAG,KAAK,CAAC,CAAA;AAAA,EAC9B,GAAA,EAAK,CAAC,CAAA,KAAc,EAAA,CAAG,IAAI,CAAC,CAAA;AAAA,EAC5B,EAAA,EAAI,CAAC,CAAA,KAAc,EAAA,CAAG,MAAM,CAAC,CAAA;AAAA,EAC7B,IAAA,EAAM,CAAC,CAAA,KAAc,EAAA,CAAG,OAAO,CAAC,CAAA;AAAA,EAChC,GAAA,EAAK,CAAC,CAAA,KAAc,EAAA,CAAG,IAAI,CAAC,CAA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,OAAA,CAAQ,IAAA,CAAK,IAAI,CAAC,CAAA,WAAA,CAAa,CAAA;AAC/E;AAGO,SAAS,mBAAmB,IAAA,EAAoB;AACrD,EAAA,MAAM,IAAA,GAAO,IAAA,CAAK,GAAA,EAAI,GAAI,KAAK,OAAA,EAAQ;AACvC,EAAA,MAAM,OAAA,GAAU,IAAA,CAAK,KAAA,CAAM,IAAA,GAAO,GAAI,CAAA;AACtC,EAAA,IAAI,OAAA,GAAU,IAAI,OAAO,UAAA;AACzB,EAAA,MAAM,OAAA,GAAU,IAAA,CAAK,KAAA,CAAM,OAAA,GAAU,EAAE,CAAA;AACvC,EAAA,IAAI,OAAA,GAAU,EAAA,EAAI,OAAO,CAAA,EAAG,OAAO,CAAA,KAAA,CAAA;AACnC,EAAA,MAAM,KAAA,GAAQ,IAAA,CAAK,KAAA,CAAM,OAAA,GAAU,EAAE,CAAA;AACrC,EAAA,IAAI,KAAA,GAAQ,EAAA,EAAI,OAAO,CAAA,EAAG,KAAK,CAAA,KAAA,CAAA;AAC/B,EAAA,MAAM,IAAA,GAAO,IAAA,CAAK,KAAA,CAAM,KAAA,GAAQ,EAAE,CAAA;AAClC,EAAA,OAAO,GAAG,IAAI,CAAA,KAAA,CAAA;AAChB","file":"chunk-2Y6DSR36.js","sourcesContent":["import { softDepName } from \"@skaile/workspaces/asset-manager\";\nimport pc from \"picocolors\";\n\n/**\n * Terminal styling helpers used across all CLI commands.\n *\n * @docLink cli/dev-guide#helpers\n */\nexport const S = {\n brand: (s: string) => pc.cyan(pc.bold(s)),\n cmd: (s: string) => pc.cyan(s),\n heading: (s: string) => pc.bold(s),\n bold: (s: string) => pc.bold(s),\n dim: (s: string) => pc.dim(s),\n ok: (s: string) => pc.green(s),\n warn: (s: string) => pc.yellow(s),\n err: (s: string) => pc.red(s),\n label: (s: string) => pc.dim(s),\n rule: (w = 40) => pc.dim(\"─\".repeat(w)),\n};\n\nconst KIND_COLORS: Record<string, (s: string) => string> = {\n skill: pc.blue,\n agent: pc.magenta,\n prompt: pc.yellow,\n flow: pc.green,\n bundle: pc.cyan,\n contract: pc.red,\n connector: pc.green,\n mount: pc.green,\n knowledge: pc.cyan,\n persona: pc.cyan,\n ruleset: pc.cyan,\n \"mcp-server\": pc.magenta,\n};\n\n/**\n * Fit a plain (ANSI-free) string into exactly `width` columns: truncate with a\n * trailing `…` when too long, pad with spaces when too short. Keeps fixed-width\n * columns from overflowing the row when a value (e.g. an asset name) is wider\n * than its budget.\n */\nexport function fitWidth(s: string, width: number): string {\n if (width <= 0) return \"\";\n if (s.length > width) return width === 1 ? \"…\" : `${s.slice(0, width - 1)}…`;\n return s.padEnd(width);\n}\n\n/** Color-code an asset kind string. */\nexport function kindColor(kind: string): string {\n const colorFn = KIND_COLORS[kind] ?? pc.dim;\n return colorFn(kind);\n}\n\n/**\n * Widest kind label (`mcp-server`); the default kind-column width fits it so\n * long kinds don't shove the rest of the row out of alignment.\n */\nexport const KIND_COL_WIDTH = 10;\n\n/**\n * Shared `--target` help suffix: with no flag, the manager deploys into the\n * harness the project is configured for (the driver `skaile config show`\n * resolves), and only then falls back to `claude-code`.\n */\nexport const TARGET_DEFAULT_HINT = \"default: the project's configured harness, else claude-code\";\n\n/**\n * Color-code an asset kind string fit to exactly `width` columns — pads short\n * kinds, truncates over-long ones (via {@link fitWidth}) so the column can never\n * overflow and break row alignment.\n */\nexport function kindColorPad(kind: string, width = KIND_COL_WIDTH): string {\n const colorFn = KIND_COLORS[kind] ?? pc.dim;\n return colorFn(fitWidth(kind, width));\n}\n\n/** Color-code a \"kind:name\" reference string. */\nexport function colorRef(ref: string): string {\n const colonIdx = ref.indexOf(\":\");\n if (colonIdx === -1) return ref;\n const kind = ref.slice(0, colonIdx);\n const rest = ref.slice(colonIdx);\n return `${kindColor(kind)}${rest}`;\n}\n\n/**\n * Print a success line prefixed with a green check mark.\n *\n * @param msg - Message to display.\n * @docLink cli/dev-guide#helpers\n */\nexport function logOk(msg: string) {\n console.log(` ${pc.green(\"✓\")} ${msg}`);\n}\n/**\n * Print an error line prefixed with a red cross to stderr.\n *\n * @param msg - Message to display.\n * @docLink cli/dev-guide#helpers\n */\nexport function logErr(msg: string) {\n console.error(` ${pc.red(\"✗\")} ${msg}`);\n}\n/**\n * Print a warning line prefixed with a yellow exclamation mark.\n *\n * @param msg - Message to display.\n * @docLink cli/dev-guide#helpers\n */\nexport function logWarn(msg: string) {\n console.log(` ${pc.yellow(\"!\")} ${msg}`);\n}\n/**\n * Print an info line prefixed with a dim dot.\n *\n * @param msg - Message to display.\n * @docLink cli/dev-guide#helpers\n */\nexport function logInfo(msg: string) {\n console.log(` ${pc.dim(\"·\")} ${msg}`);\n}\n\n/**\n * Bare asset name of a canonical soft-dep target ref (`@pub/name@ver` → `name`),\n * for compact rendering in `info` / `tree` / `why`. Delegates to the asset-manager\n * parser (the soft-dep read surface) so the two never diverge.\n */\nexport function bareSoftDepName(ref: string): string {\n return softDepName(ref);\n}\n\n/**\n * The report-only soft-dep hint line shared by the `add` no-TTY branch and the\n * `install` surface, so the two user-facing wordings can't drift. Appends a\n * runnable `skaile add` suffix only when the target has a parseable ref.\n */\nexport function formatSoftDepHint(edge: { from: string; to: string; toRef?: string }): string {\n const suffix = edge.toRef ? ` — run \\`skaile add ${edge.toRef}\\` to include it.` : \"\";\n return `${bareSoftDepName(edge.from)} references ${bareSoftDepName(edge.to)} (soft dependency)${suffix}`;\n}\n\n/**\n * Build the \"Soft dependencies (inferred)\" section for `skaile info`. Returns one\n * header line plus one line per soft-dep target, each marked `(soft)` to read\n * differently from a typed `requires`. Empty array when there are no soft deps,\n * so the caller prints nothing.\n */\nexport function formatSoftDepSection(targets: string[]): string[] {\n if (targets.length === 0) return [];\n const out = [` ${S.label(\"Soft dependencies (inferred)\")}:`];\n for (const t of targets) out.push(` ${S.dim(\"·\")} ${t} ${S.dim(\"(soft)\")}`);\n return out;\n}\n\n/**\n * Footer line previewing the soft deps that *adding* the highlighted asset would\n * reference (manage TUI). \"references\" + \"not auto-added\" makes clear the pull is\n * report-only. Empty string when there are no targets, so the caller clears.\n */\nexport function formatSoftDepAddPreview(name: string, targets: string[]): string {\n if (targets.length === 0) return \"\";\n return S.dim(`${name} references ${targets.join(\", \")} (soft dep, not auto-added)`);\n}\n\n/**\n * Footer line previewing the soft deps that *removing* the highlighted asset\n * would orphan (manage TUI) — symmetric with {@link formatSoftDepAddPreview}.\n * Empty string when nothing would be orphaned, so the caller clears.\n */\nexport function formatSoftDepRemovePreview(name: string, targets: string[]): string {\n if (targets.length === 0) return \"\";\n return S.dim(`removing ${name} would orphan ${targets.join(\", \")} (soft dep)`);\n}\n\n/** Format a Date as a human-readable relative time string (e.g. \"5m ago\"). */\nexport function formatRelativeTime(date: Date): string {\n const diff = Date.now() - date.getTime();\n const seconds = Math.floor(diff / 1000);\n if (seconds < 60) return \"just now\";\n const minutes = Math.floor(seconds / 60);\n if (minutes < 60) return `${minutes}m ago`;\n const hours = Math.floor(minutes / 60);\n if (hours < 24) return `${hours}h ago`;\n const days = Math.floor(hours / 24);\n return `${days}d ago`;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S, logErr, logWarn, logOk, logInfo } from './chunk-
|
|
2
|
-
import { globalSettingsPath, mapLegacyFields } from './chunk-
|
|
1
|
+
import { S, logErr, logWarn, logOk, logInfo } from './chunk-2Y6DSR36.js';
|
|
2
|
+
import { globalSettingsPath, mapLegacyFields } from './chunk-IWCCZL7C.js';
|
|
3
3
|
import { globalSkaileDir } from './chunk-TLKM4M47.js';
|
|
4
4
|
import { rmSync, existsSync, readFileSync, mkdirSync, writeFileSync, chmodSync } from 'fs';
|
|
5
5
|
import { randomBytes, createHash } from 'crypto';
|
|
@@ -271,6 +271,10 @@ var UNSET_NAMESPACE = "<manifest publisher>";
|
|
|
271
271
|
function assetNamespace(asset, manifest) {
|
|
272
272
|
return asset.publisher ?? manifest.publisher;
|
|
273
273
|
}
|
|
274
|
+
function assetEntryRef(asset, manifest) {
|
|
275
|
+
const ns = assetNamespace(asset, manifest);
|
|
276
|
+
return ns ? refFor(asset.kind, ns, asset.name) : `${asset.kind}:${asset.name}`;
|
|
277
|
+
}
|
|
274
278
|
function manifestNamespaces(manifest, assetName) {
|
|
275
279
|
const out = /* @__PURE__ */ new Set();
|
|
276
280
|
for (const a of manifest.assets ?? []) {
|
|
@@ -379,6 +383,6 @@ async function publishToStore(opts) {
|
|
|
379
383
|
return { published };
|
|
380
384
|
}
|
|
381
385
|
|
|
382
|
-
export { assetNamespace, bareName, deviceLogin, formatNamespaceAvailability, getStoreConfig, getStoreIdentity, getStoreToken, hasStoredAuth, isStoreAuthenticated, loadStoreAuthConfig, logout, manifestNamespaces, plannedRefs, preflightNamespace, publishToStore, refFor, storeFetch };
|
|
383
|
-
//# sourceMappingURL=chunk-
|
|
384
|
-
//# sourceMappingURL=chunk-
|
|
386
|
+
export { assetEntryRef, assetNamespace, bareName, deviceLogin, formatNamespaceAvailability, getStoreConfig, getStoreIdentity, getStoreToken, hasStoredAuth, isStoreAuthenticated, loadStoreAuthConfig, logout, manifestNamespaces, plannedRefs, preflightNamespace, publishToStore, refFor, storeFetch };
|
|
387
|
+
//# sourceMappingURL=chunk-3KSAFYD4.js.map
|
|
388
|
+
//# sourceMappingURL=chunk-3KSAFYD4.js.map
|