deepline 0.3.576 → 0.3.577

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 (140) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{agents-BLJR2Y3X.mjs → agents-SUJRATC2.mjs} +27 -10
  3. package/dist/cli/{agents-CJQ7KBFT.js → agents-ZIGK3FQ2.js} +54 -37
  4. package/dist/cli/auth-A5U6GVCF.js +44 -0
  5. package/dist/cli/{auth-SLZIRCPE.mjs → auth-TRKPRZK6.mjs} +5 -5
  6. package/dist/cli/{billing-IECMVARO.js → billing-6RAF4DQY.js} +102 -102
  7. package/dist/cli/{billing-6Q4SK5KF.mjs → billing-WPQT3QRS.mjs} +9 -9
  8. package/dist/cli/{chunk-L6H72AIX.js → chunk-2NFDB6CL.js} +2 -2
  9. package/dist/cli/{chunk-X5V6S5KI.mjs → chunk-425SUSDJ.mjs} +5 -5
  10. package/dist/cli/{chunk-66K7F7LR.mjs → chunk-4ANO4DM5.mjs} +1 -1
  11. package/dist/cli/{chunk-EQO77FQZ.js → chunk-772IV64Y.js} +5 -5
  12. package/dist/cli/{chunk-TZHS2W5Z.mjs → chunk-APJ6YIYW.mjs} +1 -1
  13. package/dist/cli/{chunk-6RY5COUY.js → chunk-APOWCBO7.js} +23 -23
  14. package/dist/cli/{chunk-QCD7BQ5Z.mjs → chunk-ATW77ZBL.mjs} +2 -2
  15. package/dist/cli/{chunk-7DI34I73.mjs → chunk-CCGFSELM.mjs} +3 -3
  16. package/dist/cli/{chunk-ZRC52APB.mjs → chunk-CWHXE6HJ.mjs} +1 -1
  17. package/dist/cli/{chunk-4KIIXV5Z.js → chunk-CZF2LKIT.js} +16 -16
  18. package/dist/cli/{chunk-5VABOJ4M.mjs → chunk-DA5C5WOI.mjs} +2 -2
  19. package/dist/cli/{chunk-45POZK3F.js → chunk-DJP7CJQC.js} +3 -3
  20. package/dist/cli/{chunk-WPGZ6V36.js → chunk-EJN43WGD.js} +48 -48
  21. package/dist/cli/{chunk-ANPHEXTT.js → chunk-EKZ6JD6K.js} +9 -9
  22. package/dist/cli/{chunk-OXRG325T.js → chunk-EV47DV25.js} +41 -41
  23. package/dist/cli/{chunk-XJNJ3BWU.mjs → chunk-FHYNK7GL.mjs} +1 -1
  24. package/dist/cli/{chunk-SBZSJQEI.js → chunk-FRYLXDNP.js} +53 -53
  25. package/dist/cli/{chunk-JSIOLCTK.js → chunk-FXN5WSTY.js} +20 -20
  26. package/dist/cli/{chunk-GI57Q7JU.mjs → chunk-GFWVBXAK.mjs} +2 -2
  27. package/dist/cli/{chunk-OMVBBAQP.mjs → chunk-H6NF5SNY.mjs} +2 -2
  28. package/dist/cli/{chunk-S4IW4NAI.mjs → chunk-I44Y4MPK.mjs} +1 -1
  29. package/dist/cli/{chunk-CUIFDMNP.mjs → chunk-ID5WQZ2H.mjs} +1 -1
  30. package/dist/cli/{chunk-GZ7KYGYE.js → chunk-ITK5TGQ7.js} +15 -15
  31. package/dist/cli/{chunk-36254433.js → chunk-JHQ7FORY.js} +3 -3
  32. package/dist/cli/{chunk-Y4A6Y5EY.js → chunk-JWLV3XRF.js} +7 -7
  33. package/dist/cli/{chunk-MXPCTF57.js → chunk-KVDIN2YW.js} +11 -0
  34. package/dist/cli/{chunk-YHM64N5C.mjs → chunk-LUQMTNFB.mjs} +1 -1
  35. package/dist/cli/{chunk-ZIGMC2X4.mjs → chunk-LXM36EXW.mjs} +11 -11
  36. package/dist/cli/{chunk-KQTZO6NT.mjs → chunk-MDP3CNDM.mjs} +2 -2
  37. package/dist/cli/{chunk-F4H26PP6.js → chunk-MOWABWHT.js} +100 -100
  38. package/dist/cli/{chunk-DGY4EYIX.js → chunk-MTHAVEQN.js} +5 -5
  39. package/dist/cli/{chunk-LKC7PHDX.mjs → chunk-MTM6WNPP.mjs} +4 -4
  40. package/dist/cli/{chunk-PU5VCDCJ.mjs → chunk-MVCKEPWF.mjs} +5 -5
  41. package/dist/cli/{chunk-AUR24RQB.mjs → chunk-N6EU2FRF.mjs} +2 -2
  42. package/dist/cli/{chunk-HE53AI2E.mjs → chunk-NDMKFA6W.mjs} +3 -3
  43. package/dist/cli/{chunk-M23G33MH.js → chunk-NMSDMXYS.js} +2 -2
  44. package/dist/cli/{chunk-NQFZ7FYN.js → chunk-NRBIYZUG.js} +10 -10
  45. package/dist/cli/{chunk-BRPUB6UA.js → chunk-NVJGVNEN.js} +5 -5
  46. package/dist/cli/{chunk-JPFAD6G6.mjs → chunk-O35BHZLQ.mjs} +2 -2
  47. package/dist/cli/{chunk-E4M4QZBP.js → chunk-OBZB4J7B.js} +1 -1
  48. package/dist/cli/{chunk-2UHEJPSS.mjs → chunk-OQQDNJ2D.mjs} +5 -5
  49. package/dist/cli/{chunk-AZFSCPYK.mjs → chunk-ORLJIJVX.mjs} +11 -0
  50. package/dist/cli/{chunk-SY3OKOI5.mjs → chunk-Q3WDT3YA.mjs} +1 -1
  51. package/dist/cli/{chunk-WDWV77SJ.js → chunk-QXAPAHIG.js} +13 -13
  52. package/dist/cli/{chunk-MDJ4LPQ5.js → chunk-RSZSKTRC.js} +4 -4
  53. package/dist/cli/{chunk-6JQZC6HX.js → chunk-RVICQWXU.js} +20 -20
  54. package/dist/cli/{chunk-D5LWYP2H.mjs → chunk-U6Y4HX6J.mjs} +3 -3
  55. package/dist/cli/{chunk-UD6M2ZTY.js → chunk-V5SF5CJ7.js} +2 -2
  56. package/dist/cli/{chunk-ZYN6S6G2.mjs → chunk-WP4Q5PTK.mjs} +4 -4
  57. package/dist/cli/{chunk-PYFMNPTA.js → chunk-X5ZE7K4J.js} +8 -8
  58. package/dist/cli/{chunk-UGIH4462.mjs → chunk-X7Y4T7CV.mjs} +5 -5
  59. package/dist/cli/{chunk-R5NKLZL2.mjs → chunk-XQTJET2Y.mjs} +1 -1
  60. package/dist/cli/{chunk-HHMO3CON.js → chunk-Y37JQZBP.js} +6 -6
  61. package/dist/cli/{chunk-V25CXBR2.js → chunk-ZHJIDDYR.js} +26 -26
  62. package/dist/cli/command-docs.js +2 -2
  63. package/dist/cli/command-docs.mjs +1 -1
  64. package/dist/cli/{concurrent-runs-help-H3SA7J6H.mjs → concurrent-runs-help-6CGXMTFQ.mjs} +6 -6
  65. package/dist/cli/concurrent-runs-help-VJDPVGXM.js +22 -0
  66. package/dist/cli/{csv-6DEKR3QQ.js → csv-7UZT2LGE.js} +13 -13
  67. package/dist/cli/{csv-ICXI7JAS.mjs → csv-L7P6PC6I.mjs} +4 -4
  68. package/dist/cli/{db-VI7T5E6O.mjs → db-4OOEC5KV.mjs} +6 -6
  69. package/dist/cli/{db-AG7INMLP.js → db-7KETOIZY.js} +27 -27
  70. package/dist/cli/{describe-S6NFWWGK.mjs → describe-M6HEFS46.mjs} +18 -18
  71. package/dist/cli/describe-RLWJYZIR.js +50 -0
  72. package/dist/cli/{executions-MK7H4Q2H.mjs → executions-U27R2LY4.mjs} +6 -6
  73. package/dist/cli/{executions-M5R5QHIA.js → executions-UIR6RQFM.js} +8 -8
  74. package/dist/cli/{feedback-L3L4FEQL.js → feedback-CQ5FUE4T.js} +14 -14
  75. package/dist/cli/{feedback-ZHATL2XF.mjs → feedback-UUUISTGQ.mjs} +6 -6
  76. package/dist/cli/{git-W5DHNH2Q.mjs → git-DTILSRIQ.mjs} +5 -5
  77. package/dist/cli/git-ZGDD3BVX.js +26 -0
  78. package/dist/cli/index.js +148 -148
  79. package/dist/cli/index.mjs +47 -47
  80. package/dist/cli/{integrations-IBWNO3YP.js → integrations-ABBLLEJH.js} +29 -29
  81. package/dist/cli/{integrations-73YSN2LI.mjs → integrations-NNACG3HD.mjs} +7 -7
  82. package/dist/cli/{legacy-noops-AE6DBYJM.js → legacy-noops-3JLS5OD7.js} +9 -9
  83. package/dist/cli/{legacy-noops-4LFZJTDX.mjs → legacy-noops-KQW7AIYU.mjs} +6 -6
  84. package/dist/cli/{mcp-E6PTSNDE.mjs → mcp-7NHGPYZH.mjs} +4 -4
  85. package/dist/cli/{mcp-BKL6M6OI.js → mcp-JPBFKR26.js} +24 -24
  86. package/dist/cli/{monitors-SW7ZCPPT.js → monitors-J6HK5KCN.js} +100 -100
  87. package/dist/cli/{monitors-MXJ27KQK.mjs → monitors-JOE2DALW.mjs} +7 -7
  88. package/dist/cli/{org-HYAJ2MIK.mjs → org-VZZ4LN4O.mjs} +6 -6
  89. package/dist/cli/{org-XJ44KZ5I.js → org-WFZFQIXQ.js} +121 -121
  90. package/dist/cli/{outcomes-PUMAXRGD.mjs → outcomes-H2WEZYNT.mjs} +6 -6
  91. package/dist/cli/{outcomes-PTXGG4BZ.js → outcomes-RZWL47BJ.js} +14 -14
  92. package/dist/cli/{play-EPDZ3GDV.js → play-2ZEBUF5T.js} +336 -336
  93. package/dist/cli/{play-QN3X6IAE.mjs → play-KMWA7GVN.mjs} +19 -19
  94. package/dist/cli/{providers-JIN5UQ7Z.mjs → providers-2BIA3OWA.mjs} +6 -6
  95. package/dist/cli/{providers-GNJFGNDH.js → providers-57AZWFSW.js} +9 -9
  96. package/dist/cli/{quickstart-YH6NNC5I.js → quickstart-EYJFERQO.js} +6 -6
  97. package/dist/cli/{quickstart-4EBFHGB7.mjs → quickstart-NSDM2RXV.mjs} +4 -4
  98. package/dist/cli/{run-4DRF7KQJ.js → run-BW62DZGQ.js} +44 -44
  99. package/dist/cli/{run-5467KBCP.mjs → run-X6H5SCEE.mjs} +23 -23
  100. package/dist/cli/{search-ZERTOGH6.mjs → search-2VN74P5N.mjs} +7 -7
  101. package/dist/cli/search-HYRDZVPQ.js +32 -0
  102. package/dist/cli/{search-output-OMNZN2LP.js → search-output-SFWQVBYU.js} +6 -6
  103. package/dist/cli/{search-output-OAVJXRFO.mjs → search-output-VN7XOZEQ.mjs} +4 -4
  104. package/dist/cli/{secrets-KAVDYB4P.mjs → secrets-4M26N436.mjs} +6 -6
  105. package/dist/cli/{secrets-7XK2BGYX.js → secrets-OIPKG2H7.js} +15 -15
  106. package/dist/cli/sessions-5P2KZOQE.js +23 -0
  107. package/dist/cli/{sessions-TNPI6XWB.mjs → sessions-SYFH23L3.mjs} +6 -6
  108. package/dist/cli/{settings-KUABXRAJ.mjs → settings-4HPF3T4P.mjs} +12 -12
  109. package/dist/cli/{settings-RQ3Z3JCM.js → settings-5NB4HZYL.js} +85 -85
  110. package/dist/cli/{setup-6IX6BSS7.mjs → setup-CI74F6CL.mjs} +9 -9
  111. package/dist/cli/{setup-TDOWNKYN.js → setup-JV3F5C7P.js} +49 -49
  112. package/dist/cli/{skills-Z6NBJ4KP.mjs → skills-76CM4GHO.mjs} +7 -7
  113. package/dist/cli/skills-PJ5EL32L.js +37 -0
  114. package/dist/cli/{tools-LQKFWK7J.mjs → tools-SVGLDWOC.mjs} +17 -17
  115. package/dist/cli/tools-Y5ID2SPK.js +57 -0
  116. package/dist/cli/update-FSUMCMNZ.js +37 -0
  117. package/dist/cli/{update-RUB4EIKW.mjs → update-KPMDOZRX.mjs} +9 -9
  118. package/dist/cli/{views-D7WY5QPR.mjs → views-KW54SAES.mjs} +6 -6
  119. package/dist/cli/{views-FFLXLAGC.js → views-R37NWN6J.js} +21 -21
  120. package/dist/cli/{workflow-BV2OTEQD.mjs → workflow-3MIRQV4Q.mjs} +7 -7
  121. package/dist/cli/{workflow-QW7QVODA.js → workflow-BKRKUNYS.js} +17 -17
  122. package/dist/index.js +9 -9
  123. package/dist/index.mjs +6 -6
  124. package/dist/install-integrity.json +116 -116
  125. package/dist/release.d.mts +1 -1
  126. package/dist/release.d.ts +1 -1
  127. package/dist/release.js +2 -2
  128. package/dist/release.mjs +1 -1
  129. package/dist/server.js +5 -5
  130. package/dist/server.mjs +3 -3
  131. package/package.json +1 -1
  132. package/dist/cli/auth-GSDYP4ZN.js +0 -44
  133. package/dist/cli/concurrent-runs-help-PB7GT6F2.js +0 -22
  134. package/dist/cli/describe-LMHIG3DP.js +0 -50
  135. package/dist/cli/git-WYNCLDHD.js +0 -26
  136. package/dist/cli/search-B2KCWPUV.js +0 -32
  137. package/dist/cli/sessions-PUQURPPC.js +0 -23
  138. package/dist/cli/skills-AACRY2TV.js +0 -37
  139. package/dist/cli/tools-OTYA4722.js +0 -57
  140. package/dist/cli/update-JTGMI6OJ.js +0 -37
