deepline 0.3.304 → 0.3.306

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 (103) hide show
  1. package/dist/bundling-sources/sdk/src/cli-invocation-id.ts +14 -0
  2. package/dist/bundling-sources/sdk/src/client.ts +24 -1
  3. package/dist/bundling-sources/sdk/src/http.ts +11 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/tool-calls.ts +19 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +1 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +51 -25
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +10 -0
  9. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +13 -0
  10. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +69 -0
  11. package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +26 -1
  12. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +9 -1
  13. package/dist/cli/{auth-YKJHKHIQ.mjs → auth-WTC7LCQ6.mjs} +4 -4
  14. package/dist/cli/auth-ZT3UF33R.js +31 -0
  15. package/dist/cli/{billing-EOIKAZES.js → billing-3DYTHO32.js} +70 -70
  16. package/dist/cli/{billing-XEEW5SV2.mjs → billing-VQM65LVP.mjs} +4 -4
  17. package/dist/cli/chunk-2IKIG333.js +65 -0
  18. package/dist/cli/{chunk-NC4JXVVS.js → chunk-2KR56MPF.js} +2 -2
  19. package/dist/cli/{chunk-7QV545D7.mjs → chunk-4PSSDZQB.mjs} +7 -1
  20. package/dist/cli/{chunk-NW7I3LDU.mjs → chunk-5HS5EEFE.mjs} +3 -3
  21. package/dist/cli/{chunk-35SCWK4Y.mjs → chunk-5V56XCQN.mjs} +1 -1
  22. package/dist/cli/{chunk-JKY2QANB.mjs → chunk-6CRUYVU7.mjs} +4 -4
  23. package/dist/cli/{chunk-IHT6XITB.mjs → chunk-7XORS6WQ.mjs} +2 -2
  24. package/dist/cli/{chunk-7HYH533G.mjs → chunk-FJ3DANI4.mjs} +1 -1
  25. package/dist/cli/{chunk-KP5TOAI4.js → chunk-FZNO6B4W.js} +6 -6
  26. package/dist/cli/{chunk-JZWC4ES6.mjs → chunk-LLGF6V6I.mjs} +44 -8
  27. package/dist/cli/{chunk-DOCDA2YP.js → chunk-M6HCRRV2.js} +10 -4
  28. package/dist/cli/{chunk-BBXO7APG.js → chunk-MMNZ6GBT.js} +6 -6
  29. package/dist/cli/{chunk-INOSSTSG.js → chunk-OF7QP2XX.js} +15 -15
  30. package/dist/cli/{chunk-ZQSQCHG3.js → chunk-OZIFVQRY.js} +1 -1
  31. package/dist/cli/{chunk-FDEU7UY7.js → chunk-PHNAFCSB.js} +275 -239
  32. package/dist/cli/{chunk-TABL2Q6H.mjs → chunk-QDC4XTO3.mjs} +2 -2
  33. package/dist/cli/{chunk-DNBJRKVE.js → chunk-RODIZCGU.js} +60 -60
  34. package/dist/cli/{chunk-NJS3RHQO.js → chunk-SZQPJW2L.js} +6 -6
  35. package/dist/cli/{chunk-7NQJDQPH.js → chunk-U37SW6IK.js} +48 -48
  36. package/dist/cli/chunk-UABLQKTZ.mjs +65 -0
  37. package/dist/cli/{chunk-AOUGAM72.mjs → chunk-UT3VLSLM.mjs} +5 -5
  38. package/dist/cli/{chunk-USJBSNRI.js → chunk-W7ELTWDM.js} +26 -26
  39. package/dist/cli/{chunk-YJ2QYYB5.mjs → chunk-WV64SNDV.mjs} +1 -1
  40. package/dist/cli/{chunk-7OXXCRGZ.mjs → chunk-WWPI4GJI.mjs} +1 -1
  41. package/dist/cli/{client-FZPHVNWV.mjs → client-DCEK34D5.mjs} +3 -3
  42. package/dist/cli/client-UQXVU2T6.js +20 -0
  43. package/dist/cli/{csv-ANJ4KSHF.js → csv-H42JDJ6G.js} +12 -12
  44. package/dist/cli/{csv-CCHVZPRD.mjs → csv-LXBF5UIV.mjs} +3 -3
  45. package/dist/cli/{db-JFVR6STL.mjs → db-3O5CFLNP.mjs} +4 -4
  46. package/dist/cli/{db-AE3MLMRF.js → db-DP5GU4MU.js} +20 -20
  47. package/dist/cli/{executions-DGX53UEW.js → executions-5FFTPHEX.js} +6 -6
  48. package/dist/cli/{executions-WNXCURLN.mjs → executions-QC2UZKIP.mjs} +4 -4
  49. package/dist/cli/{feedback-L4A66OA2.mjs → feedback-JCGE6JFW.mjs} +3 -3
  50. package/dist/cli/{feedback-DGEFG6JI.js → feedback-XAU3FI5S.js} +6 -6
  51. package/dist/cli/git-CNO2UFZE.js +23 -0
  52. package/dist/cli/{git-LIZ3FGVR.mjs → git-S3Y3E2NL.mjs} +4 -4
  53. package/dist/cli/index.js +155 -121
  54. package/dist/cli/index.mjs +121 -87
  55. package/dist/cli/{legacy-noops-UCKGOSJA.mjs → legacy-noops-FQF2IRVS.mjs} +4 -4
  56. package/dist/cli/{legacy-noops-L7GGGAOR.js → legacy-noops-TXOUX4FX.js} +7 -7
  57. package/dist/cli/{monitors-NGACMMWV.js → monitors-4BQCO6B7.js} +85 -85
  58. package/dist/cli/{monitors-NLMFDD4C.mjs → monitors-F3PELPSH.mjs} +4 -4
  59. package/dist/cli/{org-2OW6TPHF.mjs → org-ER5J3ATG.mjs} +4 -4
  60. package/dist/cli/{org-FJSCZ6S3.js → org-VQM6OOLK.js} +60 -60
  61. package/dist/cli/{play-ZZ4AQLL5.mjs → play-B5H2RN4N.mjs} +6 -6
  62. package/dist/cli/{play-GJC4AIAX.js → play-WKZPAOW3.js} +200 -200
  63. package/dist/cli/{providers-D7KLXB4S.js → providers-5TEA2FJG.js} +7 -7
  64. package/dist/cli/{providers-6BJNJUSG.mjs → providers-6ODEAYC2.mjs} +4 -4
  65. package/dist/cli/{quickstart-FH4NGHEJ.mjs → quickstart-BCYT7BCY.mjs} +3 -3
  66. package/dist/cli/{quickstart-6WYRYZJZ.js → quickstart-GJYCNMFC.js} +5 -5
  67. package/dist/cli/{search-KOSJMN3U.js → search-KKJ535OX.js} +6 -6
  68. package/dist/cli/{search-SUT5XFI6.mjs → search-RY547KOT.mjs} +5 -5
  69. package/dist/cli/{secrets-Y2OI2P7O.js → secrets-RFGDXSEW.js} +13 -13
  70. package/dist/cli/{secrets-QK5QP4YU.mjs → secrets-U42ZEYIU.mjs} +4 -4
  71. package/dist/cli/{sessions-VQKZHOQJ.mjs → sessions-YWEFB62D.mjs} +4 -4
  72. package/dist/cli/{sessions-MLDROWXY.js → sessions-ZRTWHMIH.js} +5 -5
  73. package/dist/cli/{settings-SPUINZYG.mjs → settings-AS4U6NVP.mjs} +7 -7
  74. package/dist/cli/{settings-6WOSPHBC.js → settings-XUWFXIL7.js} +74 -74
  75. package/dist/cli/{setup-ZE2SDMC4.mjs → setup-2GUIV2EW.mjs} +6 -6
  76. package/dist/cli/{setup-E2UJV6PW.js → setup-2QPWP2FI.js} +41 -41
  77. package/dist/cli/skills-4E5KYW2Y.js +28 -0
  78. package/dist/cli/{skills-OJYRPY2N.mjs → skills-5QS7ERVF.mjs} +4 -4
  79. package/dist/cli/{tools-BNHRVKLA.js → tools-J47LIO2H.js} +120 -87
  80. package/dist/cli/{tools-O6EIDEKW.mjs → tools-PVWSGCZD.mjs} +76 -43
  81. package/dist/cli/update-GZKGOMKD.js +28 -0
  82. package/dist/cli/{update-NWESWMYF.mjs → update-KS4TRSZI.mjs} +6 -6
  83. package/dist/cli/{workflow-SAJAOPYE.js → workflow-HQRUUTTL.js} +15 -15
  84. package/dist/cli/{workflow-YJHXDD57.mjs → workflow-QCLR7GVC.mjs} +5 -5
  85. package/dist/{client-Me88eH3z.d.mts → client-Dj8MAkDc.d.mts} +91 -1
  86. package/dist/{client-DjJfoW8r.d.ts → client-DsrFGXJf.d.ts} +91 -1
  87. package/dist/index.d.mts +2 -2
  88. package/dist/index.d.ts +2 -2
  89. package/dist/index.js +6 -6
  90. package/dist/index.mjs +3 -3
  91. package/dist/install-integrity.json +74 -70
  92. package/dist/plays/run-request.d.mts +1 -1
  93. package/dist/plays/run-request.d.ts +1 -1
  94. package/dist/release.d.mts +1 -1
  95. package/dist/release.d.ts +1 -1
  96. package/dist/release.js +2 -2
  97. package/dist/release.mjs +1 -1
  98. package/package.json +1 -1
  99. package/dist/cli/auth-UBWZC26A.js +0 -31
  100. package/dist/cli/client-IMFLPCD7.js +0 -20
  101. package/dist/cli/git-6QWUB6CR.js +0 -23
  102. package/dist/cli/skills-J3QIHO5L.js +0 -28
  103. package/dist/cli/update-TDOIF3C4.js +0 -28
