@skaile/workspaces 0.48.2 → 0.50.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/asset-manager/index.js +2 -2
  3. package/dist/asset-manager/installer.js +1 -1
  4. package/dist/asset-manager/src/index.d.ts +13 -1
  5. package/dist/asset-manager/src/index.d.ts.map +1 -1
  6. package/dist/asset-manager/src/installer.d.ts +19 -8
  7. package/dist/asset-manager/src/installer.d.ts.map +1 -1
  8. package/dist/{chunk-LTUTK2Q3.js → chunk-2Y4HIITD.js} +24 -15
  9. package/dist/chunk-2Y4HIITD.js.map +1 -0
  10. package/dist/{chunk-XVDXGQ55.js → chunk-7X53KHQ4.js} +4 -2
  11. package/dist/{chunk-XVDXGQ55.js.map → chunk-7X53KHQ4.js.map} +1 -1
  12. package/dist/{chunk-BWCGSGAC.js → chunk-C5RYGUF4.js} +17 -6
  13. package/dist/chunk-C5RYGUF4.js.map +1 -0
  14. package/dist/{chunk-YERSEKB2.js → chunk-H74X4TSR.js} +2 -2
  15. package/dist/{chunk-YERSEKB2.js.map → chunk-H74X4TSR.js.map} +1 -1
  16. package/dist/{chunk-CK3O5BCT.js → chunk-LV73DB4G.js} +32 -2
  17. package/dist/chunk-LV73DB4G.js.map +1 -0
  18. package/dist/cli/index.js +14 -8
  19. package/dist/cli/index.js.map +1 -1
  20. package/dist/cli/src/commands/catalog.d.ts.map +1 -1
  21. package/dist/cli/src/commands/project.d.ts.map +1 -1
  22. package/dist/factory-assets/connectors/flow/run-flow.js +1 -1
  23. package/dist/runner/index.js +1 -1
  24. package/dist/runner/src/runtime-session-emit.d.ts +39 -0
  25. package/dist/runner/src/runtime-session-emit.d.ts.map +1 -0
  26. package/dist/runner/src/serve.d.ts.map +1 -1
  27. package/dist/sdk/asset-manager.js +2 -2
  28. package/dist/sdk/index.js +1 -1
  29. package/dist/sdk/runner.js +1 -1
  30. package/dist/sdk/store.js +1 -1
  31. package/dist/store/index.js +1 -1
  32. package/dist/store/src/store.d.ts.map +1 -1
  33. package/dist/tui/index.js +1 -1
  34. package/dist/types/src/events.d.ts +33 -1
  35. package/dist/types/src/events.d.ts.map +1 -1
  36. package/dist/types/src/index.d.ts +1 -1
  37. package/dist/types/src/index.d.ts.map +1 -1
  38. package/package.json +1 -1
  39. package/dist/chunk-BWCGSGAC.js.map +0 -1
  40. package/dist/chunk-CK3O5BCT.js.map +0 -1
  41. package/dist/chunk-LTUTK2Q3.js.map +0 -1
package/dist/cli/index.js CHANGED
@@ -9,10 +9,10 @@ import '../chunk-JXHULIOA.js';
9
9
  import '../chunk-JXT46QFC.js';
10
10
  import '../chunk-UKJMQZV6.js';
11
11
  import '../chunk-R7FOF242.js';
12
- import { runFlow, resumeFlow } from '../chunk-YERSEKB2.js';
12
+ import { runFlow, resumeFlow } from '../chunk-H74X4TSR.js';
13
13
  import '../chunk-4R6DROGN.js';
14
14
  import { validateFlowVersions, parseSkillFrontmatter } from '../chunk-GXC3TYMQ.js';
15
- import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-CK3O5BCT.js';
15
+ import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-LV73DB4G.js';
16
16
  import { buildClaudePluginFiles } from '../chunk-SXT6BAQJ.js';
17
17
  import '../chunk-X5YPJV4N.js';
18
18
  import '../chunk-O7SG5PC2.js';
@@ -36,8 +36,8 @@ import '../chunk-6E6PKKAD.js';
36
36
  import { loadFlow, loadAllFlows } from '../chunk-X46FY45B.js';
37
37
  import '../chunk-DEYYRFQU.js';