@@ -205,7 +205,7 @@ export const SDK_RELEASE = {
205
205
  // getters keep their established compatibility behavior.
206
206
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
207
207
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
208
- version: '0.3.576',
208
+ version: '0.3.577',
209
209
  updateSummary: {
210
210
  introducedIn: '0.3.90',
211
211
  summary:
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-JPFAD6G6.mjs";
4
+ } from "./chunk-O35BHZLQ.mjs";
5
5
  import {
6
6
  cliFeatureEnabled
7
- } from "./chunk-ZRC52APB.mjs";
8
- import "./chunk-XJNJ3BWU.mjs";
7
+ } from "./chunk-CWHXE6HJ.mjs";
8
+ import "./chunk-FHYNK7GL.mjs";
9
9
  import "./chunk-ASB47RXJ.mjs";
10
10
  import "./chunk-DLIRSHV6.mjs";
11
11
  import {
12
12
  DeeplineError
13
13
  } from "./chunk-Z3A2S3QM.mjs";
14
14
  import "./chunk-2MGZAI54.mjs";
15
- import "./chunk-CUIFDMNP.mjs";
15
+ import "./chunk-ID5WQZ2H.mjs";
16
16
  import "./chunk-WZYKRD7T.mjs";
17
17
  import "./chunk-KRD6H754.mjs";
