@integrity-labs/agt-cli 0.28.60 → 0.28.62

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
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-DC2QI6OD.js";
40
+ } from "../chunk-QQGXIZVB.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -64,7 +64,7 @@ import {
64
64
  renderTemplate,
65
65
  resolveChannels,
66
66
  serializeManifestForSlackCli
67
- } from "../chunk-BCWB6A4G.js";
67
+ } from "../chunk-7F2K3RRD.js";
68
68
 
69
69
  // src/bin/agt.ts
70
70
  import { join as join22 } from "path";
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
4777
4777
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4778
4778
  import chalk18 from "chalk";
4779
4779
  import ora16 from "ora";
4780
- var cliVersion = true ? "0.28.60" : "dev";
4780
+ var cliVersion = true ? "0.28.62" : "dev";
4781
4781
  async function fetchLatestVersion() {
4782
4782
  const host2 = getHost();
4783
4783
  if (!host2) return null;
@@ -5791,7 +5791,7 @@ function handleError(err) {
5791
5791
  }
5792
5792
 
5793
5793
  // src/bin/agt.ts
5794
- var cliVersion2 = true ? "0.28.60" : "dev";
5794
+ var cliVersion2 = true ? "0.28.62" : "dev";
5795
5795
  var program = new Command();
5796
5796
  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");
5797
5797
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -552,13 +552,24 @@ function generateSlackAppManifest(input) {
552
552
  description: "Restart this agent (allowlisted users only).",
553
553
  should_escape: false
554
554
  },
555
- // ENG-6490: re-run self-onboarding. Routed by the slash_commands
556
- // envelope handler in packages/mcp/src/slack-channel.ts, which
557
- // forwards to POST /host/onboarding/reset.
555
+ // ENG-6511: restart self-onboarding from scratch. Routed by the
556
+ // slash_commands envelope handler in
557
+ // packages/mcp/src/slack-channel.ts, which forwards to
558
+ // POST /host/onboarding/reset (RESET — clears progress).
559
+ {
560
+ command: agentSlashCommand("/onboard", agent_code_name),
561
+ url: slash_command_url,
562
+ description: "Restart this agent\u2019s onboarding from scratch (allowlisted users only).",
563
+ should_escape: false
564
+ },
565
+ // ENG-6490 / ENG-6511: resume self-onboarding from where it left
566
+ // off. Routed by the slash_commands envelope handler in
567
+ // packages/mcp/src/slack-channel.ts, which forwards to
568
+ // POST /host/onboarding/resume (RESUME — preserves progress).
558
569
  {
559
570
  command: agentSlashCommand("/resume-onboarding", agent_code_name),
560
571
  url: slash_command_url,
561
- description: "Re-run this agent\u2019s onboarding interview (allowlisted users only).",
572
+ description: "Resume this agent\u2019s onboarding where it left off (allowlisted users only).",
562
573
  should_escape: false
563
574
  },
564
575
  // ENG-6030: live pane tail. Routed by the slash_commands
@@ -1128,6 +1139,21 @@ var FLAG_REGISTRY = [
1128
1139
  // flag, not an operator gate). Ships dark (default false).
1129
1140
  public: true,
1130
1141
  defaultValue: false
1142
+ },
1143
+ {
1144
+ key: "platform-maintenance-mode",
1145
+ description: 'Platform-wide maintenance mode (ENG-6506): when on, every agent across every team/org auto-replies to admitted human inbound with a "we are offline for maintenance" notice instead of dispatching to the agent \u2014 for whole-platform downtime such as DB upgrades. Read host-side per inbound from the flags cache (no MCP restart). Boolean gate; ships dark \u2014 when off, channels behave exactly as today. (Proactive "back online" follow-up is the ENG-6508 fast-follow, not this flag.)',
1146
+ flagType: "boolean",
1147
+ // Declared safe value is `false` (normal operation). Fail-safe direction: a
1148
+ // flag-DB read error or absent flag map must never silence the fleet on its
1149
+ // own — agents stay responsive unless an operator deliberately flips this on
1150
+ // from the admin Feature Flags page. No envVar: net-new control, no
1151
+ // pre-flags env gate to migrate.
1152
+ defaultValue: false,
1153
+ // Flipping this takes the ENTIRE fleet offline to end users; a mis-flip is a
1154
+ // platform-wide availability incident, so mutations require explicit
1155
+ // confirmation (the admin flip-reach modal).
1156
+ sensitive: true
1131
1157
  }
1132
1158
  ];
1133
1159
  var REGISTRY_BY_KEY = new Map(FLAG_REGISTRY.map((definition) => [definition.key, definition]));
@@ -4181,10 +4207,12 @@ async function probeHttpProvider(definitionId, credentials, fetchImpl = fetch) {
4181
4207
 
4182
4208
  // ../../packages/core/dist/onboarding/state-machine.js
4183
4209
  var TRANSITIONS = {
4210
+ // RESUME is omitted from `pending` on purpose: there is nothing to resume
4211
+ // before onboarding has begun. The host endpoint maps that case to START.
4184
4212
  pending: { START: "interviewing" },
4185
- interviewing: { INTERVIEW_DONE: "configuring", RESET: "interviewing" },
4186
- configuring: { CONFIGURE_DONE: "ready", RESET: "interviewing" },
4187
- ready: { RESET: "interviewing" }
4213
+ interviewing: { INTERVIEW_DONE: "configuring", RESET: "interviewing", RESUME: "interviewing" },
4214
+ configuring: { CONFIGURE_DONE: "ready", RESET: "interviewing", RESUME: "configuring" },
4215
+ ready: { RESET: "interviewing", RESUME: "ready" }
4188
4216
  };
4189
4217
  var VALID_STEPS = new Set(Object.keys(TRANSITIONS));
4190
4218
 
@@ -5516,4 +5544,4 @@ export {
5516
5544
  parseEnvIntegrations,
5517
5545
  probeMcpEnvSubstitution
5518
5546
  };
5519
- //# sourceMappingURL=chunk-BCWB6A4G.js.map
5547
+ //# sourceMappingURL=chunk-7F2K3RRD.js.map