@kynver-app/runtime 0.1.102 → 0.1.103
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/cli.js +15 -5
- package/dist/cli.js.map +3 -3
- package/dist/index.js +15 -5
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6966,6 +6966,11 @@ function readAdmissionExhaustion(result) {
|
|
|
6966
6966
|
if (!raw || typeof raw !== "object") return null;
|
|
6967
6967
|
return raw;
|
|
6968
6968
|
}
|
|
6969
|
+
function readDispatchSkipDrain(result) {
|
|
6970
|
+
const raw = result.dispatchSkipDrain;
|
|
6971
|
+
if (!raw || typeof raw !== "object") return null;
|
|
6972
|
+
return raw;
|
|
6973
|
+
}
|
|
6969
6974
|
function readHarnessWorkerContext(decision) {
|
|
6970
6975
|
const raw = decision.harnessWorkerContext;
|
|
6971
6976
|
if (!raw || typeof raw !== "object") return null;
|
|
@@ -7129,6 +7134,7 @@ async function dispatchRun(args) {
|
|
|
7129
7134
|
const result = first.result;
|
|
7130
7135
|
if (dryRun) {
|
|
7131
7136
|
const admissionExhaustion2 = readAdmissionExhaustion(result);
|
|
7137
|
+
const dispatchSkipDrain2 = readDispatchSkipDrain(result);
|
|
7132
7138
|
const summary2 = {
|
|
7133
7139
|
runId: run.id,
|
|
7134
7140
|
agentOsId,
|
|
@@ -7147,7 +7153,8 @@ async function dispatchRun(args) {
|
|
|
7147
7153
|
pagesScanned: result.pagesScanned ?? null,
|
|
7148
7154
|
candidatesExhausted: result.candidatesExhausted ?? null,
|
|
7149
7155
|
capacityIdle: admissionExhaustion2?.capacityIdle === true,
|
|
7150
|
-
admissionExhaustion: admissionExhaustion2
|
|
7156
|
+
admissionExhaustion: admissionExhaustion2,
|
|
7157
|
+
dispatchSkipDrain: dispatchSkipDrain2
|
|
7151
7158
|
};
|
|
7152
7159
|
if (pipeline) return { ok: true, ...summary2 };
|
|
7153
7160
|
console.log(JSON.stringify(summary2, null, 2));
|
|
@@ -7337,13 +7344,15 @@ async function dispatchRun(args) {
|
|
|
7337
7344
|
}
|
|
7338
7345
|
const startedCount = outcomes.filter((o) => o.started).length;
|
|
7339
7346
|
const admissionExhaustion = readAdmissionExhaustion(result);
|
|
7340
|
-
const
|
|
7347
|
+
const dispatchSkipDrain = readDispatchSkipDrain(result);
|
|
7348
|
+
const capacityIdle = startedCount === 0 && (admissionExhaustion?.capacityIdle === true || Number(result.resourceGate?.slotsAvailable) > 0);
|
|
7341
7349
|
if (capacityIdle && admissionExhaustion?.summary) {
|
|
7342
7350
|
const retryCeiling = admissionExhaustion.skipReasonCounts?.retry_ceiling_exceeded ?? 0;
|
|
7343
|
-
const recovery = admissionExhaustion.overAttemptIdleRecovery;
|
|
7351
|
+
const recovery = result.overAttemptIdleRecovery ?? admissionExhaustion.overAttemptIdleRecovery;
|
|
7344
7352
|
const recoveryNote = recovery?.attempted === true ? `; over_attempt_recovery minted=${recovery.minted ?? 0} started=${recovery.started ?? 0}` : retryCeiling > 0 ? "; over_attempt_recovery not attempted" : "";
|
|
7353
|
+
const drainNote = dispatchSkipDrain ? `; dispatch_skip_drain scanned=${dispatchSkipDrain.scanned ?? 0} advanced=${dispatchSkipDrain.advanced ?? 0}` : "";
|
|
7345
7354
|
console.error(
|
|
7346
|
-
`[dispatch] ${admissionExhaustion.summary}${retryCeiling > 0 ? `; retry_ceiling_exceeded=${retryCeiling}` : ""}${recoveryNote}`
|
|
7355
|
+
`[dispatch] ${admissionExhaustion.summary}${retryCeiling > 0 ? `; retry_ceiling_exceeded=${retryCeiling}` : ""}${recoveryNote}${drainNote}`
|
|
7347
7356
|
);
|
|
7348
7357
|
}
|
|
7349
7358
|
const summary = {
|
|
@@ -7354,6 +7363,7 @@ async function dispatchRun(args) {
|
|
|
7354
7363
|
startedCount,
|
|
7355
7364
|
capacityIdle,
|
|
7356
7365
|
admissionExhaustion,
|
|
7366
|
+
dispatchSkipDrain,
|
|
7357
7367
|
outcomes,
|
|
7358
7368
|
skipped: skipped.map((d) => ({
|
|
7359
7369
|
taskId: d.task.id,
|
|
@@ -14037,7 +14047,7 @@ async function runLandingMaintainerLaneTick(args) {
|
|
|
14037
14047
|
const agentOsId = String(required(String(args.agentOsId || ""), "--agent-os-id"));
|
|
14038
14048
|
const repoSlug = String(args.repo || LANDING_MAINTAINER_LANE_SPEC.defaultRepo).trim();
|
|
14039
14049
|
const fleet = args.fleet === true || args.fleet === "true";
|
|
14040
|
-
const execute = args.execute
|
|
14050
|
+
const execute = args.execute === true || args.execute === "true";
|
|
14041
14051
|
const runId = args.run ? String(args.run) : void 0;
|
|
14042
14052
|
const resourceGate = observeRunnerResourceGate({
|
|
14043
14053
|
runId: runId ?? "fleet-lane-tick"
|