@amaster.ai/employee-runtime-connector 0.1.1-beta.215 → 0.1.1-beta.217
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.
- package/dist/amaster-runtime-daemon.mjs +129 -2
- package/dist/amaster-runtime.mjs +1 -1
- package/dist/templates/.mirrorx-preset-templates.json +27 -12
- package/dist/templates//345/272/224/344/273/230/350/264/246/346/254/276/350/264/246/351/276/204/345/210/206/346/236/220/350/241/250/346/250/241/346/235/277.xlsx +0 -0
- package/dist/templates//345/272/224/346/224/266/350/264/246/346/254/276/350/264/246/351/276/204/345/210/206/346/236/220/350/241/250/346/250/241/346/235/277.xlsx +0 -0
- package/dist/templates//346/234/210/345/272/246/347/250/216/345/212/241/347/224/263/346/212/245/345/207/206/345/244/207/346/270/205/345/215/225/346/250/241/346/235/277.xlsx +0 -0
- package/dist/templates//346/234/210/345/272/246/347/273/223/350/264/246/346/270/205/345/215/225/346/250/241/346/235/277.xlsx +0 -0
- package/dist/templates//346/257/217/345/221/250/347/216/260/351/207/221/345/277/253/347/205/247/346/250/241/346/235/277.xlsx +0 -0
- package/dist/templates//346/263/225/345/256/232/350/264/242/345/212/241/346/212/245/350/241/250/346/250/241/346/235/277.xlsx +0 -0
- package/dist/templates//347/247/221/347/233/256/344/275/231/351/242/235/350/241/250/344/270/216/350/257/225/347/256/227/345/271/263/350/241/241/346/250/241/346/235/277.xlsx +0 -0
- package/dist/templates//351/223/266/350/241/214/345/255/230/346/254/276/344/275/231/351/242/235/350/260/203/350/212/202/350/241/250/346/250/241/346/235/277.xlsx +0 -0
- package/dist/templates//351/242/204/347/256/227/344/270/216/345/256/236/351/231/205/345/267/256/345/274/202/345/210/206/346/236/220/346/250/241/346/235/277.xlsx +0 -0
- package/package.json +1 -1
|
@@ -12447,7 +12447,7 @@ var issueGraphLivenessAutoRecoveryRequestSchema = external_exports.object({
|
|
|
12447
12447
|
var upsertBudgetPolicySchema = external_exports.object({
|
|
12448
12448
|
scopeType: external_exports.enum(BUDGET_SCOPE_TYPES),
|
|
12449
12449
|
scopeId: external_exports.string().uuid(),
|
|
12450
|
-
metric: external_exports.enum(BUDGET_METRICS).optional().default("
|
|
12450
|
+
metric: external_exports.enum(BUDGET_METRICS).optional().default("credit_hundredths"),
|
|
12451
12451
|
windowKind: external_exports.enum(BUDGET_WINDOW_KINDS).optional().default("calendar_month_utc"),
|
|
12452
12452
|
amount: external_exports.number().int().nonnegative(),
|
|
12453
12453
|
warnPercent: external_exports.number().int().min(1).max(99).optional().default(80),
|
|
@@ -15696,6 +15696,132 @@ var mirrorXIssueOperationCapabilitySchema = external_exports.discriminatedUnion(
|
|
|
15696
15696
|
reasonCode: external_exports.enum(MIRRORX_ISSUE_OPERATION_CAPABILITY_REASON_CODES)
|
|
15697
15697
|
}).strict()
|
|
15698
15698
|
]);
|
|
15699
|
+
var MIRRORX_ISSUE_CONVERSATION_SCHEMA_VERSION = "mirrorx_issue_conversation/v1";
|
|
15700
|
+
var MIRRORX_ISSUE_CONVERSATION_CAPABILITY_REASON_CODES = [
|
|
15701
|
+
"actor_not_authorized",
|
|
15702
|
+
"operation_not_applicable",
|
|
15703
|
+
"active_run_unavailable",
|
|
15704
|
+
"workspace_closed",
|
|
15705
|
+
"target_stale"
|
|
15706
|
+
];
|
|
15707
|
+
var mirrorXIssueConversationOperationCapabilitySchema = external_exports.discriminatedUnion("state", [
|
|
15708
|
+
external_exports.object({ state: external_exports.literal("allowed"), reasonCode: external_exports.null() }).strict(),
|
|
15709
|
+
external_exports.object({
|
|
15710
|
+
state: external_exports.literal("forbidden"),
|
|
15711
|
+
reasonCode: external_exports.enum(MIRRORX_ISSUE_CONVERSATION_CAPABILITY_REASON_CODES)
|
|
15712
|
+
}).strict(),
|
|
15713
|
+
external_exports.object({
|
|
15714
|
+
state: external_exports.literal("unavailable"),
|
|
15715
|
+
reasonCode: external_exports.enum(MIRRORX_ISSUE_CONVERSATION_CAPABILITY_REASON_CODES)
|
|
15716
|
+
}).strict()
|
|
15717
|
+
]);
|
|
15718
|
+
var MIRRORX_ISSUE_CONVERSATION_CONTEXT_CODES = [
|
|
15719
|
+
"normal",
|
|
15720
|
+
"no_assignee",
|
|
15721
|
+
"pending_typed_interaction",
|
|
15722
|
+
"external_wait_active",
|
|
15723
|
+
"source_acquisition_runtime_wait",
|
|
15724
|
+
"task_paused",
|
|
15725
|
+
"recovery_in_flight",
|
|
15726
|
+
"terminal_governed"
|
|
15727
|
+
];
|
|
15728
|
+
var mirrorXIssueConversationPolicySchema = external_exports.object({
|
|
15729
|
+
schemaVersion: external_exports.literal(MIRRORX_ISSUE_CONVERSATION_SCHEMA_VERSION),
|
|
15730
|
+
issueId: external_exports.string().uuid(),
|
|
15731
|
+
basis: external_exports.object({
|
|
15732
|
+
issueUpdatedAt: external_exports.string().datetime(),
|
|
15733
|
+
executionEpoch: external_exports.number().int().positive(),
|
|
15734
|
+
authorizationRevision: mirrorXAuthorizationRevisionSchema,
|
|
15735
|
+
activeRunRef: external_exports.object({
|
|
15736
|
+
runId: external_exports.string().uuid(),
|
|
15737
|
+
runUpdatedAt: external_exports.string().datetime()
|
|
15738
|
+
}).strict().nullable()
|
|
15739
|
+
}).strict(),
|
|
15740
|
+
composer: external_exports.discriminatedUnion("state", [
|
|
15741
|
+
external_exports.object({
|
|
15742
|
+
state: external_exports.literal("disabled"),
|
|
15743
|
+
reasonCode: external_exports.enum([
|
|
15744
|
+
"actor_not_authorized",
|
|
15745
|
+
"workspace_closed",
|
|
15746
|
+
"target_stale",
|
|
15747
|
+
"temporarily_unavailable"
|
|
15748
|
+
])
|
|
15749
|
+
}).strict(),
|
|
15750
|
+
external_exports.object({
|
|
15751
|
+
state: external_exports.literal("enabled"),
|
|
15752
|
+
submitEffect: external_exports.enum([
|
|
15753
|
+
"record_only",
|
|
15754
|
+
"notify_assignee",
|
|
15755
|
+
"queue_after_active_run"
|
|
15756
|
+
]),
|
|
15757
|
+
contextCode: external_exports.enum(MIRRORX_ISSUE_CONVERSATION_CONTEXT_CODES),
|
|
15758
|
+
initialDisplay: external_exports.enum(["expanded", "collapsed"])
|
|
15759
|
+
}).strict()
|
|
15760
|
+
]),
|
|
15761
|
+
successorContinuation: external_exports.discriminatedUnion("state", [
|
|
15762
|
+
external_exports.object({
|
|
15763
|
+
state: external_exports.literal("allowed"),
|
|
15764
|
+
reasonCode: external_exports.null(),
|
|
15765
|
+
kind: external_exports.literal("successor_execution_epoch")
|
|
15766
|
+
}).strict(),
|
|
15767
|
+
external_exports.object({
|
|
15768
|
+
state: external_exports.literal("forbidden"),
|
|
15769
|
+
reasonCode: external_exports.enum(MIRRORX_ISSUE_CONVERSATION_CAPABILITY_REASON_CODES)
|
|
15770
|
+
}).strict(),
|
|
15771
|
+
external_exports.object({
|
|
15772
|
+
state: external_exports.literal("unavailable"),
|
|
15773
|
+
reasonCode: external_exports.enum(MIRRORX_ISSUE_CONVERSATION_CAPABILITY_REASON_CODES)
|
|
15774
|
+
}).strict()
|
|
15775
|
+
]),
|
|
15776
|
+
activeRunControl: external_exports.object({
|
|
15777
|
+
interruptWithQueuedInstruction: mirrorXIssueConversationOperationCapabilitySchema,
|
|
15778
|
+
cancelQueuedInstruction: mirrorXIssueConversationOperationCapabilitySchema
|
|
15779
|
+
}).strict(),
|
|
15780
|
+
attachments: mirrorXIssueConversationOperationCapabilitySchema,
|
|
15781
|
+
mentions: mirrorXIssueConversationOperationCapabilitySchema,
|
|
15782
|
+
workMode: mirrorXIssueConversationOperationCapabilitySchema
|
|
15783
|
+
}).strict().superRefine((value, ctx) => {
|
|
15784
|
+
const activeRun = value.basis.activeRunRef !== null;
|
|
15785
|
+
if (value.composer.state === "enabled") {
|
|
15786
|
+
if (value.composer.submitEffect === "queue_after_active_run" && !activeRun) {
|
|
15787
|
+
ctx.addIssue({
|
|
15788
|
+
code: external_exports.ZodIssueCode.custom,
|
|
15789
|
+
message: "Queued conversation submission requires an active Run authority",
|
|
15790
|
+
path: ["composer", "submitEffect"]
|
|
15791
|
+
});
|
|
15792
|
+
}
|
|
15793
|
+
if (value.composer.submitEffect !== "queue_after_active_run" && activeRun) {
|
|
15794
|
+
ctx.addIssue({
|
|
15795
|
+
code: external_exports.ZodIssueCode.custom,
|
|
15796
|
+
message: "Active Run authority requires queued conversation submission",
|
|
15797
|
+
path: ["composer", "submitEffect"]
|
|
15798
|
+
});
|
|
15799
|
+
}
|
|
15800
|
+
if (value.composer.submitEffect === "queue_after_active_run" && value.composer.initialDisplay !== "expanded") {
|
|
15801
|
+
ctx.addIssue({
|
|
15802
|
+
code: external_exports.ZodIssueCode.custom,
|
|
15803
|
+
message: "Queued conversation submission must remain immediately visible",
|
|
15804
|
+
path: ["composer", "initialDisplay"]
|
|
15805
|
+
});
|
|
15806
|
+
}
|
|
15807
|
+
}
|
|
15808
|
+
if (value.successorContinuation.state === "allowed" && (value.composer.state !== "enabled" || value.composer.contextCode !== "terminal_governed" || value.composer.submitEffect !== "record_only" || value.composer.initialDisplay !== "expanded")) {
|
|
15809
|
+
ctx.addIssue({
|
|
15810
|
+
code: external_exports.ZodIssueCode.custom,
|
|
15811
|
+
message: "Successor continuation requires an enabled terminal governed record-only composer",
|
|
15812
|
+
path: ["successorContinuation"]
|
|
15813
|
+
});
|
|
15814
|
+
}
|
|
15815
|
+
for (const [key, capability] of Object.entries(value.activeRunControl)) {
|
|
15816
|
+
if (capability.state === "allowed" && !activeRun) {
|
|
15817
|
+
ctx.addIssue({
|
|
15818
|
+
code: external_exports.ZodIssueCode.custom,
|
|
15819
|
+
message: "Active Run controls require an active Run authority",
|
|
15820
|
+
path: ["activeRunControl", key]
|
|
15821
|
+
});
|
|
15822
|
+
}
|
|
15823
|
+
}
|
|
15824
|
+
});
|
|
15699
15825
|
var MIRRORX_ISSUE_HANDLING_SCOPE_SCHEMA_VERSION = "mirrorx_issue_handling_scope/v1";
|
|
15700
15826
|
var mirrorXIssueHandlingScopeResponseSchema = external_exports.object({
|
|
15701
15827
|
schemaVersion: external_exports.literal(MIRRORX_ISSUE_HANDLING_SCOPE_SCHEMA_VERSION),
|
|
@@ -15882,6 +16008,7 @@ var mirrorXIssueCurrentProgressSchema = external_exports.discriminatedUnion("cod
|
|
|
15882
16008
|
progressBranch("waiting_blocker", "waiting", "waiting_on_blocker"),
|
|
15883
16009
|
progressBranch("waiting_external_input", "needs_action", "external_input_required"),
|
|
15884
16010
|
progressBranch("waiting_external_owner", "waiting", "external_owner"),
|
|
16011
|
+
progressBranch("waiting_source_acquisition_runtime", "waiting", "source_acquisition_runtime_unavailable"),
|
|
15885
16012
|
progressBranch("recovery_needs_action", "needs_action", "active_recovery_action"),
|
|
15886
16013
|
progressBranch("recovery_active", "active", "recovery_run_active"),
|
|
15887
16014
|
progressBranch("execution_active", "active", "execution_active"),
|
|
@@ -29081,7 +29208,7 @@ function assertRequiredTaskAttachmentMaterialized(input, materialized) {
|
|
|
29081
29208
|
}
|
|
29082
29209
|
|
|
29083
29210
|
// src/amaster-runtime-daemon.mjs
|
|
29084
|
-
var CONNECTOR_VERSION = "0.1.1-beta.
|
|
29211
|
+
var CONNECTOR_VERSION = "0.1.1-beta.217";
|
|
29085
29212
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
29086
29213
|
var daemonRequire = createRequire(import.meta.url);
|
|
29087
29214
|
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.217";
|
|
11
11
|
|
|
12
12
|
const CONFIG_KEY_MAP = new Map([
|
|
13
13
|
["server_url", "AMASTER_EMPLOYEE_SERVER_URL"],
|
|
@@ -51,10 +51,15 @@
|
|
|
51
51
|
"bytes": 26694,
|
|
52
52
|
"sha256": "8d6289c464d7f83473a62117f620332780e41114a2ae62ac6474dc5ccb45db2b"
|
|
53
53
|
},
|
|
54
|
+
{
|
|
55
|
+
"name": "应付账款账龄分析表模板.xlsx",
|
|
56
|
+
"bytes": 51700,
|
|
57
|
+
"sha256": "648f081675916f0eebe3c60f0d4e92f6d60b112817d63e6cc6c2257d970a5160"
|
|
58
|
+
},
|
|
54
59
|
{
|
|
55
60
|
"name": "应收账款账龄分析表模板.xlsx",
|
|
56
|
-
"bytes":
|
|
57
|
-
"sha256": "
|
|
61
|
+
"bytes": 53244,
|
|
62
|
+
"sha256": "5f3b23d68bbecd5ab7a0c8ab782d2d445fa53af2045df304b7937706036d35a4"
|
|
58
63
|
},
|
|
59
64
|
{
|
|
60
65
|
"name": "建筑与房地产行业战略规划模板.md",
|
|
@@ -68,23 +73,23 @@
|
|
|
68
73
|
},
|
|
69
74
|
{
|
|
70
75
|
"name": "月度税务申报准备清单模板.xlsx",
|
|
71
|
-
"bytes":
|
|
72
|
-
"sha256": "
|
|
76
|
+
"bytes": 102725,
|
|
77
|
+
"sha256": "4e8d37632bab525255b66761ac669f7dfa9c943b4a1b4d307ba5b26dd9574c01"
|
|
73
78
|
},
|
|
74
79
|
{
|
|
75
80
|
"name": "月度结账清单模板.xlsx",
|
|
76
|
-
"bytes":
|
|
77
|
-
"sha256": "
|
|
81
|
+
"bytes": 60956,
|
|
82
|
+
"sha256": "d6a9076becbef44ffe32887c73e2a0d19101492e0b74e66c99a56e83454e4031"
|
|
78
83
|
},
|
|
79
84
|
{
|
|
80
85
|
"name": "每周现金快照模板.xlsx",
|
|
81
|
-
"bytes":
|
|
82
|
-
"sha256": "
|
|
86
|
+
"bytes": 90244,
|
|
87
|
+
"sha256": "ca610726746ad715c08290121dddd777fea939a946e2c0abc20431bc3d0726e8"
|
|
83
88
|
},
|
|
84
89
|
{
|
|
85
90
|
"name": "法定财务报表模板.xlsx",
|
|
86
|
-
"bytes":
|
|
87
|
-
"sha256": "
|
|
91
|
+
"bytes": 117139,
|
|
92
|
+
"sha256": "15c75be28b8414c043ec05e8c7cb8d79f89d7fbc932a3e1f396a896abd1adbe9"
|
|
88
93
|
},
|
|
89
94
|
{
|
|
90
95
|
"name": "消费与零售行业战略规划模板.md",
|
|
@@ -101,6 +106,11 @@
|
|
|
101
106
|
"bytes": 19709,
|
|
102
107
|
"sha256": "0d2ef39367e5a4e95c908ca38447db3cb1747374b6a3175719d5d9a1b816b48f"
|
|
103
108
|
},
|
|
109
|
+
{
|
|
110
|
+
"name": "科目余额表与试算平衡模板.xlsx",
|
|
111
|
+
"bytes": 46194,
|
|
112
|
+
"sha256": "2226d6f17497c6e1ebacd3bfdf6ec4e2d8bfbdcf10c118d40330b026ed9255f5"
|
|
113
|
+
},
|
|
104
114
|
{
|
|
105
115
|
"name": "能源与环保行业战略规划模板.md",
|
|
106
116
|
"bytes": 23184,
|
|
@@ -113,14 +123,19 @@
|
|
|
113
123
|
},
|
|
114
124
|
{
|
|
115
125
|
"name": "银行存款余额调节表模板.xlsx",
|
|
116
|
-
"bytes":
|
|
117
|
-
"sha256": "
|
|
126
|
+
"bytes": 47420,
|
|
127
|
+
"sha256": "697e3f1895ec93fdc9cce465bf340801b7fd1604bef24da800ff62c82a03e1c2"
|
|
118
128
|
},
|
|
119
129
|
{
|
|
120
130
|
"name": "闭环流程说明与审计证据样例模板.md",
|
|
121
131
|
"bytes": 6655,
|
|
122
132
|
"sha256": "0cc6eff729db285e2121182ae192308073211f9bfacdd8123c3641133e654d9f"
|
|
123
133
|
},
|
|
134
|
+
{
|
|
135
|
+
"name": "预算与实际差异分析模板.xlsx",
|
|
136
|
+
"bytes": 66020,
|
|
137
|
+
"sha256": "5d92875e206839f25886fa816e15b7c87c4dce1cc52f07d7a710fb8e5ca99bda"
|
|
138
|
+
},
|
|
124
139
|
{
|
|
125
140
|
"name": "高端与先进制造业战略规划模板.md",
|
|
126
141
|
"bytes": 22181,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|