@integrity-labs/agt-cli 0.28.87 → 0.28.89

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.
@@ -18088,7 +18088,7 @@ async function postEphemeralViaResponseUrl(responseUrl, text, logTag) {
18088
18088
  }
18089
18089
  }
18090
18090
  async function forwardOnboardingSlashCommand(opts) {
18091
- const { verb, path, userId, responseUrl, codeName } = opts;
18091
+ const { verb, path, userId, channelId, responseUrl, codeName } = opts;
18092
18092
  if (!AGT_HOST || !AGT_API_KEY || !AGT_AGENT_ID) {
18093
18093
  await postEphemeralViaResponseUrl(
18094
18094
  responseUrl,
@@ -18106,7 +18106,7 @@ async function forwardOnboardingSlashCommand(opts) {
18106
18106
  };
18107
18107
  const res = await apiCall2(cfg, "POST", `/host${path}`, {
18108
18108
  agent_id: AGT_AGENT_ID,
18109
- initiator: { channel: "slack", user_id: userId }
18109
+ initiator: { channel: "slack", user_id: userId, channel_id: channelId }
18110
18110
  });
18111
18111
  const data = await res.json();
18112
18112
  const text = data.ok ? `\u{1F504} ${data.message ?? "Onboarding updated."}` : data.message ?? `:x: \`${verb}\` failed${data.error ? `: ${data.error}` : "."}`;
@@ -18399,6 +18399,7 @@ async function handleSlashCommandEnvelope(payload) {
18399
18399
  verb: "/onboard",
18400
18400
  path: "/onboarding/reset",
18401
18401
  userId: payload.user_id,
18402
+ channelId: payload.channel_id,
18402
18403
  responseUrl,
18403
18404
  codeName
18404
18405
  });
@@ -18409,6 +18410,7 @@ async function handleSlashCommandEnvelope(payload) {
18409
18410
  verb: "/resume-onboarding",
18410
18411
  path: "/onboarding/resume",
18411
18412
  userId: payload.user_id,
18413
+ channelId: payload.channel_id,
18412
18414
  responseUrl,
18413
18415
  codeName
18414
18416
  });
@@ -17255,7 +17255,9 @@ async function handleOnboardingCommand(opts) {
17255
17255
  };
17256
17256
  const res = await apiCall2(cfg, "POST", `/host/onboarding/${opts.mode}`, {
17257
17257
  agent_id: AGT_AGENT_ID,
17258
- initiator: { channel: "telegram", user_id: opts.senderId }
17258
+ // ENG-6583: channel_id = the chat the command came from, so onboarding
17259
+ // anchors here and the agent asks its manager back in this chat.
17260
+ initiator: { channel: "telegram", user_id: opts.senderId, channel_id: opts.chatId }
17259
17261
  });
17260
17262
  const data = await res.json();
17261
17263
  process.stderr.write(
@@ -25,8 +25,8 @@ import {
25
25
  takeZombieDetection,
26
26
  writeDirectChatSessionState,
27
27
  writePersistentClaudeWrapper
28
- } from "./chunk-OZWBVM7M.js";
29
- import "./chunk-E5TGFEDQ.js";
28
+ } from "./chunk-II75Z6KB.js";
29
+ import "./chunk-UB2LZXAL.js";
30
30
  import "./chunk-XWVM4KPK.js";
31
31
  export {
32
32
  SEND_KEYS_ENTER_DELAY_MS,
@@ -56,4 +56,4 @@ export {
56
56
  writeDirectChatSessionState,
57
57
  writePersistentClaudeWrapper
58
58
  };
59
- //# sourceMappingURL=persistent-session-ZAKXWRX7.js.map
59
+ //# sourceMappingURL=persistent-session-IODNIQ2L.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-OZWBVM7M.js";
4
- import "./chunk-E5TGFEDQ.js";
3
+ } from "./chunk-II75Z6KB.js";
4
+ import "./chunk-UB2LZXAL.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -250,4 +250,4 @@ export {
250
250
  parkPendingInbound,
251
251
  readAndResetChannelDeflections
252
252
  };
253
- //# sourceMappingURL=responsiveness-probe-NKH4VYGR.js.map
253
+ //# sourceMappingURL=responsiveness-probe-SBJXVSQH.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.87",
3
+ "version": "0.28.89",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {