@integrity-labs/agt-cli 0.28.1191 → 0.28.1193
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-7T4CZ2NS.js → chunk-DXLSLT5G.js} +2 -2
- package/dist/{chunk-L5BWZX3Z.js → chunk-NJ2AUTIO.js} +3 -3
- package/dist/{chunk-VS3QXUDM.js → chunk-UQYIFOWE.js} +2 -2
- package/dist/{chunk-GRU6GNLP.js → chunk-UUO7QTLC.js} +76 -15
- package/dist/chunk-UUO7QTLC.js.map +1 -0
- package/dist/{chunk-5RDPFXWO.js → chunk-ZTA7AGKM.js} +7 -5
- package/dist/chunk-ZTA7AGKM.js.map +1 -0
- package/dist/{claude-code-updater-JPVLPWVR.js → claude-code-updater-EOJQHUZ2.js} +3 -3
- package/dist/{claude-pair-runtime-JXXYGKWS.js → claude-pair-runtime-WKTA3HNF.js} +3 -3
- package/dist/lib/manager-worker.js +71 -23
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +6 -2
- package/dist/mcp/index.js +54 -1
- package/dist/mcp/origami.js +3 -0
- package/dist/mcp/slack-channel.js +6 -2
- package/dist/mcp/telegram-channel.js +112 -15
- package/dist/{persistent-session-NSA3UYRF.js → persistent-session-5MGJGJIB.js} +4 -4
- package/dist/{responsiveness-probe-MWH3BKAL.js → responsiveness-probe-J4CBYZS3.js} +4 -4
- package/dist/{session-auth-dead-RYU7ZB56.js → session-auth-dead-7CSZHNBK.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-5RDPFXWO.js.map +0 -1
- package/dist/chunk-GRU6GNLP.js.map +0 -1
- /package/dist/{chunk-7T4CZ2NS.js.map → chunk-DXLSLT5G.js.map} +0 -0
- /package/dist/{chunk-L5BWZX3Z.js.map → chunk-NJ2AUTIO.js.map} +0 -0
- /package/dist/{chunk-VS3QXUDM.js.map → chunk-UQYIFOWE.js.map} +0 -0
- /package/dist/{claude-code-updater-JPVLPWVR.js.map → claude-code-updater-EOJQHUZ2.js.map} +0 -0
- /package/dist/{claude-pair-runtime-JXXYGKWS.js.map → claude-pair-runtime-WKTA3HNF.js.map} +0 -0
- /package/dist/{persistent-session-NSA3UYRF.js.map → persistent-session-5MGJGJIB.js.map} +0 -0
- /package/dist/{responsiveness-probe-MWH3BKAL.js.map → responsiveness-probe-J4CBYZS3.js.map} +0 -0
- /package/dist/{session-auth-dead-RYU7ZB56.js.map → session-auth-dead-7CSZHNBK.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,17 +40,17 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-ZTA7AGKM.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
47
47
|
readDirectChatSessionState
|
|
48
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-NJ2AUTIO.js";
|
|
49
49
|
import {
|
|
50
50
|
markDailySessionSpawn,
|
|
51
51
|
sessionFileExists,
|
|
52
52
|
sessionTranscriptDir
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-DXLSLT5G.js";
|
|
54
54
|
import "../chunk-OO36JBFI.js";
|
|
55
55
|
import "../chunk-6HBXEJHO.js";
|
|
56
56
|
import "../chunk-XWVM4KPK.js";
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
requiredMcpWildcard,
|
|
84
84
|
resolveChannels,
|
|
85
85
|
serializeManifestForSlackCli
|
|
86
|
-
} from "../chunk-
|
|
86
|
+
} from "../chunk-UUO7QTLC.js";
|
|
87
87
|
import "../chunk-AIUIMEUS.js";
|
|
88
88
|
import "../chunk-DGUM43GV.js";
|
|
89
89
|
|
|
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5200
5200
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5201
5201
|
import chalk17 from "chalk";
|
|
5202
5202
|
import ora15 from "ora";
|
|
5203
|
-
var cliVersion = true ? "0.28.
|
|
5203
|
+
var cliVersion = true ? "0.28.1193" : "dev";
|
|
5204
5204
|
async function fetchLatestVersion() {
|
|
5205
5205
|
const host2 = getHost();
|
|
5206
5206
|
if (!host2) return null;
|
|
@@ -6460,7 +6460,7 @@ function handleError(err) {
|
|
|
6460
6460
|
}
|
|
6461
6461
|
|
|
6462
6462
|
// src/bin/agt.ts
|
|
6463
|
-
var cliVersion2 = true ? "0.28.
|
|
6463
|
+
var cliVersion2 = true ? "0.28.1193" : "dev";
|
|
6464
6464
|
var program = new Command();
|
|
6465
6465
|
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");
|
|
6466
6466
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
encodeClaudeProjectPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UUO7QTLC.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/daily-session.ts
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
@@ -240,4 +240,4 @@ export {
|
|
|
240
240
|
peekPreviousSession,
|
|
241
241
|
readDailySessionPin
|
|
242
242
|
};
|
|
243
|
-
//# sourceMappingURL=chunk-
|
|
243
|
+
//# sourceMappingURL=chunk-DXLSLT5G.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
rotateDailySession,
|
|
5
5
|
sessionFileExists,
|
|
6
6
|
todayLocalIso
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DXLSLT5G.js";
|
|
8
8
|
import {
|
|
9
9
|
classifyUnanswerablePane,
|
|
10
10
|
customApiKeyDialogKeys,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
remoteMcpConnectionEnvInfix,
|
|
52
52
|
remoteMcpConnectionLabel,
|
|
53
53
|
remoteMcpConnectionScopedEnvVar
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-UUO7QTLC.js";
|
|
55
55
|
import {
|
|
56
56
|
CLAUDE_CONFIG_DIR_ENV,
|
|
57
57
|
approveApiKeyInClaudeConfig,
|
|
@@ -6173,4 +6173,4 @@ export {
|
|
|
6173
6173
|
stopAllSessionsAndWait,
|
|
6174
6174
|
getProjectDir
|
|
6175
6175
|
};
|
|
6176
|
-
//# sourceMappingURL=chunk-
|
|
6176
|
+
//# sourceMappingURL=chunk-NJ2AUTIO.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-XWVM4KPK.js";
|
|
5
5
|
import {
|
|
6
6
|
FORCED_UPDATE_HARD_DEADLINE_MS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UUO7QTLC.js";
|
|
8
8
|
import {
|
|
9
9
|
effectiveClaudeJsonPath
|
|
10
10
|
} from "./chunk-AIUIMEUS.js";
|
|
@@ -722,4 +722,4 @@ export {
|
|
|
722
722
|
probeClaudeInstalls,
|
|
723
723
|
maybeUpdateClaudeCode
|
|
724
724
|
};
|
|
725
|
-
//# sourceMappingURL=chunk-
|
|
725
|
+
//# sourceMappingURL=chunk-UQYIFOWE.js.map
|
|
@@ -164,30 +164,90 @@ var AGENT_RULES_SECTION_END = "<!-- AGT:RULES_END -->";
|
|
|
164
164
|
var MAX_AGENT_RULES = 8;
|
|
165
165
|
var MAX_AGENT_RULE_CHARS = 200;
|
|
166
166
|
var MAX_AGENT_RULES_CHARS = MAX_AGENT_RULES * (MAX_AGENT_RULE_CHARS + 4);
|
|
167
|
-
|
|
167
|
+
var MAX_ORG_RULES = 10;
|
|
168
|
+
var MAX_TEAM_RULES = 10;
|
|
169
|
+
var MAX_INHERITED_RULES_CHARS = (MAX_ORG_RULES + MAX_TEAM_RULES) * (MAX_AGENT_RULE_CHARS + 4);
|
|
170
|
+
function resolveInheritedForDelivery(received, lastKnown, currentTeamId) {
|
|
171
|
+
if (received === void 0)
|
|
172
|
+
return { rules: void 0, reusedLastKnown: [], unknown: [] };
|
|
173
|
+
const reusedLastKnown = [];
|
|
174
|
+
const unknown2 = [];
|
|
175
|
+
const pick = (scope) => {
|
|
176
|
+
const got = received[scope];
|
|
177
|
+
if (got !== null)
|
|
178
|
+
return got;
|
|
179
|
+
if (lastKnown && (scope === "organization" || lastKnown.teamId === currentTeamId)) {
|
|
180
|
+
reusedLastKnown.push(scope);
|
|
181
|
+
return lastKnown.rules[scope];
|
|
182
|
+
}
|
|
183
|
+
unknown2.push(scope);
|
|
184
|
+
return [];
|
|
185
|
+
};
|
|
186
|
+
return { rules: { organization: pick("organization"), team: pick("team") }, reusedLastKnown, unknown: unknown2 };
|
|
187
|
+
}
|
|
188
|
+
function agentRulesRestartBasis(rules, inherited) {
|
|
189
|
+
const own = basisOf(rules);
|
|
190
|
+
const org = basisOf(inherited?.organization ?? []);
|
|
191
|
+
const team = basisOf(inherited?.team ?? []);
|
|
192
|
+
if (org === "" && team === "")
|
|
193
|
+
return own;
|
|
194
|
+
return `${own}organization\0${org}team\0${team}`;
|
|
195
|
+
}
|
|
196
|
+
function basisOf(rules) {
|
|
168
197
|
return [...rules].map((r) => r.text.trim()).filter((t) => t.length > 0).sort().join("\0");
|
|
169
198
|
}
|
|
170
|
-
function agentHasRules(rules) {
|
|
171
|
-
|
|
199
|
+
function agentHasRules(rules, inherited) {
|
|
200
|
+
const any = (list) => list.some((r) => r.text.trim().length > 0);
|
|
201
|
+
return any(rules) || any(inherited?.organization ?? []) || any(inherited?.team ?? []);
|
|
172
202
|
}
|
|
173
|
-
function buildAgentRulesSection(rules) {
|
|
174
|
-
const kept = rules
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
203
|
+
function buildAgentRulesSection(rules, inherited) {
|
|
204
|
+
const kept = keepRenderable(rules, MAX_AGENT_RULES);
|
|
205
|
+
const org = keepRenderable(inherited?.organization ?? [], MAX_ORG_RULES);
|
|
206
|
+
const team = keepRenderable(inherited?.team ?? [], MAX_TEAM_RULES);
|
|
207
|
+
if (org.length === 0 && team.length === 0) {
|
|
208
|
+
if (kept.length === 0)
|
|
209
|
+
return "";
|
|
210
|
+
return `${AGENT_RULES_SECTION_START}
|
|
211
|
+
## Standing rules from your people
|
|
212
|
+
|
|
213
|
+
${RULES_PREAMBLE}
|
|
214
|
+
|
|
215
|
+
${bullets(kept)}
|
|
216
|
+
${AGENT_RULES_SECTION_END}
|
|
217
|
+
|
|
218
|
+
`;
|
|
219
|
+
}
|
|
220
|
+
const blocks = [];
|
|
221
|
+
if (org.length > 0)
|
|
222
|
+
blocks.push(`From your organisation:
|
|
223
|
+
${bullets(org)}`);
|
|
224
|
+
if (team.length > 0)
|
|
225
|
+
blocks.push(`From your team:
|
|
226
|
+
${bullets(team)}`);
|
|
227
|
+
if (kept.length > 0)
|
|
228
|
+
blocks.push(`Yours:
|
|
229
|
+
${bullets(kept)}`);
|
|
178
230
|
return `${AGENT_RULES_SECTION_START}
|
|
179
231
|
## Standing rules from your people
|
|
180
232
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
ever conflicts with a guardrail above, the guardrail wins and you should say so
|
|
184
|
-
rather than silently picking one.
|
|
233
|
+
${RULES_PREAMBLE} If two of these rules conflict, the more specific one wins:
|
|
234
|
+
yours over your team's, and your team's over your organisation's.
|
|
185
235
|
|
|
186
|
-
${
|
|
236
|
+
${blocks.join("\n\n")}
|
|
187
237
|
${AGENT_RULES_SECTION_END}
|
|
188
238
|
|
|
189
239
|
`;
|
|
190
240
|
}
|
|
241
|
+
var RULES_PREAMBLE = `Rules your team has asked you to follow every time, in their words. They are not
|
|
242
|
+
task-specific \u2014 they apply on every turn regardless of what you are doing. If one
|
|
243
|
+
ever conflicts with a guardrail above, the guardrail wins and you should say so
|
|
244
|
+
rather than silently picking one.`;
|
|
245
|
+
function bullets(texts) {
|
|
246
|
+
return texts.map((t) => `- ${t}`).join("\n");
|
|
247
|
+
}
|
|
248
|
+
function keepRenderable(rules, max) {
|
|
249
|
+
return rules.map((r) => r.text.trim()).filter(Boolean).filter((t) => t.length <= MAX_AGENT_RULE_CHARS).slice(0, max);
|
|
250
|
+
}
|
|
191
251
|
|
|
192
252
|
// ../../packages/core/dist/provisioning/frameworks/claudecode/agent-console-url.js
|
|
193
253
|
var DEFAULT_AGENT_CONSOLE_URL = "https://app.ninjafy.com";
|
|
@@ -1477,7 +1537,7 @@ function generateClaudeMd(input) {
|
|
|
1477
1537
|
const renderIntegrations = input.renderIntegrationsSection === true;
|
|
1478
1538
|
const integrationsSection = renderIntegrations ? buildIntegrationsSection(integrations) : "";
|
|
1479
1539
|
const capabilityPromptSection = buildCapabilityPromptSection(integrations, renderIntegrations);
|
|
1480
|
-
const agentRulesSection = buildAgentRulesSection(input.agentRules ?? []);
|
|
1540
|
+
const agentRulesSection = buildAgentRulesSection(input.agentRules ?? [], input.inheritedAgentRules);
|
|
1481
1541
|
const kanbanWorkPolicySection = buildKanbanWorkPolicySection();
|
|
1482
1542
|
const platformStorageSection = buildPlatformStorageSection(input.hasWorkflows);
|
|
1483
1543
|
const skillAuthoringSection = buildSkillAuthoringSection();
|
|
@@ -17445,6 +17505,7 @@ export {
|
|
|
17445
17505
|
scrubPreservingIdentifiers,
|
|
17446
17506
|
identifierMemoryName,
|
|
17447
17507
|
EXTRACTOR_IDENTIFIER_RULE,
|
|
17508
|
+
resolveInheritedForDelivery,
|
|
17448
17509
|
agentRulesRestartBasis,
|
|
17449
17510
|
agentHasRules,
|
|
17450
17511
|
SCRATCH_RETENTION_DAYS,
|
|
@@ -17611,4 +17672,4 @@ export {
|
|
|
17611
17672
|
isForcedUpdatePastDeadline,
|
|
17612
17673
|
shouldMintReplacementKey
|
|
17613
17674
|
};
|
|
17614
|
-
//# sourceMappingURL=chunk-
|
|
17675
|
+
//# sourceMappingURL=chunk-UUO7QTLC.js.map
|