@amaster.ai/employee-runtime-connector 0.1.1-beta.357 → 0.1.1-beta.358
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.
|
@@ -11179,6 +11179,41 @@ var createIssueLabelSchema = external_exports.object({
|
|
|
11179
11179
|
name: external_exports.string().trim().min(1).max(48),
|
|
11180
11180
|
color: external_exports.string().regex(/^#(?:[0-9a-fA-F]{6})$/, "Color must be a 6-digit hex value")
|
|
11181
11181
|
});
|
|
11182
|
+
var executionStageDecisionTargetSchema = external_exports.object({
|
|
11183
|
+
executionEpoch: external_exports.number().int().nonnegative(),
|
|
11184
|
+
stageId: external_exports.string().trim().min(1).max(160),
|
|
11185
|
+
stageType: external_exports.enum(["review", "approval"]),
|
|
11186
|
+
participant: external_exports.discriminatedUnion("type", [
|
|
11187
|
+
external_exports.object({
|
|
11188
|
+
type: external_exports.literal("user"),
|
|
11189
|
+
userId: external_exports.string().trim().min(1)
|
|
11190
|
+
}).strict(),
|
|
11191
|
+
external_exports.object({
|
|
11192
|
+
type: external_exports.literal("agent"),
|
|
11193
|
+
agentId: external_exports.string().uuid()
|
|
11194
|
+
}).strict()
|
|
11195
|
+
]),
|
|
11196
|
+
expectedLastDecisionId: external_exports.string().uuid().nullable(),
|
|
11197
|
+
guardRevision: external_exports.string().regex(/^stage-decision:v1:[0-9a-f]{64}$/)
|
|
11198
|
+
}).strict();
|
|
11199
|
+
var executionStageDecisionCommandObjectSchema = external_exports.object({
|
|
11200
|
+
target: executionStageDecisionTargetSchema,
|
|
11201
|
+
outcome: external_exports.enum(["approved", "changes_requested"]),
|
|
11202
|
+
reviewEvidence: issueExecutionReviewEvidenceSchema.optional()
|
|
11203
|
+
}).strict();
|
|
11204
|
+
function validateExecutionStageDecisionEvidence(value, ctx) {
|
|
11205
|
+
if (value.target.stageType === "approval" && value.reviewEvidence) {
|
|
11206
|
+
ctx.addIssue({
|
|
11207
|
+
code: external_exports.ZodIssueCode.custom,
|
|
11208
|
+
message: "Approval stages do not accept review evidence",
|
|
11209
|
+
path: ["reviewEvidence"]
|
|
11210
|
+
});
|
|
11211
|
+
}
|
|
11212
|
+
}
|
|
11213
|
+
var executionStageDecisionCommandSchema = executionStageDecisionCommandObjectSchema.superRefine(validateExecutionStageDecisionEvidence);
|
|
11214
|
+
var executionStageDecisionRequestSchema = executionStageDecisionCommandObjectSchema.extend({
|
|
11215
|
+
comment: multilineTextSchema.pipe(external_exports.string().min(1))
|
|
11216
|
+
}).strict().superRefine(validateExecutionStageDecisionEvidence);
|
|
11182
11217
|
var updateIssueSchema = createIssueBaseSchema.omit({
|
|
11183
11218
|
creationProfile: true,
|
|
11184
11219
|
taskIntent: true,
|
|
@@ -11196,6 +11231,7 @@ var updateIssueSchema = createIssueBaseSchema.omit({
|
|
|
11196
11231
|
comment: multilineTextSchema.pipe(external_exports.string().min(1)).optional(),
|
|
11197
11232
|
reviewRequest: issueReviewRequestSchema.optional().nullable(),
|
|
11198
11233
|
reviewEvidence: issueExecutionReviewEvidenceSchema.optional(),
|
|
11234
|
+
executionDecision: executionStageDecisionCommandSchema.optional(),
|
|
11199
11235
|
reopen: external_exports.boolean().optional(),
|
|
11200
11236
|
resume: external_exports.boolean().optional(),
|
|
11201
11237
|
interrupt: external_exports.boolean().optional(),
|
|
@@ -11354,7 +11390,8 @@ var addIssueCommentSchema = external_exports.object({
|
|
|
11354
11390
|
reopen: external_exports.boolean().optional(),
|
|
11355
11391
|
resume: external_exports.boolean().optional(),
|
|
11356
11392
|
interrupt: external_exports.boolean().optional(),
|
|
11357
|
-
continuation: external_exports.literal("successor_execution_epoch").optional()
|
|
11393
|
+
continuation: external_exports.literal("successor_execution_epoch").optional(),
|
|
11394
|
+
executionDecision: executionStageDecisionCommandSchema.optional()
|
|
11358
11395
|
}).superRefine((value, ctx) => {
|
|
11359
11396
|
if (value.continuation === "successor_execution_epoch" && (value.reopen === true || value.resume === true || value.interrupt === true)) {
|
|
11360
11397
|
ctx.addIssue({
|
|
@@ -14015,7 +14052,8 @@ var MIRRORX_ISSUE_HANDLING_LIST_BUCKETS = [
|
|
|
14015
14052
|
"result_disposition",
|
|
14016
14053
|
"execution_recovery",
|
|
14017
14054
|
"dependency_blocker",
|
|
14018
|
-
"external_wait"
|
|
14055
|
+
"external_wait",
|
|
14056
|
+
"execution_review"
|
|
14019
14057
|
];
|
|
14020
14058
|
var mirrorXIssueHandlingListBucketSchema = external_exports.enum(
|
|
14021
14059
|
MIRRORX_ISSUE_HANDLING_LIST_BUCKETS
|
|
@@ -14108,6 +14146,15 @@ var externalWaitTargetSchema = external_exports.object({
|
|
|
14108
14146
|
reviewAt: external_exports.string().datetime().nullable(),
|
|
14109
14147
|
issueUpdatedAt: external_exports.string().datetime()
|
|
14110
14148
|
}).strict();
|
|
14149
|
+
var executionStageTargetSchema = external_exports.object({
|
|
14150
|
+
surface: external_exports.literal("execution_stage"),
|
|
14151
|
+
executionEpoch: external_exports.number().int().nonnegative(),
|
|
14152
|
+
stageId: external_exports.string().trim().min(1).max(160),
|
|
14153
|
+
stageType: external_exports.enum(["review", "approval"]),
|
|
14154
|
+
participant: external_exports.object({ type: external_exports.literal("user"), userId: external_exports.string().trim().min(1) }).strict(),
|
|
14155
|
+
expectedLastDecisionId: external_exports.string().uuid().nullable(),
|
|
14156
|
+
guardRevision: external_exports.string().regex(/^stage-decision:v1:[0-9a-f]{64}$/)
|
|
14157
|
+
}).strict();
|
|
14111
14158
|
var mirrorXIssueHandlingTargetSchema = external_exports.discriminatedUnion("surface", [
|
|
14112
14159
|
interactionTargetSchema,
|
|
14113
14160
|
acceptanceTargetSchema,
|
|
@@ -14119,7 +14166,8 @@ var mirrorXIssueHandlingTargetSchema = external_exports.discriminatedUnion("surf
|
|
|
14119
14166
|
continuationTargetSchema,
|
|
14120
14167
|
runTargetSchema,
|
|
14121
14168
|
routineTargetSchema,
|
|
14122
|
-
externalWaitTargetSchema
|
|
14169
|
+
externalWaitTargetSchema,
|
|
14170
|
+
executionStageTargetSchema
|
|
14123
14171
|
]);
|
|
14124
14172
|
var MIRRORX_ISSUE_HANDLING_INTENT_KINDS = [
|
|
14125
14173
|
"respond",
|
|
@@ -14140,7 +14188,7 @@ var mirrorXIssueHandlingIntentSchema = external_exports.object({
|
|
|
14140
14188
|
}).strict().superRefine((value, ctx) => {
|
|
14141
14189
|
const allowedSurfacesByKind = {
|
|
14142
14190
|
respond: ["interaction", "external_wait"],
|
|
14143
|
-
decide: ["interaction", "acceptance", "approval"],
|
|
14191
|
+
decide: ["interaction", "acceptance", "approval", "execution_stage"],
|
|
14144
14192
|
assign_or_activate: ["task_governance"],
|
|
14145
14193
|
clear_dependency: ["dependency_issue"],
|
|
14146
14194
|
recover: ["recovery", "continuation"],
|
|
@@ -14198,6 +14246,7 @@ var mirrorXIssueCurrentProgressSchema = external_exports.discriminatedUnion("cod
|
|
|
14198
14246
|
progressBranch("completion_settling", "active", "business_completion_requested"),
|
|
14199
14247
|
progressBranch("automatic_finalizing", "active", "evidence_auto_reconciliation_pending"),
|
|
14200
14248
|
progressBranch("waiting_review", "waiting", "pending_review"),
|
|
14249
|
+
progressBranch("execution_review_pending", "needs_action", "pending_review"),
|
|
14201
14250
|
progressBranch("waiting_human_owner", "waiting", "human_owned"),
|
|
14202
14251
|
progressBranch("waiting_blocker", "waiting", "waiting_on_blocker"),
|
|
14203
14252
|
progressBranch("waiting_external_input", "needs_action", "external_input_required"),
|
|
@@ -14245,13 +14294,16 @@ var mirrorXIssueHandlingOperationSchema = external_exports.enum([
|
|
|
14245
14294
|
"force_done",
|
|
14246
14295
|
"accept",
|
|
14247
14296
|
"update_wait",
|
|
14248
|
-
"resolve_wait"
|
|
14297
|
+
"resolve_wait",
|
|
14298
|
+
"decide_stage"
|
|
14249
14299
|
]);
|
|
14250
14300
|
var mirrorXIssueHandlingOperationCapabilitySchema = external_exports.discriminatedUnion("state", [
|
|
14251
14301
|
external_exports.object({ state: external_exports.literal("allowed"), reasonCode: external_exports.null() }).strict(),
|
|
14252
14302
|
external_exports.object({ state: external_exports.literal("forbidden"), reasonCode: external_exports.literal("actor_not_authorized") }).strict(),
|
|
14253
14303
|
external_exports.object({ state: external_exports.literal("unavailable"), reasonCode: external_exports.enum([
|
|
14254
14304
|
"target_stale",
|
|
14305
|
+
"stage_target_stale",
|
|
14306
|
+
"stage_evidence_not_ready",
|
|
14255
14307
|
"assignee_missing",
|
|
14256
14308
|
"review_path_missing",
|
|
14257
14309
|
"company_paused",
|
|
@@ -14294,7 +14346,8 @@ var mirrorXIssueHandlingProjectionSchema = external_exports.object({
|
|
|
14294
14346
|
continuation: ["continue"],
|
|
14295
14347
|
task_governance: ["activate"],
|
|
14296
14348
|
acceptance: ["accept"],
|
|
14297
|
-
external_wait: ["update_wait", "resolve_wait"]
|
|
14349
|
+
external_wait: ["update_wait", "resolve_wait"],
|
|
14350
|
+
execution_stage: ["decide_stage"]
|
|
14298
14351
|
};
|
|
14299
14352
|
const allowed = value.primaryIntent ? surfaceOperations[value.primaryIntent.target.surface] ?? [] : [];
|
|
14300
14353
|
if (Object.keys(value.operations.capabilities).some((operation) => !allowed.includes(operation))) {
|
|
@@ -14330,6 +14383,7 @@ var mirrorXIssueHandlingProjectionSchema = external_exports.object({
|
|
|
14330
14383
|
"decide:interaction": ["confirmation_acceptance", "goal_acceptance_linkage"],
|
|
14331
14384
|
"decide:acceptance": ["confirmation_acceptance"],
|
|
14332
14385
|
"decide:approval": ["approval"],
|
|
14386
|
+
"decide:execution_stage": ["execution_review"],
|
|
14333
14387
|
"assign_or_activate:task_governance": ["task_governance"],
|
|
14334
14388
|
"resume:tree_control": ["task_governance"],
|
|
14335
14389
|
"clear_dependency:dependency_issue": ["dependency_blocker"],
|
|
@@ -34001,7 +34055,7 @@ function assertRequiredTaskAttachmentMaterialized(input, materialized) {
|
|
|
34001
34055
|
}
|
|
34002
34056
|
|
|
34003
34057
|
// src/amaster-runtime-daemon.mjs
|
|
34004
|
-
var CONNECTOR_VERSION = "0.1.1-beta.
|
|
34058
|
+
var CONNECTOR_VERSION = "0.1.1-beta.358";
|
|
34005
34059
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
34006
34060
|
var SUPPORTED_TASK_CONTEXT_VERSIONS = Object.freeze([TASK_CONTEXT_MANIFEST_VERSION, TASK_CONTEXT_V2]);
|
|
34007
34061
|
var daemonRequire = createRequire(import.meta.url);
|
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.358";
|
|
11
11
|
|
|
12
12
|
const CONFIG_KEY_MAP = new Map([
|
|
13
13
|
["server_url", "AMASTER_EMPLOYEE_SERVER_URL"],
|