@amaster.ai/employee-runtime-connector 0.1.1-beta.335 → 0.1.1-beta.337
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.
|
@@ -8083,6 +8083,13 @@ var goalCriterionProgressReadModelSchema = external_exports.object({
|
|
|
8083
8083
|
status: external_exports.enum(GOAL_CRITERION_PROGRESS_STATUSES),
|
|
8084
8084
|
statusLabel: external_exports.string().min(1),
|
|
8085
8085
|
decisionKind: external_exports.enum(GOAL_CRITERION_DECISION_KINDS).nullable(),
|
|
8086
|
+
decisionContext: external_exports.discriminatedUnion("kind", [
|
|
8087
|
+
external_exports.object({
|
|
8088
|
+
kind: external_exports.literal("legacy_outcome_attribution"),
|
|
8089
|
+
sourceIssueId: external_exports.string().uuid(),
|
|
8090
|
+
sourceIssueTitle: external_exports.string().min(1)
|
|
8091
|
+
}).strict()
|
|
8092
|
+
]).nullable().optional(),
|
|
8086
8093
|
question: external_exports.string().min(1).nullable(),
|
|
8087
8094
|
factInput: external_exports.object({
|
|
8088
8095
|
kind: external_exports.enum(["boolean", "count", "amount", "ratio"]),
|
|
@@ -10888,12 +10895,28 @@ var customerFeedbackDiscoveryConfigurationV1Schema = external_exports.object({
|
|
|
10888
10895
|
maxModelTokens: positiveBoundedInteger(1e7),
|
|
10889
10896
|
stopAfterQualifiedSignals: positiveBoundedInteger(100)
|
|
10890
10897
|
}).strict();
|
|
10898
|
+
var openConnectorDiscoverySourceSchema = external_exports.object({
|
|
10899
|
+
service: external_exports.string().trim().min(1).max(128),
|
|
10900
|
+
connectionName: external_exports.string().trim().min(1).max(256).nullable(),
|
|
10901
|
+
connectionKeyHash: sha256Schema5,
|
|
10902
|
+
actions: external_exports.array(external_exports.object({
|
|
10903
|
+
actionId: external_exports.string().trim().min(1).max(256),
|
|
10904
|
+
guideHash: sha256Schema5,
|
|
10905
|
+
inputSchema: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
10906
|
+
}).strict()).min(1).max(20)
|
|
10907
|
+
}).strict();
|
|
10908
|
+
var discoveryReadGrantsSchema = external_exports.array(external_exports.object({
|
|
10909
|
+
service: external_exports.string().trim().min(1).max(128),
|
|
10910
|
+
actionId: external_exports.string().trim().min(1).max(256),
|
|
10911
|
+
guideHash: sha256Schema5
|
|
10912
|
+
}).strict()).max(100);
|
|
10891
10913
|
var discoveryResearchSourceBindingV1Schema = external_exports.object({
|
|
10892
10914
|
version: external_exports.literal(1),
|
|
10893
10915
|
connectionId: external_exports.string().uuid(),
|
|
10894
10916
|
providerKey: external_exports.string().trim().min(1).max(160),
|
|
10895
10917
|
objectType: external_exports.string().trim().min(1).max(160).regex(/^[a-z0-9][a-z0-9._-]*$/),
|
|
10896
|
-
queryScopeHash: sha256Schema5
|
|
10918
|
+
queryScopeHash: sha256Schema5,
|
|
10919
|
+
openConnector: openConnectorDiscoverySourceSchema.optional()
|
|
10897
10920
|
}).strict();
|
|
10898
10921
|
var discoveryResearchBriefV1Schema = external_exports.object({
|
|
10899
10922
|
version: external_exports.literal(1),
|
|
@@ -10934,10 +10957,15 @@ var frozenDiscoveryResearchV1Schema = external_exports.object({
|
|
|
10934
10957
|
var discoveryProviderEvidenceReceiptV1Schema = external_exports.object({
|
|
10935
10958
|
version: external_exports.literal(1),
|
|
10936
10959
|
sourceBindingRevision: sha256Schema5,
|
|
10960
|
+
providerReceipt: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
10937
10961
|
evidence: external_exports.array(external_exports.object({
|
|
10938
10962
|
externalObjectId: external_exports.string().uuid(),
|
|
10939
10963
|
sourceRevision: external_exports.string().trim().min(1).max(500),
|
|
10940
|
-
contentHash: sha256Schema5.optional()
|
|
10964
|
+
contentHash: sha256Schema5.optional(),
|
|
10965
|
+
snapshot: external_exports.object({
|
|
10966
|
+
displayTitle: external_exports.string().nullable(),
|
|
10967
|
+
data: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
10968
|
+
}).strict().optional()
|
|
10941
10969
|
}).strict()).max(1e4),
|
|
10942
10970
|
coverage: external_exports.object({
|
|
10943
10971
|
contract: external_exports.enum(["open_research", "stable_cursor", "overlap_window"]),
|
|
@@ -19661,6 +19689,80 @@ var completeCompanyCreationReviewSchema = external_exports.object({
|
|
|
19661
19689
|
)
|
|
19662
19690
|
}).strict();
|
|
19663
19691
|
|
|
19692
|
+
// ../shared/src/mirrorx-issue-detail.ts
|
|
19693
|
+
function sameInstant(left, right) {
|
|
19694
|
+
return new Date(left).getTime() === new Date(right).getTime();
|
|
19695
|
+
}
|
|
19696
|
+
var mirrorXIssueDetailResponseSchema = external_exports.object({
|
|
19697
|
+
id: external_exports.string().uuid(),
|
|
19698
|
+
updatedAt: external_exports.string().datetime(),
|
|
19699
|
+
executionEpoch: external_exports.number().int().positive(),
|
|
19700
|
+
progressAssessment: issueProgressAssessmentSchema,
|
|
19701
|
+
handlingProjection: mirrorXIssueHandlingProjectionSchema,
|
|
19702
|
+
conversationPolicy: mirrorXIssueConversationPolicySchema,
|
|
19703
|
+
monitorCheckNowCapability: mirrorXIssueOperationCapabilitySchema,
|
|
19704
|
+
taskRequirements: issueTaskRequirementsSchema
|
|
19705
|
+
}).passthrough().superRefine((value, ctx) => {
|
|
19706
|
+
if (value.progressAssessment.issueId !== value.id) {
|
|
19707
|
+
ctx.addIssue({
|
|
19708
|
+
code: external_exports.ZodIssueCode.custom,
|
|
19709
|
+
message: "Progress assessment must belong to the response Issue",
|
|
19710
|
+
path: ["progressAssessment", "issueId"]
|
|
19711
|
+
});
|
|
19712
|
+
}
|
|
19713
|
+
if (value.handlingProjection.issueId !== value.id) {
|
|
19714
|
+
ctx.addIssue({
|
|
19715
|
+
code: external_exports.ZodIssueCode.custom,
|
|
19716
|
+
message: "Handling projection must belong to the response Issue",
|
|
19717
|
+
path: ["handlingProjection", "issueId"]
|
|
19718
|
+
});
|
|
19719
|
+
}
|
|
19720
|
+
if (value.conversationPolicy.issueId !== value.id) {
|
|
19721
|
+
ctx.addIssue({
|
|
19722
|
+
code: external_exports.ZodIssueCode.custom,
|
|
19723
|
+
message: "Conversation policy must belong to the response Issue",
|
|
19724
|
+
path: ["conversationPolicy", "issueId"]
|
|
19725
|
+
});
|
|
19726
|
+
}
|
|
19727
|
+
if (!sameInstant(value.updatedAt, value.handlingProjection.basis.issueUpdatedAt)) {
|
|
19728
|
+
ctx.addIssue({
|
|
19729
|
+
code: external_exports.ZodIssueCode.custom,
|
|
19730
|
+
message: "Handling projection basis must match the response snapshot",
|
|
19731
|
+
path: ["handlingProjection", "basis", "issueUpdatedAt"]
|
|
19732
|
+
});
|
|
19733
|
+
}
|
|
19734
|
+
if (value.executionEpoch !== value.handlingProjection.basis.executionEpoch) {
|
|
19735
|
+
ctx.addIssue({
|
|
19736
|
+
code: external_exports.ZodIssueCode.custom,
|
|
19737
|
+
message: "Handling projection epoch must match the response snapshot",
|
|
19738
|
+
path: ["handlingProjection", "basis", "executionEpoch"]
|
|
19739
|
+
});
|
|
19740
|
+
}
|
|
19741
|
+
const conversationBasis = value.conversationPolicy.basis;
|
|
19742
|
+
const handlingBasis = value.handlingProjection.basis;
|
|
19743
|
+
if (!sameInstant(conversationBasis.issueUpdatedAt, handlingBasis.issueUpdatedAt)) {
|
|
19744
|
+
ctx.addIssue({
|
|
19745
|
+
code: external_exports.ZodIssueCode.custom,
|
|
19746
|
+
message: "Conversation policy must use the handling projection snapshot",
|
|
19747
|
+
path: ["conversationPolicy", "basis", "issueUpdatedAt"]
|
|
19748
|
+
});
|
|
19749
|
+
}
|
|
19750
|
+
if (conversationBasis.executionEpoch !== handlingBasis.executionEpoch) {
|
|
19751
|
+
ctx.addIssue({
|
|
19752
|
+
code: external_exports.ZodIssueCode.custom,
|
|
19753
|
+
message: "Conversation policy must use the handling projection epoch",
|
|
19754
|
+
path: ["conversationPolicy", "basis", "executionEpoch"]
|
|
19755
|
+
});
|
|
19756
|
+
}
|
|
19757
|
+
if (conversationBasis.authorizationRevision !== handlingBasis.authorizationRevision) {
|
|
19758
|
+
ctx.addIssue({
|
|
19759
|
+
code: external_exports.ZodIssueCode.custom,
|
|
19760
|
+
message: "Conversation policy must use the handling projection authorization",
|
|
19761
|
+
path: ["conversationPolicy", "basis", "authorizationRevision"]
|
|
19762
|
+
});
|
|
19763
|
+
}
|
|
19764
|
+
});
|
|
19765
|
+
|
|
19664
19766
|
// ../shared/src/mirrorx-prerequisite-release.ts
|
|
19665
19767
|
var prerequisiteDeliveryReceiptSchema = external_exports.object({
|
|
19666
19768
|
schemaVersion: external_exports.literal("prerequisite-delivery-v1"),
|
|
@@ -33509,7 +33611,7 @@ function assertRequiredTaskAttachmentMaterialized(input, materialized) {
|
|
|
33509
33611
|
}
|
|
33510
33612
|
|
|
33511
33613
|
// src/amaster-runtime-daemon.mjs
|
|
33512
|
-
var CONNECTOR_VERSION = "0.1.1-beta.
|
|
33614
|
+
var CONNECTOR_VERSION = "0.1.1-beta.337";
|
|
33513
33615
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
33514
33616
|
var daemonRequire = createRequire(import.meta.url);
|
|
33515
33617
|
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.337";
|
|
11
11
|
|
|
12
12
|
const CONFIG_KEY_MAP = new Map([
|
|
13
13
|
["server_url", "AMASTER_EMPLOYEE_SERVER_URL"],
|