@integrity-labs/agt-cli 0.12.3 → 0.12.4
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 +3 -3
- package/dist/{chunk-S5VHDDAJ.js → chunk-UMDIT5CP.js} +33 -29
- package/dist/chunk-UMDIT5CP.js.map +1 -0
- package/dist/lib/manager-worker.js +4 -2
- package/dist/lib/manager-worker.js.map +1 -1
- package/mcp/direct-chat-channel.js +12 -0
- package/package.json +1 -1
- package/dist/chunk-S5VHDDAJ.js.map +0 -1
package/dist/bin/agt.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
resolveChannels,
|
|
33
33
|
serializeManifestForSlackCli,
|
|
34
34
|
setActiveTeam
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-UMDIT5CP.js";
|
|
36
36
|
|
|
37
37
|
// src/bin/agt.ts
|
|
38
38
|
import { join as join11 } from "path";
|
|
@@ -3717,7 +3717,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
3717
3717
|
import { existsSync as existsSync5, realpathSync } from "fs";
|
|
3718
3718
|
import chalk20 from "chalk";
|
|
3719
3719
|
import ora15 from "ora";
|
|
3720
|
-
var cliVersion = true ? "0.12.
|
|
3720
|
+
var cliVersion = true ? "0.12.4" : "dev";
|
|
3721
3721
|
async function fetchLatestVersion() {
|
|
3722
3722
|
const host2 = getHost();
|
|
3723
3723
|
if (!host2) return null;
|
|
@@ -4166,7 +4166,7 @@ function handleError(err) {
|
|
|
4166
4166
|
}
|
|
4167
4167
|
|
|
4168
4168
|
// src/bin/agt.ts
|
|
4169
|
-
var cliVersion2 = true ? "0.12.
|
|
4169
|
+
var cliVersion2 = true ? "0.12.4" : "dev";
|
|
4170
4170
|
var program = new Command();
|
|
4171
4171
|
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");
|
|
4172
4172
|
program.hook("preAction", (thisCommand) => {
|
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
// ../../packages/core/dist/scheduled-tasks/prompt-wrapper.js
|
|
2
|
+
var EXECUTION_PREAMBLE = [
|
|
3
|
+
"[SCHEDULED TASK \u2014 EXECUTION MODE]",
|
|
4
|
+
"You are executing a scheduled task. There is no human user present; this is an automated run. Execute the instruction below and output the result directly.",
|
|
5
|
+
"",
|
|
6
|
+
"Rules for this run:",
|
|
7
|
+
`\u2022 Do not say "Sure", "I can help", "I'll draft", "Let me know", or any other conversational preamble or sign-off. Output the task result only.`,
|
|
8
|
+
'\u2022 Do not ask for clarification, confirmation, or missing details \u2014 no human will answer. If context is ambiguous or missing, choose the most reasonable default, proceed, and briefly note the assumption at the end of your output under a "[notes]" line.',
|
|
9
|
+
"\u2022 Do not announce what you are about to do. Just do it and produce the output.",
|
|
10
|
+
'\u2022 The recipient sees ONLY your final text response \u2014 intermediate tool calls, files you wrote, and prior turns do NOT reach them. If the task asks for a brief, report, summary, or any deliverable, put the FULL content verbatim in your final response. Do not reference "above", "attached", or earlier output.',
|
|
11
|
+
"\u2022 Do not expose internal bookkeeping to the recipient \u2014 memory files, saved paths, kanban status, or meta-notes about how the work was done. Only the deliverable content belongs in your response.",
|
|
12
|
+
"\u2022 Do not over-deliver. Match the scope and length of the request. A yes/no question gets a one-line answer; a brief request gets the brief, not a dissertation. Long rambling messages are not useful \u2014 cut any section, caveat, or restatement that does not directly answer the instruction.",
|
|
13
|
+
"",
|
|
14
|
+
"Instruction:"
|
|
15
|
+
].join("\n");
|
|
16
|
+
function wrapScheduledTaskPrompt(prompt) {
|
|
17
|
+
const trimmed = prompt.trim();
|
|
18
|
+
if (trimmed.length === 0)
|
|
19
|
+
return prompt;
|
|
20
|
+
if (trimmed === EXECUTION_PREAMBLE)
|
|
21
|
+
return prompt;
|
|
22
|
+
if (trimmed.startsWith(`${EXECUTION_PREAMBLE}
|
|
23
|
+
`))
|
|
24
|
+
return prompt;
|
|
25
|
+
if (trimmed.startsWith(`${EXECUTION_PREAMBLE}\r
|
|
26
|
+
`))
|
|
27
|
+
return prompt;
|
|
28
|
+
return `${EXECUTION_PREAMBLE}
|
|
29
|
+
${prompt}`;
|
|
30
|
+
}
|
|
31
|
+
|
|
1
32
|
// ../../packages/core/dist/delivery/parse.js
|
|
2
33
|
function parseDeliveryTarget(raw) {
|
|
3
34
|
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) {
|
|
@@ -478,34 +509,6 @@ import { execFile, spawn } from "child_process";
|
|
|
478
509
|
import { readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2, existsSync as existsSync2, unlinkSync as unlinkSync2, chmodSync as chmodSync2, renameSync as renameSync2, symlinkSync } from "fs";
|
|
479
510
|
import { join as join2, dirname as dirname2, resolve } from "path";
|
|
480
511
|
|
|
481
|
-
// ../../packages/core/dist/scheduled-tasks/prompt-wrapper.js
|
|
482
|
-
var EXECUTION_PREAMBLE = [
|
|
483
|
-
"[SCHEDULED TASK \u2014 EXECUTION MODE]",
|
|
484
|
-
"You are executing a scheduled task. There is no human user present; this is an automated run. Execute the instruction below and output the result directly.",
|
|
485
|
-
"",
|
|
486
|
-
"Rules for this run:",
|
|
487
|
-
`\u2022 Do not say "Sure", "I can help", "I'll draft", "Let me know", or any other conversational preamble or sign-off. Output the task result only.`,
|
|
488
|
-
'\u2022 Do not ask for clarification, confirmation, or missing details \u2014 no human will answer. If context is ambiguous or missing, choose the most reasonable default, proceed, and briefly note the assumption at the end of your output under a "[notes]" line.',
|
|
489
|
-
"\u2022 Do not announce what you are about to do. Just do it and produce the output.",
|
|
490
|
-
"",
|
|
491
|
-
"Instruction:"
|
|
492
|
-
].join("\n");
|
|
493
|
-
function wrapScheduledTaskPrompt(prompt) {
|
|
494
|
-
const trimmed = prompt.trim();
|
|
495
|
-
if (trimmed.length === 0)
|
|
496
|
-
return prompt;
|
|
497
|
-
if (trimmed === EXECUTION_PREAMBLE)
|
|
498
|
-
return prompt;
|
|
499
|
-
if (trimmed.startsWith(`${EXECUTION_PREAMBLE}
|
|
500
|
-
`))
|
|
501
|
-
return prompt;
|
|
502
|
-
if (trimmed.startsWith(`${EXECUTION_PREAMBLE}\r
|
|
503
|
-
`))
|
|
504
|
-
return prompt;
|
|
505
|
-
return `${EXECUTION_PREAMBLE}
|
|
506
|
-
${prompt}`;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
512
|
// ../../packages/core/dist/types/models.js
|
|
510
513
|
var DEFAULT_MODELS = {
|
|
511
514
|
primary: "openrouter/anthropic/claude-opus-4-6",
|
|
@@ -6279,6 +6282,7 @@ function provision(input, frameworkId = "openclaw") {
|
|
|
6279
6282
|
}
|
|
6280
6283
|
|
|
6281
6284
|
export {
|
|
6285
|
+
wrapScheduledTaskPrompt,
|
|
6282
6286
|
parseDeliveryTarget,
|
|
6283
6287
|
isParseError,
|
|
6284
6288
|
appendDmFooter,
|
|
@@ -6321,4 +6325,4 @@ export {
|
|
|
6321
6325
|
detectDrift,
|
|
6322
6326
|
provision
|
|
6323
6327
|
};
|
|
6324
|
-
//# sourceMappingURL=chunk-
|
|
6328
|
+
//# sourceMappingURL=chunk-UMDIT5CP.js.map
|