18
18
 
@@ -93,6 +93,11 @@ function parseModel(value) {
93
93
  const model = value.trim();
94
94
  return model === "" || model.toLowerCase() === "default" ? null : model;
95
95
  }
96
+ function parseDisplayName(value) {
97
+ if (value === void 0) return void 0;
98
+ const displayName = value.trim();
99
+ return displayName === "" ? null : displayName;
100
+ }
96
101
  function describeOutcomeChange(change) {
97
102
  const { conversation } = change;
98
103
  const where = `#${conversation.conversationName}`;
@@ -111,7 +116,8 @@ function describeOutcomeChange(change) {
111
116
  function describeAgentLine(agent) {
112
117
  const channels = agent.conversations.length ? agent.conversations.map(describeConversation).join(", ") : "no channels";
113
118
  const skills = agent.skillNames.length ? `skills: ${agent.skillNames.join(", ")}` : "no skills";
114
- return `${agent.name} \u2014 ${firstLine(agent.instructions, 60)} [${skills}; ${channels}]`;
119
+ const slackName = agent.displayName ? ` (\u201C${agent.displayName}\u201D in Slack)` : "";
120
+ return `${agent.name}${slackName} \u2014 ${firstLine(agent.instructions, 60)} [${skills}; ${channels}]`;
115
121
  }
116
122
  function describeAgent(agent) {
117
123
  return [
@@ -120,6 +126,7 @@ function describeAgent(agent) {
120
126
  ...agent.instructions.split("\n").map((line) => ` ${line}`),
121
127
  `Skills: ${agent.skillNames.length ? agent.skillNames.join(", ") : "none"}`,
122
128
  `Model: ${agent.model ?? "the default (see deepline agents models)"}`,
129
+ ...agent.displayName !== void 0 ? [`Name in Slack: ${agent.displayName ?? "the Slack app\u2019s own name"}`] : [],
123
130
  agent.conversations.length ? `Channels: ${agent.conversations.map(describeConversation).join(", ")}` : `Channels: none. Bind one with: deepline agents channels add ${agent.name} <channel-id>`
124
131
  ];
125
132
  }
@@ -477,10 +484,14 @@ function registerAgentCommands(agents) {
477
484
  ).argument("<name>", "Agent name: lower-case letters, digits and dashes").option("--instructions <text>", "What the agent does and never does").option("--instructions-file <path>", "Read the instructions from a file").option("--skills <names>", "Comma-separated library skill names").option(
478
485
  "--model <model>",
479
486
  "The model it runs on, from deepline agents models (for example sonnet)"
487
+ ).option(
488
+ "--display-name <name>",
489
+ "The name it posts under in Slack, at most 80 characters (default: the Slack app\u2019s own name)"
480
490
  ).option("--dry-run", "Print the request without sending it").option("--json", "Emit JSON output").action(
481
491
  async (name, options) => {
482
492
  const instructions = readInstructions(options);
483
493
  const model = parseModel(options.model);
494
+ const displayName = parseDisplayName(options.displayName);
484
495
  if (instructions === void 0) {
485
496
  throw new AgentUsageError(
486
497
  'Pass --instructions "<what the agent does>" or --instructions-file <path>.'
@@ -490,7 +501,8 @@ function registerAgentCommands(agents) {
490
501
  name: requireArgument(name, "an agent name"),
491
502
  instructions,
492
503
  skills: parseSkills(options.skills) ?? [],
493
- ...typeof model === "string" ? { model } : {}
504
+ ...typeof model === "string" ? { model } : {},
505
+ ...typeof displayName === "string" ? { displayName } : {}
494
506
  };
495
507
  if (options.dryRun) {
496
508
  printDryRun("POST", `${AGENT_PATH}/agents`, body, options);
@@ -513,28 +525,33 @@ function registerAgentCommands(agents) {
513
525
  }
514
526
  );
515
527
  agents.command("update").description(
516
- "Replace an agent\u2019s instructions, skills or model (its creator or an admin)."
528
+ "Replace an agent\u2019s instructions, skills, model or name in Slack (its creator or an admin)."
517
529
  ).argument("<name>", "Agent name").option("--instructions <text>", "New instructions").option("--instructions-file <path>", "Read new instructions from a file").option(
518
530
  "--skills <names>",
519
531
  'Comma-separated library skill names; replaces the list ("" clears it)'
520
532
  ).option(
521
533
  "--model <model>",
522
534
  'The model it runs on, from deepline agents models ("default" returns it to the default)'
535
+ ).option(
536
+ "--display-name <name>",
537
+ 'The name it posts under in Slack, at most 80 characters ("" returns it to the Slack app\u2019s own name)'
523
538
  ).option("--dry-run", "Print the request without sending it").option("--json", "Emit JSON output").action(
524
539
  async (name, options) => {
525
540
  const instructions = readInstructions(options);
526
541
  const skills = parseSkills(options.skills);
527
542
  const model = parseModel(options.model);
528
- if (instructions === void 0 && skills === void 0 && model === void 0) {
543
+ const displayName = parseDisplayName(options.displayName);
544
+ if (instructions === void 0 && skills === void 0 && model === void 0 && displayName === void 0) {
529
545
  throw new AgentUsageError(
530
- "Pass --instructions, --instructions-file, --skills or --model."
546
+ "Pass --instructions, --instructions-file, --skills, --model or --display-name."
531
547
  );
532
548
  }
533
549
  const path = `${AGENT_PATH}/agents/${encodeURIComponent(requireArgument(name, "an agent name"))}`;
534
550
  const body = {
535
551
  ...instructions !== void 0 ? { instructions } : {},
536
552
  ...skills !== void 0 ? { skills } : {},
537
- ...model !== void 0 ? { model } : {}
553
+ ...model !== void 0 ? { model } : {},
554
+ ...displayName !== void 0 ? { displayName } : {}
538
555
  };
539
556
  if (options.dryRun) {
540
557
  printDryRun("PATCH", path, body, options);
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2;
2
2
 
3
3
 
4
- var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
4
+ var _chunkFXN5WSTYjs = require('./chunk-FXN5WSTY.js');
5
5
 
6
6
 
7
- var _chunk36254433js = require('./chunk-36254433.js');
8
- require('./chunk-MDJ4LPQ5.js');
7
+ var _chunkJHQ7FORYjs = require('./chunk-JHQ7FORY.js');
8
+ require('./chunk-RSZSKTRC.js');
9
9
  require('./chunk-6VLFQZK6.js');
10
10
  require('./chunk-XNYIZMNQ.js');
11
11
 
12
12
 
13
13
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
14
14
  require('./chunk-CFJFUVX2.js');
15
- require('./chunk-E4M4QZBP.js');
15
+ require('./chunk-OBZB4J7B.js');
16
16
  require('./chunk-OG64RBAC.js');
17
17
  require('./chunk-COGTRVWW.js');
18
18
 
@@ -93,6 +93,11 @@ function parseModel(value) {
93
93
  const model = value.trim();
94
94
  return model === "" || model.toLowerCase() === "default" ? null : model;
95
95
  }
96
+ function parseDisplayName(value) {
97
+ if (value === void 0) return void 0;
98
+ const displayName = value.trim();
99
+ return displayName === "" ? null : displayName;
100
+ }
96
101
  function describeOutcomeChange(change) {
97
102
  const { conversation } = change;
98
103
  const where = `#${conversation.conversationName}`;
@@ -111,7 +116,8 @@ function describeOutcomeChange(change) {
111
116
  function describeAgentLine(agent) {
112
117
  const channels = agent.conversations.length ? agent.conversations.map(describeConversation).join(", ") : "no channels";
113
118
  const skills = agent.skillNames.length ? `skills: ${agent.skillNames.join(", ")}` : "no skills";
114
- return `${agent.name} \u2014 ${firstLine(agent.instructions, 60)} [${skills}; ${channels}]`;
119
+ const slackName = agent.displayName ? ` (\u201C${agent.displayName}\u201D in Slack)` : "";
120
+ return `${agent.name}${slackName} \u2014 ${firstLine(agent.instructions, 60)} [${skills}; ${channels}]`;
115
121
  }
116
122
  function describeAgent(agent) {
117
123
  return [
@@ -120,6 +126,7 @@ function describeAgent(agent) {
120
126
  ...agent.instructions.split("\n").map((line) => ` ${line}`),
121
127
  `Skills: ${agent.skillNames.length ? agent.skillNames.join(", ") : "none"}`,
122
128
  `Model: ${_nullishCoalesce(agent.model, () => ( "the default (see deepline agents models)"))}`,
129
+ ...agent.displayName !== void 0 ? [`Name in Slack: ${_nullishCoalesce(agent.displayName, () => ( "the Slack app\u2019s own name"))}`] : [],
123
130
  agent.conversations.length ? `Channels: ${agent.conversations.map(describeConversation).join(", ")}` : `Channels: none. Bind one with: deepline agents channels add ${agent.name} <channel-id>`
124
131
  ];
125
132
  }
@@ -150,7 +157,7 @@ function describeOverview(overview) {
150
157
  ];
151
158
  }
152
159
  function print(payload, title, lines, options) {
153
- _chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
160
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
154
161
  { ...payload, render: { sections: [{ title, lines }] } },
155
162
  { json: options.json }
156
163
  );
@@ -244,7 +251,7 @@ async function readModelKey() {
244
251
  return Buffer.concat(chunks).toString("utf8").trim();
245
252
  }
246
253
  async function sendTestMessage(input2) {
247
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
254
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
248
255
  return http.post(
249
256
  `${AGENT_PATH}/test`,
250
257
  {
@@ -335,7 +342,7 @@ async function handleChat(channelId, options) {
335
342
  threadId = reply.threadId;
336
343
  const text = describeReply(channelId, reply, true).map((line2) => `agent> ${line2}
337
344
  `).join("");
338
- _chunkJSIOLCTKjs.printCommandEnvelope.call(void 0, reply, { json: false, text });
345
+ _chunkFXN5WSTYjs.printCommandEnvelope.call(void 0, reply, { json: false, text });
339
346
  }
340
347
  } finally {
341
348
  rl.close();
@@ -345,7 +352,7 @@ function registerWorkspaceCommands(agents, readKey) {
345
352
  agents.command("list").description(
346
353
  "Show whether agents are on, their model billing, every agent with its channels, and the skill library."
347
354
  ).option("--json", "Emit JSON output").action(async (options) => {
348
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
355
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
349
356
  const overview = await http.get(AGENT_PATH);
350
357
  print(overview, "deepline agents", describeOverview(overview), options);
351
358
  });
@@ -356,7 +363,7 @@ function registerWorkspaceCommands(agents, readKey) {
356
363
  printDryRun("POST", `${AGENT_PATH}/enable`, {}, options);
357
364
  return;
358
365
  }
359
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
360
367
  const result = await http.post(
361
368
  `${AGENT_PATH}/enable`,
362
369
  {}
@@ -378,7 +385,7 @@ function registerWorkspaceCommands(agents, readKey) {
378
385
  printDryRun("POST", `${AGENT_PATH}/disable`, {}, options);
379
386
  return;
380
387
  }
381
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
388
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
382
389
  const result = await http.post(
383
390
  `${AGENT_PATH}/disable`,
384
391
  {}
@@ -410,7 +417,7 @@ function registerWorkspaceCommands(agents, readKey) {
410
417
  }
411
418
  const apiKey = await readKey();
412
419
  if (!apiKey) throw new AgentUsageError("No key was given.");
413
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
420
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
414
421
  const overview = await http.put(`${AGENT_PATH}/billing`, {
415
422
  mode: "own_key",
416
423
  provider: _nullishCoalesce(options.provider, () => ( keyProvider(apiKey))),
@@ -422,7 +429,7 @@ function registerWorkspaceCommands(agents, readKey) {
422
429
  agents.command("models").description(
423
430
  "List the models an agent or one of its channels can run on, and which your workspace\u2019s key can run."
424
431
  ).option("--json", "Emit JSON output").action(async (options) => {
425
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
432
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
426
433
  const result = await http.get(
427
434
  `${AGENT_PATH}/models`
428
435
  );
@@ -446,7 +453,7 @@ function registerWorkspaceCommands(agents, readKey) {
446
453
  agents.command("outcomes").description(
447
454
  "List the outcomes Bot by Deepline owns by default (those with no home channel), with what woke it last on each."
448
455
  ).option("--json", "Emit JSON output").action(async (options) => {
449
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
456
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
450
457
  const result = await http.get(
451
458
  `${AGENT_PATH}/outcomes`
452
459
  );
@@ -466,7 +473,7 @@ function registerWorkspaceCommands(agents, readKey) {
466
473
  }
467
474
  function registerAgentCommands(agents) {
468
475
  agents.command("get").description("Show one agent: its instructions, skills and channels.").argument("<name>", "Agent name").option("--json", "Emit JSON output").action(async (name, options) => {
469
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
476
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
470
477
  const result = await http.get(
471
478
  `${AGENT_PATH}/agents/${encodeURIComponent(requireArgument(name, "an agent name"))}`
472
479
  );
@@ -477,10 +484,14 @@ function registerAgentCommands(agents) {
477
484
  ).argument("<name>", "Agent name: lower-case letters, digits and dashes").option("--instructions <text>", "What the agent does and never does").option("--instructions-file <path>", "Read the instructions from a file").option("--skills <names>", "Comma-separated library skill names").option(
478
485
  "--model <model>",
479
486
  "The model it runs on, from deepline agents models (for example sonnet)"
487
+ ).option(
488
+ "--display-name <name>",
489
+ "The name it posts under in Slack, at most 80 characters (default: the Slack app\u2019s own name)"
480
490
  ).option("--dry-run", "Print the request without sending it").option("--json", "Emit JSON output").action(
481
491
  async (name, options) => {
482
492
  const instructions = readInstructions(options);
483
493
  const model = parseModel(options.model);
494
+ const displayName = parseDisplayName(options.displayName);
484
495
  if (instructions === void 0) {
485
496
  throw new AgentUsageError(
486
497
  'Pass --instructions "<what the agent does>" or --instructions-file <path>.'
@@ -490,13 +501,14 @@ function registerAgentCommands(agents) {
490
501
  name: requireArgument(name, "an agent name"),
491
502
  instructions,
492
503
  skills: _nullishCoalesce(parseSkills(options.skills), () => ( [])),
493
- ...typeof model === "string" ? { model } : {}
504
+ ...typeof model === "string" ? { model } : {},
505
+ ...typeof displayName === "string" ? { displayName } : {}
494
506
  };
495
507
  if (options.dryRun) {
496
508
  printDryRun("POST", `${AGENT_PATH}/agents`, body, options);
497
509
  return;
498
510
  }
499
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
511
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
500
512
  const result = await http.post(
501
513
  `${AGENT_PATH}/agents`,
502
514
  body
@@ -513,34 +525,39 @@ function registerAgentCommands(agents) {
513
525
  }
514
526
  );
515
527
  agents.command("update").description(
516
- "Replace an agent\u2019s instructions, skills or model (its creator or an admin)."
528
+ "Replace an agent\u2019s instructions, skills, model or name in Slack (its creator or an admin)."
517
529
  ).argument("<name>", "Agent name").option("--instructions <text>", "New instructions").option("--instructions-file <path>", "Read new instructions from a file").option(
518
530
  "--skills <names>",
519
531
  'Comma-separated library skill names; replaces the list ("" clears it)'
520
532
  ).option(
521
533
  "--model <model>",
522
534
  'The model it runs on, from deepline agents models ("default" returns it to the default)'
535
+ ).option(
536
+ "--display-name <name>",
537
+ 'The name it posts under in Slack, at most 80 characters ("" returns it to the Slack app\u2019s own name)'
523
538
  ).option("--dry-run", "Print the request without sending it").option("--json", "Emit JSON output").action(
524
539
  async (name, options) => {
525
540
  const instructions = readInstructions(options);
526
541
  const skills = parseSkills(options.skills);
527
542
  const model = parseModel(options.model);
528
- if (instructions === void 0 && skills === void 0 && model === void 0) {
543
+ const displayName = parseDisplayName(options.displayName);
544
+ if (instructions === void 0 && skills === void 0 && model === void 0 && displayName === void 0) {
529
545
  throw new AgentUsageError(
530
- "Pass --instructions, --instructions-file, --skills or --model."
546
+ "Pass --instructions, --instructions-file, --skills, --model or --display-name."
531
547
  );
532
548
  }
533
549
  const path = `${AGENT_PATH}/agents/${encodeURIComponent(requireArgument(name, "an agent name"))}`;
534
550
  const body = {
535
551
  ...instructions !== void 0 ? { instructions } : {},
536
552
  ...skills !== void 0 ? { skills } : {},
537
- ...model !== void 0 ? { model } : {}
553
+ ...model !== void 0 ? { model } : {},
554
+ ...displayName !== void 0 ? { displayName } : {}
538
555
  };
539
556
  if (options.dryRun) {
540
557
  printDryRun("PATCH", path, body, options);
541
558
  return;
542
559
  }
543
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
560
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
544
561
  const result = await http.patch(path, body);
545
562
  print(result, "agent updated", describeAgent(result.agent), options);
546
563
  }
@@ -553,7 +570,7 @@ function registerAgentCommands(agents) {
553
570
  printDryRun("DELETE", path, null, options);
554
571
  return;
555
572
  }
556
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
573
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
557
574
  const result = await http.delete(path);
558
575
  print(
559
576
  result,
@@ -596,7 +613,7 @@ function registerChannelCommands(agents) {
596
613
  printDryRun("POST", `${AGENT_PATH}/channels`, body, options);
597
614
  return;
598
615
  }
599
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
616
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
600
617
  const result = await http.post(`${AGENT_PATH}/channels`, body);
601
618
  print(
602
619
  result,
@@ -648,7 +665,7 @@ function registerChannelCommands(agents) {
648
665
  printDryRun("PATCH", path, body, options);
649
666
  return;
650
667
  }
651
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
668
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
652
669
  const result = await http.patch(path, body);
653
670
  print(
654
671
  result,
@@ -676,7 +693,7 @@ function registerChannelCommands(agents) {
676
693
  printDryRun("DELETE", path, null, options);
677
694
  return;
678
695
  }
679
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
696
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
680
697
  const result = await http.delete(path);
681
698
  print(
682
699
  result,
@@ -712,7 +729,7 @@ function registerSlackCommands(agents) {
712
729
  slack.command("install").description(
713
730
  "Print a link that adds the agent to a Slack workspace (owners and admins). Open it, pick the Slack workspace and approve."
714
731
  ).option("--json", "Emit JSON output").action(async (options) => {
715
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
732
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
716
733
  const result = await http.post(
717
734
  `${AGENT_PATH}/slack/install`,
718
735
  {}
@@ -731,7 +748,7 @@ function registerSlackCommands(agents) {
731
748
  slack.command("link").description(
732
749
  "Say which Slack user you are, with the code from the link the agent showed you in Slack. Your clicks there (answering an ask, connecting a channel) are then made as you."
733
750
  ).argument("<code>", "The code from the link, or the whole link").option("--json", "Emit JSON output").action(async (code, options) => {
734
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
751
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
735
752
  const result = await http.post(`${AGENT_PATH}/slack/link`, { code: slackLinkCode(code) });
736
753
  print(
737
754
  result,
@@ -745,7 +762,7 @@ function registerSlackCommands(agents) {
745
762
  slack.command("unlink").description(
746
763
  "Forget which Slack user you are in this workspace. Your clicks in Slack decide nothing until you link again."
747
764
  ).option("--json", "Emit JSON output").action(async (options) => {
748
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
765
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
749
766
  const result = await http.delete(
750
767
  `${AGENT_PATH}/slack/link`
751
768
  );
@@ -761,7 +778,7 @@ function registerSlackCommands(agents) {
761
778
  slack.command("status").description(
762
779
  "List the Slack workspaces this workspace installed the agent in."
763
780
  ).option("--json", "Emit JSON output").action(async (options) => {
764
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
781
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
765
782
  const result = await http.get(
766
783
  `${AGENT_PATH}/slack/installations`
767
784
  );
@@ -780,7 +797,7 @@ function registerSkillCommands(agents) {
780
797
  "The workspace\u2019s skill library: markdown an agent loads when its description matches the task."
781
798
  );
782
799
  skills.command("get").description("Show one library skill with its markdown.").argument("<name>", "Skill name").option("--json", "Emit JSON output").action(async (name, options) => {
783
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
800
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
784
801
  const result = await http.get(
785
802
  `${AGENT_PATH}/skills/${encodeURIComponent(requireArgument(name, "a skill name"))}`
786
803
  );
@@ -818,7 +835,7 @@ function registerSkillCommands(agents) {
818
835
  printDryRun("PUT", path, body, options);
819
836
  return;
820
837
  }
821
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
838
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
822
839
  const result = await http.put(path, body);
823
840
  print(
824
841
  result,
@@ -841,7 +858,7 @@ function registerSkillCommands(agents) {
841
858
  printDryRun("DELETE", path, null, options);
842
859
  return;
843
860
  }
844
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
861
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
845
862
  const result = await http.delete(path);
846
863
  print(
847
864
  result,
@@ -895,7 +912,7 @@ function registerFeedbackCommand(agents) {
895
912
  params.set("cursor", requireArgument(options.cursor, "--cursor"));
896
913
  }
897
914
  const query = params.toString();
898
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
915
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
899
916
  const page = await http.get(
900
917
  `${AGENT_PATH}/feedback${query ? `?${query}` : ""}`
901
918
  ).catch((error) => {
@@ -958,7 +975,7 @@ function registerRepliesCommand(agents) {
958
975
  params.set("cursor", requireArgument(options.cursor, "--cursor"));
959
976
  }
960
977
  const query = params.toString();
961
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
978
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
962
979
  const page = await http.get(`${AGENT_PATH}/replies${query ? `?${query}` : ""}`).catch((error) => {
963
980
  if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === REPLIES_INVALID_CURSOR) {
964
981
  throw new AgentUsageError(`--cursor: ${error.message}`);
@@ -984,13 +1001,13 @@ function registerActivityCommand(agents) {
984
1001
  agents.command("activity").description(
985
1002
  "Sum each agent's replies over the last 7 days: how many, how they ended, median time, tokens and the last reply."
986
1003
  ).option("--json", "Emit JSON output").action(async (options) => {
987
- const { http } = _chunkJSIOLCTKjs.getAuthedHttpClient.call(void 0, );
1004
+ const { http } = _chunkFXN5WSTYjs.getAuthedHttpClient.call(void 0, );
988
1005
  const activity = await http.get(`${AGENT_PATH}/activity`);
989
1006
  print(activity, "agent activity", describeActivity(activity), options);
990
1007
  });
991
1008
  }
992
1009
  function registerAgentsCommands(program, readKey = readModelKey) {
993
- const agents = program.command("agents", { hidden: !_chunk36254433js.cliFeatureEnabled.call(void 0, AGENT_FEATURE) }).description(
1010
+ const agents = program.command("agents", { hidden: !_chunkJHQ7FORYjs.cliFeatureEnabled.call(void 0, AGENT_FEATURE) }).description(
994
1011
  "Deepline agents in Slack: create agents with instructions and skills, bind channels to them, and talk to them."
995
1012
  );
996
1013
  registerWorkspaceCommands(agents, readKey);
@@ -0,0 +1,44 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ var _chunkFRYLXDNPjs = require('./chunk-FRYLXDNP.js');
18
+ require('./chunk-FXN5WSTY.js');
19
+ require('./chunk-JHQ7FORY.js');
20
+ require('./chunk-RSZSKTRC.js');
21
+ require('./chunk-6VLFQZK6.js');
22
+ require('./chunk-XNYIZMNQ.js');
23
+ require('./chunk-LFQJW4S2.js');
24
+ require('./chunk-CFJFUVX2.js');
25
+ require('./chunk-OBZB4J7B.js');
26
+ require('./chunk-OG64RBAC.js');
27
+ require('./chunk-COGTRVWW.js');
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkFRYLXDNPjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkFRYLXDNPjs.authStatusLine; exports.clearPendingClaim = _chunkFRYLXDNPjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkFRYLXDNPjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkFRYLXDNPjs.handleRegister; exports.handleStatus = _chunkFRYLXDNPjs.handleStatus; exports.handleWait = _chunkFRYLXDNPjs.handleWait; exports.httpJson = _chunkFRYLXDNPjs.httpJson; exports.readPendingAuthClaim = _chunkFRYLXDNPjs.readPendingAuthClaim; exports.readStatusBanner = _chunkFRYLXDNPjs.readStatusBanner; exports.registerAuthCommands = _chunkFRYLXDNPjs.registerAuthCommands; exports.reportApprovalLinkShown = _chunkFRYLXDNPjs.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkFRYLXDNPjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkFRYLXDNPjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkFRYLXDNPjs.statusBannerLine;
@@ -14,15 +14,15 @@ import {
14
14
  reportSetupCompleted,
15
15
  resolvePendingAuthClaimForResume,
16
16
  statusBannerLine
17
- } from "./chunk-HE53AI2E.mjs";
18
- import "./chunk-JPFAD6G6.mjs";
19
- import "./chunk-ZRC52APB.mjs";
20
- import "./chunk-XJNJ3BWU.mjs";
17
+ } from "./chunk-NDMKFA6W.mjs";
18
+ import "./chunk-O35BHZLQ.mjs";
19
+ import "./chunk-CWHXE6HJ.mjs";
20
+ import "./chunk-FHYNK7GL.mjs";
21
21
  import "./chunk-ASB47RXJ.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
23
  import "./chunk-Z3A2S3QM.mjs";
24
24
  import "./chunk-2MGZAI54.mjs";
25
- import "./chunk-CUIFDMNP.mjs";
25
+ import "./chunk-ID5WQZ2H.mjs";
26
26
  import "./chunk-WZYKRD7T.mjs";
27
27
  import "./chunk-KRD6H754.mjs";
28
28
  export {