@integrity-labs/agt-cli 0.28.975 → 0.28.976
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 +5 -5
- package/dist/{chunk-KUSBSYQA.js → chunk-CIC25QXS.js} +14 -14
- package/dist/{chunk-KUSBSYQA.js.map → chunk-CIC25QXS.js.map} +1 -1
- package/dist/{chunk-YBDGTOXI.js → chunk-KTFN2AIB.js} +2 -2
- package/dist/{chunk-VRYNZ3G5.js → chunk-VF5BT7BP.js} +8 -8
- package/dist/{chunk-VRYNZ3G5.js.map → chunk-VF5BT7BP.js.map} +1 -1
- package/dist/{claude-pair-runtime-FYEBDP2M.js → claude-pair-runtime-XOIAF3ZU.js} +2 -2
- package/dist/lib/manager-worker.js +14 -14
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +9 -9
- package/dist/mcp/index.js +4 -4
- package/dist/mcp/slack-channel.js +22 -22
- package/dist/mcp/teams-channel.js +5 -5
- package/dist/mcp/telegram-channel.js +15 -15
- package/dist/mcp/whatsapp-channel.js +9 -9
- package/dist/{persistent-session-S32WR3KK.js → persistent-session-26W47NVS.js} +3 -3
- package/dist/{responsiveness-probe-NSH4R5RH.js → responsiveness-probe-KMHYGGYP.js} +3 -3
- package/dist/{session-auth-dead-A5RJASLW.js → session-auth-dead-CRG2ESD2.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-YBDGTOXI.js.map → chunk-KTFN2AIB.js.map} +0 -0
- /package/dist/{claude-pair-runtime-FYEBDP2M.js.map → claude-pair-runtime-XOIAF3ZU.js.map} +0 -0
- /package/dist/{persistent-session-S32WR3KK.js.map → persistent-session-26W47NVS.js.map} +0 -0
- /package/dist/{responsiveness-probe-NSH4R5RH.js.map → responsiveness-probe-KMHYGGYP.js.map} +0 -0
- /package/dist/{session-auth-dead-A5RJASLW.js.map → session-auth-dead-CRG2ESD2.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,12 +40,12 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-CIC25QXS.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-KTFN2AIB.js";
|
|
49
49
|
import {
|
|
50
50
|
AnchorSessionClient,
|
|
51
51
|
CHANNEL_REGISTRY,
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
serializeManifestForSlackCli,
|
|
80
80
|
sessionFileExists,
|
|
81
81
|
sessionTranscriptDir
|
|
82
|
-
} from "../chunk-
|
|
82
|
+
} from "../chunk-VF5BT7BP.js";
|
|
83
83
|
import "../chunk-DHWNVVX4.js";
|
|
84
84
|
import "../chunk-XWVM4KPK.js";
|
|
85
85
|
|
|
@@ -5471,7 +5471,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5471
5471
|
import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
|
|
5472
5472
|
import chalk18 from "chalk";
|
|
5473
5473
|
import ora16 from "ora";
|
|
5474
|
-
var cliVersion = true ? "0.28.
|
|
5474
|
+
var cliVersion = true ? "0.28.976" : "dev";
|
|
5475
5475
|
async function fetchLatestVersion() {
|
|
5476
5476
|
const host2 = getHost();
|
|
5477
5477
|
if (!host2) return null;
|
|
@@ -6731,7 +6731,7 @@ function handleError(err) {
|
|
|
6731
6731
|
}
|
|
6732
6732
|
|
|
6733
6733
|
// src/bin/agt.ts
|
|
6734
|
-
var cliVersion2 = true ? "0.28.
|
|
6734
|
+
var cliVersion2 = true ? "0.28.976" : "dev";
|
|
6735
6735
|
var program = new Command();
|
|
6736
6736
|
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");
|
|
6737
6737
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
parseEnvFileEntries,
|
|
15
15
|
parseEnvIntegrations,
|
|
16
16
|
shellQuote
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KTFN2AIB.js";
|
|
18
18
|
import {
|
|
19
19
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
20
20
|
INTEGRATIONS_SECTION_END,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
sessionTranscriptDir,
|
|
75
75
|
worseConnectivityOutcome,
|
|
76
76
|
wrapScheduledTaskPrompt
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-VF5BT7BP.js";
|
|
78
78
|
import {
|
|
79
79
|
classifyUnanswerablePane,
|
|
80
80
|
summarizeUnanswerablePane
|
|
@@ -2504,7 +2504,7 @@ function provisionStopHook(codeName) {
|
|
|
2504
2504
|
'# the pair, so any errored exit read as "the agent replied" \u2014 returning',
|
|
2505
2505
|
"# early before the recovery outbox is written AND setting SL_REPLIED=yes so",
|
|
2506
2506
|
"# emit_block_if_obligated skipped the owed-reply re-prompt. Both halves of",
|
|
2507
|
-
"# the safety net stood down and the human just saw silence.
|
|
2507
|
+
"# the safety net stood down and the human just saw silence. slack_reply",
|
|
2508
2508
|
"# alone has eight isError branches, so this is a whole class, not one bug.",
|
|
2509
2509
|
"# Computed once here (not per predicate) to hold the ENG-6288 budget of a",
|
|
2510
2510
|
"# single jq pass over the snapshot.",
|
|
@@ -2648,13 +2648,13 @@ function provisionStopHook(codeName) {
|
|
|
2648
2648
|
' [ "$hit" = "yes" ]',
|
|
2649
2649
|
"}",
|
|
2650
2650
|
'# ENG-7808 (ENG-6722 fm4): "did the agent reply to THIS direct-chat session in',
|
|
2651
|
-
'# the final turn?" A
|
|
2651
|
+
'# the final turn?" A direct_chat_reply OR direct_chat_consume settles the',
|
|
2652
2652
|
"# obligation (consume is the explicit handled-without-reply ack, the same",
|
|
2653
2653
|
"# session-scoped drain the MCP applies), so either counts as answered. session_id",
|
|
2654
2654
|
"# is unambiguous (one session per marker), so there is no cross-thread class here.",
|
|
2655
2655
|
"#",
|
|
2656
2656
|
"# ENG-9420: this predicate was the one of four that ENG-8142 missed. It came",
|
|
2657
|
-
"# from ENG-7808 and had been error-blind ever since, so a
|
|
2657
|
+
"# from ENG-7808 and had been error-blind ever since, so a direct_chat_reply",
|
|
2658
2658
|
'# whose tool_result came back is_error:true still satisfied "the agent',
|
|
2659
2659
|
'# replied" - the recovery outbox never written, the owed-reply re-prompt',
|
|
2660
2660
|
"# suppressed. Direct chat is where scheduled-task results and approval",
|
|
@@ -2746,7 +2746,7 @@ function provisionStopHook(codeName) {
|
|
|
2746
2746
|
" # marker anyway; this catches the interim-ack case where the marker is",
|
|
2747
2747
|
" # downgraded to seen, not deleted). A reply to a DIFFERENT thread no longer",
|
|
2748
2748
|
" # suppresses here \u2014 marker existence + the recency guard below decide that.",
|
|
2749
|
-
" # Was a global grep over TOOL_NAMES (any
|
|
2749
|
+
" # Was a global grep over TOOL_NAMES (any slack_reply), which dropped owed",
|
|
2750
2750
|
" # replies on multi-thread agents (the chronic sherlock symptom).",
|
|
2751
2751
|
' if replied_this_conv_slack "$channel" "$thread_ts"; then log_ghost "slack skip=replied_this_turn thread=$(safe_id "$thread_ts")"; return; fi',
|
|
2752
2752
|
" # ENG-6387 plus ENG-6467: recency-aware correlation + fail-silent (KEPT). A reply and",
|
|
@@ -3204,7 +3204,7 @@ function provisionStopHook(codeName) {
|
|
|
3204
3204
|
' if [ -n "$CHAT_ID" ] && [ -n "$MSG_ID" ]; then',
|
|
3205
3205
|
' TG_CAND="${TG_MARKER_DIR}/$(safe_id "$CHAT_ID")__$(safe_id "$MSG_ID").json"',
|
|
3206
3206
|
' TG_REPLIED=no; if replied_this_conv_telegram "$CHAT_ID"; then TG_REPLIED=yes; fi',
|
|
3207
|
-
` if emit_block_if_obligated "$TG_REPLIED" "$TG_CAND" '
|
|
3207
|
+
` if emit_block_if_obligated "$TG_REPLIED" "$TG_CAND" 'telegram_reply'; then exit 0; fi`,
|
|
3208
3208
|
" fi",
|
|
3209
3209
|
' recover_telegram_for "$CHAT_ID" "$MSG_ID"',
|
|
3210
3210
|
'elif [ "$TAG_SOURCE" = "slack" ]; then',
|
|
@@ -3215,7 +3215,7 @@ function provisionStopHook(codeName) {
|
|
|
3215
3215
|
" shopt -s nullglob",
|
|
3216
3216
|
` SL_CAND=$(printf '%s\\n' "$SL_PREFIX"*.json)`,
|
|
3217
3217
|
' SL_REPLIED=no; if replied_this_conv_slack "$CHANNEL" "$THREAD_TS"; then SL_REPLIED=yes; fi',
|
|
3218
|
-
` if emit_block_if_obligated "$SL_REPLIED" "$SL_CAND" '
|
|
3218
|
+
` if emit_block_if_obligated "$SL_REPLIED" "$SL_CAND" 'slack_reply'; then exit 0; fi`,
|
|
3219
3219
|
" fi",
|
|
3220
3220
|
' recover_slack_for "$CHANNEL" "$THREAD_TS"',
|
|
3221
3221
|
'elif [ "$TAG_SOURCE" = "msteams" ]; then',
|
|
@@ -3227,7 +3227,7 @@ function provisionStopHook(codeName) {
|
|
|
3227
3227
|
" shopt -s nullglob",
|
|
3228
3228
|
" MS_CAND=$(printf '%s\\n' \"${MS_MARKER_DIR}/${HEX_CONV}\"*.json)",
|
|
3229
3229
|
' MS_REPLIED=no; if replied_this_conv_teams "$CONVERSATION_ID"; then MS_REPLIED=yes; fi',
|
|
3230
|
-
` if emit_block_if_obligated "$MS_REPLIED" "$MS_CAND" '
|
|
3230
|
+
` if emit_block_if_obligated "$MS_REPLIED" "$MS_CAND" 'teams_reply'; then exit 0; fi`,
|
|
3231
3231
|
" fi",
|
|
3232
3232
|
' recover_teams_for "$CONVERSATION_ID" "$REPLY_TO_ID" "$SERVICE_URL"',
|
|
3233
3233
|
'elif [ "$TAG_SOURCE" = "direct-chat" ]; then',
|
|
@@ -3245,7 +3245,7 @@ function provisionStopHook(codeName) {
|
|
|
3245
3245
|
' HEX_SESSION=$(printf %s "$SESSION_ID" | od -An -tx1 | tr -d " \\n")',
|
|
3246
3246
|
" DC_CAND=$(printf '%s\\n' \"${DC_MARKER_DIR}/${HEX_SESSION}__\"*.json)",
|
|
3247
3247
|
' DC_REPLIED=no; if replied_this_conv_directchat "$SESSION_ID"; then DC_REPLIED=yes; fi',
|
|
3248
|
-
` if emit_block_if_obligated "$DC_REPLIED" "$DC_CAND" '
|
|
3248
|
+
` if emit_block_if_obligated "$DC_REPLIED" "$DC_CAND" 'direct_chat_reply'; then exit 0; fi`,
|
|
3249
3249
|
' if [ "$DC_REPLIED" = "no" ]; then',
|
|
3250
3250
|
" # ENG-7944: call unconditionally \u2014 mirrors the always-on Slack/Telegram/Teams",
|
|
3251
3251
|
" # recovery paths. The MCP consumer (processDirectChatRecoveryOutboxFile) still",
|
|
@@ -4302,7 +4302,7 @@ function provisionOrientHook(codeName) {
|
|
|
4302
4302
|
' if [ "$REPLAY_ON" = "true" ]; then',
|
|
4303
4303
|
' echo "Respond \\"Ready.\\" once. The queued messages above will be re-delivered to you by the channel server within a few minutes \u2014 answer each as it arrives (acknowledge before tool use). Do not reply from the queue details directly; wait for the re-delivery."',
|
|
4304
4304
|
" else",
|
|
4305
|
-
` echo "Respond \\"Ready.\\" once, then immediately work through the queued messages above, oldest first \u2014 they are real user messages from before this session started and will NOT be re-delivered. Use the addressing ids with the matching channel reply tool (
|
|
4305
|
+
` echo "Respond \\"Ready.\\" once, then immediately work through the queued messages above, oldest first \u2014 they are real user messages from before this session started and will NOT be re-delivered. Use the addressing ids with the matching channel reply tool (slack_reply with channel + thread_ts, telegram_reply with chat_id, etc.). If a queue detail lacks the message content, first try the channel's thread/history tools to read the conversation (Slack threads can be re-read); only if the content is truly unrecoverable, say so honestly in your reply and ask the user to resend."`,
|
|
4306
4306
|
" fi",
|
|
4307
4307
|
'elif [ "$SOURCE" = "resume" ]; then',
|
|
4308
4308
|
" # ENG-6703: a resumed session with no queued message may still have been",
|
|
@@ -4760,7 +4760,7 @@ The parent passes you in the task description:
|
|
|
4760
4760
|
Your job:
|
|
4761
4761
|
|
|
4762
4762
|
1. Do the work the message asks for (Xero pull, research, multi-step skill, etc.). Use whichever tools you need.
|
|
4763
|
-
2. Post the reply yourself via the matching channel tool \u2014
|
|
4763
|
+
2. Post the reply yourself via the matching channel tool \u2014 slack_reply for Slack, telegram_reply for Telegram, teams_reply for Microsoft Teams, direct_chat_reply for Direct Chat. Use the metadata the parent gave you to address the right thread/conversation.
|
|
4764
4764
|
3. End. Do not do additional follow-up work; if more is needed, the user will send another message.
|
|
4765
4765
|
|
|
4766
4766
|
Do NOT post intermediate progress updates unless the work spans 5+ minutes \u2014 keep noise low. The parent already sent a single-line acknowledgement before dispatching you.
|
|
@@ -6967,7 +6967,7 @@ function exchangeFailureKind(err) {
|
|
|
6967
6967
|
}
|
|
6968
6968
|
|
|
6969
6969
|
// src/lib/api-client.ts
|
|
6970
|
-
var agtCliVersion = true ? "0.28.
|
|
6970
|
+
var agtCliVersion = true ? "0.28.976" : "dev";
|
|
6971
6971
|
var lastConfigHash = null;
|
|
6972
6972
|
function setConfigHash(hash) {
|
|
6973
6973
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11709,4 +11709,4 @@ export {
|
|
|
11709
11709
|
managerInstallSystemUnitCommand,
|
|
11710
11710
|
managerUninstallSystemUnitCommand
|
|
11711
11711
|
};
|
|
11712
|
-
//# sourceMappingURL=chunk-
|
|
11712
|
+
//# sourceMappingURL=chunk-CIC25QXS.js.map
|