@integrity-labs/agt-cli 0.28.1048 → 0.28.1050

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.
@@ -189,6 +189,27 @@ ${AGENT_RULES_SECTION_END}
189
189
  `;
190
190
  }
191
191
 
192
+ // ../../packages/core/dist/provisioning/frameworks/claudecode/agent-console-url.js
193
+ var DEFAULT_AGENT_CONSOLE_URL = "https://app.ninjafy.com";
194
+ function normalizeConsoleOrigin(value) {
195
+ if (typeof value !== "string")
196
+ return null;
197
+ const trimmed = value.trim();
198
+ if (!trimmed)
199
+ return null;
200
+ try {
201
+ const url = new URL(trimmed);
202
+ if (url.protocol !== "https:" && url.protocol !== "http:")
203
+ return null;
204
+ return url.origin;
205
+ } catch {
206
+ return null;
207
+ }
208
+ }
209
+ function resolveAgentConsoleUrl(input, env2 = process.env) {
210
+ return normalizeConsoleOrigin(input.consoleUrl) ?? normalizeConsoleOrigin(env2["AGT_APP_URL"]) ?? normalizeConsoleOrigin(env2["NEXT_PUBLIC_APP_URL"]) ?? normalizeConsoleOrigin(env2["AGT_CONSOLE_URL"]) ?? DEFAULT_AGENT_CONSOLE_URL;
211
+ }
212
+
192
213
  // ../../packages/core/dist/guardrails/calendar-policy.js
193
214
  function parseCalendarGuardStage(raw) {
194
215
  if (raw === "warn" || raw === "enforce")
@@ -1279,7 +1300,7 @@ function buildGuardrailsSection(guardrails) {
1279
1300
  }
1280
1301
  function generateClaudeMd(input) {
1281
1302
  const { frontmatter, role, description, resolvedChannels, team, organization, integrations, timezone, reportsTo, personalitySeed, teamMembers, people, peerGates, guardrails, activeTasks } = input;
1282
- const consoleUrl = input.consoleUrl ?? "https://app.augmented.team";
1303
+ const consoleUrl = input.consoleUrl ?? DEFAULT_AGENT_CONSOLE_URL;
1283
1304
  const channelList = resolvedChannels?.length ? resolvedChannels.join(", ") : "none";
1284
1305
  const roleDisplay = role ?? "Agent";
1285
1306
  const desc = description?.trim();
@@ -1625,10 +1646,10 @@ cd ~/.augmented/{agent_id}/scratch
1625
1646
  curl -o ../scratch/report.pdf https://...
1626
1647
  \`\`\`
1627
1648
 
1628
- **Clean up by deleting the files you created, never the directory you are
1629
- working in.** \`rm -rf ../scratch/some-file\` is fine. \`rm -rf .\` trips Claude
1630
- Code's dangerous-rm guard and freezes you on a prompt no automation can clear -
1631
- which has already stalled an agent mid-task with a customer waiting.
1649
+ **Every \`rm\` names a literal path under \`../scratch/\`: no glob, no \`.\`, no
1650
+ variable, nothing at \`/\`.** The dangerous-rm guard fires on those even with
1651
+ bypass on and freezes you on a prompt nothing can answer (five agents, up to
1652
+ 15h). If a cleanup can't be written that way, skip it.
1632
1653
 
1633
1654
  Scratch contents older than ${SCRATCH_RETENTION_DAYS} days are swept
1634
1655
  automatically. If something needs to outlive that, it was never scratch: put it
@@ -3446,7 +3467,13 @@ var CONTROL_PLANE_ONLY_CONFIG_KEYS = /* @__PURE__ */ new Set([
3446
3467
  "managed_state_token",
3447
3468
  "managed_state_expires",
3448
3469
  "managed_state_tokens",
3449
- "pending_approval_at"
3470
+ "pending_approval_at",
3471
+ // ENG-11172 (Obi Wan on #6607): the connect reconciler's marker that it
3472
+ // already bound this account, read by the trailing /managed-callback. Pure
3473
+ // control-plane bookkeeping: published to .env.integrations it would appear
3474
+ // on a reconcile bind and vanish on the next callback - membership churn
3475
+ // that counts toward the restart breaker (ENG-6918 / ENG-8679).
3476
+ "reconciled_connected_account_id"
3450
3477
  ]);
3451
3478
  var CONTROL_PLANE_CONFIG_KEY_SUFFIXES = ["_server_id"];
3452
3479
  function isControlPlaneOnlyConfigKey(key) {
@@ -15669,6 +15696,7 @@ function readDailySessionPin(codeName) {
15669
15696
  }
15670
15697
 
15671
15698
  export {
15699
+ resolveAgentConsoleUrl,
15672
15700
  normaliseSlackPeerAgentMode,
15673
15701
  normaliseSlackPeerGroupIds,
15674
15702
  buildSlackThirdPartyBotsEnvValue,
@@ -15863,4 +15891,4 @@ export {
15863
15891
  peekCurrentSession,
15864
15892
  readDailySessionPin
15865
15893
  };
15866
- //# sourceMappingURL=chunk-APAEM42J.js.map
15894
+ //# sourceMappingURL=chunk-MQ4COFCI.js.map