@amaster.ai/employee-runtime-connector 0.1.1-beta.212 → 0.1.1-beta.214
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.
|
@@ -4940,6 +4940,25 @@ var companyColdStartReadModelBaseSchema = external_exports.object({
|
|
|
4940
4940
|
bootstrap: external_exports.object({
|
|
4941
4941
|
operatingImpact: external_exports.literal("non_blocking"),
|
|
4942
4942
|
state: companyColdStartBootstrapStateSchema,
|
|
4943
|
+
transition: external_exports.object({
|
|
4944
|
+
status: external_exports.enum(["pending", "completed", "interrupted"]),
|
|
4945
|
+
attemptCount: external_exports.number().int().nonnegative(),
|
|
4946
|
+
maxAttempts: external_exports.number().int().positive(),
|
|
4947
|
+
lastErrorCode: external_exports.string().trim().min(1).nullable(),
|
|
4948
|
+
lastAttemptAt: external_exports.string().datetime({ offset: true }).nullable(),
|
|
4949
|
+
nextAttemptAt: external_exports.string().datetime({ offset: true }).nullable()
|
|
4950
|
+
}).strict().nullable(),
|
|
4951
|
+
recovery: external_exports.object({
|
|
4952
|
+
canRetry: external_exports.boolean(),
|
|
4953
|
+
expectedAuthorityRevision: external_exports.number().int().positive(),
|
|
4954
|
+
reason: external_exports.enum([
|
|
4955
|
+
"not_required",
|
|
4956
|
+
"automatic_attempts_active",
|
|
4957
|
+
"automatic_attempts_exhausted",
|
|
4958
|
+
"execution_active",
|
|
4959
|
+
"workset_exists"
|
|
4960
|
+
])
|
|
4961
|
+
}).strict(),
|
|
4943
4962
|
workset: companyColdStartWorksetReadModelSchema.nullable(),
|
|
4944
4963
|
tasks: external_exports.array(companyColdStartTaskReadSchema),
|
|
4945
4964
|
factCoverage: companyColdStartFactCoverageReadSchema,
|
|
@@ -4960,6 +4979,13 @@ var companyColdStartReadModelSchema = companyColdStartReadModelBaseSchema.superR
|
|
|
4960
4979
|
(slot) => value.bootstrap.factCoverage[slot] === "missing"
|
|
4961
4980
|
);
|
|
4962
4981
|
const declaredMissing = new Set(value.bootstrap.missingFactSlots);
|
|
4982
|
+
if (value.bootstrap.recovery.canRetry && value.bootstrap.transition?.status !== "interrupted") {
|
|
4983
|
+
context.addIssue({
|
|
4984
|
+
code: external_exports.ZodIssueCode.custom,
|
|
4985
|
+
path: ["bootstrap", "recovery", "canRetry"],
|
|
4986
|
+
message: "cold_start_retry_requires_interrupted_transition"
|
|
4987
|
+
});
|
|
4988
|
+
}
|
|
4963
4989
|
if (missingFromCoverage.length !== declaredMissing.size || missingFromCoverage.some((slot) => !declaredMissing.has(slot))) {
|
|
4964
4990
|
context.addIssue({
|
|
4965
4991
|
code: external_exports.ZodIssueCode.custom,
|
|
@@ -7722,10 +7748,12 @@ var goalCriterionProgressReadModelSchema = external_exports.object({
|
|
|
7722
7748
|
var goalCriteriaProgressReadModelSchema = external_exports.object({
|
|
7723
7749
|
items: external_exports.array(goalCriterionProgressReadModelSchema)
|
|
7724
7750
|
}).strict();
|
|
7751
|
+
var DEFAULT_CONTINUE_PROGRESS_RATIONALE = "Board \u786E\u8BA4\u5F53\u524D\u4E1A\u52A1\u7ED3\u679C\u5C1A\u672A\u8FBE\u5230\uFF0C\u7EE7\u7EED\u63A8\u8FDB\u3002";
|
|
7725
7752
|
var boardDecideGoalCriterionBaseSchema = external_exports.object({
|
|
7726
7753
|
rationale: external_exports.string().trim().min(1).max(2e3),
|
|
7727
7754
|
expectedDecisionToken: sha256Schema5
|
|
7728
7755
|
}).strict();
|
|
7756
|
+
var continueProgressRationaleSchema = external_exports.string().trim().max(2e3).optional().transform((value) => value || DEFAULT_CONTINUE_PROGRESS_RATIONALE);
|
|
7729
7757
|
var correctedFactSourceSchema = external_exports.object({
|
|
7730
7758
|
kind: external_exports.literal("board_assertion"),
|
|
7731
7759
|
label: external_exports.string().trim().min(1).max(200)
|
|
@@ -7745,10 +7773,14 @@ var boardDecideGoalCriterionSchema = external_exports.discriminatedUnion("action
|
|
|
7745
7773
|
"keep_in_goal",
|
|
7746
7774
|
"mark_not_applicable",
|
|
7747
7775
|
"confirm_achieved",
|
|
7748
|
-
"continue_progress",
|
|
7749
7776
|
"correct_facts"
|
|
7750
7777
|
])
|
|
7751
7778
|
}).strict(),
|
|
7779
|
+
external_exports.object({
|
|
7780
|
+
action: external_exports.literal("continue_progress"),
|
|
7781
|
+
rationale: continueProgressRationaleSchema,
|
|
7782
|
+
expectedDecisionToken: sha256Schema5
|
|
7783
|
+
}).strict(),
|
|
7752
7784
|
boardDecideGoalCriterionBaseSchema.extend({
|
|
7753
7785
|
action: external_exports.literal("defer"),
|
|
7754
7786
|
remindAt: external_exports.string().datetime({ offset: true })
|
|
@@ -23084,7 +23116,7 @@ function runtimeTemplateCatalogSection(input) {
|
|
|
23084
23116
|
`- exact catalog path: \`${targetDir}\``,
|
|
23085
23117
|
`- file count: ${catalog.fileCount}`,
|
|
23086
23118
|
`- manifest SHA-256: ${manifestSha256}`,
|
|
23087
|
-
"This exact catalog is the run's only authorized read-only path outside the execution workspace for template matching. Copy
|
|
23119
|
+
"This exact catalog is the run's only authorized read-only path outside the execution workspace for template matching. Copy the selected source into a new workspace path, then make only that working copy owner-writable before editing it (for example: `cp -- <source> <target> && chmod u+w <target>`). Never chmod or edit the catalog source.",
|
|
23088
23120
|
"Use this exact path directly when listing or reading templates. Do not rely on `AMASTER_RUNTIME_TEMPLATES_ROOT` being inherited by out-of-process tools; the path above is the model-facing authority for this run.",
|
|
23089
23121
|
"If this exact path is missing or unreadable, report a runtime gap. Do not silently fall back to another directory or treat the failure as a verified template miss."
|
|
23090
23122
|
].join("\n")
|
|
@@ -25533,7 +25565,7 @@ function buildConfig(env = process.env, flags = {}) {
|
|
|
25533
25565
|
leaseSeconds: Number(flags.leaseSeconds ?? env.AMASTER_LEASE_SECONDS ?? 60),
|
|
25534
25566
|
executorTimeoutSeconds: parsePositiveInteger(
|
|
25535
25567
|
flags.executorTimeoutSeconds ?? env.AMASTER_EXECUTOR_TIMEOUT_SECONDS,
|
|
25536
|
-
|
|
25568
|
+
3600
|
|
25537
25569
|
),
|
|
25538
25570
|
executorMaxOutputBytes: parsePositiveInteger(
|
|
25539
25571
|
flags.executorMaxOutputBytes ?? env.AMASTER_EXECUTOR_MAX_OUTPUT_BYTES,
|
|
@@ -29045,7 +29077,7 @@ function assertRequiredTaskAttachmentMaterialized(input, materialized) {
|
|
|
29045
29077
|
}
|
|
29046
29078
|
|
|
29047
29079
|
// src/amaster-runtime-daemon.mjs
|
|
29048
|
-
var CONNECTOR_VERSION = "0.1.1-beta.
|
|
29080
|
+
var CONNECTOR_VERSION = "0.1.1-beta.214";
|
|
29049
29081
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
29050
29082
|
var daemonRequire = createRequire(import.meta.url);
|
|
29051
29083
|
var MAX_CHECKPOINT_BYTES = 20 * 1024 * 1024;
|
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.214";
|
|
11
11
|
|
|
12
12
|
const CONFIG_KEY_MAP = new Map([
|
|
13
13
|
["server_url", "AMASTER_EMPLOYEE_SERVER_URL"],
|