@@ -9,8 +9,8 @@ import {
9
9
  resolveUpdatePlan,
10
10
  runAutomaticUpdatePlan,
11
11
  shouldRunCliAutoUpdate
12
- } from "./chunk-JKY2QANB.mjs";
13
- import "./chunk-7HYH533G.mjs";
12
+ } from "./chunk-6CRUYVU7.mjs";
13
+ import "./chunk-FJ3DANI4.mjs";
14
14
  import {
15
15
  SDK_COMPATIBILITY_FAST_DEADLINE_MS,
16
16
  SKILLS_AUTO_SYNC_COMMAND,
@@ -23,17 +23,22 @@ import {
23
23
  readTrustedCleanCompatibility,
24
24
  resolveSdkCliFailureExitCode,
25
25
  syncSdkSkillsIfNeeded
26
- } from "./chunk-AOUGAM72.mjs";
26
+ } from "./chunk-UT3VLSLM.mjs";
27
27
  import {
28
28
  createCliProgress
29
29
  } from "./chunk-GAMFK2ZP.mjs";
30
+ import {
31
+ beginToolExecuteCommand,
32
+ finishToolExecuteCommand,
33
+ runToolExecuteStage
34
+ } from "./chunk-UABLQKTZ.mjs";
30
35
  import {
31
36
  formatProviderConcurrencyDiagnostic,
32
37
  printCompactJson,
33
38
  printJson,
34
39
  printJsonError,
35
40
  shouldEmitJson
36
- } from "./chunk-35SCWK4Y.mjs";
41
+ } from "./chunk-5V56XCQN.mjs";
37
42
  import {
38
43
  HttpClient,
39
44
  SDK_VERSION,
@@ -41,9 +46,9 @@ import {
41
46
  readSdkSkillsLocalVersion,
42
47
  resolveApiKeyForBaseUrl,
43
48
  resolveConfig
44
- } from "./chunk-7QV545D7.mjs";
49
+ } from "./chunk-4PSSDZQB.mjs";
45
50
  import "./chunk-DLIRSHV6.mjs";
