@integrity-labs/agt-cli 0.28.75 → 0.28.76

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.
@@ -100,7 +100,7 @@ async function spawnPairSession(session) {
100
100
  return { ok: true };
101
101
  } catch {
102
102
  }
103
- const { resolveClaudeBinary } = await import("./persistent-session-ESLAJLKA.js");
103
+ const { resolveClaudeBinary } = await import("./persistent-session-ZUGPA5HU.js");
104
104
  const claudeBin = resolveClaudeBinary();
105
105
  const pairEnv = {
106
106
  ...process.env,
@@ -373,4 +373,4 @@ export {
373
373
  startClaudePair,
374
374
  submitClaudePairCode
375
375
  };
376
- //# sourceMappingURL=claude-pair-runtime-FLD3X32S.js.map
376
+ //# sourceMappingURL=claude-pair-runtime-75J2Q6BN.js.map
@@ -27,7 +27,7 @@ import {
27
27
  requireHost,
28
28
  safeWriteJsonAtomic,
29
29
  setConfigHash
30
- } from "../chunk-MB5MHGBP.js";
30
+ } from "../chunk-5TJ25V24.js";
31
31
  import {
32
32
  getProjectDir as getProjectDir2,
33
33
  getReadyTasks,
@@ -65,7 +65,7 @@ import {
65
65
  takeWatchdogGiveUpCount,
66
66
  takeZombieDetection,
67
67
  transcriptActivityAgeSeconds
68
- } from "../chunk-MG4WB7BD.js";
68
+ } from "../chunk-4NTTCTDC.js";
69
69
  import {
70
70
  FLAGS_SCHEMA_VERSION,
71
71
  FLAG_REGISTRY,
@@ -85,6 +85,7 @@ import {
85
85
  formatRunMarker,
86
86
  getFramework,
87
87
  isEmptyTotals,
88
+ isOnboardingArea,
88
89
  isParseError,
89
90
  isResolveError,
90
91
  isSelfCompletion,
@@ -98,7 +99,7 @@ import {
98
99
  resolveDmTarget,
99
100
  sumTranscriptUsageInWindow,
100
101
  wrapScheduledTaskPrompt
101
- } from "../chunk-EGQDFTBK.js";
102
+ } from "../chunk-GHH23BAM.js";
102
103
  import {
103
104
  parsePsRows,
104
105
  reapOrphanChannelMcps
@@ -847,7 +848,7 @@ import { mkdirSync as mkdirSync2, readFileSync as readFileSync2, rmSync, writeFi
847
848
  import { dirname as dirname2 } from "path";
848
849
  var ONBOARDING_REINJECT_INTERVAL_MS = 20 * 6e4;
849
850
  function decideOnboardingDrive(step, marker, nowMs, reinjectIntervalMs = ONBOARDING_REINJECT_INTERVAL_MS) {
850
- if (step === "interviewing" || step === "configuring") {
851
+ if (isOnboardingArea(step)) {
851
852
  const sameStep = marker?.step === step;
852
853
  const stale = sameStep && nowMs - marker.injectedAtMs >= reinjectIntervalMs;
853
854
  if (!sameStep || stale) {
@@ -857,14 +858,19 @@ function decideOnboardingDrive(step, marker, nowMs, reinjectIntervalMs = ONBOARD
857
858
  }
858
859
  return { inject: false, clearMarker: marker !== null, nextMarker: null };
859
860
  }
861
+ var AREA_DIRECTIVE = {
862
+ framing: "Frame the work \u2014 ask your manager what matters in week one and what success looks like, then record it with memory_save",
863
+ tasks: "Set up your recurring work \u2014 propose your role default scheduled tasks, let your manager pick which to set up, then call onboarding_provision_tasks with their choices and tune the result",
864
+ integrations: "Wire up your tools \u2014 ask your manager which integrations your role uses and request access to the ones they confirm (connecting is a human OAuth step)",
865
+ reporting: "Agree how you keep your manager posted \u2014 settle on a cadence and channel, then create a recurring report scheduled task for it"
866
+ };
860
867
  function buildOnboardingDirective(step) {
861
- const phase = step === "interviewing" ? "Interview your manager over their preferred channel to gather setup context (priorities, tools/SaaS to use, reporting cadence)" : "Configure yourself \u2014 propose your role default scheduled tasks and let your manager pick which to set up (then call onboarding_provision_tasks with their choices), tune the provisioned tasks, connect integrations, and add any role-specific extras";
862
- return `\u{1F680} Onboarding (${step}): your self-onboarding is active and waiting on you. Call the \`onboarding_get\` tool now to see your current step and full instructions, then proceed. ${phase}. Advance with \`onboarding_advance\` (INTERVIEW_DONE \u2192 configuring, CONFIGURE_DONE \u2192 ready).`;
868
+ return `\u{1F680} Onboarding (${step}): your self-onboarding is active and waiting on you. Call the \`onboarding_get\` tool now to see this area's questions and full instructions, then proceed. ${AREA_DIRECTIVE[step]}. Advance with \`onboarding_advance\` (ADVANCE) once this area is done.`;
863
869
  }
864
870
  function readOnboardingDriveMarker(path) {
865
871
  try {
866
872
  const raw = JSON.parse(readFileSync2(path, "utf8"));
867
- if ((raw.step === "interviewing" || raw.step === "configuring") && typeof raw.injectedAtMs === "number" && Number.isFinite(raw.injectedAtMs)) {
873
+ if (typeof raw.step === "string" && isOnboardingArea(raw.step) && typeof raw.injectedAtMs === "number" && Number.isFinite(raw.injectedAtMs)) {
868
874
  return { step: raw.step, injectedAtMs: raw.injectedAtMs };
869
875
  }
870
876
  } catch {
@@ -6792,7 +6798,7 @@ var cachedMaintenanceWindow = null;
6792
6798
  var lastVersionCheckAt = 0;
6793
6799
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
6794
6800
  var lastResponsivenessProbeAt = 0;
6795
- var agtCliVersion = true ? "0.28.75" : "dev";
6801
+ var agtCliVersion = true ? "0.28.76" : "dev";
6796
6802
  function resolveBrewPath(execFileSync4) {
6797
6803
  try {
6798
6804
  const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
@@ -7900,7 +7906,7 @@ async function pollCycle() {
7900
7906
  }
7901
7907
  try {
7902
7908
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
7903
- const { collectDiagnostics } = await import("../persistent-session-ESLAJLKA.js");
7909
+ const { collectDiagnostics } = await import("../persistent-session-ZUGPA5HU.js");
7904
7910
  const diagCodeNames = [...agentState.persistentSessionAgents];
7905
7911
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
7906
7912
  let tailscaleHostname;
@@ -8001,7 +8007,7 @@ async function pollCycle() {
8001
8007
  const {
8002
8008
  collectResponsivenessProbes,
8003
8009
  getResponsivenessIntervalMs
8004
- } = await import("../responsiveness-probe-GUQFQH5D.js");
8010
+ } = await import("../responsiveness-probe-KDMBLW5W.js");
8005
8011
  const probeIntervalMs = getResponsivenessIntervalMs();
8006
8012
  if (now - lastResponsivenessProbeAt > probeIntervalMs) {
8007
8013
  const probeCodeNames = [...agentState.persistentSessionAgents];
@@ -8033,7 +8039,7 @@ async function pollCycle() {
8033
8039
  collectResponsivenessProbes,
8034
8040
  livePendingInboundOldestAgeSeconds,
8035
8041
  parkPendingInbound
8036
- } = await import("../responsiveness-probe-GUQFQH5D.js");
8042
+ } = await import("../responsiveness-probe-KDMBLW5W.js");
8037
8043
  const { getProjectDir: wedgeProjectDir } = await import("../claude-scheduler-FATCLHDM.js");
8038
8044
  const wedgeNow = /* @__PURE__ */ new Date();
8039
8045
  const liveAgents = agentState.persistentSessionAgents;
@@ -10296,7 +10302,7 @@ In progress for ${age} minutes \u2014 auto-failed`).catch(() => {
10296
10302
  const decision = decideOnboardingDrive(obStep, marker, Date.now());
10297
10303
  if (decision.clearMarker) {
10298
10304
  clearOnboardingDriveMarker(markerPath);
10299
- } else if (decision.inject && (obStep === "interviewing" || obStep === "configuring") && isSessionHealthy(agent.code_name)) {
10305
+ } else if (decision.inject && isOnboardingArea(obStep) && isSessionHealthy(agent.code_name)) {
10300
10306
  const delivered = await injectMessage(
10301
10307
  agent.code_name,
10302
10308
  "system",
@@ -11496,7 +11502,7 @@ async function processClaudePairSessions(agents) {
11496
11502
  killPairSession,
11497
11503
  pairTmuxSession,
11498
11504
  finalizeClaudePairOnboarding
11499
- } = await import("../claude-pair-runtime-FLD3X32S.js");
11505
+ } = await import("../claude-pair-runtime-75J2Q6BN.js");
11500
11506
  for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
11501
11507
  log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
11502
11508
  const killed = await killPairSession(pairTmuxSession(pairId));