38
38
  import '../chunk-IFGTRL2I.js';
39
- import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError } from '../chunk-BWCGSGAC.js';
40
- import '../chunk-LTUTK2Q3.js';
39
+ import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError } from '../chunk-C5RYGUF4.js';
40
+ import '../chunk-2Y4HIITD.js';
41
41
  import { readLock, resolveSettings, globalSettingsPath, projectSettingsPath, loadSettings, saveSettings, portableSpawn, portableSpawnSync, WorkspaceYamlEditor, checkAgentSkillConformance } from '../chunk-SDAKQCOB.js';
42
42
  import { assetSearchDirs, detectDomains } from '../chunk-ZAP2BDHG.js';
43
43
  import '../chunk-WBF7JLTY.js';
@@ -158,7 +158,10 @@ function makeSearchCommand() {
158
158
  });
159
159
  }
160
160
  function makeAddCommand() {
161
- return new Command("add").description("Add to skaile.yaml + deploy").argument("<ref>", "Asset reference (kind:@<publisher>/name#<version>)").option("--project-dir <path>", "Project directory", process.cwd()).option("--global", "Deploy to global dir (~/.claude)").option("--target <agent>", "Driver target", "claude-code").action(async (ref, opts) => {
161
+ return new Command("add").description("Add to skaile.yaml + deploy").argument("<ref>", "Asset reference (kind:@<publisher>/name#<version>)").option("--project-dir <path>", "Project directory", process.cwd()).option("--global", "Deploy to global dir (~/.claude)").option("--target <agent>", "Driver target", "claude-code").option(
162
+ "--link",
163
+ "symlink local-path assets instead of copying (dev loop; machine-local, not for committing)"
164
+ ).action(async (ref, opts) => {
162
165
  const am2 = new AssetManager({
163
166
  projectDir: path14__default.resolve(opts.projectDir),
164
167
  global: opts.global,
@@ -167,7 +170,7 @@ function makeAddCommand() {
167
170
  const spinner5 = p6.spinner();
168
171
  spinner5.start(`Adding ${ref}`);
169
172
  try {
170
- const added = await am2.add(ref);
173
+ const added = await am2.add(ref, { link: opts.link });
171
174
  spinner5.stop("Done");
172
175
  if (added.length === 0) {
173
176
  const kind = parseAssetRef(ref).kind;
@@ -4639,7 +4642,10 @@ async function runPointerOnlyInstall(ref, deps) {
4639
4642
  };
4640
4643
  }
4641
4644
  function makeInstallCommand() {
4642
- return new Command("install").description(`Install dependencies from skaile.yaml, or a single asset by ref (${REF_HINT})`).argument("[ref]", `Asset ref to install from the Catalog (${REF_HINT})`).option("--locked", "Install from lock file (CI mode \u2014 fails on drift)").option("--project-dir <path>", "Project directory", process.cwd()).option("--target <agent>", "Agent framework", "claude-code").action(runInstallCommand);
4645
+ return new Command("install").description(`Install dependencies from skaile.yaml, or a single asset by ref (${REF_HINT})`).argument("[ref]", `Asset ref to install from the Catalog (${REF_HINT})`).option("--locked", "Install from lock file (CI mode \u2014 fails on drift)").option("--project-dir <path>", "Project directory", process.cwd()).option("--target <agent>", "Agent framework", "claude-code").option(
4646
+ "--link",
4647
+ "symlink local-path assets instead of copying (dev loop; machine-local, not for committing)"
4648
+ ).action(runInstallCommand);
4643
4649
  }
4644
4650
  async function runInstallCommand(ref, opts) {
4645
4651
  if (ref !== void 0) {
@@ -4706,7 +4712,7 @@ async function runYamlInstall(opts) {
4706
4712
  const spinner5 = p6.spinner();
4707
4713
  spinner5.start(opts.locked ? "Installing from lock file" : "Installing dependencies");
4708
4714
  try {
4709
- const result = await am2.install({ locked: opts.locked });
4715
+ const result = await am2.install({ locked: opts.locked, link: opts.link });
4710
4716
  spinner5.stop("Done");
4711
4717
  if (result.deployed.length > 0) {
4712
4718
  for (const d of result.deployed) logOk(d);