@integrity-labs/agt-cli 0.28.1215 → 0.28.1217
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 +6 -6
- package/dist/{chunk-KZZZUC5N.js → chunk-4EY3CUZB.js} +35 -1
- package/dist/chunk-4EY3CUZB.js.map +1 -0
- package/dist/{chunk-K4Y3PMWM.js → chunk-DYEJT36T.js} +2 -2
- package/dist/{chunk-Y2PSZAJQ.js → chunk-G4TOCXOT.js} +3 -3
- package/dist/{chunk-HZ4EL7WU.js → chunk-IGNZSNKB.js} +2 -2
- package/dist/{chunk-BPXFPKJ4.js → chunk-WIWPIZFN.js} +37 -12
- package/dist/{chunk-BPXFPKJ4.js.map → chunk-WIWPIZFN.js.map} +1 -1
- package/dist/{claude-code-updater-PBEYKZ34.js → claude-code-updater-WJIPTVFL.js} +3 -3
- package/dist/{claude-pair-runtime-5RPDOVKD.js → claude-pair-runtime-P3EO7NO3.js} +3 -3
- package/dist/lib/manager-worker.js +19 -19
- package/dist/mcp/direct-chat-channel.js +38 -18
- package/dist/mcp/index.js +71 -23
- package/dist/mcp/origami.js +38 -18
- package/dist/mcp/slack-channel.js +38 -18
- package/dist/mcp/telegram-channel.js +38 -18
- package/dist/{persistent-session-NCDYGOAP.js → persistent-session-3QL5YBCS.js} +4 -4
- package/dist/{responsiveness-probe-6BYTKCOJ.js → responsiveness-probe-BCVBNGYY.js} +4 -4
- package/dist/{session-auth-dead-SO5JH3MQ.js → session-auth-dead-YJH56AWH.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-KZZZUC5N.js.map +0 -1
- /package/dist/{chunk-K4Y3PMWM.js.map → chunk-DYEJT36T.js.map} +0 -0
- /package/dist/{chunk-Y2PSZAJQ.js.map → chunk-G4TOCXOT.js.map} +0 -0
- /package/dist/{chunk-HZ4EL7WU.js.map → chunk-IGNZSNKB.js.map} +0 -0
- /package/dist/{claude-code-updater-PBEYKZ34.js.map → claude-code-updater-WJIPTVFL.js.map} +0 -0
- /package/dist/{claude-pair-runtime-5RPDOVKD.js.map → claude-pair-runtime-P3EO7NO3.js.map} +0 -0
- /package/dist/{persistent-session-NCDYGOAP.js.map → persistent-session-3QL5YBCS.js.map} +0 -0
- /package/dist/{responsiveness-probe-6BYTKCOJ.js.map → responsiveness-probe-BCVBNGYY.js.map} +0 -0
- /package/dist/{session-auth-dead-SO5JH3MQ.js.map → session-auth-dead-YJH56AWH.js.map} +0 -0
|
@@ -13,9 +13,9 @@ import {
|
|
|
13
13
|
probeClaudeInstalls,
|
|
14
14
|
readsAsNativeInstall,
|
|
15
15
|
shouldRunClaudeCodeUpdater
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DYEJT36T.js";
|
|
17
17
|
import "./chunk-XWVM4KPK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-4EY3CUZB.js";
|
|
19
19
|
import "./chunk-AIUIMEUS.js";
|
|
20
20
|
import "./chunk-DGUM43GV.js";
|
|
21
21
|
export {
|
|
@@ -34,4 +34,4 @@ export {
|
|
|
34
34
|
readsAsNativeInstall,
|
|
35
35
|
shouldRunClaudeCodeUpdater
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=claude-code-updater-
|
|
37
|
+
//# sourceMappingURL=claude-code-updater-WJIPTVFL.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
redactPaneFrame,
|
|
10
10
|
sanitizeTerminalFrame
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4EY3CUZB.js";
|
|
12
12
|
import {
|
|
13
13
|
CLAUDE_CONFIG_DIR_ENV,
|
|
14
14
|
claudeConfigDirFor,
|
|
@@ -321,7 +321,7 @@ async function spawnPairSession(session) {
|
|
|
321
321
|
return { ok: true };
|
|
322
322
|
} catch {
|
|
323
323
|
}
|
|
324
|
-
const { resolveClaudeBinary } = await import("./persistent-session-
|
|
324
|
+
const { resolveClaudeBinary } = await import("./persistent-session-3QL5YBCS.js");
|
|
325
325
|
const claudeBin = resolveClaudeBinary();
|
|
326
326
|
const pairEnv = {
|
|
327
327
|
...process.env,
|
|
@@ -836,4 +836,4 @@ export {
|
|
|
836
836
|
startClaudePair,
|
|
837
837
|
submitClaudePairCode
|
|
838
838
|
};
|
|
839
|
-
//# sourceMappingURL=claude-pair-runtime-
|
|
839
|
+
//# sourceMappingURL=claude-pair-runtime-P3EO7NO3.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-WIWPIZFN.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
runSafeCleanup,
|
|
100
100
|
tightestDiskStat,
|
|
101
101
|
withPackageCacheLock
|
|
102
|
-
} from "../chunk-
|
|
102
|
+
} from "../chunk-DYEJT36T.js";
|
|
103
103
|
import {
|
|
104
104
|
rewriteSupervisorApiKey,
|
|
105
105
|
supervisorChannelsRefusing
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
webFetchBaselineValue,
|
|
193
193
|
webFetchRestartNeeded,
|
|
194
194
|
writeEgressAllowlist
|
|
195
|
-
} from "../chunk-
|
|
195
|
+
} from "../chunk-G4TOCXOT.js";
|
|
196
196
|
import {
|
|
197
197
|
isAgentIdle,
|
|
198
198
|
isStaleForToday,
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
sessionTranscriptDir,
|
|
203
203
|
subagentActivityAgeSeconds,
|
|
204
204
|
transcriptActivityAgeSeconds
|
|
205
|
-
} from "../chunk-
|
|
205
|
+
} from "../chunk-IGNZSNKB.js";
|
|
206
206
|
import {
|
|
207
207
|
classifyUnanswerablePane,
|
|
208
208
|
focusedConfirmDialogBlock,
|
|
@@ -330,7 +330,7 @@ import {
|
|
|
330
330
|
stabiliseResetInstant,
|
|
331
331
|
sumTranscriptUsageInWindow,
|
|
332
332
|
summarizeTranscriptActivity
|
|
333
|
-
} from "../chunk-
|
|
333
|
+
} from "../chunk-4EY3CUZB.js";
|
|
334
334
|
import {
|
|
335
335
|
CLAUDE_CONFIG_DIR_ENV,
|
|
336
336
|
claudeConfigDirFor,
|
|
@@ -15650,7 +15650,7 @@ var pendingDayRolloverReset = /* @__PURE__ */ new Set();
|
|
|
15650
15650
|
var dayRolloverInboundHold = /* @__PURE__ */ new Map();
|
|
15651
15651
|
var INBOUND_HOLD_EPISODE_GAP_MS = 12e4;
|
|
15652
15652
|
async function channelInboundActivityAgeSecondsFor(codeName) {
|
|
15653
|
-
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-
|
|
15653
|
+
const { newestPendingInboundActivityMtimeMs } = await import("../responsiveness-probe-BCVBNGYY.js");
|
|
15654
15654
|
const newest = newestPendingInboundActivityMtimeMs(dirname11(paneLogPath(codeName)));
|
|
15655
15655
|
if (newest === null) return null;
|
|
15656
15656
|
return Math.max(0, Math.floor((Date.now() - newest) / 1e3));
|
|
@@ -16447,7 +16447,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16447
16447
|
var lastVersionCheckAt = 0;
|
|
16448
16448
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16449
16449
|
var lastResponsivenessProbeAt = 0;
|
|
16450
|
-
var agtCliVersion = true ? "0.28.
|
|
16450
|
+
var agtCliVersion = true ? "0.28.1217" : "dev";
|
|
16451
16451
|
function resolveBrewPath(execFileSync3) {
|
|
16452
16452
|
try {
|
|
16453
16453
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -18351,7 +18351,7 @@ function flushRestartedAgentDiagnostics(hostId, codeNames) {
|
|
|
18351
18351
|
if (codeNames.length === 0) return;
|
|
18352
18352
|
void (async () => {
|
|
18353
18353
|
try {
|
|
18354
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18354
|
+
const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
|
|
18355
18355
|
await api.post("/host/heartbeat", {
|
|
18356
18356
|
host_id: hostId,
|
|
18357
18357
|
agent_diagnostics: collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -18494,7 +18494,7 @@ async function pollCycleInner() {
|
|
|
18494
18494
|
}
|
|
18495
18495
|
try {
|
|
18496
18496
|
const { detectHostSecurity } = await import("../host-security-KQYYZZVW.js");
|
|
18497
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
18497
|
+
const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
|
|
18498
18498
|
const diagCodeNames = [...agentState.persistentSessionAgents];
|
|
18499
18499
|
const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) : void 0;
|
|
18500
18500
|
let tailscaleHostname;
|
|
@@ -18752,7 +18752,7 @@ async function pollCycleInner() {
|
|
|
18752
18752
|
}
|
|
18753
18753
|
try {
|
|
18754
18754
|
const desiredClaudeCodeVersion = hbResp?.desired_claude_code_version?.trim();
|
|
18755
|
-
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-
|
|
18755
|
+
const { maybeUpdateClaudeCode, shouldRunClaudeCodeUpdater } = await import("../claude-code-updater-WJIPTVFL.js");
|
|
18756
18756
|
const securityFloor = currentSecurityFloor();
|
|
18757
18757
|
claudeUpdaterInFlight = true;
|
|
18758
18758
|
if (desiredClaudeCodeVersion && (claudePairLoop.busy || claudePairingInProgress())) {
|
|
@@ -18787,7 +18787,7 @@ async function pollCycleInner() {
|
|
|
18787
18787
|
collectPanelessActivityProbes,
|
|
18788
18788
|
getResponsivenessIntervalMs,
|
|
18789
18789
|
occupancyQualificationClassifications
|
|
18790
|
-
} = await import("../responsiveness-probe-
|
|
18790
|
+
} = await import("../responsiveness-probe-BCVBNGYY.js");
|
|
18791
18791
|
const probeIntervalMs = getResponsivenessIntervalMs();
|
|
18792
18792
|
if (now - lastResponsivenessProbeAt > probeIntervalMs) {
|
|
18793
18793
|
const probeCodeNames = [...agentState.persistentSessionAgents];
|
|
@@ -18904,7 +18904,7 @@ async function pollCycleInner() {
|
|
|
18904
18904
|
collectResponsivenessProbes,
|
|
18905
18905
|
livePendingInboundOldestAgeSeconds,
|
|
18906
18906
|
parkPendingInbound
|
|
18907
|
-
} = await import("../responsiveness-probe-
|
|
18907
|
+
} = await import("../responsiveness-probe-BCVBNGYY.js");
|
|
18908
18908
|
const { getProjectDir: wedgeProjectDir } = await import("../scheduler-engine-M6AFZWNU.js");
|
|
18909
18909
|
const wedgeNow = /* @__PURE__ */ new Date();
|
|
18910
18910
|
const liveAgents = agentState.persistentSessionAgents;
|
|
@@ -19190,7 +19190,7 @@ async function pollCycleInner() {
|
|
|
19190
19190
|
}
|
|
19191
19191
|
}
|
|
19192
19192
|
);
|
|
19193
|
-
const { parkPendingInbound } = await import("../responsiveness-probe-
|
|
19193
|
+
const { parkPendingInbound } = await import("../responsiveness-probe-BCVBNGYY.js");
|
|
19194
19194
|
const { parked, deadLettered } = parkPendingInbound(codeName, new Date(fatalNowMs));
|
|
19195
19195
|
paneFatalStreak.delete(codeName);
|
|
19196
19196
|
paneFatalRestarts.set(codeName, [...history, fatalNowMs]);
|
|
@@ -19221,7 +19221,7 @@ async function pollCycleInner() {
|
|
|
19221
19221
|
TRANSCRIPT_MOUNT_ESCALATION_REFRESH_MS,
|
|
19222
19222
|
bindSourceEscalations
|
|
19223
19223
|
} = await import("../transcript-mount-health-OHE6IVJV.js");
|
|
19224
|
-
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-
|
|
19224
|
+
const { transcriptBindSourcesFor, ensureTranscriptBindSources } = await import("../persistent-session-3QL5YBCS.js");
|
|
19225
19225
|
const mountConfig = resolveTranscriptMountConfig();
|
|
19226
19226
|
const liveAgents = agentState.persistentSessionAgents;
|
|
19227
19227
|
for (const tracked of [
|
|
@@ -19386,7 +19386,7 @@ async function pollCycleInner() {
|
|
|
19386
19386
|
}
|
|
19387
19387
|
try {
|
|
19388
19388
|
const { scrapeMcpFailedBannerCount } = await import("../pane-mcp-banner-scraper-VR5QGP3J.js");
|
|
19389
|
-
const { probeSessionAuth } = await import("../session-auth-dead-
|
|
19389
|
+
const { probeSessionAuth } = await import("../session-auth-dead-YJH56AWH.js");
|
|
19390
19390
|
const observations = [];
|
|
19391
19391
|
const pendingCacheCommits = [];
|
|
19392
19392
|
const modelApiErrorReportingOn = hostFlagStore().getBoolean("model-api-error-reporting");
|
|
@@ -24116,7 +24116,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24116
24116
|
try {
|
|
24117
24117
|
const freshId = rotateSessionForWedge(codeName);
|
|
24118
24118
|
consecutiveWedgeCycles.delete(codeName);
|
|
24119
|
-
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-
|
|
24119
|
+
const { parkPendingInbound: parkForRestart } = await import("../responsiveness-probe-BCVBNGYY.js");
|
|
24120
24120
|
const { parked, deadLettered } = parkForRestart(codeName, /* @__PURE__ */ new Date());
|
|
24121
24121
|
const parkNote = parked > 0 ? `, ${parked} inbound parked` : "";
|
|
24122
24122
|
const deadNote = deadLettered > 0 ? `, ${deadLettered} undeliverable dead-lettered` : "";
|
|
@@ -24159,7 +24159,7 @@ async function handleRestartDoorbell(agentId, requestedAt, restartReason) {
|
|
|
24159
24159
|
void api.post("/host/restart-ack", { host_id: hostId, agent_id: agentId, restart_requested_at: requestedAt }).catch((err) => log(`[restart-lane] ack failed for '${codeName}': ${err.message}`));
|
|
24160
24160
|
void (async () => {
|
|
24161
24161
|
try {
|
|
24162
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24162
|
+
const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
|
|
24163
24163
|
await api.post("/host/heartbeat", {
|
|
24164
24164
|
host_id: hostId,
|
|
24165
24165
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -24210,7 +24210,7 @@ async function respawnAgentAfterMcpStop(codeName, reason) {
|
|
|
24210
24210
|
}
|
|
24211
24211
|
try {
|
|
24212
24212
|
const hostId = await getHostId();
|
|
24213
|
-
const { collectDiagnostics } = await import("../persistent-session-
|
|
24213
|
+
const { collectDiagnostics } = await import("../persistent-session-3QL5YBCS.js");
|
|
24214
24214
|
await api.post("/host/heartbeat", {
|
|
24215
24215
|
host_id: hostId,
|
|
24216
24216
|
agent_diagnostics: collectDiagnostics([codeName], quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeForDiagnostics, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor)
|
|
@@ -24912,7 +24912,7 @@ async function processClaudePairSessions(agents) {
|
|
|
24912
24912
|
snapshotPairConfig,
|
|
24913
24913
|
// ENG-11659: result -> report body + the manager.log line that records it.
|
|
24914
24914
|
planPairStartReport
|
|
24915
|
-
} = await import("../claude-pair-runtime-
|
|
24915
|
+
} = await import("../claude-pair-runtime-P3EO7NO3.js");
|
|
24916
24916
|
const { resetClaudeSignin, describeSigninResetForLog, describeSigninResetFailure } = await import("../claude-signin-reset-6IJMMVYG.js");
|
|
24917
24917
|
for (const pairId of pendingResp.cancelled_pair_ids ?? []) {
|
|
24918
24918
|
log(`[claude-pair] sweeping orphan tmux session for pair ${pairId.slice(0, 8)}`);
|
|
@@ -1102,11 +1102,11 @@ var require_util = __commonJS({
|
|
|
1102
1102
|
return false;
|
|
1103
1103
|
}
|
|
1104
1104
|
exports.schemaHasRules = schemaHasRules;
|
|
1105
|
-
function schemaHasRulesButRef(schema,
|
|
1105
|
+
function schemaHasRulesButRef(schema, RULES2) {
|
|
1106
1106
|
if (typeof schema == "boolean")
|
|
1107
1107
|
return !schema;
|
|
1108
1108
|
for (const key in schema)
|
|
1109
|
-
if (key !== "$ref" &&
|
|
1109
|
+
if (key !== "$ref" && RULES2.all[key])
|
|
1110
1110
|
return true;
|
|
1111
1111
|
return false;
|
|
1112
1112
|
}
|
|
@@ -2500,17 +2500,17 @@ var require_validate = __commonJS({
|
|
|
2500
2500
|
}
|
|
2501
2501
|
function schemaKeywords(it, types, typeErrors, errsCount) {
|
|
2502
2502
|
const { gen, schema, data, allErrors, opts, self } = it;
|
|
2503
|
-
const { RULES } = self;
|
|
2504
|
-
if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema,
|
|
2505
|
-
gen.block(() => keywordCode(it, "$ref",
|
|
2503
|
+
const { RULES: RULES2 } = self;
|
|
2504
|
+
if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES2))) {
|
|
2505
|
+
gen.block(() => keywordCode(it, "$ref", RULES2.all.$ref.definition));
|
|
2506
2506
|
return;
|
|
2507
2507
|
}
|
|
2508
2508
|
if (!opts.jtd)
|
|
2509
2509
|
checkStrictTypes(it, types);
|
|
2510
2510
|
gen.block(() => {
|
|
2511
|
-
for (const group of
|
|
2511
|
+
for (const group of RULES2.rules)
|
|
2512
2512
|
groupKeywords(group);
|
|
2513
|
-
groupKeywords(
|
|
2513
|
+
groupKeywords(RULES2.post);
|
|
2514
2514
|
});
|
|
2515
2515
|
function groupKeywords(group) {
|
|
2516
2516
|
if (!(0, applicability_1.shouldUseGroup)(schema, group))
|
|
@@ -4212,10 +4212,10 @@ var require_core = __commonJS({
|
|
|
4212
4212
|
}
|
|
4213
4213
|
// Remove keyword
|
|
4214
4214
|
removeKeyword(keyword) {
|
|
4215
|
-
const { RULES } = this;
|
|
4216
|
-
delete
|
|
4217
|
-
delete
|
|
4218
|
-
for (const group of
|
|
4215
|
+
const { RULES: RULES2 } = this;
|
|
4216
|
+
delete RULES2.keywords[keyword];
|
|
4217
|
+
delete RULES2.all[keyword];
|
|
4218
|
+
for (const group of RULES2.rules) {
|
|
4219
4219
|
const i = group.rules.findIndex((rule) => rule.keyword === keyword);
|
|
4220
4220
|
if (i >= 0)
|
|
4221
4221
|
group.rules.splice(i, 1);
|
|
@@ -4383,9 +4383,9 @@ var require_core = __commonJS({
|
|
|
4383
4383
|
}
|
|
4384
4384
|
var KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
4385
4385
|
function checkKeyword(keyword, def) {
|
|
4386
|
-
const { RULES } = this;
|
|
4386
|
+
const { RULES: RULES2 } = this;
|
|
4387
4387
|
(0, util_1.eachItem)(keyword, (kwd) => {
|
|
4388
|
-
if (
|
|
4388
|
+
if (RULES2.keywords[kwd])
|
|
4389
4389
|
throw new Error(`Keyword ${kwd} is already defined`);
|
|
4390
4390
|
if (!KEYWORD_NAME.test(kwd))
|
|
4391
4391
|
throw new Error(`Keyword ${kwd} has invalid name`);
|
|
@@ -4401,13 +4401,13 @@ var require_core = __commonJS({
|
|
|
4401
4401
|
const post = definition === null || definition === void 0 ? void 0 : definition.post;
|
|
4402
4402
|
if (dataType && post)
|
|
4403
4403
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
4404
|
-
const { RULES } = this;
|
|
4405
|
-
let ruleGroup = post ?
|
|
4404
|
+
const { RULES: RULES2 } = this;
|
|
4405
|
+
let ruleGroup = post ? RULES2.post : RULES2.rules.find(({ type: t }) => t === dataType);
|
|
4406
4406
|
if (!ruleGroup) {
|
|
4407
4407
|
ruleGroup = { type: dataType, rules: [] };
|
|
4408
|
-
|
|
4408
|
+
RULES2.rules.push(ruleGroup);
|
|
4409
4409
|
}
|
|
4410
|
-
|
|
4410
|
+
RULES2.keywords[keyword] = true;
|
|
4411
4411
|
if (!definition)
|
|
4412
4412
|
return;
|
|
4413
4413
|
const rule = {
|
|
@@ -4422,7 +4422,7 @@ var require_core = __commonJS({
|
|
|
4422
4422
|
addBeforeRule.call(this, ruleGroup, rule, definition.before);
|
|
4423
4423
|
else
|
|
4424
4424
|
ruleGroup.rules.push(rule);
|
|
4425
|
-
|
|
4425
|
+
RULES2.all[keyword] = rule;
|
|
4426
4426
|
(_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
|
|
4427
4427
|
}
|
|
4428
4428
|
function addBeforeRule(ruleGroup, rule, before) {
|
|
@@ -42399,6 +42399,22 @@ var REMOTE_MCP_AUTH_ENV_KEYS = [
|
|
|
42399
42399
|
REMOTE_MCP_PROXY_ENV.extraHeaders
|
|
42400
42400
|
];
|
|
42401
42401
|
|
|
42402
|
+
// ../core/dist/integrations/byo-client-credentials.js
|
|
42403
|
+
var RULES = {
|
|
42404
|
+
"composio/metaads": {
|
|
42405
|
+
idLabel: "App ID",
|
|
42406
|
+
secretLabel: "App Secret",
|
|
42407
|
+
idPlaceholder: "Numbers only, e.g. 1234567890123456",
|
|
42408
|
+
secretPlaceholder: "Your Meta app's App Secret",
|
|
42409
|
+
// Meta App IDs are numeric (15-16 digits today). Bounded loosely so a
|
|
42410
|
+
// shorter legacy id still passes; anything with a letter, space or slash
|
|
42411
|
+
// is certainly not one.
|
|
42412
|
+
idPattern: /^[0-9]{5,20}$/,
|
|
42413
|
+
idFormatHint: 'A Meta App ID is numbers only. Find it on developers.facebook.com: open your app, then App settings > Basic, and copy "App ID" (not the app name or a token).'
|
|
42414
|
+
}
|
|
42415
|
+
};
|
|
42416
|
+
var BYO_CLIENT_CREDENTIAL_RULE_IDS = Object.keys(RULES);
|
|
42417
|
+
|
|
42402
42418
|
// ../core/dist/direct-chat/upload.js
|
|
42403
42419
|
var MB2 = 1024 * 1024;
|
|
42404
42420
|
var DIRECT_CHAT_UPLOAD_MAX_BYTES = 100 * MB2;
|
|
@@ -43626,6 +43642,10 @@ var WAITING_KINDS = [
|
|
|
43626
43642
|
];
|
|
43627
43643
|
var WAITING_KIND_SET = new Set(WAITING_KINDS);
|
|
43628
43644
|
|
|
43645
|
+
// ../core/dist/kanban/manager-agent-wait.js
|
|
43646
|
+
var HUMAN_ONLY_WAIT_REASONS = "approvals, credentials, customer contact, merges, deploys, access and spend";
|
|
43647
|
+
var MANAGER_AGENT_WAIT_GUIDANCE = `If you report to a manager AGENT, a scope, design or engineering decision (picking between options, settling what to build) goes to it: waiting_kind="agent" with waiting_on_agent=<your manager's code_name>, not "human". Keep waiting_kind="human" for ${HUMAN_ONLY_WAIT_REASONS}.`;
|
|
43648
|
+
|
|
43629
43649
|
// ../core/dist/alerts/age.js
|
|
43630
43650
|
var MINUTE_MS = 6e4;
|
|
43631
43651
|
var HOUR_MS = 60 * MINUTE_MS;
|
package/dist/mcp/index.js
CHANGED
|
@@ -1102,11 +1102,11 @@ var require_util = __commonJS({
|
|
|
1102
1102
|
return false;
|
|
1103
1103
|
}
|
|
1104
1104
|
exports.schemaHasRules = schemaHasRules;
|
|
1105
|
-
function schemaHasRulesButRef(schema,
|
|
1105
|
+
function schemaHasRulesButRef(schema, RULES2) {
|
|
1106
1106
|
if (typeof schema == "boolean")
|
|
1107
1107
|
return !schema;
|
|
1108
1108
|
for (const key in schema)
|
|
1109
|
-
if (key !== "$ref" &&
|
|
1109
|
+
if (key !== "$ref" && RULES2.all[key])
|
|
1110
1110
|
return true;
|
|
1111
1111
|
return false;
|
|
1112
1112
|
}
|
|
@@ -2500,17 +2500,17 @@ var require_validate = __commonJS({
|
|
|
2500
2500
|
}
|
|
2501
2501
|
function schemaKeywords(it, types, typeErrors, errsCount) {
|
|
2502
2502
|
const { gen, schema, data, allErrors, opts, self } = it;
|
|
2503
|
-
const { RULES } = self;
|
|
2504
|
-
if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema,
|
|
2505
|
-
gen.block(() => keywordCode(it, "$ref",
|
|
2503
|
+
const { RULES: RULES2 } = self;
|
|
2504
|
+
if (schema.$ref && (opts.ignoreKeywordsWithRef || !(0, util_1.schemaHasRulesButRef)(schema, RULES2))) {
|
|
2505
|
+
gen.block(() => keywordCode(it, "$ref", RULES2.all.$ref.definition));
|
|
2506
2506
|
return;
|
|
2507
2507
|
}
|
|
2508
2508
|
if (!opts.jtd)
|
|
2509
2509
|
checkStrictTypes(it, types);
|
|
2510
2510
|
gen.block(() => {
|
|
2511
|
-
for (const group of
|
|
2511
|
+
for (const group of RULES2.rules)
|
|
2512
2512
|
groupKeywords(group);
|
|
2513
|
-
groupKeywords(
|
|
2513
|
+
groupKeywords(RULES2.post);
|
|
2514
2514
|
});
|
|
2515
2515
|
function groupKeywords(group) {
|
|
2516
2516
|
if (!(0, applicability_1.shouldUseGroup)(schema, group))
|
|
@@ -4212,10 +4212,10 @@ var require_core = __commonJS({
|
|
|
4212
4212
|
}
|
|
4213
4213
|
// Remove keyword
|
|
4214
4214
|
removeKeyword(keyword) {
|
|
4215
|
-
const { RULES } = this;
|
|
4216
|
-
delete
|
|
4217
|
-
delete
|
|
4218
|
-
for (const group of
|
|
4215
|
+
const { RULES: RULES2 } = this;
|
|
4216
|
+
delete RULES2.keywords[keyword];
|
|
4217
|
+
delete RULES2.all[keyword];
|
|
4218
|
+
for (const group of RULES2.rules) {
|
|
4219
4219
|
const i = group.rules.findIndex((rule) => rule.keyword === keyword);
|
|
4220
4220
|
if (i >= 0)
|
|
4221
4221
|
group.rules.splice(i, 1);
|
|
@@ -4383,9 +4383,9 @@ var require_core = __commonJS({
|
|
|
4383
4383
|
}
|
|
4384
4384
|
var KEYWORD_NAME = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
4385
4385
|
function checkKeyword(keyword, def) {
|
|
4386
|
-
const { RULES } = this;
|
|
4386
|
+
const { RULES: RULES2 } = this;
|
|
4387
4387
|
(0, util_1.eachItem)(keyword, (kwd) => {
|
|
4388
|
-
if (
|
|
4388
|
+
if (RULES2.keywords[kwd])
|
|
4389
4389
|
throw new Error(`Keyword ${kwd} is already defined`);
|
|
4390
4390
|
if (!KEYWORD_NAME.test(kwd))
|
|
4391
4391
|
throw new Error(`Keyword ${kwd} has invalid name`);
|
|
@@ -4401,13 +4401,13 @@ var require_core = __commonJS({
|
|
|
4401
4401
|
const post = definition === null || definition === void 0 ? void 0 : definition.post;
|
|
4402
4402
|
if (dataType && post)
|
|
4403
4403
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
4404
|
-
const { RULES } = this;
|
|
4405
|
-
let ruleGroup = post ?
|
|
4404
|
+
const { RULES: RULES2 } = this;
|
|
4405
|
+
let ruleGroup = post ? RULES2.post : RULES2.rules.find(({ type: t }) => t === dataType);
|
|
4406
4406
|
if (!ruleGroup) {
|
|
4407
4407
|
ruleGroup = { type: dataType, rules: [] };
|
|
4408
|
-
|
|
4408
|
+
RULES2.rules.push(ruleGroup);
|
|
4409
4409
|
}
|
|
4410
|
-
|
|
4410
|
+
RULES2.keywords[keyword] = true;
|
|
4411
4411
|
if (!definition)
|
|
4412
4412
|
return;
|
|
4413
4413
|
const rule = {
|
|
@@ -4422,7 +4422,7 @@ var require_core = __commonJS({
|
|
|
4422
4422
|
addBeforeRule.call(this, ruleGroup, rule, definition.before);
|
|
4423
4423
|
else
|
|
4424
4424
|
ruleGroup.rules.push(rule);
|
|
4425
|
-
|
|
4425
|
+
RULES2.all[keyword] = rule;
|
|
4426
4426
|
(_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
|
|
4427
4427
|
}
|
|
4428
4428
|
function addBeforeRule(ruleGroup, rule, before) {
|
|
@@ -28495,6 +28495,22 @@ var REMOTE_MCP_AUTH_ENV_KEYS = [
|
|
|
28495
28495
|
REMOTE_MCP_PROXY_ENV.extraHeaders
|
|
28496
28496
|
];
|
|
28497
28497
|
|
|
28498
|
+
// ../core/dist/integrations/byo-client-credentials.js
|
|
28499
|
+
var RULES = {
|
|
28500
|
+
"composio/metaads": {
|
|
28501
|
+
idLabel: "App ID",
|
|
28502
|
+
secretLabel: "App Secret",
|
|
28503
|
+
idPlaceholder: "Numbers only, e.g. 1234567890123456",
|
|
28504
|
+
secretPlaceholder: "Your Meta app's App Secret",
|
|
28505
|
+
// Meta App IDs are numeric (15-16 digits today). Bounded loosely so a
|
|
28506
|
+
// shorter legacy id still passes; anything with a letter, space or slash
|
|
28507
|
+
// is certainly not one.
|
|
28508
|
+
idPattern: /^[0-9]{5,20}$/,
|
|
28509
|
+
idFormatHint: 'A Meta App ID is numbers only. Find it on developers.facebook.com: open your app, then App settings > Basic, and copy "App ID" (not the app name or a token).'
|
|
28510
|
+
}
|
|
28511
|
+
};
|
|
28512
|
+
var BYO_CLIENT_CREDENTIAL_RULE_IDS = Object.keys(RULES);
|
|
28513
|
+
|
|
28498
28514
|
// ../core/dist/direct-chat/upload.js
|
|
28499
28515
|
var MB2 = 1024 * 1024;
|
|
28500
28516
|
var DIRECT_CHAT_UPLOAD_MAX_BYTES = 100 * MB2;
|
|
@@ -29306,6 +29322,13 @@ function frameCardText(text, author, token, nextToken = newFrameToken) {
|
|
|
29306
29322
|
].join("\n");
|
|
29307
29323
|
}
|
|
29308
29324
|
|
|
29325
|
+
// ../core/dist/kanban/manager-agent-wait.js
|
|
29326
|
+
var HUMAN_ONLY_WAIT_REASONS = "approvals, credentials, customer contact, merges, deploys, access and spend";
|
|
29327
|
+
var MANAGER_AGENT_WAIT_GUIDANCE = `If you report to a manager AGENT, a scope, design or engineering decision (picking between options, settling what to build) goes to it: waiting_kind="agent" with waiting_on_agent=<your manager's code_name>, not "human". Keep waiting_kind="human" for ${HUMAN_ONLY_WAIT_REASONS}.`;
|
|
29328
|
+
function managerAgentDecisionHint(managerCodeName) {
|
|
29329
|
+
return `You report to a manager agent, @${managerCodeName}. If this is a scope, design or engineering decision, park it on them instead: kanban_move with waiting_kind="agent" and waiting_on_agent="${managerCodeName}". Keep waiting_kind="human" for ${HUMAN_ONLY_WAIT_REASONS}. The card is parked as you asked.`;
|
|
29330
|
+
}
|
|
29331
|
+
|
|
29309
29332
|
// ../core/dist/directory/reports-to.js
|
|
29310
29333
|
var MAX_REPORTS_TO_HOPS = 8;
|
|
29311
29334
|
function describeReportsToOutcome(resolved) {
|
|
@@ -48197,6 +48220,12 @@ function owedReplyLines(item, frameToken = newFrameToken()) {
|
|
|
48197
48220
|
if (!message) return [];
|
|
48198
48221
|
return frameCardText(message, item.owed_reply_from_label, frameToken).split("\n").map((l) => ` ${l}`);
|
|
48199
48222
|
}
|
|
48223
|
+
function blockedDetailsLines(item, frameToken = newFrameToken()) {
|
|
48224
|
+
if (!isBlockedOnMe(item)) return [];
|
|
48225
|
+
const details = (item.waiting_details ?? "").trim();
|
|
48226
|
+
if (!details) return [];
|
|
48227
|
+
return frameCardText(details, item.blocked_agent_label, frameToken).split("\n").map((l) => ` ${l}`);
|
|
48228
|
+
}
|
|
48200
48229
|
function groupKanbanByStatus(items) {
|
|
48201
48230
|
const groups = {};
|
|
48202
48231
|
for (const item of items) {
|
|
@@ -48333,6 +48362,7 @@ ${OWED_REPLY_UNAVAILABLE_NOTE}` : empty;
|
|
|
48333
48362
|
lines.push(BLOCKED_ON_ME_SECTION_NOTE);
|
|
48334
48363
|
for (const item of blockedOnMe) {
|
|
48335
48364
|
lines.push(renderKanbanItemLine(item, nowMs, ` [blocking ${item.blocked_agent_label}]`));
|
|
48365
|
+
lines.push(...blockedDetailsLines(item));
|
|
48336
48366
|
}
|
|
48337
48367
|
}
|
|
48338
48368
|
if (owedByMe.length) {
|
|
@@ -48608,7 +48638,8 @@ function agentWaitingKindRejection(kind) {
|
|
|
48608
48638
|
return `Error: waiting_on_agent cannot be used with waiting_kind="${kind ?? "unset"}". Use waiting_kind="agent" when a teammate agent is what is blocking you, or drop waiting_on_agent.`;
|
|
48609
48639
|
}
|
|
48610
48640
|
function personWaitingKindRejection(kind) {
|
|
48611
|
-
return `Error: waiting_on_person cannot be used with waiting_kind="${kind ?? "unset"}". A "${kind}" wait is parked on a system or is unclassified, so there is no one to notify. Name a person on a "human" decision, or on a "pr-review"/"pr-merged" wait (the reviewer or whoever has to tap merge), or drop waiting_on_person. If a teammate AGENT is what is blocking you, use waiting_kind="agent" with waiting_on_agent
|
|
48641
|
+
return `Error: waiting_on_person cannot be used with waiting_kind="${kind ?? "unset"}". A "${kind}" wait is parked on a system or is unclassified, so there is no one to notify. Name a person on a "human" decision, or on a "pr-review"/"pr-merged" wait (the reviewer or whoever has to tap merge), or drop waiting_on_person. If a teammate AGENT is what is blocking you, use waiting_kind="agent" with waiting_on_agent. ` + // ENG-11927: and a decision for your manager agent is an agent wait too.
|
|
48642
|
+
MANAGER_AGENT_WAIT_GUIDANCE;
|
|
48612
48643
|
}
|
|
48613
48644
|
|
|
48614
48645
|
// src/kanban-waiting-context-build.ts
|
|
@@ -48662,6 +48693,18 @@ function approvalRedirectNotice(data, match = {}) {
|
|
|
48662
48693
|
return typeof e?.approval_request_id === "string" ? ` This card is already waiting on approval ${e.approval_request_id}; it stays parked on that approval.` : "";
|
|
48663
48694
|
}).filter((m) => m.length > 0).join("");
|
|
48664
48695
|
}
|
|
48696
|
+
function managerAgentHintNotice(data, match = {}) {
|
|
48697
|
+
const entries = data?.manager_agent_hints;
|
|
48698
|
+
if (!Array.isArray(entries) || entries.length === 0) return "";
|
|
48699
|
+
const relevant = entries.filter((e) => match.id === void 0 || e?.id === void 0 || e.id === match.id);
|
|
48700
|
+
for (const e of relevant) {
|
|
48701
|
+
if (typeof e?.manager_code_name === "string" && e.manager_code_name.trim()) {
|
|
48702
|
+
return ` ${managerAgentDecisionHint(e.manager_code_name.trim())}`;
|
|
48703
|
+
}
|
|
48704
|
+
if (typeof e?.message === "string" && e.message.trim()) return ` ${e.message.trim()}`;
|
|
48705
|
+
}
|
|
48706
|
+
return "";
|
|
48707
|
+
}
|
|
48665
48708
|
function noticeCloseNotice(data) {
|
|
48666
48709
|
const entries = data?.notice_close_warnings;
|
|
48667
48710
|
if (!Array.isArray(entries) || entries.length === 0) return "";
|
|
@@ -50204,7 +50247,10 @@ server.tool(
|
|
|
50204
50247
|
}
|
|
50205
50248
|
);
|
|
50206
50249
|
var kanbanMoveStatuses = AGT_KANBAN_WAITING_ENABLED ? ["backlog", "todo", "in_progress", "waiting", "done", "failed"] : ["backlog", "todo", "in_progress", "done", "failed"];
|
|
50207
|
-
var kanbanMoveDescription = AGT_KANBAN_WAITING_ENABLED ? `Move a kanban item to a different status column. Use status="failed" for a task attempted but not completable. Use status="waiting" when you have COMPLETED your part and cannot proceed until one specific external action happens (a person approves/answers/decides, or a dependency like a PR merge or deploy completes). status="waiting" REQUIRES waiting_kind - classify the wait as "pr-review", "pr-merged", "human", "agent", "external", or "other" (the catch-all when none fit). For a PR wait ("pr-review"/"pr-merged") set waiting_repo ("owner/repo") and waiting_pr (the number) INSTEAD of waiting_on - the card then links straight to the PR and can auto-resume when it lands. For "human"/"external"/"other" set waiting_on to a one-line ask ("Answer my 5 scoping questions") AND put the full context the person needs to decide - the actual questions, options, links - in waiting_details, so they can answer from the card without opening a ticket. For "human" ALSO set waiting_on_person to that person's person_id (uuid, from directory_lookup \u2014 preferred) or their Slack user id, so the card lands in their "Awaiting you" queue and they are notified instead of your ask sitting unseen. When a teammate AGENT is what is blocking you, use waiting_kind="agent" with waiting_on_agent (its code_name) - that notifies the agent and shows the card on its board as something it is holding up.
|
|
50250
|
+
var kanbanMoveDescription = AGT_KANBAN_WAITING_ENABLED ? `Move a kanban item to a different status column. Use status="failed" for a task attempted but not completable. Use status="waiting" when you have COMPLETED your part and cannot proceed until one specific external action happens (a person approves/answers/decides, or a dependency like a PR merge or deploy completes). status="waiting" REQUIRES waiting_kind - classify the wait as "pr-review", "pr-merged", "human", "agent", "external", or "other" (the catch-all when none fit). For a PR wait ("pr-review"/"pr-merged") set waiting_repo ("owner/repo") and waiting_pr (the number) INSTEAD of waiting_on - the card then links straight to the PR and can auto-resume when it lands. For "human"/"external"/"other" set waiting_on to a one-line ask ("Answer my 5 scoping questions") AND put the full context the person needs to decide - the actual questions, options, links - in waiting_details, so they can answer from the card without opening a ticket. For "human" ALSO set waiting_on_person to that person's person_id (uuid, from directory_lookup \u2014 preferred) or their Slack user id, so the card lands in their "Awaiting you" queue and they are notified instead of your ask sitting unseen. When a teammate AGENT is what is blocking you, use waiting_kind="agent" with waiting_on_agent (its code_name) - that notifies the agent and shows the card on its board as something it is holding up. ` + // ENG-11927: without this, agents with a manager agent parked design and
|
|
50251
|
+
// scope questions on a human, because "a person must decide" was the only
|
|
50252
|
+
// sentence that fit.
|
|
50253
|
+
MANAGER_AGENT_WAIT_GUIDANCE + " Do NOT use waiting to offload hard work, and do NOT confuse it with a failure. (matches the hosted kanban_move enum)." : 'Move a kanban item to a different status column. Use status="failed" to mark a task that was attempted but could not complete (matches the hosted kanban_move enum).';
|
|
50208
50254
|
var kanbanMoveStatusDescribe = AGT_KANBAN_WAITING_ENABLED ? 'Target status. "waiting" parks the card until one external action happens; it REQUIRES waiting_kind - use "pr-review"/"pr-merged" with waiting_repo + waiting_pr, "agent" with waiting_on_agent (a teammate agent is blocking you), or "human"/"external"/"other" with a concrete waiting_on. "failed" closes the row as a failed attempt; there is no "cancelled" status, close no-longer-needed work via kanban_done with an explanatory result.' : 'Target status. "failed" closes the row as a failed attempt; there is no "cancelled" status, close no-longer-needed work via kanban_done with an explanatory result.';
|
|
50209
50255
|
server.tool(
|
|
50210
50256
|
"kanban_move",
|
|
@@ -50219,10 +50265,10 @@ server.tool(
|
|
|
50219
50265
|
'Only with status="waiting", for a NON-PR wait: a ONE-LINE headline of what you are parked on, phrased as an instruction ("Approve the budget", "Answer my 5 scoping questions"). Keep it short - it is the card headline. Put the FULL context the person needs to decide in waiting_details, not here. For a PR wait use waiting_kind/waiting_repo/waiting_pr instead.'
|
|
50220
50266
|
),
|
|
50221
50267
|
waiting_details: external_exports.string().optional().describe(
|
|
50222
|
-
`Only with status="waiting" on a "human"/"external"/"other" wait: the FULL context the person needs to make the decision, inline - the actual questions, the options, the specifics, any links. Put everything here so they can answer from the card alone; NEVER just point at a ticket ("see ENG-1234"). waiting_on stays the one-line headline; this is the body. Shown in full in the card's Respond panel; the card preview and chat notifications may show a truncated preview (kept within their limits).`
|
|
50268
|
+
`Only with status="waiting" on a "human"/"agent"/"external"/"other" wait: the FULL context the person (or, on an "agent" wait, the agent you park on - it reads this in its blocking notice and its board) needs to make the decision, inline - the actual questions, the options, the specifics, any links. Put everything here so they can answer from the card alone; NEVER just point at a ticket ("see ENG-1234"). waiting_on stays the one-line headline; this is the body. Shown in full in the card's Respond panel; the card preview and chat notifications may show a truncated preview (kept within their limits).`
|
|
50223
50269
|
),
|
|
50224
50270
|
waiting_kind: external_exports.enum(["pr-review", "pr-merged", "human", "external", "other", "agent"]).optional().describe(
|
|
50225
|
-
'REQUIRED with status="waiting": classify what you are waiting on. "pr-review" = a pull request awaiting review, "pr-merged" = a reviewed PR awaiting merge (both require waiting_repo + waiting_pr and let the card link to the PR and auto-resume). "human" = a specific person must decide/answer, "external" = a non-PR system/process must complete (a deploy, CI, a third party); for those two put a one-line ask in waiting_on and the full decision context in waiting_details. "agent" = another AGENT has to act before you can continue - set waiting_on_agent to its code_name, which notifies it and puts the card on its board as something it is holding up. "other" = none of the above / unsure - the generic catch-all, same waiting_on + waiting_details. Always pick the most specific kind that fits; fall back to "other" rather than leaving it unset - but note "other" and "external" mean THERE IS NOBODY TO NOTIFY, so never use them when a person ("human") or a teammate agent ("agent") is what is actually blocking you.'
|
|
50271
|
+
'REQUIRED with status="waiting": classify what you are waiting on. "pr-review" = a pull request awaiting review, "pr-merged" = a reviewed PR awaiting merge (both require waiting_repo + waiting_pr and let the card link to the PR and auto-resume). "human" = a specific person must decide/answer (if you report to a manager AGENT, a scope/design/engineering decision is an "agent" wait on it instead; "human" is for approvals, credentials, customer contact, merges, deploys, access and spend), "external" = a non-PR system/process must complete (a deploy, CI, a third party); for those two put a one-line ask in waiting_on and the full decision context in waiting_details. "agent" = another AGENT has to act before you can continue - set waiting_on_agent to its code_name, which notifies it and puts the card on its board as something it is holding up. "other" = none of the above / unsure - the generic catch-all, same waiting_on + waiting_details. Always pick the most specific kind that fits; fall back to "other" rather than leaving it unset - but note "other" and "external" mean THERE IS NOBODY TO NOTIFY, so never use them when a person ("human") or a teammate agent ("agent") is what is actually blocking you.'
|
|
50226
50272
|
),
|
|
50227
50273
|
waiting_repo: external_exports.string().optional().describe(
|
|
50228
50274
|
'Only with a pr-* waiting_kind: the "owner/repo" the pull request lives in (e.g. "Integrity-Labs/augmented").'
|
|
@@ -50329,7 +50375,9 @@ server.tool(
|
|
|
50329
50375
|
label,
|
|
50330
50376
|
// CS-2178: say so when the server kept the card on its pending approval
|
|
50331
50377
|
// instead of the human wait asked for, or the agent re-asks on the card.
|
|
50332
|
-
|
|
50378
|
+
// ENG-11927: and say who the manager agent is when a human park should
|
|
50379
|
+
// probably have gone to it.
|
|
50380
|
+
() => `Moved "${label}" \u2192 ${params.status}.${approvalRedirectNotice(data, { id: params.id })}` + managerAgentHintNotice(data, { id: params.id })
|
|
50333
50381
|
);
|
|
50334
50382
|
return {
|
|
50335
50383
|
content: [{ type: "text", text: outcome.text }],
|