@integrity-labs/agt-cli 0.27.141 → 0.27.142

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.
package/dist/bin/agt.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-BEB6BF3E.js";
31
+ } from "../chunk-OI33LV54.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -4934,7 +4934,7 @@ import { execFileSync, execSync } from "child_process";
4934
4934
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4935
4935
  import chalk18 from "chalk";
4936
4936
  import ora16 from "ora";
4937
- var cliVersion = true ? "0.27.141" : "dev";
4937
+ var cliVersion = true ? "0.27.142" : "dev";
4938
4938
  async function fetchLatestVersion() {
4939
4939
  const host2 = getHost();
4940
4940
  if (!host2) return null;
@@ -5857,7 +5857,7 @@ function handleError(err) {
5857
5857
  }
5858
5858
 
5859
5859
  // src/bin/agt.ts
5860
- var cliVersion2 = true ? "0.27.141" : "dev";
5860
+ var cliVersion2 = true ? "0.27.142" : "dev";
5861
5861
  var program = new Command();
5862
5862
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
5863
5863
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -7862,4 +7862,4 @@ export {
7862
7862
  managerInstallSystemUnitCommand,
7863
7863
  managerUninstallSystemUnitCommand
7864
7864
  };
7865
- //# sourceMappingURL=chunk-BEB6BF3E.js.map
7865
+ //# sourceMappingURL=chunk-OI33LV54.js.map
@@ -18,7 +18,7 @@ import {
18
18
  provisionStopHook,
19
19
  requireHost,
20
20
  safeWriteJsonAtomic
21
- } from "../chunk-BEB6BF3E.js";
21
+ } from "../chunk-OI33LV54.js";
22
22
  import {
23
23
  getProjectDir as getProjectDir2,
24
24
  getReadyTasks,
@@ -4758,7 +4758,7 @@ var cachedMaintenanceWindow = null;
4758
4758
  var lastVersionCheckAt = 0;
4759
4759
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
4760
4760
  var lastResponsivenessProbeAt = 0;
4761
- var agtCliVersion = true ? "0.27.141" : "dev";
4761
+ var agtCliVersion = true ? "0.27.142" : "dev";
4762
4762
  function resolveBrewPath(execFileSync4) {
4763
4763
  try {
4764
4764
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -14211,6 +14211,10 @@ function decideSlackEngagement(input) {
14211
14211
  function decideSlackAckReaction(input) {
14212
14212
  return Boolean(input.channel && input.ts);
14213
14213
  }
14214
+ function isRestartSenderAllowed(allowedUsers, userId) {
14215
+ if (allowedUsers.size === 0) return true;
14216
+ return userId != null && allowedUsers.has(userId);
14217
+ }
14214
14218
  function extractAugmentedSlackLabel(evt) {
14215
14219
  if (evt.metadata?.event_type !== "augmented_agent_message") return null;
14216
14220
  return {
@@ -19081,7 +19085,7 @@ async function connectSocketMode() {
19081
19085
  return;
19082
19086
  }
19083
19087
  if (isRestartCommand) {
19084
- const senderAllowed = ALLOWED_USERS.size === 0 || evt.user != null && ALLOWED_USERS.has(evt.user);
19088
+ const senderAllowed = isRestartSenderAllowed(ALLOWED_USERS, evt.user);
19085
19089
  if (!senderAllowed) {
19086
19090
  await denyUnauthorizedRestart({
19087
19091
  channel: evt.channel ?? "",
@@ -19102,7 +19106,6 @@ async function connectSocketMode() {
19102
19106
  });
19103
19107
  return;
19104
19108
  }
19105
- if (ALLOWED_USERS.size > 0 && evt.user && !ALLOWED_USERS.has(evt.user)) return;
19106
19109
  if (evt.bot_id) {
19107
19110
  const peerMsg = {
19108
19111
  text: evt.text,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.27.141",
3
+ "version": "0.27.142",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {