@skaile/workspaces 0.34.0 → 0.36.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 +38 -0
- package/dist/{asset-feeds-6R2C2NHB.js → asset-feeds-PCLTE2W5.js} +20 -12
- package/dist/asset-feeds-PCLTE2W5.js.map +1 -0
- package/dist/asset-manager/index.js +8 -8
- package/dist/asset-manager/installer.js +7 -7
- package/dist/bridge/drivers/claude-sdk.js +9 -5
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +2 -2
- package/dist/bridge/drivers/continue.js +3 -3
- package/dist/bridge/drivers/echo.js +1 -1
- package/dist/bridge/drivers/gemini.js +4 -4
- package/dist/bridge/drivers/goose.js +3 -3
- package/dist/bridge/drivers/omp.js +2 -2
- package/dist/bridge/drivers/opencode.js +3 -3
- package/dist/bridge/drivers/qwen.js +4 -4
- package/dist/bridge/index.js +3 -3
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/error-classifier.d.ts +22 -0
- package/dist/bridge/src/error-classifier.d.ts.map +1 -1
- package/dist/bridge/src/index.d.ts +1 -1
- package/dist/bridge/src/index.d.ts.map +1 -1
- package/dist/bridge/src/types.d.ts +1 -1
- package/dist/bridge/src/types.d.ts.map +1 -1
- package/dist/{chunk-DVIIYYD5.js → chunk-2Q6OY3SU.js} +3 -3
- package/dist/{chunk-DVIIYYD5.js.map → chunk-2Q6OY3SU.js.map} +1 -1
- package/dist/{chunk-TV2OU2EZ.js → chunk-4ZACMAT3.js} +4 -4
- package/dist/{chunk-TV2OU2EZ.js.map → chunk-4ZACMAT3.js.map} +1 -1
- package/dist/{chunk-E5VRPYUX.js → chunk-56YT6CWS.js} +5 -5
- package/dist/{chunk-E5VRPYUX.js.map → chunk-56YT6CWS.js.map} +1 -1
- package/dist/{chunk-2VM62DX7.js → chunk-5DPQ766L.js} +4 -4
- package/dist/{chunk-2VM62DX7.js.map → chunk-5DPQ766L.js.map} +1 -1
- package/dist/{chunk-NSVAJWWQ.js → chunk-5IXCNMMU.js} +4 -4
- package/dist/{chunk-NSVAJWWQ.js.map → chunk-5IXCNMMU.js.map} +1 -1
- package/dist/{chunk-LFDZYCEO.js → chunk-BM7XANVN.js} +2 -2
- package/dist/chunk-BM7XANVN.js.map +1 -0
- package/dist/{chunk-W6TLIJG3.js → chunk-EOCKR5TN.js} +3 -3
- package/dist/{chunk-W6TLIJG3.js.map → chunk-EOCKR5TN.js.map} +1 -1
- package/dist/{chunk-4RSCLQYX.js → chunk-FDLVPYSN.js} +257 -107
- package/dist/chunk-FDLVPYSN.js.map +1 -0
- package/dist/{chunk-NGJ6E344.js → chunk-GAH4YRCI.js} +20 -3
- package/dist/chunk-GAH4YRCI.js.map +1 -0
- package/dist/{chunk-FM2BJYX4.js → chunk-I3TERDTR.js} +2 -2
- package/dist/{chunk-FM2BJYX4.js.map → chunk-I3TERDTR.js.map} +1 -1
- package/dist/{chunk-WQRDLR3K.js → chunk-JNH6TTIO.js} +29 -7
- package/dist/{chunk-WQRDLR3K.js.map → chunk-JNH6TTIO.js.map} +1 -1
- package/dist/{chunk-CIFTUSBV.js → chunk-KM6DCR7A.js} +2 -2
- package/dist/{chunk-CIFTUSBV.js.map → chunk-KM6DCR7A.js.map} +1 -1
- package/dist/{chunk-N74UQJPN.js → chunk-KYC6JH75.js} +3 -3
- package/dist/{chunk-N74UQJPN.js.map → chunk-KYC6JH75.js.map} +1 -1
- package/dist/{chunk-JLSK6HR4.js → chunk-LY5O73Q2.js} +5 -5
- package/dist/{chunk-JLSK6HR4.js.map → chunk-LY5O73Q2.js.map} +1 -1
- package/dist/{chunk-4AGIEU7V.js → chunk-MAPRKFBD.js} +3 -3
- package/dist/{chunk-4AGIEU7V.js.map → chunk-MAPRKFBD.js.map} +1 -1
- package/dist/{chunk-UQ5JY2GQ.js → chunk-MCQ4TJ3P.js} +22 -10
- package/dist/chunk-MCQ4TJ3P.js.map +1 -0
- package/dist/{chunk-5JAQVXPV.js → chunk-O2OHGE4S.js} +4 -4
- package/dist/{chunk-5JAQVXPV.js.map → chunk-O2OHGE4S.js.map} +1 -1
- package/dist/{chunk-7MANNJ3U.js → chunk-O4PANZI2.js} +5 -5
- package/dist/{chunk-7MANNJ3U.js.map → chunk-O4PANZI2.js.map} +1 -1
- package/dist/{chunk-H5YXL4KI.js → chunk-SAXDHVJZ.js} +3 -3
- package/dist/{chunk-H5YXL4KI.js.map → chunk-SAXDHVJZ.js.map} +1 -1
- package/dist/{chunk-67AXL4OK.js → chunk-U3TV7SRR.js} +4 -4
- package/dist/{chunk-67AXL4OK.js.map → chunk-U3TV7SRR.js.map} +1 -1
- package/dist/{chunk-PWXN2KHV.js → chunk-UAYAK7N4.js} +5 -5
- package/dist/{chunk-PWXN2KHV.js.map → chunk-UAYAK7N4.js.map} +1 -1
- package/dist/{chunk-DHN6VW4B.js → chunk-WEQN6EWW.js} +4 -4
- package/dist/{chunk-DHN6VW4B.js.map → chunk-WEQN6EWW.js.map} +1 -1
- package/dist/{chunk-VSLSRDQZ.js → chunk-XOBPOVFT.js} +3 -3
- package/dist/{chunk-VSLSRDQZ.js.map → chunk-XOBPOVFT.js.map} +1 -1
- package/dist/{chunk-QLHOORR7.js → chunk-YPRW2ROJ.js} +2 -2
- package/dist/{chunk-QLHOORR7.js.map → chunk-YPRW2ROJ.js.map} +1 -1
- package/dist/{chunk-BKE2E5AC.js → chunk-ZE5WYJVU.js} +7 -7
- package/dist/{chunk-BKE2E5AC.js.map → chunk-ZE5WYJVU.js.map} +1 -1
- package/dist/cli/index.js +199 -104
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/asset-feeds.d.ts +8 -1
- package/dist/cli/src/asset-feeds.d.ts.map +1 -1
- package/dist/cli/src/commands/manage.d.ts +33 -22
- package/dist/cli/src/commands/manage.d.ts.map +1 -1
- package/dist/connectors/config.js +7 -7
- package/dist/connectors/index.js +8 -8
- package/dist/connectors/src/fleet-health-gate.d.ts.map +1 -1
- package/dist/connectors/src/mount-placeholder.d.ts +8 -0
- package/dist/connectors/src/mount-placeholder.d.ts.map +1 -1
- package/dist/connectors/src/secrets.d.ts +14 -14
- package/dist/connectors/src/secrets.d.ts.map +1 -1
- package/dist/core/index.js +6 -6
- package/dist/core/manifest.js +2 -2
- package/dist/core/models.js +1 -1
- package/dist/core/publish-manifest.js +2 -2
- package/dist/core/runtime-assets.js +5 -5
- package/dist/core/src/index.d.ts +1 -1
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/models.d.ts +28 -0
- package/dist/core/src/models.d.ts.map +1 -1
- package/dist/core/workspace-config.js +4 -4
- package/dist/deploy/index.js +6 -6
- package/dist/discovery/index.js +4 -4
- package/dist/{ensure-sources-GYEQ65ET.js → ensure-sources-HMMEQEZC.js} +11 -11
- package/dist/{ensure-sources-GYEQ65ET.js.map → ensure-sources-HMMEQEZC.js.map} +1 -1
- package/dist/factory-assets/connectors/deploy.js +8 -8
- package/dist/factory-assets/connectors/devserver.js +8 -8
- package/dist/factory-assets/connectors/flow/adapter.js +8 -8
- package/dist/factory-assets/connectors/flow/engine.js +6 -6
- package/dist/factory-assets/connectors/flow/run-flow.js +9 -9
- package/dist/factory-assets/connectors/flow.js +8 -8
- package/dist/factory-assets/connectors/git.js +8 -8
- package/dist/factory-assets/connectors/gmail.js +8 -8
- package/dist/factory-assets/connectors/googledrive.js +8 -8
- package/dist/factory-assets/connectors/local.js +8 -8
- package/dist/factory-assets/connectors/mattermost.js +8 -8
- package/dist/factory-assets/connectors/memory.js +8 -8
- package/dist/factory-assets/connectors/minio.js +8 -8
- package/dist/factory-assets/connectors/postgres.js +8 -8
- package/dist/factory-assets/connectors/s3.js +8 -8
- package/dist/factory-assets/connectors/sharepoint.js +8 -8
- package/dist/factory-assets/connectors/sqlite.js +8 -8
- package/dist/factory-assets/connectors/static-server.js +8 -8
- package/dist/factory-assets/connectors/tunnel.js +8 -8
- package/dist/factory-assets/connectors/webdav.js +8 -8
- package/dist/factory-assets/connectors/xstate-store.js +8 -8
- package/dist/factory-assets/connectors/xstate.js +8 -8
- package/dist/{flows-TJUVSMRR.js → flows-O7OXGFIY.js} +3 -3
- package/dist/{flows-TJUVSMRR.js.map → flows-O7OXGFIY.js.map} +1 -1
- package/dist/library/index.js +9 -9
- package/dist/library/install.js +7 -7
- package/dist/open-library-5WWTBHQD.js +23 -0
- package/dist/{open-library-GPZUB7N3.js.map → open-library-5WWTBHQD.js.map} +1 -1
- package/dist/paths-UC3ZHLKC.js +15 -0
- package/dist/{paths-R6WA7PKV.js.map → paths-UC3ZHLKC.js.map} +1 -1
- package/dist/{plugin-store-TF7GECYJ.js → plugin-store-R2WLXRT3.js} +8 -8
- package/dist/{plugin-store-TF7GECYJ.js.map → plugin-store-R2WLXRT3.js.map} +1 -1
- package/dist/runner/index.js +13 -13
- package/dist/runner/src/external-mcp.d.ts +24 -1
- package/dist/runner/src/external-mcp.d.ts.map +1 -1
- package/dist/runner/src/mcp-runtime-handlers.d.ts +42 -0
- package/dist/runner/src/mcp-runtime-handlers.d.ts.map +1 -0
- package/dist/runner/src/resources.d.ts +12 -0
- package/dist/runner/src/resources.d.ts.map +1 -1
- package/dist/runner/src/runner-capabilities.d.ts +33 -0
- package/dist/runner/src/runner-capabilities.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts +18 -1
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/runner/src/session-builder.d.ts +8 -0
- package/dist/runner/src/session-builder.d.ts.map +1 -1
- package/dist/runner/src/session-resource-handlers.d.ts +5 -1
- package/dist/runner/src/session-resource-handlers.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +8 -8
- package/dist/sdk/bridge.js +3 -3
- package/dist/sdk/core.js +6 -6
- package/dist/sdk/flow.js +6 -6
- package/dist/sdk/index.js +13 -13
- package/dist/sdk/runner.js +13 -13
- package/dist/{setup-YKL43RQJ.js → setup-QQ3SNNWP.js} +11 -11
- package/dist/{setup-YKL43RQJ.js.map → setup-QQ3SNNWP.js.map} +1 -1
- package/dist/store-client-4GKV4LOD.js +15 -0
- package/dist/{store-client-H7MHTZVU.js.map → store-client-4GKV4LOD.js.map} +1 -1
- package/dist/tui/index.js +13 -13
- package/dist/types/src/events.d.ts +22 -4
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +1 -1
- package/dist/workspace-plugin/adapters/omp.js +3 -3
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/asset-feeds-6R2C2NHB.js.map +0 -1
- package/dist/chunk-4RSCLQYX.js.map +0 -1
- package/dist/chunk-LFDZYCEO.js.map +0 -1
- package/dist/chunk-NGJ6E344.js.map +0 -1
- package/dist/chunk-UQ5JY2GQ.js.map +0 -1
- package/dist/open-library-GPZUB7N3.js +0 -23
- package/dist/paths-R6WA7PKV.js +0 -15
- package/dist/store-client-H7MHTZVU.js +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.36.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#143](https://github.com/skaile-ai/workspaces/pull/143) [`987613d`](https://github.com/skaile-ai/workspaces/commit/987613da9a77b3a4d8ceb3e47a0763cf2806af36) Thanks [@peteralbert](https://github.com/peteralbert)! - feat: live MCP hot-plug-on-assign — new `runner.add_mcp_server` capability (connect a remote/stdio MCP server to a running session and register its `mcp__<id>__*` tools with no restart) and MCP servers are now reported in the `resources_available` event (`mcp_servers: McpServerInfo[]`) so the platform can show a truthful Live/Restart badge.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#141](https://github.com/skaile-ai/workspaces/pull/141) [`ffc110e`](https://github.com/skaile-ai/workspaces/commit/ffc110eabb97e19d8f2f76f0354fdd5108da7083) Thanks [@Frozen666](https://github.com/Frozen666)! - fix(bridge): classify a 401 that recurs after a successful credential refresh as an `account` failure, not `auth`
|
|
12
|
+
|
|
13
|
+
When Anthropic returns 401 for a non-auth reason (hidden-tier rate limit, billing block, anti-abuse throttle on OAuth tokens), the bridge refreshed the credential, retried, hit the same 401, and surfaced "Invalid authentication credentials" — a wrong, non-actionable message. The driver now downgrades a post-refresh 401 (`this.authSelfHealUsed === true`) from `auth` to a new `account` category and surfaces `AccountUnavailableError` (not an `AuthError`, so the self-heal does not loop). Applied on both the thrown-exception (`handleConsumerError`) and `is_error`-result (`handleResultErrorPayload`) paths. Adds `"account"` to `ErrorCategory` in `@skaile/workspaces/types`.
|
|
14
|
+
|
|
15
|
+
## 0.35.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [#122](https://github.com/skaile-ai/workspaces/pull/122) [`a20ed98`](https://github.com/skaile-ai/workspaces/commit/a20ed9841a4e10c82c2039ca726159a6493d3bdd) Thanks [@mortegro](https://github.com/mortegro)! - `skaile manage` now groups assets `publisher → domain → asset`, surfacing sidecar
|
|
20
|
+
`DOMAIN.md` navigational domains. Repo provenance moves from a grouping level to a
|
|
21
|
+
dim per-asset badge. Domain headers are navigational (collapse/expand + a `[d]`
|
|
22
|
+
info region showing the domain description, relation badge, recommended pick, and
|
|
23
|
+
sidecar source) and never bulk-install. Per-asset relation glyphs (`[add]`/`▷alt`/
|
|
24
|
+
`⇣N`) and a `★` recommended marker render from the domain's metadata.
|
|
25
|
+
|
|
26
|
+
Adds the `CatalogDomain` type and `DomainRelation` union to `@skaile/workspaces/core`,
|
|
27
|
+
and a `domains` channel on the manage feed (`AssetFeedResult.domains`), populated
|
|
28
|
+
when the connected catalog source exposes `listDomains` and empty otherwise — so a
|
|
29
|
+
domain-free catalog renders exactly like the previous flat publisher list.
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- [#137](https://github.com/skaile-ai/workspaces/pull/137) [`742e6d8`](https://github.com/skaile-ai/workspaces/commit/742e6d87b3b797eaad77c3a5e1ebc8e1e55bc73b) Thanks [@peteralbert](https://github.com/peteralbert)! - fix(connectors): ungate on dispose when a gate is still in-flight
|
|
34
|
+
|
|
35
|
+
`FleetHealthGate.dispose()` now also handles the in-flight gate window. While an `establish()` is pending, `gated` is still `false` but `pendingGated` is `true`; the old guard returned the in-flight promise without enqueuing an `ungate()`, leaking the read-only barrier once the gate finished. `dispose()` now clears `pendingGated` and enqueues `ungate()`, which chains after the in-flight establish via the existing transition queue.
|
|
36
|
+
|
|
37
|
+
- [#139](https://github.com/skaile-ai/workspaces/pull/139) [`6d37639`](https://github.com/skaile-ai/workspaces/commit/6d37639bcebfd4e1fc24fe2a45c3d8c223b762ce) Thanks [@peteralbert](https://github.com/peteralbert)! - fix(connectors): tolerate a live/broken FUSE target in gate establish
|
|
38
|
+
|
|
39
|
+
`RoMountPlaceholderBarrier.establish()` no longer throws when its target is a live `:rshared` FUSE bind or a broken one. The `mkdir(target, { recursive: true })` step used to surface a raw `EEXIST` (live/broken mountpoint the kernel reports as existing but Node can't stat as a fresh dir) or `ENOTCONN` ("Transport endpoint is not connected") straight out of `establish()` and out of `FleetHealthGate.gate()`. It now tolerates `EEXIST`/`ENOTCONN`/`EBUSY`/`ENOTDIR` and proceeds to the protect step; any other mkdir failure degrades via the existing `chmodFallback` instead of throwing. The tmpfs-over-mount path already degrades to chmod (and then to a tracked, loudly-logged "unprotected" state) on failure, so a gate-establish attempt over a thrashed fleet bind can never throw a raw error or further corrupt the mount. Fail-closed semantics are preserved.
|
|
40
|
+
|
|
3
41
|
## 0.34.0
|
|
4
42
|
|
|
5
43
|
### Minor Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import { scanRepo } from './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
1
|
+
import './chunk-2Q6OY3SU.js';
|
|
2
|
+
import './chunk-5DPQ766L.js';
|
|
3
|
+
import { scanRepo } from './chunk-56YT6CWS.js';
|
|
4
|
+
import './chunk-SAXDHVJZ.js';
|
|
5
|
+
import './chunk-MAPRKFBD.js';
|
|
6
|
+
import './chunk-BM7XANVN.js';
|
|
7
7
|
import './chunk-XGCXFX7X.js';
|
|
8
8
|
import './chunk-O4JH3KUE.js';
|
|
9
9
|
import './chunk-K5GBV4SA.js';
|
|
@@ -17,7 +17,7 @@ async function libraryAssets() {
|
|
|
17
17
|
const notes = [];
|
|
18
18
|
try {
|
|
19
19
|
const [{ openLibraryManager }, { skaileHomeDir }] = await Promise.all([
|
|
20
|
-
import('./open-library-
|
|
20
|
+
import('./open-library-5WWTBHQD.js'),
|
|
21
21
|
import('./library/index.js')
|
|
22
22
|
]);
|
|
23
23
|
const { manager, close } = await openLibraryManager();
|
|
@@ -46,7 +46,7 @@ async function libraryAssets() {
|
|
|
46
46
|
async function storeAssets(projectDir) {
|
|
47
47
|
const notes = [];
|
|
48
48
|
try {
|
|
49
|
-
const { resolveCatalogSource } = await import('./open-library-
|
|
49
|
+
const { resolveCatalogSource } = await import('./open-library-5WWTBHQD.js');
|
|
50
50
|
const { source, close } = await resolveCatalogSource({ projectDir });
|
|
51
51
|
try {
|
|
52
52
|
const assets = await source.listAssets();
|
|
@@ -63,7 +63,8 @@ async function storeAssets(projectDir) {
|
|
|
63
63
|
requires: [],
|
|
64
64
|
dependencies: []
|
|
65
65
|
}));
|
|
66
|
-
|
|
66
|
+
const domains = await loadDomains(source);
|
|
67
|
+
return { entries, domains, notes };
|
|
67
68
|
} finally {
|
|
68
69
|
close();
|
|
69
70
|
}
|
|
@@ -72,9 +73,15 @@ async function storeAssets(projectDir) {
|
|
|
72
73
|
if (!/local/i.test(msg)) {
|
|
73
74
|
notes.push({ feed: "store", message: msg });
|
|
74
75
|
}
|
|
75
|
-
return { entries: [], notes };
|
|
76
|
+
return { entries: [], domains: [], notes };
|
|
76
77
|
}
|
|
77
78
|
}
|
|
79
|
+
async function loadDomains(source) {
|
|
80
|
+
const fn = source.listDomains;
|
|
81
|
+
if (typeof fn !== "function") return [];
|
|
82
|
+
const domains = await fn.call(source);
|
|
83
|
+
return Array.isArray(domains) ? domains : [];
|
|
84
|
+
}
|
|
78
85
|
function sourceAssets(am) {
|
|
79
86
|
return am.search();
|
|
80
87
|
}
|
|
@@ -89,10 +96,11 @@ async function gatherAssetFeeds(am, projectDir) {
|
|
|
89
96
|
...tag("library", libs.entries),
|
|
90
97
|
...tag("store", store.entries)
|
|
91
98
|
],
|
|
99
|
+
domains: store.domains,
|
|
92
100
|
notes: [...libs.notes, ...store.notes]
|
|
93
101
|
};
|
|
94
102
|
}
|
|
95
103
|
|
|
96
104
|
export { gatherAssetFeeds };
|
|
97
|
-
//# sourceMappingURL=asset-feeds-
|
|
98
|
-
//# sourceMappingURL=asset-feeds-
|
|
105
|
+
//# sourceMappingURL=asset-feeds-PCLTE2W5.js.map
|
|
106
|
+
//# sourceMappingURL=asset-feeds-PCLTE2W5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../cli/src/asset-feeds.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AA+DA,eAAe,aAAA,GAAyE;AACtF,EAAA,MAAM,QAAoB,EAAC;AAC3B,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,EAAE,kBAAA,EAAmB,EAAG,EAAE,eAAe,CAAA,GAAI,MAAM,OAAA,CAAQ,GAAA,CAAI;AAAA,MACpE,OAAO,4BAAmB,CAAA;AAAA,MAC1B,OAAO,oBAA4B;AAAA,KACpC,CAAA;AACD,IAAA,MAAM,EAAE,OAAA,EAAS,KAAA,EAAM,GAAI,MAAM,kBAAA,EAAmB;AACpD,IAAA,IAAI;AACF,MAAA,MAAM,UAAA,GAAkB,IAAA,CAAA,IAAA,CAAK,aAAA,EAAc,EAAG,SAAS,CAAA;AACvD,MAAA,M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A,CAAQ,OAAO,CAAA,GAAI,UAAU,EAAC;AAC7C;AAQA,SAAS,aAAa,EAAA,EAAsD;AAC1E,EAAA,OAAO,GAAG,MAAA,EAAO;AACnB;AAGA,SAAS,GAAA,CAAI,QAAqB,OAAA,EAAwC;AACxE,EAAA,OAAO,QAAQ,GAAA,CAAI,CAAC,WAAW,EAAE,MAAA,EAAQ,OAAM,CAAE,CAAA;AACnD;AAQA,eAAsB,gBAAA,CACpB,IACA,UAAA,EAC0B;AAC1B,EAAA,MAAM,CAAC,IAAA,EAAM,KAAK,CAAA,GAAI,MAAM,OAAA,CAAQ,GAAA,CAAI,CAAC,aAAA,EAAc,EAAG,WAAA,CAAY,UAAU,CAAC,CAAC,CAAA;AAClF,EAAA,OAAO;AAAA,IACL,OAAA,EAAS;AAAA,MACP,GAAG,GAAA,CAAI,QAAA,EAAU,YAAA,CAAa,EAAE,CAAC,CAAA;AAAA,MACjC,GAAG,GAAA,CAAI,SAAA,EAAW,IAAA,CAAK,OAAO,CAAA;AAAA,MAC9B,GAAG,GAAA,CAAI,OAAA,EAAS,KAAA,CAAM,OAAO;AAAA,KAC/B;AAAA,IACA,SAAS,KAAA,CAAM,OAAA;AAAA,IACf,OAAO,CAAC,GAAG,KAAK,KAAA,EAAO,GAAG,MAAM,KAAK;AAAA,GACvC;AACF","file":"asset-feeds-PCLTE2W5.js","sourcesContent":["/**\n * asset-feeds.ts — gather installable assets from every feed the manage TUI\n * surfaces.\n *\n * Three 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 * - **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 CatalogDomain,\n type CatalogEntry,\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\";\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\" | \"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\nexport interface AssetFeedResult {\n entries: OriginEntry[];\n /**\n * Display-only domain metadata, keyed (by the consumer) on `slug`. Populated\n * from the store's `catalog.listDomains` when the connected catalog source\n * exposes it; empty otherwise. The manage TUI joins `entry.domainSlug` → a\n * domain for grouping headers, descriptions, and relation badges.\n */\n domains: CatalogDomain[];\n notes: FeedNote[];\n}\n\n/**\n * Pull assets from local libraries (the authoring places under\n * `~/.skaile/libraries/<name>/`, not the `~/.skaile/sources/` cache). Each\n * library's `path` is scanned with `scanRepo` and tagged with\n * `repository = \"library:<name>\"` so the manage TUI groups them into their\n * own headers.\n */\nasync function libraryAssets(): Promise<{ entries: CatalogEntry[]; notes: FeedNote[] }> {\n const notes: FeedNote[] = [];\n try {\n const [{ openLibraryManager }, { skaileHomeDir }] = await Promise.all([\n import(\"./open-library.ts\"),\n import(\"@skaile/workspaces/library\"),\n ]);\n const { manager, close } = await openLibraryManager();\n try {\n const sourcesDir = path.join(skaileHomeDir(), \"sources\");\n const libs = (await manager.listLibraries()).filter((l) => !l.path.startsWith(sourcesDir));\n const entries: CatalogEntry[] = [];\n for (const lib of libs) {\n if (!existsSync(lib.path)) continue;\n for (const e of scanRepo(lib.path, `library:${lib.name}`)) {\n entries.push(e);\n }\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 domains: CatalogDomain[];\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 domainSlug: a.domainSlug,\n category: a.category,\n version: a.version,\n requires: [],\n dependencies: [],\n }));\n // Domains are optional on the catalog source — only the store backend\n // (post Part 4 `catalog.listDomains`) exposes them. Duck-type the call so\n // older sources and the local catalog degrade to no domains, not an error.\n const domains = await loadDomains(source);\n return { entries, domains, 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: [], domains: [], notes };\n }\n}\n\n/** Optional `listDomains` capability — returns `[]` when the source lacks it. */\nasync function loadDomains(source: unknown): Promise<CatalogDomain[]> {\n const fn = (source as { listDomains?: () => Promise<CatalogDomain[]> }).listDomains;\n if (typeof fn !== \"function\") return [];\n const domains = await fn.call(source);\n return Array.isArray(domains) ? domains : [];\n}\n\n/**\n * Project-source feed: leans on `AssetManager.search()`, which now merges\n * `skaile.yaml`'s `sources:` field into the repositories map. Provided as a\n * function rather than an inline call so the caller can supply a fresh\n * `AssetManager` instance.\n */\nfunction sourceAssets(am: { search: () => CatalogEntry[] }): CatalogEntry[] {\n return am.search();\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 three 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.\n */\nexport async function gatherAssetFeeds(\n am: { search: () => CatalogEntry[] },\n projectDir: string,\n): Promise<AssetFeedResult> {\n const [libs, store] = await Promise.all([libraryAssets(), storeAssets(projectDir)]);\n return {\n entries: [\n ...tag(\"source\", sourceAssets(am)),\n ...tag(\"library\", libs.entries),\n ...tag(\"store\", store.entries),\n ],\n domains: store.domains,\n notes: [...libs.notes, ...store.notes],\n };\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { AssetManager, parseCanonicalLockKey } from '../chunk-
|
|
2
|
-
export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
1
|
+
export { AssetManager, parseCanonicalLockKey } from '../chunk-ZE5WYJVU.js';
|
|
2
|
+
export { createScaffold, deployAll, installAgent, removeAsset } from '../chunk-WEQN6EWW.js';
|
|
3
|
+
import '../chunk-2Q6OY3SU.js';
|
|
4
|
+
import '../chunk-5DPQ766L.js';
|
|
5
|
+
import '../chunk-56YT6CWS.js';
|
|
6
|
+
import '../chunk-SAXDHVJZ.js';
|
|
7
|
+
import '../chunk-MAPRKFBD.js';
|
|
8
|
+
import '../chunk-BM7XANVN.js';
|
|
9
9
|
import '../chunk-XGCXFX7X.js';
|
|
10
10
|
import '../chunk-O4JH3KUE.js';
|
|
11
11
|
import '../chunk-K5GBV4SA.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { createScaffold, deployAll, deployAsset, removeAsset } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
1
|
+
export { createScaffold, deployAll, deployAsset, removeAsset } from '../chunk-WEQN6EWW.js';
|
|
2
|
+
import '../chunk-2Q6OY3SU.js';
|
|
3
|
+
import '../chunk-5DPQ766L.js';
|
|
4
|
+
import '../chunk-56YT6CWS.js';
|
|
5
|
+
import '../chunk-SAXDHVJZ.js';
|
|
6
|
+
import '../chunk-MAPRKFBD.js';
|
|
7
|
+
import '../chunk-BM7XANVN.js';
|
|
8
8
|
import '../chunk-XGCXFX7X.js';
|
|
9
9
|
import '../chunk-O4JH3KUE.js';
|
|
10
10
|
import '../chunk-K5GBV4SA.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dispatchCapability } from '../../chunk-RRVQAE5D.js';
|
|
2
2
|
import { fetchProviderModels } from '../../chunk-BMQKMOQY.js';
|
|
3
|
-
import { AuthError, classifyClaudeSdkError } from '../../chunk-
|
|
4
|
-
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger } from '../../chunk-
|
|
3
|
+
import { AuthError, classifyClaudeSdkError, reclassifyAuthAsAccountUnavailable, AccountUnavailableError } from '../../chunk-GAH4YRCI.js';
|
|
4
|
+
import { BUILTIN_DRIVER_CATALOG, AgentDriver, getBridgeLogger } from '../../chunk-KM6DCR7A.js';
|
|
5
5
|
import '../../chunk-6E6PKKAD.js';
|
|
6
6
|
import '../../chunk-JB35MVBN.js';
|
|
7
7
|
import '../../chunk-NSBPE2FW.js';
|
|
@@ -796,16 +796,17 @@ var ClaudeSdkDriver = class extends AgentDriver {
|
|
|
796
796
|
this.log.info("aborted");
|
|
797
797
|
return;
|
|
798
798
|
}
|
|
799
|
-
const
|
|
799
|
+
const rawDetail = classifyClaudeSdkError({
|
|
800
800
|
errors: [error.message],
|
|
801
801
|
oauthCredential: this.usingOauthCredential
|
|
802
802
|
});
|
|
803
|
+
const detail = rawDetail.category === "auth" && this.authSelfHealUsed ? reclassifyAuthAsAccountUnavailable(rawDetail) : rawDetail;
|
|
803
804
|
this.log.error("consumer error", {
|
|
804
805
|
message: error.message,
|
|
805
806
|
category: detail.category,
|
|
806
807
|
retryable: detail.retryable
|
|
807
808
|
});
|
|
808
|
-
const surfaced = detail.category === "auth" ? new AuthError(detail) : error;
|
|
809
|
+
const surfaced = detail.category === "auth" ? new AuthError(detail) : detail.category === "account" ? new AccountUnavailableError(detail) : error;
|
|
809
810
|
this.failTurn(surfaced, detail);
|
|
810
811
|
}
|
|
811
812
|
/**
|
|
@@ -1067,12 +1068,13 @@ var ClaudeSdkDriver = class extends AgentDriver {
|
|
|
1067
1068
|
* empty errors defer to the consumer-error catch.
|
|
1068
1069
|
*/
|
|
1069
1070
|
handleResultErrorPayload(msg, errors) {
|
|
1070
|
-
const
|
|
1071
|
+
const rawDetail = classifyClaudeSdkError({
|
|
1071
1072
|
errors,
|
|
1072
1073
|
terminalReason: msg.terminal_reason,
|
|
1073
1074
|
subtype: msg.subtype,
|
|
1074
1075
|
oauthCredential: this.usingOauthCredential
|
|
1075
1076
|
});
|
|
1077
|
+
const detail = rawDetail.category === "auth" && this.authSelfHealUsed ? reclassifyAuthAsAccountUnavailable(rawDetail) : rawDetail;
|
|
1076
1078
|
this.log.error("turn ended with error", {
|
|
1077
1079
|
subtype: msg.subtype,
|
|
1078
1080
|
terminalReason: msg.terminal_reason,
|
|
@@ -1083,6 +1085,8 @@ var ClaudeSdkDriver = class extends AgentDriver {
|
|
|
1083
1085
|
const errorText = errors.join("; ") || `Agent stopped: ${msg.subtype}`;
|
|
1084
1086
|
if (detail.category === "auth") {
|
|
1085
1087
|
this.failTurn(new AuthError({ ...detail, message: errorText }), detail);
|
|
1088
|
+
} else if (detail.category === "account") {
|
|
1089
|
+
this.failTurn(new AccountUnavailableError({ ...detail, message: errorText }), detail);
|
|
1086
1090
|
} else if (errors.length > 0) {
|
|
1087
1091
|
this.emit("agent-event", {
|
|
1088
1092
|
type: "error",
|