deepline 0.3.54 → 0.3.55

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.
@@ -199,7 +199,7 @@ export const SDK_RELEASE = {
199
199
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
200
200
  // getters keep their established compatibility behavior.
201
201
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
202
- version: '0.3.54',
202
+ version: '0.3.55',
203
203
  updateSummary:
204
204
  'Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.',
205
205
  packageCapabilities: {
package/dist/cli/index.js CHANGED
@@ -1075,7 +1075,7 @@ var SDK_RELEASE = {
1075
1075
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
1076
1076
  // getters keep their established compatibility behavior.
1077
1077
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1078
- version: "0.3.54",
1078
+ version: "0.3.55",
1079
1079
  updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
1080
1080
  packageCapabilities: {
1081
1081
  updatePreferences: 1
@@ -33022,7 +33022,7 @@ var install_commands_default = {
33022
33022
  npx_binary: "npx",
33023
33023
  npx_add_args_template: [
33024
33024
  "--yes",
33025
- "skills@1.5.18",
33025
+ "skills@1.5.15",
33026
33026
  "add",
33027
33027
  "{skills_source_url}",
33028
33028
  "--agent",
@@ -33042,9 +33042,15 @@ var install_commands_default = {
33042
33042
  // src/cli/install-commands.ts
33043
33043
  var INSTALL_COMMANDS = install_commands_default;
33044
33044
  var DEFAULT_SKILL_AGENTS = INSTALL_COMMANDS.skills.default_agents;
33045
- var SKILLS_NPX_PACKAGE = INSTALL_COMMANDS.skills.npx_add_args_template.find(
33046
- (arg) => arg.startsWith("skills@")
33047
- ) ?? "skills@1.5.18";
33045
+ var skillsNpxPackage = INSTALL_COMMANDS.skills.npx_add_args_template.find(
33046
+ (arg) => /^skills@\d+\.\d+\.\d+$/.test(arg)
33047
+ );
33048
+ if (!skillsNpxPackage) {
33049
+ throw new Error(
33050
+ "shared_libs/cli/install-commands.json must pin an exact skills package version."
33051
+ );
33052
+ }
33053
+ var SKILLS_NPX_PACKAGE = skillsNpxPackage;
33048
33054
  var DEFAULT_V1_SKILL_NAMES = [
33049
33055
  "build-tam",
33050
33056
  "clay-to-deepline",
@@ -33380,7 +33386,7 @@ function runLegacySkillsCleanup(agents) {
33380
33386
  command: "bunx",
33381
33387
  args: [
33382
33388
  "--bun",
33383
- "skills",
33389
+ SKILLS_NPX_PACKAGE,
33384
33390
  "remove",
33385
33391
  "--global",
33386
33392
  "--agent",
@@ -33393,7 +33399,7 @@ function runLegacySkillsCleanup(agents) {
33393
33399
  command: "npx",
33394
33400
  args: [
33395
33401
  "--yes",
33396
- "skills",
33402
+ SKILLS_NPX_PACKAGE,
33397
33403
  "remove",
33398
33404
  "--global",
33399
33405
  "--agent",
@@ -33407,7 +33413,7 @@ function runLegacySkillsCleanup(agents) {
33407
33413
  command: "npx",
33408
33414
  args: [
33409
33415
  "--yes",
33410
- "skills",
33416
+ SKILLS_NPX_PACKAGE,
33411
33417
  "remove",
33412
33418
  "--global",
33413
33419
  "--agent",
@@ -33556,9 +33562,9 @@ function skillsStatePathForScope(baseUrl, scope, root) {
33556
33562
  }
33557
33563
  function buildSkillsPlan(input2) {
33558
33564
  const scopeArgs = input2.scope === "global" ? ["--global"] : [];
33559
- const allManagedNames = [
33560
- .../* @__PURE__ */ new Set([...input2.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
33561
- ].sort((a, b) => a.localeCompare(b));
33565
+ const legacyNames = [...LEGACY_SKILL_NAMES_TO_REMOVE].sort(
33566
+ (a, b) => a.localeCompare(b)
33567
+ );
33562
33568
  return {
33563
33569
  scope: input2.scope,
33564
33570
  root: input2.root,
@@ -33578,7 +33584,7 @@ function buildSkillsPlan(input2) {
33578
33584
  "--agent",
33579
33585
  ...input2.agents,
33580
33586
  "-y",
33581
- ...allManagedNames
33587
+ ...legacyNames
33582
33588
  ]
33583
33589
  },
33584
33590
  install: {
@@ -33729,16 +33735,8 @@ async function runSkillsCommand(options, dependencies = {}) {
33729
33735
  `Replacing Deepline skills for ${agents.join(", ")} (${scope})...
33730
33736
  `
33731
33737
  );
33738
+ const execute = dependencies.runProcess ?? runProcess;
33732
33739
  try {
33733
- const execute = dependencies.runProcess ?? runProcess;
33734
- const removeCode = await execute(
33735
- plan.remove.command,
33736
- plan.remove.args,
33737
- root ?? void 0
33738
- );
33739
- if (removeCode !== 0) {
33740
- throw new Error("Could not remove the existing Deepline skills.");
33741
- }
33742
33740
  const installCode = await execute(
33743
33741
  plan.install.command,
33744
33742
  plan.install.args,
@@ -33763,6 +33761,23 @@ async function runSkillsCommand(options, dependencies = {}) {
33763
33761
  );
33764
33762
  return 5;
33765
33763
  }
33764
+ try {
33765
+ const removeCode = await execute(
33766
+ plan.remove.command,
33767
+ plan.remove.args,
33768
+ root ?? void 0
33769
+ );
33770
+ if (removeCode !== 0) {
33771
+ process.stderr.write(
33772
+ "Current Deepline skills installed, but legacy skill cleanup failed. The installed skills remain usable.\n"
33773
+ );
33774
+ }
33775
+ } catch (error) {
33776
+ process.stderr.write(
33777
+ `Current Deepline skills installed, but legacy skill cleanup failed: ${error instanceof Error ? error.message : String(error)}. The installed skills remain usable.
33778
+ `
33779
+ );
33780
+ }
33766
33781
  (0, import_node_fs17.mkdirSync)((0, import_node_path19.dirname)(plan.statePath), { recursive: true });
33767
33782
  (0, import_node_fs17.writeFileSync)(
33768
33783
  plan.statePath,
@@ -33816,8 +33831,9 @@ function registerSkillsCommand(program) {
33816
33831
  "after",
33817
33832
  `
33818
33833
  Notes:
33819
- This command removes and reinstalls only Deepline-managed skill names using
33820
- skills@1.5.18. Local scope writes into the resolved persistent project.
33834
+ This command reinstalls current Deepline-managed skills using ${SKILLS_NPX_PACKAGE},
33835
+ then removes legacy Deepline skill names. Local scope writes into the resolved
33836
+ persistent project.
33821
33837
 
33822
33838
  Examples:
33823
33839
  deepline skills --json
@@ -1060,7 +1060,7 @@ var SDK_RELEASE = {
1060
1060
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
1061
1061
  // getters keep their established compatibility behavior.
1062
1062
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1063
- version: "0.3.54",
1063
+ version: "0.3.55",
1064
1064
  updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
1065
1065
  packageCapabilities: {
1066
1066
  updatePreferences: 1
@@ -33104,7 +33104,7 @@ var install_commands_default = {
33104
33104
  npx_binary: "npx",
33105
33105
  npx_add_args_template: [
33106
33106
  "--yes",
33107
- "skills@1.5.18",
33107
+ "skills@1.5.15",
33108
33108
  "add",
33109
33109
  "{skills_source_url}",
33110
33110
  "--agent",
@@ -33124,9 +33124,15 @@ var install_commands_default = {
33124
33124
  // src/cli/install-commands.ts
33125
33125
  var INSTALL_COMMANDS = install_commands_default;
33126
33126
  var DEFAULT_SKILL_AGENTS = INSTALL_COMMANDS.skills.default_agents;
33127
- var SKILLS_NPX_PACKAGE = INSTALL_COMMANDS.skills.npx_add_args_template.find(
33128
- (arg) => arg.startsWith("skills@")
33129
- ) ?? "skills@1.5.18";
33127
+ var skillsNpxPackage = INSTALL_COMMANDS.skills.npx_add_args_template.find(
33128
+ (arg) => /^skills@\d+\.\d+\.\d+$/.test(arg)
33129
+ );
33130
+ if (!skillsNpxPackage) {
33131
+ throw new Error(
33132
+ "shared_libs/cli/install-commands.json must pin an exact skills package version."
33133
+ );
33134
+ }
33135
+ var SKILLS_NPX_PACKAGE = skillsNpxPackage;
33130
33136
  var DEFAULT_V1_SKILL_NAMES = [
33131
33137
  "build-tam",
33132
33138
  "clay-to-deepline",
@@ -33468,7 +33474,7 @@ function runLegacySkillsCleanup(agents) {
33468
33474
  command: "bunx",
33469
33475
  args: [
33470
33476
  "--bun",
33471
- "skills",
33477
+ SKILLS_NPX_PACKAGE,
33472
33478
  "remove",
33473
33479
  "--global",
33474
33480
  "--agent",
@@ -33481,7 +33487,7 @@ function runLegacySkillsCleanup(agents) {
33481
33487
  command: "npx",
33482
33488
  args: [
33483
33489
  "--yes",
33484
- "skills",
33490
+ SKILLS_NPX_PACKAGE,
33485
33491
  "remove",
33486
33492
  "--global",
33487
33493
  "--agent",
@@ -33495,7 +33501,7 @@ function runLegacySkillsCleanup(agents) {
33495
33501
  command: "npx",
33496
33502
  args: [
33497
33503
  "--yes",
33498
- "skills",
33504
+ SKILLS_NPX_PACKAGE,
33499
33505
  "remove",
33500
33506
  "--global",
33501
33507
  "--agent",
@@ -33644,9 +33650,9 @@ function skillsStatePathForScope(baseUrl, scope, root) {
33644
33650
  }
33645
33651
  function buildSkillsPlan(input2) {
33646
33652
  const scopeArgs = input2.scope === "global" ? ["--global"] : [];
33647
- const allManagedNames = [
33648
- .../* @__PURE__ */ new Set([...input2.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
33649
- ].sort((a, b) => a.localeCompare(b));
33653
+ const legacyNames = [...LEGACY_SKILL_NAMES_TO_REMOVE].sort(
33654
+ (a, b) => a.localeCompare(b)
33655
+ );
33650
33656
  return {
33651
33657
  scope: input2.scope,
33652
33658
  root: input2.root,
@@ -33666,7 +33672,7 @@ function buildSkillsPlan(input2) {
33666
33672
  "--agent",
33667
33673
  ...input2.agents,
33668
33674
  "-y",
33669
- ...allManagedNames
33675
+ ...legacyNames
33670
33676
  ]
33671
33677
  },
33672
33678
  install: {
@@ -33817,16 +33823,8 @@ async function runSkillsCommand(options, dependencies = {}) {
33817
33823
  `Replacing Deepline skills for ${agents.join(", ")} (${scope})...
33818
33824
  `
33819
33825
  );
33826
+ const execute = dependencies.runProcess ?? runProcess;
33820
33827
  try {
33821
- const execute = dependencies.runProcess ?? runProcess;
33822
- const removeCode = await execute(
33823
- plan.remove.command,
33824
- plan.remove.args,
33825
- root ?? void 0
33826
- );
33827
- if (removeCode !== 0) {
33828
- throw new Error("Could not remove the existing Deepline skills.");
33829
- }
33830
33828
  const installCode = await execute(
33831
33829
  plan.install.command,
33832
33830
  plan.install.args,
@@ -33851,6 +33849,23 @@ async function runSkillsCommand(options, dependencies = {}) {
33851
33849
  );
33852
33850
  return 5;
33853
33851
  }
33852
+ try {
33853
+ const removeCode = await execute(
33854
+ plan.remove.command,
33855
+ plan.remove.args,
33856
+ root ?? void 0
33857
+ );
33858
+ if (removeCode !== 0) {
33859
+ process.stderr.write(
33860
+ "Current Deepline skills installed, but legacy skill cleanup failed. The installed skills remain usable.\n"
33861
+ );
33862
+ }
33863
+ } catch (error) {
33864
+ process.stderr.write(
33865
+ `Current Deepline skills installed, but legacy skill cleanup failed: ${error instanceof Error ? error.message : String(error)}. The installed skills remain usable.
33866
+ `
33867
+ );
33868
+ }
33854
33869
  mkdirSync10(dirname15(plan.statePath), { recursive: true });
33855
33870
  writeFileSync13(
33856
33871
  plan.statePath,
@@ -33904,8 +33919,9 @@ function registerSkillsCommand(program) {
33904
33919
  "after",
33905
33920
  `
33906
33921
  Notes:
33907
- This command removes and reinstalls only Deepline-managed skill names using
33908
- skills@1.5.18. Local scope writes into the resolved persistent project.
33922
+ This command reinstalls current Deepline-managed skills using ${SKILLS_NPX_PACKAGE},
33923
+ then removes legacy Deepline skill names. Local scope writes into the resolved
33924
+ persistent project.
33909
33925
 
33910
33926
  Examples:
33911
33927
  deepline skills --json
package/dist/index.js CHANGED
@@ -816,7 +816,7 @@ var SDK_RELEASE = {
816
816
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
817
817
  // getters keep their established compatibility behavior.
818
818
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
819
- version: "0.3.54",
819
+ version: "0.3.55",
820
820
  updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
821
821
  packageCapabilities: {
822
822
  updatePreferences: 1
package/dist/index.mjs CHANGED
@@ -738,7 +738,7 @@ var SDK_RELEASE = {
738
738
  // available at toolResponse.rawV2 while toolResponse.raw and all declared
739
739
  // getters keep their established compatibility behavior.
740
740
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
741
- version: "0.3.54",
741
+ version: "0.3.55",
742
742
  updateSummary: "Automatic CLI updates are now enabled by default. To opt out, run `deepline settings autoupdate off`; use `deepline settings autoupdate on` to re-enable updates or `deepline settings autoupdate pin <version>` to hold an exact release. This release also adds raw-v2 tool responses at toolResponse.rawV2 while preserving existing toolResponse.raw and declared getters.",
743
743
  packageCapabilities: {
744
744
  updatePreferences: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.54",
3
+ "version": "0.3.55",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",