@skaile/workspaces 3.19.0 → 3.20.1
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 +55 -0
- package/dist/{asset-feeds-OO3NIRVI.js → asset-feeds-V4DZPOVS.js} +7 -7
- package/dist/{asset-feeds-OO3NIRVI.js.map → asset-feeds-V4DZPOVS.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +3 -3
- package/dist/asset-manager/index.js +6 -6
- package/dist/asset-manager/installer.js +4 -4
- package/dist/asset-manager/src/index.d.ts +7 -0
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/bridge/drivers/claude-sdk.js +4 -4
- package/dist/bridge/drivers/codex.js +1 -1
- package/dist/bridge/drivers/continue.js +2 -2
- package/dist/bridge/drivers/echo.js +1 -1
- package/dist/bridge/drivers/gemini.js +3 -3
- package/dist/bridge/drivers/goose.js +2 -2
- package/dist/bridge/drivers/omp.js +1 -1
- package/dist/bridge/drivers/opencode.js +2 -2
- package/dist/bridge/drivers/qwen.js +3 -3
- package/dist/bridge/index.js +5 -5
- package/dist/{chunk-7ECAUWFU.js → chunk-5JTA7HNJ.js} +9 -9
- package/dist/{chunk-7ECAUWFU.js.map → chunk-5JTA7HNJ.js.map} +1 -1
- package/dist/{chunk-KB2GC6YY.js → chunk-6FZCQT3V.js} +2 -2
- package/dist/{chunk-KB2GC6YY.js.map → chunk-6FZCQT3V.js.map} +1 -1
- package/dist/{chunk-XL45U3C5.js → chunk-6H6HLMWG.js} +3 -3
- package/dist/{chunk-XL45U3C5.js.map → chunk-6H6HLMWG.js.map} +1 -1
- package/dist/{chunk-PWBURVRH.js → chunk-74KGZA7R.js} +3 -3
- package/dist/{chunk-PWBURVRH.js.map → chunk-74KGZA7R.js.map} +1 -1
- package/dist/{chunk-YLSMYOHN.js → chunk-AQJ5ZYD6.js} +36 -25
- package/dist/chunk-AQJ5ZYD6.js.map +1 -0
- package/dist/{chunk-34RUVLL6.js → chunk-CGLJHFQI.js} +7 -7
- package/dist/{chunk-34RUVLL6.js.map → chunk-CGLJHFQI.js.map} +1 -1
- package/dist/{chunk-7J4W54DV.js → chunk-DFELEIPJ.js} +5 -5
- package/dist/{chunk-7J4W54DV.js.map → chunk-DFELEIPJ.js.map} +1 -1
- package/dist/{chunk-4JDCKPTM.js → chunk-EKFFTOQJ.js} +2 -2
- package/dist/{chunk-4JDCKPTM.js.map → chunk-EKFFTOQJ.js.map} +1 -1
- package/dist/{chunk-YWGL52GT.js → chunk-F4ORFHB5.js} +4 -4
- package/dist/{chunk-YWGL52GT.js.map → chunk-F4ORFHB5.js.map} +1 -1
- package/dist/{chunk-SZ3HIMSX.js → chunk-HKKTVD45.js} +27 -14
- package/dist/chunk-HKKTVD45.js.map +1 -0
- package/dist/{chunk-H662SXKS.js → chunk-HSRHO7SK.js} +4 -4
- package/dist/{chunk-H662SXKS.js.map → chunk-HSRHO7SK.js.map} +1 -1
- package/dist/{chunk-DCG4UWJM.js → chunk-IB4XKQMQ.js} +3 -3
- package/dist/{chunk-DCG4UWJM.js.map → chunk-IB4XKQMQ.js.map} +1 -1
- package/dist/{chunk-SBDTLR3Q.js → chunk-IUOXPQA3.js} +2 -2
- package/dist/{chunk-SBDTLR3Q.js.map → chunk-IUOXPQA3.js.map} +1 -1
- package/dist/{chunk-WB4EWSDR.js → chunk-K5BUXOBH.js} +3 -3
- package/dist/{chunk-WB4EWSDR.js.map → chunk-K5BUXOBH.js.map} +1 -1
- package/dist/{chunk-RPVTPVGX.js → chunk-MBARHWMZ.js} +71 -36
- package/dist/chunk-MBARHWMZ.js.map +1 -0
- package/dist/{chunk-QEZPFJX3.js → chunk-NCHMJPKN.js} +3 -3
- package/dist/{chunk-QEZPFJX3.js.map → chunk-NCHMJPKN.js.map} +1 -1
- package/dist/{chunk-JVFZ5R7L.js → chunk-NW65H5EV.js} +3 -3
- package/dist/{chunk-JVFZ5R7L.js.map → chunk-NW65H5EV.js.map} +1 -1
- package/dist/{chunk-S635WMXH.js → chunk-OHLYKLGJ.js} +4 -4
- package/dist/{chunk-S635WMXH.js.map → chunk-OHLYKLGJ.js.map} +1 -1
- package/dist/{chunk-HFL3PYJ7.js → chunk-OJOK4VKC.js} +3 -3
- package/dist/{chunk-HFL3PYJ7.js.map → chunk-OJOK4VKC.js.map} +1 -1
- package/dist/{chunk-3BOWST5G.js → chunk-PLLVREB2.js} +59 -26
- package/dist/chunk-PLLVREB2.js.map +1 -0
- package/dist/{chunk-OLRKNOO2.js → chunk-PVVPGD7P.js} +4 -4
- package/dist/{chunk-OLRKNOO2.js.map → chunk-PVVPGD7P.js.map} +1 -1
- package/dist/{chunk-5Y4RBNT2.js → chunk-RQ6YLAXF.js} +6 -6
- package/dist/{chunk-5Y4RBNT2.js.map → chunk-RQ6YLAXF.js.map} +1 -1
- package/dist/{chunk-5T7Y3AZU.js → chunk-SIREWRZE.js} +3 -3
- package/dist/{chunk-5T7Y3AZU.js.map → chunk-SIREWRZE.js.map} +1 -1
- package/dist/{chunk-QG2ZXU5W.js → chunk-TCHEW3T2.js} +4 -4
- package/dist/{chunk-QG2ZXU5W.js.map → chunk-TCHEW3T2.js.map} +1 -1
- package/dist/{chunk-SFCVAEJ5.js → chunk-W5LPG3X6.js} +3 -3
- package/dist/{chunk-SFCVAEJ5.js.map → chunk-W5LPG3X6.js.map} +1 -1
- package/dist/cli/index.js +47 -47
- package/dist/connectors/config.js +4 -4
- package/dist/connectors/index.js +8 -8
- package/dist/core/index.js +3 -3
- package/dist/core/runtime-assets.js +2 -2
- package/dist/core/src/index.d.ts +2 -2
- package/dist/core/src/index.d.ts.map +1 -1
- package/dist/core/src/repo-manager.d.ts +30 -1
- package/dist/core/src/repo-manager.d.ts.map +1 -1
- package/dist/core/workspace-config.js +1 -1
- package/dist/deploy/index.js +3 -3
- package/dist/{ensure-sources-PR7YN3HV.js → ensure-sources-HXAPBBA5.js} +9 -9
- package/dist/{ensure-sources-PR7YN3HV.js.map → ensure-sources-HXAPBBA5.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +8 -8
- 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 +4 -4
- 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/driver.d.ts.map +1 -1
- 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-COBS26MK.js → flows-4DYGXE4A.js} +6 -6
- package/dist/{flows-COBS26MK.js.map → flows-4DYGXE4A.js.map} +1 -1
- package/dist/{helpers-TFSZSWT5.js → helpers-3VAE3TYQ.js} +9 -9
- package/dist/{helpers-TFSZSWT5.js.map → helpers-3VAE3TYQ.js.map} +1 -1
- package/dist/library/index.js +4 -4
- package/dist/library/install.js +3 -3
- package/dist/{library-publish-WVIUUYG3.js → library-publish-Z7QQDGOL.js} +13 -13
- package/dist/{library-publish-WVIUUYG3.js.map → library-publish-Z7QQDGOL.js.map} +1 -1
- package/dist/{open-library-2AWZGIWE.js → open-library-424UBGA7.js} +11 -11
- package/dist/{open-library-2AWZGIWE.js.map → open-library-424UBGA7.js.map} +1 -1
- package/dist/{paths-CZPCCBYX.js → paths-CZEH643M.js} +6 -6
- package/dist/{paths-CZPCCBYX.js.map → paths-CZEH643M.js.map} +1 -1
- package/dist/{plugin-store-ZEIBSNTO.js → plugin-store-QJNBPIQK.js} +5 -5
- package/dist/{plugin-store-ZEIBSNTO.js.map → plugin-store-QJNBPIQK.js.map} +1 -1
- package/dist/{project-XZDKNIRG.js → project-HLSVZVAF.js} +10 -10
- package/dist/{project-XZDKNIRG.js.map → project-HLSVZVAF.js.map} +1 -1
- package/dist/resolver/index.js +3 -3
- package/dist/runner/index.js +13 -13
- package/dist/runner/src/ai-credential-refresh.d.ts +13 -0
- package/dist/runner/src/ai-credential-refresh.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +6 -6
- package/dist/sdk/bridge.js +5 -5
- package/dist/sdk/core.js +3 -3
- package/dist/sdk/flow.js +4 -4
- package/dist/sdk/index.js +13 -13
- package/dist/sdk/resolver.js +3 -3
- package/dist/sdk/runner.js +13 -13
- package/dist/{setup-J34TR5IR.js → setup-WXYQJW56.js} +7 -7
- package/dist/{setup-J34TR5IR.js.map → setup-WXYQJW56.js.map} +1 -1
- package/dist/{skills-LG6IQSSN.js → skills-IE3IWWB7.js} +5 -5
- package/dist/{skills-LG6IQSSN.js.map → skills-IE3IWWB7.js.map} +1 -1
- package/dist/{source-QYINHHUP.js → source-SWZRKTKL.js} +12 -12
- package/dist/{source-QYINHHUP.js.map → source-SWZRKTKL.js.map} +1 -1
- package/dist/{source-manifest-publish-3RBW5E2O.js → source-manifest-publish-XBRXFOHO.js} +14 -14
- package/dist/{source-manifest-publish-3RBW5E2O.js.map → source-manifest-publish-XBRXFOHO.js.map} +1 -1
- package/dist/tui/index.js +13 -13
- package/dist/workspace-plugin/adapters/mcp.js +5 -5
- package/dist/workspace-plugin/adapters/omp.js +7 -7
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3BOWST5G.js.map +0 -1
- package/dist/chunk-RPVTPVGX.js.map +0 -1
- package/dist/chunk-SZ3HIMSX.js.map +0 -1
- package/dist/chunk-YLSMYOHN.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-
|
|
3
|
-
import { getStoreConfig, storeFetch, deviceLogin, loadStoreAuthConfig, logout, hasStoredAuth, isStoreAuthenticated, getStoreToken, getStoreIdentity } from '../chunk-
|
|
4
|
-
import { makeSourceCommand, syncProjectSources } from '../chunk-
|
|
5
|
-
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-
|
|
6
|
-
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-
|
|
7
|
-
import { AI_RESOURCES } from '../chunk-
|
|
2
|
+
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-CGLJHFQI.js';
|
|
3
|
+
import { getStoreConfig, storeFetch, deviceLogin, loadStoreAuthConfig, logout, hasStoredAuth, isStoreAuthenticated, getStoreToken, getStoreIdentity } from '../chunk-6H6HLMWG.js';
|
|
4
|
+
import { makeSourceCommand, syncProjectSources } from '../chunk-5JTA7HNJ.js';
|
|
5
|
+
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-DFELEIPJ.js';
|
|
6
|
+
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-74KGZA7R.js';
|
|
7
|
+
import { AI_RESOURCES } from '../chunk-NW65H5EV.js';
|
|
8
8
|
import { LocalSecretsProvider } from '../chunk-6BEGKO2Q.js';
|
|
9
|
-
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-HKKTVD45.js';
|
|
10
|
+
import '../chunk-NCHMJPKN.js';
|
|
11
11
|
import '../chunk-E7HKNQTH.js';
|
|
12
12
|
import '../chunk-FUCYTGAE.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-EKFFTOQJ.js';
|
|
14
14
|
import '../chunk-R6O6YWU7.js';
|
|
15
15
|
import '../chunk-FAI2SMFE.js';
|
|
16
16
|
import '../chunk-7IRJ4K4F.js';
|
|
17
|
-
import { buildClaudePluginFiles } from '../chunk-
|
|
17
|
+
import { buildClaudePluginFiles } from '../chunk-IUOXPQA3.js';
|
|
18
18
|
import '../chunk-X5YPJV4N.js';
|
|
19
19
|
import '../chunk-W3UDISS2.js';
|
|
20
20
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -23,42 +23,42 @@ import '../chunk-GTS2FODO.js';
|
|
|
23
23
|
import '../chunk-WQ7DE5UC.js';
|
|
24
24
|
import '../chunk-32NA4TVC.js';
|
|
25
25
|
import '../chunk-T3YLZQS4.js';
|
|
26
|
-
import { runFlow, resumeFlow } from '../chunk-
|
|
26
|
+
import { runFlow, resumeFlow } from '../chunk-RQ6YLAXF.js';
|
|
27
27
|
import '../chunk-4R6DROGN.js';
|
|
28
28
|
import { validateFlowVersions, parseSkillFrontmatter } from '../chunk-3XXQPHGL.js';
|
|
29
29
|
import '../chunk-7BUZQVRR.js';
|
|
30
30
|
import '../chunk-2FDKUKDE.js';
|
|
31
|
-
import '../chunk-
|
|
32
|
-
import '../chunk-
|
|
33
|
-
import '../chunk-
|
|
31
|
+
import '../chunk-PLLVREB2.js';
|
|
32
|
+
import '../chunk-SIREWRZE.js';
|
|
33
|
+
import '../chunk-K5BUXOBH.js';
|
|
34
34
|
import '../chunk-3NCGSSCU.js';
|
|
35
35
|
import '../chunk-LOO5CB5M.js';
|
|
36
36
|
import '../chunk-7ZO3MUP3.js';
|
|
37
37
|
import '../chunk-GURXUF2J.js';
|
|
38
38
|
import '../chunk-GAH4YRCI.js';
|
|
39
|
-
import '../chunk-
|
|
39
|
+
import '../chunk-6FZCQT3V.js';
|
|
40
40
|
import '../chunk-6E6PKKAD.js';
|
|
41
41
|
import '../chunk-IFGTRL2I.js';
|
|
42
|
-
import { projectAiAssetsRoots, loadFlow, loadAllFlowEntries, findFlowFileInRoots } from '../chunk-
|
|
42
|
+
import { projectAiAssetsRoots, loadFlow, loadAllFlowEntries, findFlowFileInRoots } from '../chunk-W5LPG3X6.js';
|
|
43
43
|
import '../chunk-YCMHWNZA.js';
|
|
44
44
|
import '../chunk-CP62G5PK.js';
|
|
45
45
|
import '../chunk-2D5BYAL6.js';
|
|
46
46
|
import { nodeLabel, nodeSkillAsset, nodeIsInert, nodeIsOptional, nodeRunKind, flowSkillVersionPins } from '../chunk-ELPR5XBG.js';
|
|
47
47
|
import '../chunk-23L3P7IB.js';
|
|
48
|
-
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-
|
|
49
|
-
import { getStoreManifestsDir, getDefaultValue, isSecretPlaceholder } from '../chunk-
|
|
48
|
+
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-AQJ5ZYD6.js';
|
|
49
|
+
import { getStoreManifestsDir, getDefaultValue, isSecretPlaceholder } from '../chunk-TCHEW3T2.js';
|
|
50
50
|
import '../chunk-DZ4UZOFB.js';
|
|
51
51
|
import '../chunk-UKJMQZV6.js';
|
|
52
52
|
import '../chunk-R7FOF242.js';
|
|
53
53
|
import '../chunk-JXT46QFC.js';
|
|
54
|
-
import '../chunk-
|
|
54
|
+
import '../chunk-OHLYKLGJ.js';
|
|
55
55
|
import '../chunk-CGYEHQOX.js';
|
|
56
|
-
import { resolveSettings, globalSettingsPath, projectSettingsPath, loadSettings, saveSettings, portableSpawn, portableSpawnSync, WorkspaceYamlEditor, resolveLibraryDir, checkAgentSkillConformance, aiResourceRoots, readLock } from '../chunk-
|
|
56
|
+
import { resolveSettings, globalSettingsPath, projectSettingsPath, loadSettings, saveSettings, portableSpawn, portableSpawnSync, WorkspaceYamlEditor, resolveLibraryDir, checkAgentSkillConformance, aiResourceRoots, readLock } from '../chunk-HSRHO7SK.js';
|
|
57
57
|
import '../chunk-F3HNW354.js';
|
|
58
58
|
import { DRIVER_DEFAULTS } from '../chunk-K5GBV4SA.js';
|
|
59
59
|
import { detectDomains, assetSearchDirs } from '../chunk-QVZA2MDT.js';
|
|
60
|
-
import { factoryAssetRoots } from '../chunk-
|
|
61
|
-
import { globalCacheRoot, sourceCacheKey, getGlobalCacheDir, resolveAgentDir, matchPin, coerceVersion, loadSkWorkspaceConfig, resolveSkWorkspaceConfig, storeManifestSlug } from '../chunk-
|
|
60
|
+
import { factoryAssetRoots } from '../chunk-IB4XKQMQ.js';
|
|
61
|
+
import { globalCacheRoot, sourceCacheKey, getGlobalCacheDir, resolveAgentDir, matchPin, coerceVersion, loadSkWorkspaceConfig, resolveSkWorkspaceConfig, storeManifestSlug } from '../chunk-MBARHWMZ.js';
|
|
62
62
|
import { SUPPORTED_DRIVER_TARGETS } from '../chunk-MENCWIHW.js';
|
|
63
63
|
import { SKAILE_MANIFEST_FILENAME, decodeSkaileManifest, loadSkPublishManifest, saveSkPublishManifest } from '../chunk-P4VHQA4N.js';
|
|
64
64
|
import { parseFrontmatter, scanDirectory } from '../chunk-MKZOK4JU.js';
|
|
@@ -120,7 +120,7 @@ async function runSearch(kind, query, opts) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
async function searchIndex(query, kind) {
|
|
123
|
-
const { openLibrary: openLibrary2 } = await import('../open-library-
|
|
123
|
+
const { openLibrary: openLibrary2 } = await import('../open-library-424UBGA7.js');
|
|
124
124
|
const library = await openLibrary2();
|
|
125
125
|
try {
|
|
126
126
|
const defs = await library.listAssetDefs(kind ? { kind } : {});
|
|
@@ -173,7 +173,7 @@ async function searchLocal(query, kind, opts, showStore, airGapped) {
|
|
|
173
173
|
const factory = await searchFactory(projectDir, query, kind);
|
|
174
174
|
let entries = unionEntries(await searchIndex(query, kind), factory);
|
|
175
175
|
if (entries.length === 0 && !query && !kind && !airGapped) {
|
|
176
|
-
const { autoSyncForSearch } = await import('../source-
|
|
176
|
+
const { autoSyncForSearch } = await import('../source-SWZRKTKL.js');
|
|
177
177
|
if (await autoSyncForSearch(projectDir)) {
|
|
178
178
|
entries = unionEntries(await searchIndex(query, kind), factory);
|
|
179
179
|
}
|
|
@@ -227,7 +227,7 @@ async function searchStore(query, kind, opts, airGapped) {
|
|
|
227
227
|
logInfo("air-gapped (cache_ttl: 0) \u2014 local sources only");
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
230
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-424UBGA7.js');
|
|
231
231
|
try {
|
|
232
232
|
const remote = await openCatalogSource2({ projectDir: path35__default.resolve(opts.projectDir) });
|
|
233
233
|
const assets = await remote.listAssets(kind ? { kind } : {});
|
|
@@ -542,7 +542,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
542
542
|
return { entry: match ?? deployed };
|
|
543
543
|
}
|
|
544
544
|
const lookup = opts.storeLookup ?? (async (filter) => {
|
|
545
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
545
|
+
const { resolveCatalogSource } = await import('../open-library-424UBGA7.js');
|
|
546
546
|
const { source, close } = await resolveCatalogSource({ projectDir: opts.projectDir });
|
|
547
547
|
try {
|
|
548
548
|
return await source.listAssets(filter);
|
|
@@ -558,7 +558,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
558
558
|
);
|
|
559
559
|
return { entry: hit ? catalogAssetToEntry(hit) : null };
|
|
560
560
|
} catch (err) {
|
|
561
|
-
const { LocalCatalogDisabledError } = await import('../open-library-
|
|
561
|
+
const { LocalCatalogDisabledError } = await import('../open-library-424UBGA7.js');
|
|
562
562
|
const storeNote = err instanceof Error ? err.message : String(err);
|
|
563
563
|
const disabled = err instanceof LocalCatalogDisabledError || /catalog\.url/i.test(storeNote);
|
|
564
564
|
return { entry: null, storeNote, ...disabled ? { storeDisabled: true } : {} };
|
|
@@ -1178,7 +1178,7 @@ function makeCatalogCommand() {
|
|
|
1178
1178
|
return catalog;
|
|
1179
1179
|
}
|
|
1180
1180
|
async function runLocalCatalogTest(projectDir) {
|
|
1181
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
1181
|
+
const { resolveCatalogSource } = await import('../open-library-424UBGA7.js');
|
|
1182
1182
|
let resolved;
|
|
1183
1183
|
try {
|
|
1184
1184
|
resolved = await resolveCatalogSource({ projectDir });
|
|
@@ -2162,7 +2162,7 @@ async function ensureTargetsRegistered(projectDir) {
|
|
|
2162
2162
|
const { resolveSkWorkspaceConfig: resolveSkWorkspaceConfig2 } = await import('../core/index.js');
|
|
2163
2163
|
const config = resolveSkWorkspaceConfig2(projectDir);
|
|
2164
2164
|
if (config.plugins && config.plugins.length > 0) {
|
|
2165
|
-
const { ensurePluginsLoaded } = await import('../plugin-store-
|
|
2165
|
+
const { ensurePluginsLoaded } = await import('../plugin-store-QJNBPIQK.js');
|
|
2166
2166
|
const result = await ensurePluginsLoaded(projectDir, config.plugins, pluginRegistry);
|
|
2167
2167
|
for (const f of result.failed) logWarn(f.error);
|
|
2168
2168
|
}
|
|
@@ -3417,16 +3417,16 @@ function makeLibraryCommand() {
|
|
|
3417
3417
|
});
|
|
3418
3418
|
cmd.command("publish <lib>").description("Push + register the library's manifest atomically (needs git backend)").option("--asset <ref>", "Publish only the single asset matching this ref/name").option("--create-repo", "Provision + link a public github repo if the library has no remote").option("--ref <gitref>", "Git ref to ingest (default: the library branch or main)").option("--dry-run", "Print the plan; push nothing and call no store endpoint").action(
|
|
3419
3419
|
async (lib, opts) => {
|
|
3420
|
-
const { runLibraryPublish } = await import('../library-publish-
|
|
3420
|
+
const { runLibraryPublish } = await import('../library-publish-Z7QQDGOL.js');
|
|
3421
3421
|
await withStoreErrorHandling(() => runLibraryPublish(lib, opts));
|
|
3422
3422
|
}
|
|
3423
3423
|
);
|
|
3424
3424
|
cmd.command("register <lib>").description("Register the library's manifest without pushing (bytes already on github)").option("--asset <ref>", "Publish only the single asset matching this ref/name").option("--ref <gitref>", "Git ref to ingest (default: the library branch or main)").option("--dry-run", "Print the plan; call no store endpoint").action(async (lib, opts) => {
|
|
3425
|
-
const { runLibraryRegister } = await import('../library-publish-
|
|
3425
|
+
const { runLibraryRegister } = await import('../library-publish-Z7QQDGOL.js');
|
|
3426
3426
|
await withStoreErrorHandling(() => runLibraryRegister(lib, opts));
|
|
3427
3427
|
});
|
|
3428
3428
|
cmd.command("yank <lib>").description("Retract the library's published assets from the store").option("--asset <ref>", "Yank only the single asset matching this ref/name").action(async (lib, opts) => {
|
|
3429
|
-
const { runLibraryYank } = await import('../library-publish-
|
|
3429
|
+
const { runLibraryYank } = await import('../library-publish-Z7QQDGOL.js');
|
|
3430
3430
|
await withStoreErrorHandling(() => runLibraryYank(lib, opts));
|
|
3431
3431
|
});
|
|
3432
3432
|
return cmd;
|
|
@@ -4148,7 +4148,7 @@ function scheduleSoftDepPreview() {
|
|
|
4148
4148
|
}
|
|
4149
4149
|
async function loadAssets() {
|
|
4150
4150
|
softDepPreviewCache.clear();
|
|
4151
|
-
const { gatherAssetFeeds } = await import('../asset-feeds-
|
|
4151
|
+
const { gatherAssetFeeds } = await import('../asset-feeds-V4DZPOVS.js');
|
|
4152
4152
|
const { entries, domains, notes } = await gatherAssetFeeds(am, am.projectDir);
|
|
4153
4153
|
if (notes.length > 0) {
|
|
4154
4154
|
state.message = notes.map((n) => `[${n.feed}] ${n.message}`).join(" \u2022 ");
|
|
@@ -4354,7 +4354,7 @@ function reconcileCollapsedSets(rows) {
|
|
|
4354
4354
|
async function loadSourcesAndLibraries() {
|
|
4355
4355
|
try {
|
|
4356
4356
|
const [{ openLibraryManager: openLibraryManager2 }, { skaileHomeDir }, { getGlobalCacheDir: getGlobalCacheDir2 }] = await Promise.all([
|
|
4357
|
-
import('../open-library-
|
|
4357
|
+
import('../open-library-424UBGA7.js'),
|
|
4358
4358
|
import('../library/index.js'),
|
|
4359
4359
|
import('../core/index.js')
|
|
4360
4360
|
]);
|
|
@@ -5643,7 +5643,7 @@ function action2(fn) {
|
|
|
5643
5643
|
};
|
|
5644
5644
|
}
|
|
5645
5645
|
async function reconcileAndReport(projectDir, plugins) {
|
|
5646
|
-
const { reconcilePlugins } = await import('../plugin-store-
|
|
5646
|
+
const { reconcilePlugins } = await import('../plugin-store-QJNBPIQK.js');
|
|
5647
5647
|
if (plugins.length === 0) {
|
|
5648
5648
|
logInfo("No plugins declared \u2014 nothing to reconcile.");
|
|
5649
5649
|
return;
|
|
@@ -5659,7 +5659,7 @@ async function reconcileAndReport(projectDir, plugins) {
|
|
|
5659
5659
|
async function runInstall2(spec, opts) {
|
|
5660
5660
|
const projectDir = path35__default.resolve(opts.projectDir);
|
|
5661
5661
|
const { WorkspaceYamlEditor: WorkspaceYamlEditor2 } = await import('../core/index.js');
|
|
5662
|
-
const { specName } = await import('../plugin-store-
|
|
5662
|
+
const { specName } = await import('../plugin-store-QJNBPIQK.js');
|
|
5663
5663
|
const yamlPath = path35__default.join(projectDir, "skaile.yaml");
|
|
5664
5664
|
const editor = WorkspaceYamlEditor2.load(yamlPath);
|
|
5665
5665
|
const replaced = editor.addPlugin(spec, specName);
|
|
@@ -5671,7 +5671,7 @@ async function runInstall2(spec, opts) {
|
|
|
5671
5671
|
async function runRemove(name, opts) {
|
|
5672
5672
|
const projectDir = path35__default.resolve(opts.projectDir);
|
|
5673
5673
|
const { WorkspaceYamlEditor: WorkspaceYamlEditor2 } = await import('../core/index.js');
|
|
5674
|
-
const { specName } = await import('../plugin-store-
|
|
5674
|
+
const { specName } = await import('../plugin-store-QJNBPIQK.js');
|
|
5675
5675
|
const yamlPath = path35__default.join(projectDir, "skaile.yaml");
|
|
5676
5676
|
const editor = WorkspaceYamlEditor2.load(yamlPath);
|
|
5677
5677
|
const removed = editor.removePlugin(name, specName);
|
|
@@ -5699,7 +5699,7 @@ async function runList(opts) {
|
|
|
5699
5699
|
const registry = createPluginRegistry();
|
|
5700
5700
|
if (declared.length > 0) {
|
|
5701
5701
|
try {
|
|
5702
|
-
const { loadPlugins } = await import('../plugin-store-
|
|
5702
|
+
const { loadPlugins } = await import('../plugin-store-QJNBPIQK.js');
|
|
5703
5703
|
const result = await loadPlugins(projectDir, declared, registry);
|
|
5704
5704
|
for (const f of result.failed) logWarn(f.error);
|
|
5705
5705
|
} catch (err) {
|
|
@@ -6805,12 +6805,12 @@ function makeServeCommand() {
|
|
|
6805
6805
|
);
|
|
6806
6806
|
}
|
|
6807
6807
|
async function ensurePluginsLoadedForServe(projectDir) {
|
|
6808
|
-
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-
|
|
6808
|
+
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-3VAE3TYQ.js');
|
|
6809
6809
|
try {
|
|
6810
6810
|
const { resolveSkWorkspaceConfig: resolveSkWorkspaceConfig2 } = await import('../core/index.js');
|
|
6811
6811
|
const config = resolveSkWorkspaceConfig2(projectDir);
|
|
6812
6812
|
if (!config.plugins || config.plugins.length === 0) return;
|
|
6813
|
-
const { ensurePluginsLoaded } = await import('../plugin-store-
|
|
6813
|
+
const { ensurePluginsLoaded } = await import('../plugin-store-QJNBPIQK.js');
|
|
6814
6814
|
const { pluginRegistry } = await import('../plugin-registry/index.js');
|
|
6815
6815
|
const result = await ensurePluginsLoaded(projectDir, config.plugins, pluginRegistry);
|
|
6816
6816
|
if (result.loaded.length > 0) {
|
|
@@ -6824,14 +6824,14 @@ async function ensurePluginsLoadedForServe(projectDir) {
|
|
|
6824
6824
|
}
|
|
6825
6825
|
}
|
|
6826
6826
|
async function runCompileTest(opts) {
|
|
6827
|
-
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-
|
|
6827
|
+
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-3VAE3TYQ.js');
|
|
6828
6828
|
const { tmpdir } = await import('os');
|
|
6829
6829
|
const { dirname: dirname4, join: join7, resolve: resolve5 } = await import('path');
|
|
6830
6830
|
const { fileURLToPath: fileURLToPath2 } = await import('url');
|
|
6831
6831
|
const { unlinkSync, existsSync: existsSync15 } = await import('fs');
|
|
6832
6832
|
const { spawn } = await import('child_process');
|
|
6833
6833
|
const { portableSpawnSync: portableSpawnSync2 } = await import('../core/index.js');
|
|
6834
|
-
const { MONOREPO_ROOT } = await import('../paths-
|
|
6834
|
+
const { MONOREPO_ROOT } = await import('../paths-CZEH643M.js');
|
|
6835
6835
|
if (MONOREPO_ROOT === null) {
|
|
6836
6836
|
logErr2("--compile-test is only available inside the skaile-dev workspace.");
|
|
6837
6837
|
logInfo2("Run it from a checkout of skaile-ai/skaile-dev (the monorepo shell).");
|
|
@@ -7706,7 +7706,7 @@ function makeStoreCommand() {
|
|
|
7706
7706
|
process.exit(2);
|
|
7707
7707
|
});
|
|
7708
7708
|
store.command("search <query>").description("Search the AI Asset Store catalog by name, description, or publisher").option("--kind <kind>", "Filter by asset kind (skill, agent, prompt, flow, \u2026)").option("-C, --project-dir <dir>", "Project directory (catalog config overlay)", process.cwd()).action(async (query, opts) => {
|
|
7709
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
7709
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-424UBGA7.js');
|
|
7710
7710
|
try {
|
|
7711
7711
|
const remote = await openCatalogSource2({ projectDir: path35__default.resolve(opts.projectDir) });
|
|
7712
7712
|
const assets = await remote.listAssets(opts.kind ? { kind: opts.kind } : {});
|
|
@@ -7739,8 +7739,8 @@ function makeStoreCommand() {
|
|
|
7739
7739
|
}
|
|
7740
7740
|
});
|
|
7741
7741
|
store.command("show <ref>").description("Show a store asset's details + provenance (source, files, integrity)").option("-C, --project-dir <dir>", "Project directory (catalog config overlay)", process.cwd()).action(async (ref, opts) => {
|
|
7742
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
7743
|
-
const { supportsInstallManifest } = await import('../project-
|
|
7742
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-424UBGA7.js');
|
|
7743
|
+
const { supportsInstallManifest } = await import('../project-HLSVZVAF.js');
|
|
7744
7744
|
try {
|
|
7745
7745
|
const remote = await openCatalogSource2({ projectDir: path35__default.resolve(opts.projectDir) });
|
|
7746
7746
|
const asset = await remote.resolve(ref);
|
|
@@ -8826,7 +8826,7 @@ async function bootstrapUserConfig() {
|
|
|
8826
8826
|
}
|
|
8827
8827
|
async function hydrateInitSources(resolved, created) {
|
|
8828
8828
|
try {
|
|
8829
|
-
const { ensureSourcesCloned } = await import('../ensure-sources-
|
|
8829
|
+
const { ensureSourcesCloned } = await import('../ensure-sources-HXAPBBA5.js');
|
|
8830
8830
|
const hydrate = ensureSourcesCloned(resolved, { quiet: true });
|
|
8831
8831
|
for (const n of hydrate.cloned) created.push(`~/.skaile/cache/sources/${n}/`);
|
|
8832
8832
|
if (hydrate.failed.length > 0) {
|
|
@@ -8866,7 +8866,7 @@ function printInitSummary(resolved, projectDir, created) {
|
|
|
8866
8866
|
console.log();
|
|
8867
8867
|
}
|
|
8868
8868
|
program.command("setup").description("Interactive provider setup wizard").action(async () => {
|
|
8869
|
-
const { cmdSetup } = await import('../setup-
|
|
8869
|
+
const { cmdSetup } = await import('../setup-WXYQJW56.js');
|
|
8870
8870
|
await cmdSetup([], { projectDir: process.cwd() });
|
|
8871
8871
|
});
|
|
8872
8872
|
program.addCommand(makeInstallCommand());
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { LegacyAuthGrammarError, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { LegacyAuthGrammarError, createCliSecretProviderChain, createForgeSecretProviderChain, loadConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-SIREWRZE.js';
|
|
2
|
+
import '../chunk-HSRHO7SK.js';
|
|
3
3
|
import '../chunk-F3HNW354.js';
|
|
4
4
|
import '../chunk-K5GBV4SA.js';
|
|
5
5
|
import '../chunk-QVZA2MDT.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-IB4XKQMQ.js';
|
|
7
|
+
import '../chunk-MBARHWMZ.js';
|
|
8
8
|
import '../chunk-MENCWIHW.js';
|
|
9
9
|
import '../chunk-P4VHQA4N.js';
|
|
10
10
|
import '../chunk-MKZOK4JU.js';
|
package/dist/connectors/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-
|
|
2
|
-
export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-PLLVREB2.js';
|
|
2
|
+
export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-SIREWRZE.js';
|
|
3
|
+
import '../chunk-K5BUXOBH.js';
|
|
4
4
|
import '../chunk-3NCGSSCU.js';
|
|
5
5
|
import '../chunk-LOO5CB5M.js';
|
|
6
6
|
import '../chunk-7ZO3MUP3.js';
|
|
7
7
|
import '../chunk-GURXUF2J.js';
|
|
8
8
|
import '../chunk-GAH4YRCI.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-6FZCQT3V.js';
|
|
10
10
|
import '../chunk-6E6PKKAD.js';
|
|
11
11
|
import '../chunk-IFGTRL2I.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-W5LPG3X6.js';
|
|
13
13
|
import '../chunk-YCMHWNZA.js';
|
|
14
14
|
import '../chunk-CP62G5PK.js';
|
|
15
15
|
import '../chunk-2D5BYAL6.js';
|
|
16
16
|
import '../chunk-ELPR5XBG.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-HSRHO7SK.js';
|
|
18
18
|
import '../chunk-F3HNW354.js';
|
|
19
19
|
import '../chunk-K5GBV4SA.js';
|
|
20
20
|
import '../chunk-QVZA2MDT.js';
|
|
21
|
-
import '../chunk-
|
|
22
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-IB4XKQMQ.js';
|
|
22
|
+
import '../chunk-MBARHWMZ.js';
|
|
23
23
|
import '../chunk-MENCWIHW.js';
|
|
24
24
|
import '../chunk-P4VHQA4N.js';
|
|
25
25
|
import '../chunk-MKZOK4JU.js';
|
package/dist/core/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { ALL_PROVIDERS, ManifestYamlEditor, SETTINGS_DEFAULTS, WorkspaceYamlEditor, aiResourceRoots, applyPatch, buildLockFile, checkAgentSkillConformance, computeHash, defaultLibraryDir, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, readPluginsLockSlice, resolveAllKeys, resolveApiKey, resolveLibraryDir, resolveSettings, savePatch, saveSettings, skaileHomeDir, verifyLock, walkForSettings, writeLock, writePluginsLockSlice } from '../chunk-
|
|
1
|
+
export { ALL_PROVIDERS, ManifestYamlEditor, SETTINGS_DEFAULTS, WorkspaceYamlEditor, aiResourceRoots, applyPatch, buildLockFile, checkAgentSkillConformance, computeHash, defaultLibraryDir, detectEnvApiKeys, extractForPatch, generatePatch, globalSettingsPath, listPatches, loadSettings, mapLegacyFields, maskApiKey, migrateSettings, portableSpawn, portableSpawnSync, projectSettingsPath, providerEnvKey, readLock, readPatch, readPluginsLockSlice, resolveAllKeys, resolveApiKey, resolveLibraryDir, resolveSettings, savePatch, saveSettings, skaileHomeDir, verifyLock, walkForSettings, writeLock, writePluginsLockSlice } from '../chunk-HSRHO7SK.js';
|
|
2
2
|
export { deployedBase, deployedDir, isDeployed } from '../chunk-F3HNW354.js';
|
|
3
3
|
export { DRIVER_DEFAULTS, resolveDriverPaths } from '../chunk-K5GBV4SA.js';
|
|
4
4
|
export { ASSET_KIND_DIRS, assetSearchDirs, detectAiResources, detectDomains, detectMonorepoRoot } from '../chunk-QVZA2MDT.js';
|
|
5
|
-
export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-
|
|
6
|
-
export { COMPACTION_DEFAULTS, CanonicalRefConflictError, DEFAULT_RECIPE_ATTR, SKAILE_YAML_DEFAULT, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, __resetCacheMigrationMemo, buildProvenanceIndex, checkRepoStatus, checkoutPin, cloneRepo, cloudConfigFromProfile, coerceVersion, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, globalCacheRoot, globalSkaileDir, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, matchPin, mergeLegacyEntriesInto, mergeLegacyEntriesKeyed, mergeSkWorkspaceConfigs, migrateLegacyDir, normalizeConfig, pullRepo, readLinks, resolveAgentDir, resolveAll, resolveAsset, resolveGlobalBackends, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, resolveSourcePublisher, saveSkWorkspaceConfig, scanRepo, sourceCacheKey, sourceShortName, stageMaterializedSkills, storeManifestSlug, unlinkRepo, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, writeLinks } from '../chunk-
|
|
5
|
+
export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-IB4XKQMQ.js';
|
|
6
|
+
export { COMPACTION_DEFAULTS, CanonicalRefConflictError, DEFAULT_RECIPE_ATTR, SKAILE_YAML_DEFAULT, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, __resetCacheMigrationMemo, buildProvenanceIndex, checkRepoStatus, checkoutPin, cloneRepo, cloudConfigFromProfile, coerceVersion, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, ensureRepo, findWorkspaceRoot, getGlobalCacheDir, getRepoCommit, globalCacheRoot, globalSkaileDir, linkRepo, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, matchPin, mergeLegacyEntriesInto, mergeLegacyEntriesKeyed, mergeSkWorkspaceConfigs, migrateLegacyDir, normalizeConfig, pullRepo, pullRepoResult, readLinks, resolveAgentDir, resolveAll, resolveAsset, resolveGlobalBackends, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, resolveSourcePublisher, saveSkWorkspaceConfig, scanRepo, sourceCacheKey, sourceShortName, stageMaterializedSkills, storeManifestSlug, unlinkRepo, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, writeLinks } from '../chunk-MBARHWMZ.js';
|
|
7
7
|
export { DRIVER_TARGETS, SUPPORTED_DRIVER_TARGETS, globalBackendRoot } from '../chunk-MENCWIHW.js';
|
|
8
8
|
export { SKAILE_MANIFEST_FILENAME, decodeSkaileManifest, encodeSkaileManifest, loadSkPublishManifest, saveSkPublishManifest } from '../chunk-P4VHQA4N.js';
|
|
9
9
|
export { DEFAULT_FS_DEADLINE_MS, DEFAULT_WALK_BUDGET_MS, DEFAULT_WALK_MAX_DEPTH, DEFAULT_WALK_MAX_ENTRIES, FS_DEADLINE_ENV_VAR, FsDeadlineError, WALK_BUDGET_MS_ENV_VAR, WALK_MAX_DEPTH_ENV_VAR, WALK_MAX_ENTRIES_ENV_VAR, bundleDepRefs, fromAgentMd, fromAgentYaml, fromBundleYaml, fromConnectorMd, fromContractMd, fromFlowYaml, fromMcpServerMd, fromMcpServerMdContent, fromPromptMd, fromSkillMd, fsDeadlineMs, parseFrontmatter, parseRequires, scanDirectory, tryWithFsDeadline, walkDir, withFsDeadline } from '../chunk-MKZOK4JU.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot } from '../chunk-IB4XKQMQ.js';
|
|
2
|
+
import '../chunk-MBARHWMZ.js';
|
|
3
3
|
import '../chunk-MENCWIHW.js';
|
|
4
4
|
import '../chunk-P4VHQA4N.js';
|
|
5
5
|
import '../chunk-MKZOK4JU.js';
|
package/dist/core/src/index.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ export { checkAgentSkillConformance, type ConformanceFinding, type ConformanceOp
|
|
|
30
30
|
export { applyPatch, extractForPatch, generatePatch, listPatches, readPatch, savePatch, } from "./patch.js";
|
|
31
31
|
export type { AssetEntry, ManifestDecodeResult, ManifestFileEntry, ManifestProvenance, ManifestSource, SkPublishManifest, } from "./publish-manifest.js";
|
|
32
32
|
export { decodeSkaileManifest, encodeSkaileManifest, loadSkPublishManifest, SKAILE_MANIFEST_FILENAME, saveSkPublishManifest, } from "./publish-manifest.js";
|
|
33
|
-
export type { LinkConfig, RepoStatus, ResolveOpts, ResolveResult, StoreFetcher, } from "./repo-manager.js";
|
|
34
|
-
export { CanonicalRefConflictError, checkoutPin, checkRepoStatus, cloneRepo, coerceVersion, ensureRepo, getGlobalCacheDir, getRepoCommit, linkRepo, matchPin, pullRepo, readLinks, resolveAll, resolveAsset, resolveSourcePublisher, scanRepo, sourceCacheKey, sourceShortName, storeManifestSlug, unlinkRepo, writeLinks, } from "./repo-manager.js";
|
|
33
|
+
export type { LinkConfig, PullResult, RepoStatus, ResolveOpts, ResolveResult, StoreFetcher, } from "./repo-manager.js";
|
|
34
|
+
export { CanonicalRefConflictError, checkoutPin, checkRepoStatus, cloneRepo, coerceVersion, ensureRepo, getGlobalCacheDir, getRepoCommit, linkRepo, matchPin, pullRepo, pullRepoResult, readLinks, resolveAll, resolveAsset, resolveSourcePublisher, scanRepo, sourceCacheKey, sourceShortName, storeManifestSlug, unlinkRepo, writeLinks, } from "./repo-manager.js";
|
|
35
35
|
export type { RuntimeAssetRef, RuntimeAssetsResult, RuntimeAssetWarning, RuntimeCatalogEntry, RuntimeNpmDeps, } from "./runtime-assets.js";
|
|
36
36
|
export { FACTORY_ASSETS_REPO_NAME, factoryAssetRoots, resolveFactoryAssetsRoot, resolveFactoryAssetsRootOrNull, resolvePackagedAssetsDir, resolveRuntimeAssets, resolveWorkspacesPackageRoot, } from "./runtime-assets.js";
|
|
37
37
|
export type { Provider, ResolvedKey, SkaileSettings } from "./settings.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","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Aa,EACb,eAAe,EACf,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,cAAc,EACd,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,sCAAsC,EACtC,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EACL,yBAAyB,EACzB,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAElG,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,kBA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
@@ -34,6 +34,11 @@ export declare function getGlobalCacheDir(): string;
|
|
|
34
34
|
* Non-GitHub or unparseable URLs (local paths, `file://`, exotic hosts) fall
|
|
35
35
|
* back to the last path segment so nothing throws.
|
|
36
36
|
*
|
|
37
|
+
* Userinfo is dropped, so `https://x-access-token:<token>@host/o/r` keys the
|
|
38
|
+
* same clone as the plain url — and the token never becomes a directory name
|
|
39
|
+
* or leaks through a message that names the key (`install` reports failures as
|
|
40
|
+
* `source:<key> (…)`).
|
|
41
|
+
*
|
|
37
42
|
* @docLink packages/core/api-reference#source-cache-key
|
|
38
43
|
*/
|
|
39
44
|
export declare function sourceCacheKey(url: string): string;
|
|
@@ -63,6 +68,22 @@ export declare function storeManifestSlug(url: string): string;
|
|
|
63
68
|
* @docLink packages/core/api-reference#clone-repo
|
|
64
69
|
*/
|
|
65
70
|
export declare function cloneRepo(url: string, branch: string, dest: string): boolean;
|
|
71
|
+
/** Result of {@link pullRepoResult}: success flag plus git's reason on failure. */
|
|
72
|
+
export interface PullResult {
|
|
73
|
+
ok: boolean;
|
|
74
|
+
error?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Pull the latest commits for a cloned repository, reporting git's own failure
|
|
78
|
+
* reason. Same strategy as {@link pullRepo} — of which this is the detailed
|
|
79
|
+
* form — so callers can surface *why* a refresh failed instead of swallowing it.
|
|
80
|
+
*
|
|
81
|
+
* @param dest - Local repo directory
|
|
82
|
+
* @param branch - Branch to pull
|
|
83
|
+
* @returns `{ ok: true }`, or `{ ok: false, error }` carrying the git message
|
|
84
|
+
* @docLink packages/core/api-reference#pull-repo-result
|
|
85
|
+
*/
|
|
86
|
+
export declare function pullRepoResult(dest: string, branch: string): PullResult;
|
|
66
87
|
/**
|
|
67
88
|
* Pull the latest commits for a cloned repository.
|
|
68
89
|
* On shallow clone divergence, falls back to `git fetch --depth=1` + `git reset --hard`.
|
|
@@ -145,7 +166,15 @@ export declare function unlinkRepo(projectDir: string, repoName: string): boolea
|
|
|
145
166
|
* already exist, but a url-backed managed cache dir is cloned in-place on miss
|
|
146
167
|
* 3. Remote URL (`decl.url`) — cloned to the shared global cache, symlinked into `.skaile/cache/sources/`
|
|
147
168
|
*
|
|
148
|
-
*
|
|
169
|
+
* Freshness: a **managed cache clone** (a url-backed dir under
|
|
170
|
+
* {@link getGlobalCacheDir}) is refreshed on every call when no pin is given —
|
|
171
|
+
* both for a bare `url:` declaration and for the `path:`-into-the-cache form
|
|
172
|
+
* that `AssetManager` builds from `sources:`, so `install` never serves a stale
|
|
173
|
+
* source. A failed refresh warns and keeps the cached commit. A user-owned
|
|
174
|
+
* checkout (bare `path:`, dev link, factory tree) is never touched.
|
|
175
|
+
*
|
|
176
|
+
* Pin support: when `opts.pin` is provided, the tag/commit is checked out and
|
|
177
|
+
* the clone is never pulled.
|
|
149
178
|
*
|
|
150
179
|
* @param decl - Repository declaration from `skaile.yaml`
|
|
151
180
|
* @param name - Logical repository name (cache key)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-manager.d.ts","sourceRoot":"","sources":["../../../core/src/repo-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkBH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,OAAO,EAAsB,KAAK,mBAAmB,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAS1F;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAgB1C;AAID
|
|
1
|
+
{"version":3,"file":"repo-manager.d.ts","sourceRoot":"","sources":["../../../core/src/repo-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkBH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG1D,OAAO,EAAsB,KAAK,mBAAmB,EA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ILE_YAML_SUFFIX, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, cloudConfigFromProfile, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, findWorkspaceRoot, isWorkspaceConfigFilename, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, mergeSkWorkspaceConfigs, normalizeConfig, resolveAgentDir, resolveGlobalBackends, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, saveSkWorkspaceConfig, stageMaterializedSkills, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, workspaceNameFromFilename } from '../chunk-
|
|
1
|
+
export { COMPACTION_DEFAULTS, DEFAULT_RECIPE_ATTR, SKAILE_YAML_DEFAULT, SKAILE_YAML_SUFFIX, SK_WORKSPACE_DEFAULT_NAME, SK_WORKSPACE_SUFFIX, cloudConfigFromProfile, decodeSkaileYaml, deriveSingleMaterializedMcpDeclaration, encodeSkaileYaml, findWorkspaceRoot, isWorkspaceConfigFilename, listSkWorkspaceConfigs, loadMcpServerDeclarations, loadSkWorkspaceConfig, mergeSkWorkspaceConfigs, normalizeConfig, resolveAgentDir, resolveGlobalBackends, resolveGlobalSkWorkspaceConfig, resolveSkWorkspaceConfig, saveSkWorkspaceConfig, stageMaterializedSkills, validateAssetRecipeAttr, validateAssetRecipeFlake, workspaceConfigFilename, workspaceNameFromFilename } from '../chunk-MBARHWMZ.js';
|
|
2
2
|
import '../chunk-MENCWIHW.js';
|
|
3
3
|
import '../chunk-P4VHQA4N.js';
|
|
4
4
|
import '../chunk-MKZOK4JU.js';
|
package/dist/deploy/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { makeDeployHandle, pluginRegistry } from '../chunk-6E6PKKAD.js';
|
|
2
|
-
import { portableSpawnSync, portableSpawn } from '../chunk-
|
|
2
|
+
import { portableSpawnSync, portableSpawn } from '../chunk-HSRHO7SK.js';
|
|
3
3
|
import '../chunk-F3HNW354.js';
|
|
4
4
|
import '../chunk-K5GBV4SA.js';
|
|
5
5
|
import '../chunk-QVZA2MDT.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-IB4XKQMQ.js';
|
|
7
|
+
import '../chunk-MBARHWMZ.js';
|
|
8
8
|
import '../chunk-MENCWIHW.js';
|
|
9
9
|
import '../chunk-P4VHQA4N.js';
|
|
10
10
|
import '../chunk-MKZOK4JU.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { logErr, logOk, logInfo } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { logErr, logOk, logInfo } from './chunk-74KGZA7R.js';
|
|
2
|
+
import './chunk-AQJ5ZYD6.js';
|
|
3
|
+
import './chunk-TCHEW3T2.js';
|
|
4
4
|
import './chunk-DZ4UZOFB.js';
|
|
5
5
|
import './chunk-UKJMQZV6.js';
|
|
6
6
|
import './chunk-R7FOF242.js';
|
|
7
7
|
import './chunk-JXT46QFC.js';
|
|
8
|
-
import './chunk-
|
|
8
|
+
import './chunk-OHLYKLGJ.js';
|
|
9
9
|
import './chunk-CGYEHQOX.js';
|
|
10
|
-
import { WorkspaceYamlEditor } from './chunk-
|
|
10
|
+
import { WorkspaceYamlEditor } from './chunk-HSRHO7SK.js';
|
|
11
11
|
import './chunk-F3HNW354.js';
|
|
12
12
|
import './chunk-K5GBV4SA.js';
|
|
13
13
|
import './chunk-QVZA2MDT.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import { sourceCacheKey, sourceShortName, getGlobalCacheDir } from './chunk-
|
|
14
|
+
import './chunk-IB4XKQMQ.js';
|
|
15
|
+
import { sourceCacheKey, sourceShortName, getGlobalCacheDir } from './chunk-MBARHWMZ.js';
|
|
16
16
|
import './chunk-MENCWIHW.js';
|
|
17
17
|
import './chunk-P4VHQA4N.js';
|
|
18
18
|
import './chunk-MKZOK4JU.js';
|
|
@@ -86,5 +86,5 @@ function ensureSourcesCloned(projectDir, opts = {}) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
export { ensureSourcesCloned };
|
|
89
|
-
//# sourceMappingURL=ensure-sources-
|
|
90
|
-
//# sourceMappingURL=ensure-sources-
|
|
89
|
+
//# sourceMappingURL=ensure-sources-HXAPBBA5.js.map
|
|
90
|
+
//# sourceMappingURL=ensure-sources-HXAPBBA5.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../cli/src/ensure-sources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,gBAAgB,GAAA,EAAqB;AAC5C,EAAA,OAAY,IAAA,CAAA,IAAA,CAAK,iBAAA,EAAkB,EAAG,GAAG,CAAA;AAC3C;AASA,SAAS,kBAAA,CAAmB,UAAkB,KAAA,EAAsC;AAClF,EAAA,IAAI;AACF,IAAA,OAAO,mBAAA,CAAoB,IAAA,CAAK,QAAQ,CAAA,CAAE,UAAA,EAAW;AAAA,EACvD,SAAS,GAAA,EAAK;AACZ,IAAA,IAAI,CAAC,KAAA,EAAO;AACV,MAAA,MAAA,CAAO,CAAA,eAAA,EAAkB,QAAQ,CAAA,EAAA,EAAK,GAAA,YAAe,KAAA,GAAQ,IAAI,OAAA,GAAU,MAAA,CAAO,GAAG,CAAC,CAAA,CAAE,CAAA;AAAA,IAC1F;AACA,IAAA,OAAO,IAAA;AAAA,EACT;AACF;AAMA,SAAS,kBAAA,CAAmB,KAAA,EAAoB,KAAA,EAAgB,MAAA,EAA4B;AAC1F,EAAA,MAAM,GAAA,GAAM,cAAA,CAAe,KAAA,CAAM,GAAG,CAAA;AACpC,EAAA,MAAM,IAAA,GAAO,eAAA,CAAgB,KAAA,CAAM,GAAG,CAAA;AACtC,EAAA,MAAM,IAAA,GAAO,gBAAgB,GAAG,CAAA;AAChC,EAAA,IAAI,UAAA,CAAW,IAAI,CAAA,EAAG;AACpB,IAAA,MAAA,CAAO,MAAA,CA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AAA,CAAI,CAAA;AAC5D,EAAA,IAAI,MAAA,CAAO,MAAA,CAAO,MAAA,GAAS,CAAA,EAAG;AAC5B,IAAA,OAAA,CAAQ,yBAAyB,MAAA,CAAO,MAAA,CAAO,IAAA,CAAK,IAAI,CAAC,CAAA,CAAE,CAAA;AAAA,EAC7D;AACF;AAUO,SAAS,mBAAA,CACd,UAAA,EACA,IAAA,GAA4B,EAAC,EACf;AACd,EAAA,MAAM,MAAA,GAAuB,EAAE,MAAA,EAAQ,EAAC,EAAG,QAAQ,EAAC,EAAG,MAAA,EAAQ,EAAC,EAAE;AAClE,EAAA,MAAM,QAAA,GAAgB,IAAA,CAAA,IAAA,CAAK,UAAA,EAAY,aAAa,CAAA;AACpD,EAAA,IAAI,CAAC,UAAA,CAAW,QAAQ,CAAA,EAAG,OAAO,MAAA;AAElC,EAAA,MAAM,KAAA,GAAQ,KAAK,KAAA,IAAS,KAAA;AAC5B,EAAA,MAAM,OAAA,GAAU,kBAAA,CAAmB,QAAA,EAAU,KAAK,CAAA;AAClD,EAAA,IAAI,OAAA,KAAY,MAAM,OAAO,MAAA;AAC7B,EAAA,IAAI,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG,OAAO,MAAA;AAEjC,EAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC3B,IAAA,kBAAA,CAAmB,KAAA,EAAO,OAAO,MAAM,CAAA;AAAA,EACzC;AAEA,EAAA,IAAI,CAAC,KAAA,EAAO;AACV,IAAA,iBAAA,CAAkB,MAAM,CAAA;AAAA,EAC1B;AAEA,EAAA,OAAO,MAAA;AACT","file":"ensure-sources-HXAPBBA5.js","sourcesContent":["/**\n * ensure-sources.ts — hydrate the `~/.skaile/cache/sources/` clone cache from a\n * project's `skaile.yaml` `sources:` entries.\n *\n * Called by `skaile init` (idempotent: no-op when no sources declared) and\n * `skaile install` so checking out a project pulls its source clones onto\n * the local machine.\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync } from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n getGlobalCacheDir,\n type SourceEntry,\n sourceCacheKey,\n sourceShortName,\n WorkspaceYamlEditor,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk } from \"./helpers.ts\";\n\nfunction sourceClonePath(key: string): string {\n return path.join(getGlobalCacheDir(), key);\n}\n\nexport interface EnsureResult {\n cloned: string[];\n cached: string[];\n failed: string[];\n}\n\n/** Load `sources:` from a project's `skaile.yaml`, or `null` when unavailable. */\nfunction loadProjectSources(yamlPath: string, quiet: boolean): SourceEntry[] | null {\n try {\n return WorkspaceYamlEditor.load(yamlPath).getSources();\n } catch (err) {\n if (!quiet) {\n logErr(`Could not read ${yamlPath}: ${err instanceof Error ? err.message : String(err)}`);\n }\n return null;\n }\n}\n\n/**\n * Hydrate a single source entry into `result`: skip when already cached,\n * otherwise clone and record success/failure. Mutates `result` in place.\n */\nfunction hydrateSourceEntry(entry: SourceEntry, quiet: boolean, result: EnsureResult): void {\n const key = sourceCacheKey(entry.url);\n const slug = sourceShortName(entry.url);\n const dest = sourceClonePath(key);\n if (existsSync(dest)) {\n result.cached.push(slug);\n return;\n }\n mkdirSync(path.dirname(dest), { recursive: true });\n const args = [\"clone\", entry.url, dest];\n if (entry.pin) args.splice(1, 0, \"--branch\", entry.pin);\n const clone = spawnSync(\"git\", args, { stdio: quiet ? \"pipe\" : \"inherit\" });\n if (clone.status !== 0) {\n result.failed.push(slug);\n if (quiet) {\n logErr(`git clone failed for ${entry.url}`);\n }\n return;\n }\n result.cloned.push(slug);\n}\n\n/** Log a full-hydrate summary of cloned + reused-cached entries. */\nfunction logHydrateSummary(result: EnsureResult): void {\n for (const n of result.cloned) logOk(`Cloned source \"${n}\".`);\n if (result.cached.length > 0) {\n logInfo(`Reused cached clones: ${result.cached.join(\", \")}`);\n }\n}\n\n/**\n * Walk `projectDir/skaile.yaml` `sources:` and clone any entries whose\n * clone directory does not yet exist under `~/.skaile/cache/sources/`. Existing\n * clones are left untouched — this is hydration, not sync.\n *\n * Quiet by default: when `quiet: true` the helper only prints failures.\n * On full hydrate (`quiet: false`) it logs each cloned/cached entry.\n */\nexport function ensureSourcesCloned(\n projectDir: string,\n opts: { quiet?: boolean } = {},\n): EnsureResult {\n const result: EnsureResult = { cloned: [], cached: [], failed: [] };\n const yamlPath = path.join(projectDir, \"skaile.yaml\");\n if (!existsSync(yamlPath)) return result;\n\n const quiet = opts.quiet ?? false;\n const sources = loadProjectSources(yamlPath, quiet);\n if (sources === null) return result;\n if (sources.length === 0) return result;\n\n for (const entry of sources) {\n hydrateSourceEntry(entry, quiet, result);\n }\n\n if (!quiet) {\n logHydrateSummary(result);\n }\n\n return result;\n}\n"]}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-PLLVREB2.js';
|
|
2
|
+
import '../../chunk-SIREWRZE.js';
|
|
3
|
+
import '../../chunk-K5BUXOBH.js';
|
|
4
4
|
import '../../chunk-3NCGSSCU.js';
|
|
5
5
|
import '../../chunk-LOO5CB5M.js';
|
|
6
6
|
import '../../chunk-7ZO3MUP3.js';
|
|
7
7
|
import '../../chunk-GURXUF2J.js';
|
|
8
8
|
import '../../chunk-GAH4YRCI.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-6FZCQT3V.js';
|
|
10
10
|
import '../../chunk-6E6PKKAD.js';
|
|
11
11
|
import '../../chunk-IFGTRL2I.js';
|
|
12
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-W5LPG3X6.js';
|
|
13
13
|
import '../../chunk-YCMHWNZA.js';
|
|
14
14
|
import '../../chunk-CP62G5PK.js';
|
|
15
15
|
import '../../chunk-2D5BYAL6.js';
|
|
16
16
|
import '../../chunk-ELPR5XBG.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-HSRHO7SK.js';
|
|
18
18
|
import '../../chunk-F3HNW354.js';
|
|
19
19
|
import '../../chunk-K5GBV4SA.js';
|
|
20
20
|
import '../../chunk-QVZA2MDT.js';
|
|
21
|
-
import '../../chunk-
|
|
22
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-IB4XKQMQ.js';
|
|
22
|
+
import '../../chunk-MBARHWMZ.js';
|
|
23
23
|
import '../../chunk-MENCWIHW.js';
|
|
24
24
|
import '../../chunk-P4VHQA4N.js';
|
|
25
25
|
import '../../chunk-MKZOK4JU.js';
|