46
- import "./chunk-7OXXCRGZ.mjs";
51
+ import "./chunk-WWPI4GJI.mjs";
47
52
  import "./chunk-NXGCO4JB.mjs";
48
53
  import "./chunk-WZYKRD7T.mjs";
49
54
  import "./chunk-KRD6H754.mjs";
@@ -58,44 +63,44 @@ import { Command } from "commander";
58
63
  var COMMAND_GROUPS = [
59
64
  {
60
65
  names: ["auth"],
61
- load: async () => (await import("./auth-YKJHKHIQ.mjs")).registerAuthCommands
66
+ load: async () => (await import("./auth-WTC7LCQ6.mjs")).registerAuthCommands
62
67
  },
63
68
  {
64
69
  names: ["providers"],
65
- load: async () => (await import("./providers-6BJNJUSG.mjs")).registerProviderCommands
70
+ load: async () => (await import("./providers-6ODEAYC2.mjs")).registerProviderCommands
66
71
  },
67
72
  {
68
73
  names: ["search"],
69
- load: async () => (await import("./search-SUT5XFI6.mjs")).registerSearchCommand
74
+ load: async () => (await import("./search-RY547KOT.mjs")).registerSearchCommand
70
75
  },
71
76
  {
72
77
  names: ["tools"],
73
- load: async () => (await import("./tools-O6EIDEKW.mjs")).registerToolsCommands
78
+ load: async () => (await import("./tools-PVWSGCZD.mjs")).registerToolsCommands
74
79
  },
75
80
  {
76
81
  names: ["executions"],
77
- load: async () => (await import("./executions-WNXCURLN.mjs")).registerExecutionsCommands
82
+ load: async () => (await import("./executions-QC2UZKIP.mjs")).registerExecutionsCommands
78
83
  },
79
84
  {
80
85
  names: ["plays", "runs"],
81
- load: async () => (await import("./play-ZZ4AQLL5.mjs")).registerPlayCommands
86
+ load: async () => (await import("./play-B5H2RN4N.mjs")).registerPlayCommands
82
87
  },
83
88
  {
84
89
  names: ["sessions"],
85
- load: async () => (await import("./sessions-VQKZHOQJ.mjs")).registerSessionsCommands
90
+ load: async () => (await import("./sessions-YWEFB62D.mjs")).registerSessionsCommands
86
91
  },
87
92
  {
88
93
  names: ["workflows"],
89
- load: async () => (await import("./workflow-YJHXDD57.mjs")).registerWorkflowCommands
94
+ load: async () => (await import("./workflow-QCLR7GVC.mjs")).registerWorkflowCommands
90
95
  },
91
96
  {
92
97
  names: ["secrets"],
93
- load: async () => (await import("./secrets-QK5QP4YU.mjs")).registerSecretsCommands
98
+ load: async () => (await import("./secrets-U42ZEYIU.mjs")).registerSecretsCommands
94
99
  },
95
100
  {
96
101
  names: ["settings", "notifications"],
97
102
  load: async () => {
98
- const commands = await import("./settings-SPUINZYG.mjs");
103
+ const commands = await import("./settings-AS4U6NVP.mjs");
99
104
  return (p) => {
100
105
  commands.registerSettingsCommands(p);
101
106
  commands.registerNotificationCommands(p);
@@ -104,51 +109,51 @@ var COMMAND_GROUPS = [
104
109
  },
105
110
  {
106
111
  names: ["billing"],
107
- load: async () => (await import("./billing-XEEW5SV2.mjs")).registerBillingCommands
112
+ load: async () => (await import("./billing-VQM65LVP.mjs")).registerBillingCommands
108
113
  },
109
114
  {
110
115
  names: ["monitors"],
111
- load: async () => (await import("./monitors-NLMFDD4C.mjs")).registerMonitorsCommands
116
+ load: async () => (await import("./monitors-F3PELPSH.mjs")).registerMonitorsCommands
112
117
  },
113
118
  {
114
119
  names: ["org"],
115
- load: async () => (await import("./org-2OW6TPHF.mjs")).registerOrgCommands
120
+ load: async () => (await import("./org-ER5J3ATG.mjs")).registerOrgCommands
116
121
  },
117
122
  {
118
123
  names: ["git", "projects", "deployments"],
119
- load: async () => (await import("./git-LIZ3FGVR.mjs")).registerGitCommands
124
+ load: async () => (await import("./git-S3Y3E2NL.mjs")).registerGitCommands
120
125
  },
121
126
  {
122
127
  names: ["csv"],
123
- load: async () => (await import("./csv-CCHVZPRD.mjs")).registerCsvCommands
128
+ load: async () => (await import("./csv-LXBF5UIV.mjs")).registerCsvCommands
124
129
  },
125
130
  {
126
131
  names: ["db"],
127
- load: async () => (await import("./db-JFVR6STL.mjs")).registerDbCommands
132
+ load: async () => (await import("./db-3O5CFLNP.mjs")).registerDbCommands
128
133
  },
129
134
  {
130
135
  names: ["feedback"],
131
- load: async () => (await import("./feedback-L4A66OA2.mjs")).registerFeedbackCommands
136
+ load: async () => (await import("./feedback-JCGE6JFW.mjs")).registerFeedbackCommands
132
137
  },
133
138
  {
134
139
  names: ["enrich", "session", "backend"],
135
- load: async () => (await import("./legacy-noops-UCKGOSJA.mjs")).registerDeprecatedCommands
140
+ load: async () => (await import("./legacy-noops-FQF2IRVS.mjs")).registerDeprecatedCommands
136
141
  },
137
142
  {
138
143
  names: ["update"],
139
- load: async () => (await import("./update-NWESWMYF.mjs")).registerUpdateCommand
144
+ load: async () => (await import("./update-KS4TRSZI.mjs")).registerUpdateCommand
140
145
  },
141
146
  {
142
147
  names: ["skills", "skills-auto-sync"],
143
- load: async () => (await import("./skills-OJYRPY2N.mjs")).registerSkillsCommand
148
+ load: async () => (await import("./skills-5QS7ERVF.mjs")).registerSkillsCommand
144
149
  },
145
150
  {
146
151
  names: ["setup", "doctor"],
147
- load: async () => (await import("./setup-ZE2SDMC4.mjs")).registerSetupCommands
152
+ load: async () => (await import("./setup-2GUIV2EW.mjs")).registerSetupCommands
148
153
  },
149
154
  {
150
155
  names: ["quickstart"],
151
- load: async () => (await import("./quickstart-FH4NGHEJ.mjs")).registerQuickstartCommands
156
+ load: async () => (await import("./quickstart-BCYT7BCY.mjs")).registerQuickstartCommands
152
157
  }
153
158
  ];
154
159
  async function registerDeeplineCommandGroups(program, requestedCommand) {
@@ -451,7 +456,7 @@ async function runPlayRunnerHealthCheck() {
451
456
  });
452
457
  let exitCode = 1;
453
458
  try {
454
- const { handlePlayRun } = await import("./play-ZZ4AQLL5.mjs");
459
+ const { handlePlayRun } = await import("./play-B5H2RN4N.mjs");
455
460
  exitCode = await handlePlayRun([
456
461
  file,
457
462
  "--input",
@@ -683,73 +688,100 @@ Exit codes:
683
688
  return;
684
689
  }
685
690
  const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
691
+ const isToolExecuteCommand = compatibilityCommand === "tools execute";
692
+ if (isToolExecuteCommand) {
693
+ beginToolExecuteCommand();
694
+ }
695
+ const runStartupStage = (stage, action) => isToolExecuteCommand ? runToolExecuteStage(stage, action) : Promise.resolve(action());
686
696
  if (printStartupPhase) {
687
697
  progress?.phase("checking sdk compatibility");
688
698
  }
689
- const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
690
- flushDeferredSkillsSyncNotices(baseUrl);
691
- const shouldDeferSkillsSync = shouldDeferSkillsSyncForCommand();
692
- const skillsVersion = shouldDeferSkillsSync ? void 0 : readSdkSkillsLocalVersion(baseUrl);
693
- const trusted = readTrustedCleanCompatibility(
694
- baseUrl,
695
- compatibilityCommand,
696
- skillsVersion
697
- );
698
- const fastDeadline = trusted === null && readFreshCleanCompatibility(
699
- baseUrl,
700
- compatibilityCommand,
701
- skillsVersion
702
- ) !== null;
703
- if (trusted) {
704
- recordCliTrace({
705
- phase: "cli.sdk_compatibility",
706
- ms: 0,
707
- ok: true,
699
+ const startup = await runStartupStage("SDK compatibility", async () => {
700
+ const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
701
+ flushDeferredSkillsSyncNotices(baseUrl);
702
+ const shouldDeferSkillsSync = shouldDeferSkillsSyncForCommand();
703
+ const skillsVersion = shouldDeferSkillsSync ? void 0 : readSdkSkillsLocalVersion(baseUrl);
704
+ const trusted = readTrustedCleanCompatibility(
705
+ baseUrl,
706
+ compatibilityCommand,
707
+ skillsVersion
708
+ );
709
+ const fastDeadline = trusted === null && readFreshCleanCompatibility(
708
710
  baseUrl,
709
- command: compatibilityCommand,
710
- skillsVersion: skillsVersion ?? null,
711
- source: "trusted_cache"
711
+ compatibilityCommand,
712
+ skillsVersion
713
+ ) !== null;
714
+ if (trusted) {
715
+ recordCliTrace({
716
+ phase: "cli.sdk_compatibility",
717
+ ms: 0,
718
+ ok: true,
719
+ baseUrl,
720
+ command: compatibilityCommand,
721
+ skillsVersion: skillsVersion ?? null,
722
+ source: "trusted_cache"
723
+ });
724
+ }
725
+ const compatibility = trusted ? { response: trusted, error: null } : await traceCliSpan(
726
+ "cli.sdk_compatibility",
727
+ {
728
+ baseUrl,
729
+ command: compatibilityCommand,
730
+ skillsVersion: skillsVersion ?? null,
731
+ fastDeadline
732
+ },
733
+ () => checkSdkCompatibility(baseUrl, {
734
+ command: compatibilityCommand,
735
+ skillsVersion,
736
+ ...fastDeadline ? { timeoutMs: SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
737
+ })
738
+ );
739
+ if (compatibility.error) {
740
+ return {
741
+ shouldContinue: false,
742
+ baseUrl,
743
+ shouldDeferSkillsSync,
744
+ response: null
745
+ };
746
+ }
747
+ const relaunched = await maybeAutoUpdateAndRelaunch(
748
+ compatibility.response,
749
+ baseUrl
750
+ );
751
+ if (relaunched) {
752
+ return {
753
+ shouldContinue: false,
754
+ baseUrl,
755
+ shouldDeferSkillsSync,
756
+ response: compatibility.response
757
+ };
758
+ }
759
+ enforceSdkCompatibilityResponse(compatibility.response, {
760
+ quietAdvisory: process.argv.includes("--json")
712
761
  });
713
- }
714
- const compatibility = trusted ? { response: trusted, error: null } : await traceCliSpan(
715
- "cli.sdk_compatibility",
716
- {
762
+ return {
763
+ shouldContinue: true,
717
764
  baseUrl,
718
- command: compatibilityCommand,
719
- skillsVersion: skillsVersion ?? null,
720
- fastDeadline
721
- },
722
- () => checkSdkCompatibility(baseUrl, {
723
- command: compatibilityCommand,
724
- skillsVersion,
725
- ...fastDeadline ? { timeoutMs: SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
726
- })
727
- );
728
- if (compatibility.error) {
729
- return;
730
- }
731
- const relaunched = await maybeAutoUpdateAndRelaunch(
732
- compatibility.response,
733
- baseUrl
734
- );
735
- if (relaunched) {
736
- return;
737
- }
738
- enforceSdkCompatibilityResponse(compatibility.response, {
739
- quietAdvisory: process.argv.includes("--json")
765
+ shouldDeferSkillsSync,
766
+ response: compatibility.response
767
+ };
740
768
  });
769
+ if (!startup.shouldContinue) return;
741
770
  if (printStartupPhase) {
742
771
  progress?.phase("checking sdk skills");
743
772
  }
744
- if (!shouldDeferSkillsSync) {
745
- const skillsUpdate = compatibility.response && Object.prototype.hasOwnProperty.call(compatibility.response, "skills") ? compatibility.response.skills ?? null : void 0;
746
- await traceCliSpan(
747
- "cli.sdk_skills_sync",
748
- { baseUrl },
749
- () => syncSdkSkillsIfNeeded(baseUrl, {
750
- update: skillsUpdate,
751
- mode: "detached"
752
- })
773
+ if (!startup.shouldDeferSkillsSync) {
774
+ const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? startup.response.skills ?? null : void 0;
775
+ await runStartupStage(
776
+ "agent skills sync",
777
+ () => traceCliSpan(
778
+ "cli.sdk_skills_sync",
779
+ { baseUrl: startup.baseUrl },
780
+ () => syncSdkSkillsIfNeeded(startup.baseUrl, {
781
+ update: skillsUpdate,
782
+ mode: "detached"
783
+ })
784
+ )
753
785
  );
754
786
  }
755
787
  });
@@ -800,7 +832,7 @@ Examples:
800
832
  printJson(data2);
801
833
  return;
802
834
  }
803
- const { DeeplineClient } = await import("./client-FZPHVNWV.mjs");
835
+ const { DeeplineClient } = await import("./client-DCEK34D5.mjs");
804
836
  const client = new DeeplineClient();
805
837
  const data = await client.health();
806
838
  printJson(data);
@@ -915,6 +947,8 @@ Examples:
915
947
  exitCode: failureExitCode,
916
948
  error
917
949
  });
950
+ } finally {
951
+ finishToolExecuteCommand();
918
952
  }
919
953
  process.exitCode = process.exitCode ?? 0;
920
954
  }
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  registerSessionSendRenderCommands
3
- } from "./chunk-YJ2QYYB5.mjs";
3
+ } from "./chunk-WV64SNDV.mjs";
4
4
  import {
5
5
  ENRICH_COMMAND_DEPRECATION_MESSAGE
6
6
  } from "./chunk-ITOFSXIU.mjs";
7
7
  import {
8
8
  printCommandEnvelope
9
- } from "./chunk-35SCWK4Y.mjs";
10
- import "./chunk-7QV545D7.mjs";
9
+ } from "./chunk-5V56XCQN.mjs";
10
+ import "./chunk-4PSSDZQB.mjs";
11
11
  import "./chunk-DLIRSHV6.mjs";
12
- import "./chunk-7OXXCRGZ.mjs";
12
+ import "./chunk-WWPI4GJI.mjs";
13
13
  import "./chunk-NXGCO4JB.mjs";
14
14
  import "./chunk-WZYKRD7T.mjs";
15
15
  import "./chunk-KRD6H754.mjs";
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkKP5TOAI4js = require('./chunk-KP5TOAI4.js');
3
+ var _chunkFZNO6B4Wjs = require('./chunk-FZNO6B4W.js');
4
4
 
5
5
 
6
6
  var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
7
7
 
8
8
 
9
- var _chunkBBXO7APGjs = require('./chunk-BBXO7APG.js');
10
- require('./chunk-DOCDA2YP.js');
9
+ var _chunkMMNZ6GBTjs = require('./chunk-MMNZ6GBT.js');
10
+ require('./chunk-M6HCRRV2.js');
11
11
  require('./chunk-XNYIZMNQ.js');
12
- require('./chunk-ZQSQCHG3.js');
12
+ require('./chunk-OZIFVQRY.js');
13
13
  require('./chunk-7P5AA3SN.js');
14
14
  require('./chunk-OG64RBAC.js');
15
15
  require('./chunk-COGTRVWW.js');
@@ -51,7 +51,7 @@ function deprecatedCommandEnvelope(input) {
51
51
  };
52
52
  }
53
53
  function printDeprecatedCommand(input) {
54
- _chunkBBXO7APGjs.printCommandEnvelope.call(void 0, deprecatedCommandEnvelope(input), {
54
+ _chunkMMNZ6GBTjs.printCommandEnvelope.call(void 0, deprecatedCommandEnvelope(input), {
55
55
  json: input.options.json
56
56
  });
57
57
  process.exitCode = 2;
@@ -71,7 +71,7 @@ function registerDeprecatedCommands(program) {
71
71
  program.command("enrich", { hidden: true }).description("Deprecated CSV enrichment command.").allowUnknownOption(true).allowExcessArguments(true).option("--json", "Emit JSON output").argument("[args...]").addHelpText("after", `
72
72
  ${_chunk3XX5TEA4js.ENRICH_COMMAND_DEPRECATION_MESSAGE}
73
73
  `).action((_args, options) => {
74
- _chunkBBXO7APGjs.printCommandEnvelope.call(void 0,
74
+ _chunkMMNZ6GBTjs.printCommandEnvelope.call(void 0,
75
75
  {
76
76
  ok: false,
77
77
  command: "deepline enrich",
@@ -114,7 +114,7 @@ Examples:
114
114
  options
115
115
  });
116
116
  });
117
- _chunkKP5TOAI4js.registerSessionSendRenderCommands.call(void 0, session, "session");
117
+ _chunkFZNO6B4Wjs.registerSessionSendRenderCommands.call(void 0, session, "session");
118
118
  for (const subcommand of SESSION_SUBCOMMANDS) {
119
119
  addDeprecatedSubcommand(
120
120
  session,