@amaster.ai/employee-runtime-connector 0.1.1-beta.139 → 0.1.1-beta.140
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.
|
@@ -4083,6 +4083,7 @@ var source_acquisition_compatibility_default = {
|
|
|
4083
4083
|
"prompt_compilation",
|
|
4084
4084
|
"spawn",
|
|
4085
4085
|
"execution",
|
|
4086
|
+
"result_delivery",
|
|
4086
4087
|
"unknown",
|
|
4087
4088
|
"attestation",
|
|
4088
4089
|
"model_contract"
|
|
@@ -4094,6 +4095,9 @@ var source_acquisition_compatibility_default = {
|
|
|
4094
4095
|
"context_attestation",
|
|
4095
4096
|
"prompt_compilation"
|
|
4096
4097
|
],
|
|
4098
|
+
postActionPhases: [
|
|
4099
|
+
"result_delivery"
|
|
4100
|
+
],
|
|
4097
4101
|
retryClasses: [
|
|
4098
4102
|
"operator_repair",
|
|
4099
4103
|
"transient_infra",
|
|
@@ -4130,6 +4134,7 @@ var source_acquisition_compatibility_default = {
|
|
|
4130
4134
|
"prompt_compilation_failed",
|
|
4131
4135
|
"executor_spawn_failed",
|
|
4132
4136
|
"executor_failure_unknown",
|
|
4137
|
+
"result_delivery_failed",
|
|
4133
4138
|
"execution_phase_unknown",
|
|
4134
4139
|
"execution_receipt_missing",
|
|
4135
4140
|
"source_read_receipt_inconsistent",
|
|
@@ -4168,6 +4173,12 @@ var source_acquisition_compatibility_default = {
|
|
|
4168
4173
|
reasonCode: "prompt_compilation_failed",
|
|
4169
4174
|
retryClass: "unknown"
|
|
4170
4175
|
}
|
|
4176
|
+
},
|
|
4177
|
+
postActionDefaults: {
|
|
4178
|
+
result_delivery: {
|
|
4179
|
+
reasonCode: "result_delivery_failed",
|
|
4180
|
+
retryClass: "unknown"
|
|
4181
|
+
}
|
|
4171
4182
|
}
|
|
4172
4183
|
}
|
|
4173
4184
|
};
|
|
@@ -18407,6 +18418,8 @@ import { dirname as dirname3, join as join4 } from "node:path";
|
|
|
18407
18418
|
// src/amaster-runtime-daemon/source-acquisition-execution-failure.mjs
|
|
18408
18419
|
var classification = source_acquisition_compatibility_default.failureClassification;
|
|
18409
18420
|
var PRE_ACTION_PHASES = new Set(classification.preActionPhases);
|
|
18421
|
+
var POST_ACTION_PHASES = new Set(classification.postActionPhases);
|
|
18422
|
+
var WRAPPED_PHASES = /* @__PURE__ */ new Set([...PRE_ACTION_PHASES, ...POST_ACTION_PHASES]);
|
|
18410
18423
|
var FAILURE_CODES = new Set(classification.failureCodes);
|
|
18411
18424
|
var REASON_CODES = new Set(classification.reasonCodes);
|
|
18412
18425
|
var RETRY_CLASSES = new Set(classification.retryClasses);
|
|
@@ -18455,10 +18468,10 @@ function failureEnvelope({ failureCode: failureCode2, phase, reasonCode, retryCl
|
|
|
18455
18468
|
});
|
|
18456
18469
|
}
|
|
18457
18470
|
function classifySourceAcquisitionStageFailure(phase, error) {
|
|
18458
|
-
if (!
|
|
18471
|
+
if (!WRAPPED_PHASES.has(phase)) {
|
|
18459
18472
|
throw new Error("source_acquisition_failure_phase_invalid");
|
|
18460
18473
|
}
|
|
18461
|
-
const defaults = classification.preActionDefaults[phase];
|
|
18474
|
+
const defaults = PRE_ACTION_PHASES.has(phase) ? classification.preActionDefaults[phase] : classification.postActionDefaults[phase];
|
|
18462
18475
|
return failureEnvelope({
|
|
18463
18476
|
failureCode: exactAllowlistedFailureCode(error),
|
|
18464
18477
|
phase,
|
|
@@ -18486,7 +18499,7 @@ function stageFailure(phase, error) {
|
|
|
18486
18499
|
);
|
|
18487
18500
|
}
|
|
18488
18501
|
function runSourceAcquisitionStage(phase, operation) {
|
|
18489
|
-
if (!
|
|
18502
|
+
if (!WRAPPED_PHASES.has(phase)) {
|
|
18490
18503
|
throw new Error("source_acquisition_failure_phase_invalid");
|
|
18491
18504
|
}
|
|
18492
18505
|
try {
|
|
@@ -29362,7 +29375,7 @@ function createSourceCompletionStopPolicy({
|
|
|
29362
29375
|
}
|
|
29363
29376
|
|
|
29364
29377
|
// src/amaster-runtime-daemon.mjs
|
|
29365
|
-
var CONNECTOR_VERSION = "0.1.1-beta.
|
|
29378
|
+
var CONNECTOR_VERSION = "0.1.1-beta.140";
|
|
29366
29379
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
29367
29380
|
var SOURCE_ACQUISITION_CAPABILITY2 = source_acquisition_compatibility_default.profileVersion;
|
|
29368
29381
|
var daemonRequire = createRequire(import.meta.url);
|
|
@@ -34838,10 +34851,12 @@ async function executeRunCommand(config, command) {
|
|
|
34838
34851
|
}
|
|
34839
34852
|
});
|
|
34840
34853
|
} finally {
|
|
34841
|
-
await liveOutputLogger.flush();
|
|
34854
|
+
await runSourceStage("result_delivery", () => liveOutputLogger.flush());
|
|
34842
34855
|
}
|
|
34843
|
-
|
|
34844
|
-
|
|
34856
|
+
await runSourceStage("result_delivery", async () => {
|
|
34857
|
+
runtimeArtifacts.push(...await runtimeArtifactIngest.flush());
|
|
34858
|
+
runtimeDocuments.push(...await runtimeDocumentIngest.flush());
|
|
34859
|
+
});
|
|
34845
34860
|
execution.stdout = redactProtectedText(execution.stdout, protectedExecutorValues);
|
|
34846
34861
|
execution.stderr = redactProtectedText(execution.stderr, protectedExecutorValues);
|
|
34847
34862
|
patchActiveRunCommand(command, {
|
package/dist/amaster-runtime.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { homedir, hostname } from "node:os";
|
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import { BUILD_SUPPORTED_CAPABILITIES } from "./amaster-runtime-daemon/capability-registry.mjs";
|
|
9
9
|
|
|
10
|
-
const CONNECTOR_VERSION = "0.1.1-beta.
|
|
10
|
+
const CONNECTOR_VERSION = "0.1.1-beta.140";
|
|
11
11
|
|
|
12
12
|
const CONFIG_KEY_MAP = new Map([
|
|
13
13
|
["server_url", "AMASTER_EMPLOYEE_SERVER_URL"],
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"prompt_compilation",
|
|
30
30
|
"spawn",
|
|
31
31
|
"execution",
|
|
32
|
+
"result_delivery",
|
|
32
33
|
"unknown",
|
|
33
34
|
"attestation",
|
|
34
35
|
"model_contract"
|
|
@@ -40,6 +41,9 @@
|
|
|
40
41
|
"context_attestation",
|
|
41
42
|
"prompt_compilation"
|
|
42
43
|
],
|
|
44
|
+
"postActionPhases": [
|
|
45
|
+
"result_delivery"
|
|
46
|
+
],
|
|
43
47
|
"retryClasses": [
|
|
44
48
|
"operator_repair",
|
|
45
49
|
"transient_infra",
|
|
@@ -76,6 +80,7 @@
|
|
|
76
80
|
"prompt_compilation_failed",
|
|
77
81
|
"executor_spawn_failed",
|
|
78
82
|
"executor_failure_unknown",
|
|
83
|
+
"result_delivery_failed",
|
|
79
84
|
"execution_phase_unknown",
|
|
80
85
|
"execution_receipt_missing",
|
|
81
86
|
"source_read_receipt_inconsistent",
|
|
@@ -114,6 +119,12 @@
|
|
|
114
119
|
"reasonCode": "prompt_compilation_failed",
|
|
115
120
|
"retryClass": "unknown"
|
|
116
121
|
}
|
|
122
|
+
},
|
|
123
|
+
"postActionDefaults": {
|
|
124
|
+
"result_delivery": {
|
|
125
|
+
"reasonCode": "result_delivery_failed",
|
|
126
|
+
"retryClass": "unknown"
|
|
127
|
+
}
|
|
117
128
|
}
|
|
118
129
|
}
|
|
119
130
|
}
|