@integrity-labs/agt-cli 0.28.301 → 0.28.302
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 +4 -4
- package/dist/{chunk-E6L7SSE7.js → chunk-5WQATS6J.js} +68 -1
- package/dist/chunk-5WQATS6J.js.map +1 -0
- package/dist/{chunk-HRER2SCW.js → chunk-D5BJLFH7.js} +3 -3
- package/dist/{claude-pair-runtime-BEUY5L6C.js → claude-pair-runtime-FOFN74JS.js} +2 -2
- package/dist/lib/manager-worker.js +10 -10
- package/dist/mcp/origami.js +67 -0
- package/dist/{persistent-session-HWVIMZAY.js → persistent-session-52DPSJGK.js} +2 -2
- package/dist/{responsiveness-probe-WFO4SRHV.js → responsiveness-probe-KXWV4FXD.js} +10 -3
- package/dist/responsiveness-probe-KXWV4FXD.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-E6L7SSE7.js.map +0 -1
- package/dist/responsiveness-probe-WFO4SRHV.js.map +0 -1
- /package/dist/{chunk-HRER2SCW.js.map → chunk-D5BJLFH7.js.map} +0 -0
- /package/dist/{claude-pair-runtime-BEUY5L6C.js.map → claude-pair-runtime-FOFN74JS.js.map} +0 -0
- /package/dist/{persistent-session-HWVIMZAY.js.map → persistent-session-52DPSJGK.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
success,
|
|
39
39
|
table,
|
|
40
40
|
warn
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-D5BJLFH7.js";
|
|
42
42
|
import {
|
|
43
43
|
CHANNEL_REGISTRY,
|
|
44
44
|
DEFAULT_FRAMEWORK,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
renderTemplate,
|
|
68
68
|
resolveChannels,
|
|
69
69
|
serializeManifestForSlackCli
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-5WQATS6J.js";
|
|
71
71
|
import "../chunk-XWVM4KPK.js";
|
|
72
72
|
|
|
73
73
|
// src/bin/agt.ts
|
|
@@ -4826,7 +4826,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4826
4826
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4827
4827
|
import chalk18 from "chalk";
|
|
4828
4828
|
import ora16 from "ora";
|
|
4829
|
-
var cliVersion = true ? "0.28.
|
|
4829
|
+
var cliVersion = true ? "0.28.302" : "dev";
|
|
4830
4830
|
async function fetchLatestVersion() {
|
|
4831
4831
|
const host2 = getHost();
|
|
4832
4832
|
if (!host2) return null;
|
|
@@ -5843,7 +5843,7 @@ function handleError(err) {
|
|
|
5843
5843
|
}
|
|
5844
5844
|
|
|
5845
5845
|
// src/bin/agt.ts
|
|
5846
|
-
var cliVersion2 = true ? "0.28.
|
|
5846
|
+
var cliVersion2 = true ? "0.28.302" : "dev";
|
|
5847
5847
|
var program = new Command();
|
|
5848
5848
|
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");
|
|
5849
5849
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -7228,6 +7228,73 @@ var gdriveCommentsTriggerAdapter = {
|
|
|
7228
7228
|
};
|
|
7229
7229
|
registerTriggerSource(gdriveCommentsTriggerAdapter);
|
|
7230
7230
|
|
|
7231
|
+
// ../../packages/core/dist/triggers/adapters/video-render.js
|
|
7232
|
+
var VIDEO_RENDER_TRIGGER_PROVIDER = "video_render";
|
|
7233
|
+
function isFetcher(v) {
|
|
7234
|
+
return !!v && typeof v.fetchRenderState === "function";
|
|
7235
|
+
}
|
|
7236
|
+
function sanitizeCode(code) {
|
|
7237
|
+
if (!code)
|
|
7238
|
+
return null;
|
|
7239
|
+
const cleaned = code.trim().toLowerCase().replace(/[^a-z0-9_]/g, "").slice(0, 64);
|
|
7240
|
+
return cleaned || null;
|
|
7241
|
+
}
|
|
7242
|
+
function collectInstruction(config) {
|
|
7243
|
+
return `Collect it now: call generate_video with ONLY {"request_id": "${config.resume_handle}"} (do not resend the prompt - resubmitting starts a new billed render). The tool returns a short-lived download URL; download it to a file under your project directory and deliver it with your channel's upload_file tool.`;
|
|
7244
|
+
}
|
|
7245
|
+
async function poll(ctx, trigger) {
|
|
7246
|
+
const config = trigger.config;
|
|
7247
|
+
if (!config.request_id || !config.resume_handle) {
|
|
7248
|
+
throw new Error("video_render trigger config requires request_id and resume_handle");
|
|
7249
|
+
}
|
|
7250
|
+
if (!isFetcher(ctx.credentials)) {
|
|
7251
|
+
throw new Error("video_render poll requires a VideoRenderStatusFetcher via ctx.credentials");
|
|
7252
|
+
}
|
|
7253
|
+
const state = await ctx.credentials.fetchRenderState(config.request_id);
|
|
7254
|
+
if (state.state === "pending") {
|
|
7255
|
+
return { events: [], cursor: ctx.cursor };
|
|
7256
|
+
}
|
|
7257
|
+
const occurredAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
7258
|
+
const base = {
|
|
7259
|
+
provider: VIDEO_RENDER_TRIGGER_PROVIDER,
|
|
7260
|
+
occurredAt,
|
|
7261
|
+
// One event per render, ever - immutable identity, dedup-enforced.
|
|
7262
|
+
dedupKey: `vr:${config.request_id}`,
|
|
7263
|
+
// Platform-originated content only (see module header) - renders the clean
|
|
7264
|
+
// un-fenced internal header instead of the external-content fence.
|
|
7265
|
+
sourceTrust: "internal",
|
|
7266
|
+
meaningful: true
|
|
7267
|
+
};
|
|
7268
|
+
let event;
|
|
7269
|
+
if (state.state === "done") {
|
|
7270
|
+
event = {
|
|
7271
|
+
...base,
|
|
7272
|
+
title: "Video render complete",
|
|
7273
|
+
body: `Your video render has finished. ${collectInstruction(config)}`
|
|
7274
|
+
};
|
|
7275
|
+
} else if (state.state === "failed") {
|
|
7276
|
+
const code = sanitizeCode(state.code);
|
|
7277
|
+
event = {
|
|
7278
|
+
...base,
|
|
7279
|
+
title: "Video render failed",
|
|
7280
|
+
body: `Your video render failed provider-side${code ? ` (code: ${code})` : ""}. It was not delivered and cannot be collected. If the video is still needed, submit a new generate_video request (a fresh prompt - the old request_id is dead).`
|
|
7281
|
+
};
|
|
7282
|
+
} else {
|
|
7283
|
+
event = {
|
|
7284
|
+
...base,
|
|
7285
|
+
title: "Video render expired",
|
|
7286
|
+
body: `Your video render expired before it was collected (the provider no longer holds the output). If the video is still needed, submit a new generate_video request (a fresh prompt - the old request_id is dead).`
|
|
7287
|
+
};
|
|
7288
|
+
}
|
|
7289
|
+
return { events: [event], cursor: ctx.cursor, complete: true };
|
|
7290
|
+
}
|
|
7291
|
+
var videoRenderTriggerAdapter = {
|
|
7292
|
+
provider: VIDEO_RENDER_TRIGGER_PROVIDER,
|
|
7293
|
+
kind: "poll",
|
|
7294
|
+
poll
|
|
7295
|
+
};
|
|
7296
|
+
registerTriggerSource(videoRenderTriggerAdapter);
|
|
7297
|
+
|
|
7231
7298
|
// ../../packages/core/dist/feature-flags/registry.js
|
|
7232
7299
|
var FLAG_REGISTRY = [
|
|
7233
7300
|
{
|
|
@@ -9701,4 +9768,4 @@ export {
|
|
|
9701
9768
|
stopAllSessionsAndWait,
|
|
9702
9769
|
getProjectDir
|
|
9703
9770
|
};
|
|
9704
|
-
//# sourceMappingURL=chunk-
|
|
9771
|
+
//# sourceMappingURL=chunk-5WQATS6J.js.map
|