@amaster.ai/employee-runtime-connector 0.1.1-beta.342 → 0.1.1-beta.344
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.
|
@@ -15567,6 +15567,8 @@ var COMPANY_SEARCH_SCOPES = ["all", "issues", "comments", "documents", "artifact
|
|
|
15567
15567
|
|
|
15568
15568
|
// ../shared/src/mirrorx-issue-handling.ts
|
|
15569
15569
|
var MIRRORX_ISSUE_HANDLING_SCHEMA_VERSION = "mirrorx_issue_handling/v1";
|
|
15570
|
+
var MIRRORX_ISSUE_HANDLING_LIST_SNAPSHOT_MODE = "complete_card";
|
|
15571
|
+
var MIRRORX_ISSUE_HANDLING_MAX_CANDIDATES = 1e3;
|
|
15570
15572
|
var mirrorXAuthorizationRevisionSchema = external_exports.string().regex(/^authz:v1:[a-f0-9]{64}$/);
|
|
15571
15573
|
var MIRRORX_ISSUE_OPERATION_CAPABILITY_REASON_CODES = [
|
|
15572
15574
|
"actor_not_authorized"
|
|
@@ -16060,6 +16062,103 @@ var mirrorXIssueHandlingProjectionSchema = external_exports.object({
|
|
|
16060
16062
|
}
|
|
16061
16063
|
}
|
|
16062
16064
|
});
|
|
16065
|
+
var mirrorXIssueHandlingListBucketCountsSchema = external_exports.record(
|
|
16066
|
+
mirrorXIssueHandlingListBucketSchema,
|
|
16067
|
+
external_exports.number().int().nonnegative()
|
|
16068
|
+
);
|
|
16069
|
+
var mirrorXIssueListDateSchema = external_exports.union([external_exports.date(), external_exports.string().datetime()]);
|
|
16070
|
+
var mirrorXIssueListObjectSchema = external_exports.record(external_exports.string(), external_exports.unknown());
|
|
16071
|
+
var mirrorXIssuePendingInteractionAttentionSchema = external_exports.object({
|
|
16072
|
+
kind: external_exports.literal("pending_interaction"),
|
|
16073
|
+
interactionId: external_exports.string().uuid(),
|
|
16074
|
+
interactionKind: external_exports.enum(ISSUE_THREAD_INTERACTION_KINDS),
|
|
16075
|
+
label: external_exports.string(),
|
|
16076
|
+
detail: external_exports.string().nullable(),
|
|
16077
|
+
createdAt: mirrorXIssueListDateSchema,
|
|
16078
|
+
updatedAt: mirrorXIssueListDateSchema.optional(),
|
|
16079
|
+
attentionEpoch: external_exports.string().optional(),
|
|
16080
|
+
owner: issueThreadInteractionAttentionOwnerSchema.nullable().optional(),
|
|
16081
|
+
purposeCode: external_exports.string().nullable().optional(),
|
|
16082
|
+
requirementRefs: external_exports.array(external_exports.string()).optional(),
|
|
16083
|
+
epochKey: external_exports.string().nullable().optional(),
|
|
16084
|
+
sourcePlanId: external_exports.string().nullable().optional(),
|
|
16085
|
+
sourceRunId: external_exports.string().nullable().optional(),
|
|
16086
|
+
sourceActionCallId: external_exports.string().nullable().optional(),
|
|
16087
|
+
target: external_exports.object({
|
|
16088
|
+
type: external_exports.literal("custom"),
|
|
16089
|
+
key: external_exports.string(),
|
|
16090
|
+
revisionId: external_exports.string().nullable(),
|
|
16091
|
+
revisionNumber: external_exports.number().int().nullable(),
|
|
16092
|
+
label: external_exports.string().nullable(),
|
|
16093
|
+
href: external_exports.string().nullable()
|
|
16094
|
+
}).strict().nullable().optional(),
|
|
16095
|
+
requestInputs: external_exports.object({
|
|
16096
|
+
requiredCount: external_exports.number().int().nonnegative(),
|
|
16097
|
+
receivedRequiredCount: external_exports.number().int().nonnegative(),
|
|
16098
|
+
unresolvedRequiredCount: external_exports.number().int().nonnegative(),
|
|
16099
|
+
items: external_exports.array(external_exports.object({
|
|
16100
|
+
id: external_exports.string(),
|
|
16101
|
+
label: external_exports.string(),
|
|
16102
|
+
required: external_exports.boolean(),
|
|
16103
|
+
status: external_exports.enum(["open", "satisfied", "waived_by_authorized_actor", "cancelled"]),
|
|
16104
|
+
owner: requestInputOwnerSchema,
|
|
16105
|
+
acceptedTypes: external_exports.array(external_exports.enum(REQUEST_INPUT_ACCEPTED_TYPES)),
|
|
16106
|
+
dueAt: external_exports.string().datetime({ offset: true }).nullable()
|
|
16107
|
+
}).strict())
|
|
16108
|
+
}).strict().nullable().optional(),
|
|
16109
|
+
staffing: external_exports.object({
|
|
16110
|
+
targetCapabilityCode: external_exports.string(),
|
|
16111
|
+
escalationTarget: staffingEscalationTargetSchema,
|
|
16112
|
+
allowedActions: external_exports.array(external_exports.enum(["accept", "reject"])),
|
|
16113
|
+
routingReasonCode: external_exports.string().nullable().optional()
|
|
16114
|
+
}).strict().nullable().optional()
|
|
16115
|
+
}).strict();
|
|
16116
|
+
var mirrorXIssueHandlingListCardSchema = external_exports.object({
|
|
16117
|
+
id: external_exports.string().uuid(),
|
|
16118
|
+
companyId: external_exports.string().uuid(),
|
|
16119
|
+
projectId: external_exports.string().uuid().nullable(),
|
|
16120
|
+
projectWorkspaceId: external_exports.string().uuid().nullable(),
|
|
16121
|
+
parentId: external_exports.string().uuid().nullable(),
|
|
16122
|
+
title: external_exports.string(),
|
|
16123
|
+
description: external_exports.string().nullable(),
|
|
16124
|
+
status: external_exports.enum(ISSUE_STATUSES),
|
|
16125
|
+
priority: external_exports.enum(ISSUE_PRIORITIES),
|
|
16126
|
+
assigneeAgentId: external_exports.string().uuid().nullable(),
|
|
16127
|
+
assigneeUserId: external_exports.string().nullable(),
|
|
16128
|
+
createdByAgentId: external_exports.string().uuid().nullable(),
|
|
16129
|
+
createdByUserId: external_exports.string().nullable(),
|
|
16130
|
+
issueNumber: external_exports.number().int().positive().nullable(),
|
|
16131
|
+
identifier: external_exports.string().nullable(),
|
|
16132
|
+
originKind: external_exports.string().optional(),
|
|
16133
|
+
originId: external_exports.string().nullable().optional(),
|
|
16134
|
+
executionWorkspaceId: external_exports.string().uuid().nullable(),
|
|
16135
|
+
routineStatus: external_exports.object({
|
|
16136
|
+
code: external_exports.enum([
|
|
16137
|
+
"routine_waiting_schedule",
|
|
16138
|
+
"routine_waiting_execution",
|
|
16139
|
+
"routine_paused",
|
|
16140
|
+
"routine_disabled",
|
|
16141
|
+
"routine_configuration_required",
|
|
16142
|
+
"routine_status_unavailable"
|
|
16143
|
+
]),
|
|
16144
|
+
routineId: external_exports.string().uuid().nullable(),
|
|
16145
|
+
nextRunAt: external_exports.string().datetime().nullable()
|
|
16146
|
+
}).strict().nullable(),
|
|
16147
|
+
labelIds: external_exports.array(external_exports.string().uuid()),
|
|
16148
|
+
labels: external_exports.array(mirrorXIssueListObjectSchema),
|
|
16149
|
+
productivityReview: mirrorXIssueListObjectSchema.nullable(),
|
|
16150
|
+
productivityReviewHistory: mirrorXIssueListObjectSchema.nullable(),
|
|
16151
|
+
executionSummary: mirrorXIssueListObjectSchema,
|
|
16152
|
+
blockerAttention: mirrorXIssueListObjectSchema.nullable(),
|
|
16153
|
+
pendingInteractionAttention: mirrorXIssuePendingInteractionAttentionSchema.nullable(),
|
|
16154
|
+
activeRecoveryAction: mirrorXIssueListObjectSchema.nullable(),
|
|
16155
|
+
successfulRunHandoff: mirrorXIssueListObjectSchema.nullable(),
|
|
16156
|
+
lastExternalCommentAt: mirrorXIssueListDateSchema.nullable(),
|
|
16157
|
+
lastActivityAt: mirrorXIssueListDateSchema.nullable(),
|
|
16158
|
+
isUnreadForMe: external_exports.boolean(),
|
|
16159
|
+
createdAt: mirrorXIssueListDateSchema,
|
|
16160
|
+
updatedAt: mirrorXIssueListDateSchema
|
|
16161
|
+
}).strict();
|
|
16063
16162
|
var mirrorXIssueHandlingListResponseSchema = external_exports.object({
|
|
16064
16163
|
schemaVersion: external_exports.literal(MIRRORX_ISSUE_HANDLING_SCHEMA_VERSION),
|
|
16065
16164
|
authorizationRevision: mirrorXAuthorizationRevisionSchema,
|
|
@@ -16070,8 +16169,34 @@ var mirrorXIssueHandlingListResponseSchema = external_exports.object({
|
|
|
16070
16169
|
total: external_exports.number().int().nonnegative(),
|
|
16071
16170
|
offset: external_exports.number().int().nonnegative(),
|
|
16072
16171
|
limit: external_exports.number().int().positive(),
|
|
16073
|
-
bucketCounts:
|
|
16172
|
+
bucketCounts: mirrorXIssueHandlingListBucketCountsSchema,
|
|
16173
|
+
snapshot: external_exports.never().optional()
|
|
16074
16174
|
}).strict();
|
|
16175
|
+
var mirrorXIssueHandlingCompleteListResponseSchema = external_exports.object({
|
|
16176
|
+
schemaVersion: external_exports.literal(MIRRORX_ISSUE_HANDLING_SCHEMA_VERSION),
|
|
16177
|
+
authorizationRevision: mirrorXAuthorizationRevisionSchema,
|
|
16178
|
+
items: external_exports.array(external_exports.object({
|
|
16179
|
+
issue: mirrorXIssueHandlingListCardSchema,
|
|
16180
|
+
handlingProjection: mirrorXIssueHandlingProjectionSchema
|
|
16181
|
+
}).strict()),
|
|
16182
|
+
total: external_exports.number().int().nonnegative(),
|
|
16183
|
+
offset: external_exports.literal(0),
|
|
16184
|
+
limit: external_exports.literal(MIRRORX_ISSUE_HANDLING_MAX_CANDIDATES),
|
|
16185
|
+
bucketCounts: mirrorXIssueHandlingListBucketCountsSchema,
|
|
16186
|
+
snapshot: external_exports.object({
|
|
16187
|
+
mode: external_exports.literal(MIRRORX_ISSUE_HANDLING_LIST_SNAPSHOT_MODE),
|
|
16188
|
+
completeness: external_exports.literal("complete"),
|
|
16189
|
+
candidateCount: external_exports.number().int().nonnegative()
|
|
16190
|
+
}).strict()
|
|
16191
|
+
}).strict().superRefine((value, ctx) => {
|
|
16192
|
+
if (value.total !== value.items.length || value.snapshot.candidateCount !== value.items.length) {
|
|
16193
|
+
ctx.addIssue({
|
|
16194
|
+
code: external_exports.ZodIssueCode.custom,
|
|
16195
|
+
message: "Complete handling snapshots must contain every counted candidate",
|
|
16196
|
+
path: ["snapshot", "candidateCount"]
|
|
16197
|
+
});
|
|
16198
|
+
}
|
|
16199
|
+
});
|
|
16075
16200
|
|
|
16076
16201
|
// ../shared/src/types/inbox-action-items.ts
|
|
16077
16202
|
var INBOX_ACTION_ITEMS_SCHEMA_VERSION = "mirrorx_inbox_action_items/v2";
|
|
@@ -33612,7 +33737,7 @@ function assertRequiredTaskAttachmentMaterialized(input, materialized) {
|
|
|
33612
33737
|
}
|
|
33613
33738
|
|
|
33614
33739
|
// src/amaster-runtime-daemon.mjs
|
|
33615
|
-
var CONNECTOR_VERSION = "0.1.1-beta.
|
|
33740
|
+
var CONNECTOR_VERSION = "0.1.1-beta.344";
|
|
33616
33741
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
33617
33742
|
var daemonRequire = createRequire(import.meta.url);
|
|
33618
33743
|
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.344";
|
|
11
11
|
|
|
12
12
|
const CONFIG_KEY_MAP = new Map([
|
|
13
13
|
["server_url", "AMASTER_EMPLOYEE_SERVER_URL"],
|