@rallycry/conveyor-agent 11.0.43 → 11.0.44
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/{chunk-XDIMT2ZM.js → chunk-42YPRICN.js} +4 -2
- package/dist/{chunk-FHYK2NIT.js → chunk-4H75HQVM.js} +1 -1
- package/dist/{chunk-4SX3FFVU.js → chunk-KMBMW3J3.js} +14 -2
- package/dist/cli.js +4 -4
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -2
- package/dist/{serve-boot-4KWT7W2I.js → serve-boot-TZZ45CJR.js} +2 -2
- package/package.json +1 -1
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
statWorkspacePath,
|
|
99
99
|
updateRemoteToken,
|
|
100
100
|
verifyGitCredential
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-KMBMW3J3.js";
|
|
102
102
|
import {
|
|
103
103
|
registerBootMilestoneSocketFallback,
|
|
104
104
|
reportBootMilestone
|
|
@@ -12368,6 +12368,7 @@ function handleRateLimitEvent(event, host) {
|
|
|
12368
12368
|
const resetsAt = epochSecondsToISO(rate_limit_info.resetsAt);
|
|
12369
12369
|
const utilization = rate_limit_info.utilization ?? (status === "rejected" ? 1 : void 0);
|
|
12370
12370
|
if (utilization !== void 0 && rate_limit_info.rateLimitType) {
|
|
12371
|
+
const codingAgentKeyId = process.env.CONVEYOR_CODING_AGENT_KEY_ID;
|
|
12371
12372
|
host.connection.sendEvent({
|
|
12372
12373
|
type: "rate_limit_update",
|
|
12373
12374
|
rateLimitType: rate_limit_info.rateLimitType,
|
|
@@ -12376,7 +12377,8 @@ function handleRateLimitEvent(event, host) {
|
|
|
12376
12377
|
// The server parses this into the key's sessionResetsAt / weeklyResetsAt;
|
|
12377
12378
|
// Codex reports a reset instant with every gauge, so allowed events carry
|
|
12378
12379
|
// it too, not only rejections.
|
|
12379
|
-
...resetsAt ? { resetsAt } : {}
|
|
12380
|
+
...resetsAt ? { resetsAt } : {},
|
|
12381
|
+
...codingAgentKeyId ? { codingAgentKeyId } : {}
|
|
12380
12382
|
});
|
|
12381
12383
|
}
|
|
12382
12384
|
if (status === "rejected") {
|
|
@@ -1267,12 +1267,20 @@ var AgentConnection = class _AgentConnection {
|
|
|
1267
1267
|
* limited and hand back the best remaining key's credential env (or a
|
|
1268
1268
|
* requeue confirmation when none is left). Awaited: the caller swaps
|
|
1269
1269
|
* credentials and resumes on success, so it needs the real response.
|
|
1270
|
+
*
|
|
1271
|
+
* Names the key this pod is running so the server stamps THAT key: the
|
|
1272
|
+
* session's own attribution can lag the credential a wake handed out, and
|
|
1273
|
+
* stamping it blindly is how one key's cap landed on another. Read from the
|
|
1274
|
+
* env at call time on purpose — `applyCycledKeyEnv` rewrites the var after a
|
|
1275
|
+
* successful cycle, so a second cap names the replacement.
|
|
1270
1276
|
*/
|
|
1271
1277
|
async cycleCodingAgentKey(rateLimitType, resetsAt) {
|
|
1278
|
+
const codingAgentKeyId = process.env.CONVEYOR_CODING_AGENT_KEY_ID;
|
|
1272
1279
|
return await this.call("cycleCodingAgentKey", {
|
|
1273
1280
|
sessionId: this.config.sessionId,
|
|
1274
1281
|
rateLimitType,
|
|
1275
|
-
...resetsAt ? { resetsAt } : {}
|
|
1282
|
+
...resetsAt ? { resetsAt } : {},
|
|
1283
|
+
...codingAgentKeyId ? { codingAgentKeyId } : {}
|
|
1276
1284
|
});
|
|
1277
1285
|
}
|
|
1278
1286
|
// ── Question handling ──────────────────────────────────────────────
|
|
@@ -2552,7 +2560,11 @@ var SubmitCodeReviewResultRequestSchema = z4.object({
|
|
|
2552
2560
|
var CycleCodingAgentKeyRequestSchema = z4.object({
|
|
2553
2561
|
sessionId: z4.string(),
|
|
2554
2562
|
rateLimitType: z4.string(),
|
|
2555
|
-
resetsAt: z4.string().optional()
|
|
2563
|
+
resetsAt: z4.string().optional(),
|
|
2564
|
+
// The key the pod is actually running (CONVEYOR_CODING_AGENT_KEY_ID). Wins
|
|
2565
|
+
// over the session's attribution stamp after owner validation; optional so
|
|
2566
|
+
// older agents keep the session fallback.
|
|
2567
|
+
codingAgentKeyId: z4.string().optional()
|
|
2556
2568
|
});
|
|
2557
2569
|
var PostChildChatMessageRequestSchema = z4.object({
|
|
2558
2570
|
sessionId: z4.string(),
|
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
WorkspaceCommandSupervisor,
|
|
8
8
|
startWorkspaceCommandsAfterConnect,
|
|
9
9
|
stopWorkspaceCommands
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4H75HQVM.js";
|
|
11
11
|
import {
|
|
12
12
|
PtyHarness,
|
|
13
13
|
SessionRunner,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
runUsageProbe,
|
|
28
28
|
sampleKeyUsage,
|
|
29
29
|
usesNativeUsageReporting
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-42YPRICN.js";
|
|
31
31
|
import "./chunk-37J5MMQT.js";
|
|
32
32
|
import {
|
|
33
33
|
inheritedEnv,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
fetchBootstrap,
|
|
48
48
|
loadAndAnnotateDiscoveredPorts,
|
|
49
49
|
loadConveyorConfig
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-KMBMW3J3.js";
|
|
51
51
|
import "./chunk-Q4FQOJ7D.js";
|
|
52
52
|
import "./chunk-W4LZ7R6Z.js";
|
|
53
53
|
import "./chunk-372R6E4C.js";
|
|
@@ -1470,7 +1470,7 @@ if (!RUNNER_MODES.includes(CONVEYOR_MODE)) {
|
|
|
1470
1470
|
process.exit(1);
|
|
1471
1471
|
}
|
|
1472
1472
|
if (CONVEYOR_MODE === "serving") {
|
|
1473
|
-
const { runServingSession } = await import("./serve-boot-
|
|
1473
|
+
const { runServingSession } = await import("./serve-boot-TZZ45CJR.js");
|
|
1474
1474
|
exitContext.runnerMode = "serving";
|
|
1475
1475
|
exitContext.sessionId = process.env.CONVEYOR_SESSION_ID ?? exitContext.sessionId;
|
|
1476
1476
|
const outcome = await runServingSession({
|
package/dist/index.d.ts
CHANGED
|
@@ -374,6 +374,12 @@ declare class AgentConnection {
|
|
|
374
374
|
* limited and hand back the best remaining key's credential env (or a
|
|
375
375
|
* requeue confirmation when none is left). Awaited: the caller swaps
|
|
376
376
|
* credentials and resumes on success, so it needs the real response.
|
|
377
|
+
*
|
|
378
|
+
* Names the key this pod is running so the server stamps THAT key: the
|
|
379
|
+
* session's own attribution can lag the credential a wake handed out, and
|
|
380
|
+
* stamping it blindly is how one key's cap landed on another. Read from the
|
|
381
|
+
* env at call time on purpose — `applyCycledKeyEnv` rewrites the var after a
|
|
382
|
+
* successful cycle, so a second cap names the replacement.
|
|
377
383
|
*/
|
|
378
384
|
cycleCodingAgentKey(rateLimitType: string, resetsAt?: string): Promise<{
|
|
379
385
|
cycled: true;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionRunner,
|
|
3
3
|
unshallowRepo
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-42YPRICN.js";
|
|
5
5
|
import "./chunk-37J5MMQT.js";
|
|
6
6
|
import "./chunk-EKTPDG3G.js";
|
|
7
7
|
import {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
stageAndCommit,
|
|
18
18
|
updateRemoteToken,
|
|
19
19
|
workspacePathExists
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KMBMW3J3.js";
|
|
21
21
|
import "./chunk-Q4FQOJ7D.js";
|
|
22
22
|
import {
|
|
23
23
|
runAuthTokenCommand,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkspaceCommandSupervisor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4H75HQVM.js";
|
|
4
4
|
import {
|
|
5
5
|
AgentConnection,
|
|
6
6
|
CodespacePortVisibility,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ensureOnTaskBranch,
|
|
13
13
|
loadAndAnnotateDiscoveredPorts,
|
|
14
14
|
loadConveyorConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KMBMW3J3.js";
|
|
16
16
|
import "./chunk-Q4FQOJ7D.js";
|
|
17
17
|
import "./chunk-W4LZ7R6Z.js";
|
|
18
18
|
import "./chunk-IA45XHOA.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rallycry/conveyor-agent",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.44",
|
|
4
4
|
"description": "Conveyor Agent Runner v10 - PTY harness for the task chat (SDK harness for audit/project-chat). Agent-as-User architecture with BaseService patterns. Works locally too.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|