@ftai/dsh-plugin-acn 0.0.0-stage → 0.1.1
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/CHANGELOG.md +90 -0
- package/LICENSE-APACHE +201 -0
- package/LICENSE-MIT +19 -0
- package/README.md +82 -2
- package/README_EN.md +83 -0
- package/cordis.patch.yml +29 -0
- package/docs/acn-compat.md +33 -0
- package/docs/architecture.md +130 -0
- package/docs/assets/acn-claim-reuse.png +0 -0
- package/docs/assets/activity-view.png +0 -0
- package/docs/assets/install-package.png +0 -0
- package/docs/assets/knowledge-model.png +0 -0
- package/docs/assets/knowledge-view.png +0 -0
- package/docs/assets/personal-configuration.png +0 -0
- package/docs/assets/session-upstream.png +0 -0
- package/docs/assets/upstream-settings.png +0 -0
- package/docs/assets/upstream-team.png +0 -0
- package/docs/command-reference.md +201 -0
- package/docs/config.md +253 -0
- package/docs/development.md +197 -0
- package/docs/dsh-compat.md +59 -0
- package/docs/index.md +16 -0
- package/docs/outstanding-issues.md +61 -0
- package/docs/user_guide.md +185 -0
- package/icon.svg +8 -0
- package/lib/activities-B8U-iW4-.js +407 -0
- package/lib/alignment-CwH0nBf-.js +80 -0
- package/lib/auth-DFI9yowX.js +71 -0
- package/lib/checkpoint-CPFPOxBM.js +188 -0
- package/lib/checkpoint-c7aI4D-X.js +318 -0
- package/lib/claim-DOAGe8ZK.js +168 -0
- package/lib/client.js +18417 -0
- package/lib/deliver-C-dmhkfm.js +168 -0
- package/lib/delivery-status-M7-Rwoyj.js +89 -0
- package/lib/dispute-CtrInHzf.js +20 -0
- package/lib/disputes-ByEmi43j.js +51 -0
- package/lib/dream-agent-BVqxbKFc.js +249 -0
- package/lib/dream.js +4 -0
- package/lib/effects-DX1iy6FM.js +268 -0
- package/lib/errors-Bp_2WXBr.js +19 -0
- package/lib/errors-pPumDOGD.js +18 -0
- package/lib/evidence-store-DW7kj20i.js +1030 -0
- package/lib/formation-D4LO31WW.js +187 -0
- package/lib/formation-replay-Bf4TSBiz.js +87 -0
- package/lib/formation.js +9 -0
- package/lib/history-DPMHX3ZE.js +214 -0
- package/lib/inbox-2CugZZQm.js +188 -0
- package/lib/inbox-DFtE2fOp.js +71 -0
- package/lib/inbox.js +3 -0
- package/lib/index.js +1373 -0
- package/lib/lock-DbmlKOoX.js +332 -0
- package/lib/pages-BEWC3kmZ.js +51 -0
- package/lib/paths-B7NI9Ano.js +157 -0
- package/lib/plugins/commands.js +590 -0
- package/lib/plugins/dream.js +66 -0
- package/lib/plugins/formation.js +66 -0
- package/lib/plugins/inbox.js +53 -0
- package/lib/plugins/knowledge.js +1109 -0
- package/lib/plugins/prompt.js +102 -0
- package/lib/plugins/tools.js +280 -0
- package/lib/policy-DnyHh7Bl.js +16 -0
- package/lib/prepare-CGXwBEcu.js +134 -0
- package/lib/protocol.js +8 -0
- package/lib/queue-M917xHPS.js +153 -0
- package/lib/regular-file-BFpqMoub.js +136 -0
- package/lib/render-CJaVcKKC.js +48 -0
- package/lib/reported-sets-DdEKdeVb.js +122 -0
- package/lib/revision-DeoL_IUN.js +11 -0
- package/lib/scheduler-BfJSY1eq.js +64 -0
- package/lib/service-BPwaZzFF.js +1106 -0
- package/lib/service-BQaszW_v.js +344 -0
- package/lib/service-BhniAHLo.js +305 -0
- package/lib/service-C2lXoygJ.js +505 -0
- package/lib/session-binding-zCSuizHs.js +342 -0
- package/lib/session-state-CYqUhC95.js +38 -0
- package/lib/sessions-C2xuPFQv.js +218 -0
- package/lib/store.js +16 -0
- package/lib/structured-C9byFuzm.js +453 -0
- package/lib/subagent-yJsFxHmH.js +9 -0
- package/lib/team.js +3 -0
- package/lib/tool-schema-3b4gH1zf.js +28 -0
- package/lib/trace-Da0RnL5R.js +14 -0
- package/lib/traces-CHBo8y1z.js +11 -0
- package/lib/types/activities.d.ts +73 -0
- package/lib/types/advanced-configuration.d.ts +11 -0
- package/lib/types/client/ActivityCard.d.ts +14 -0
- package/lib/types/client/ActivityDetails.d.ts +18 -0
- package/lib/types/client/AdvancedPreferences.d.ts +8 -0
- package/lib/types/client/BlankCommandFeedback.d.ts +10 -0
- package/lib/types/client/ComposerMenu.d.ts +24 -0
- package/lib/types/client/ConfigurationPage.d.ts +11 -0
- package/lib/types/client/ConnectionCheckDialog.d.ts +12 -0
- package/lib/types/client/KnowledgeDetail.d.ts +6 -0
- package/lib/types/client/KnowledgeDirectoryField.d.ts +11 -0
- package/lib/types/client/KnowledgePanel.d.ts +12 -0
- package/lib/types/client/KnowledgeReference.d.ts +13 -0
- package/lib/types/client/SessionToolbar.d.ts +16 -0
- package/lib/types/client/SettingsToast.d.ts +3 -0
- package/lib/types/client/SourceSessionLink.d.ts +16 -0
- package/lib/types/client/TeamCredentialField.d.ts +16 -0
- package/lib/types/client/TeamSettingsPage.d.ts +28 -0
- package/lib/types/client/configuration-errors.d.ts +2 -0
- package/lib/types/client/interaction-styles.d.ts +1 -0
- package/lib/types/client/interaction-ui.d.ts +30 -0
- package/lib/types/client/knowledge-labels.d.ts +5 -0
- package/lib/types/client/locales.d.ts +51 -0
- package/lib/types/commands/claim.d.ts +4 -0
- package/lib/types/commands/import.d.ts +10 -0
- package/lib/types/commands/status.d.ts +5 -0
- package/lib/types/config.d.ts +111 -0
- package/lib/types/configuration.d.ts +235 -0
- package/lib/types/credentials.d.ts +59 -0
- package/lib/types/dream/audit.d.ts +4 -0
- package/lib/types/dream/autonomous.d.ts +185 -0
- package/lib/types/dream/candidates.d.ts +34 -0
- package/lib/types/dream/checkpoint.d.ts +35 -0
- package/lib/types/dream/evidence-files.d.ts +10 -0
- package/lib/types/dream/evidence-store.d.ts +103 -0
- package/lib/types/dream/evidence.d.ts +30 -0
- package/lib/types/dream/index.d.ts +10 -0
- package/lib/types/dream/plan.d.ts +18 -0
- package/lib/types/dream/preservation.d.ts +6 -0
- package/lib/types/dream/review.d.ts +10 -0
- package/lib/types/dream/schema.d.ts +1475 -0
- package/lib/types/dream/service.d.ts +56 -0
- package/lib/types/dream/sync.d.ts +147 -0
- package/lib/types/dsh-adapter/configuration-remote.d.ts +1 -0
- package/lib/types/dsh-adapter/configuration-service.d.ts +28 -0
- package/lib/types/dsh-adapter/dream-agent.d.ts +4 -0
- package/lib/types/dsh-adapter/dream-evidence.d.ts +3 -0
- package/lib/types/dsh-adapter/formation-archive.d.ts +3 -0
- package/lib/types/dsh-adapter/formation-replay.d.ts +5 -0
- package/lib/types/dsh-adapter/formation.d.ts +4 -0
- package/lib/types/dsh-adapter/interaction-service.d.ts +13 -0
- package/lib/types/dsh-adapter/knowledge-paths.d.ts +3 -0
- package/lib/types/dsh-adapter/llm.d.ts +10 -0
- package/lib/types/dsh-adapter/project-upstream.d.ts +4 -0
- package/lib/types/dsh-adapter/runtime-pool.d.ts +110 -0
- package/lib/types/dsh-adapter/session-binding.d.ts +43 -0
- package/lib/types/dsh-adapter/source-sessions.d.ts +3 -0
- package/lib/types/dsh-adapter/team-credentials.d.ts +5 -0
- package/lib/types/dsh-adapter/tool-schema.d.ts +4 -0
- package/lib/types/dsh-adapter/tools.d.ts +5 -0
- package/lib/types/formation/capture.d.ts +19 -0
- package/lib/types/formation/checkpoint.d.ts +136 -0
- package/lib/types/formation/index.d.ts +10 -0
- package/lib/types/formation/prepare.d.ts +16 -0
- package/lib/types/formation/schema.d.ts +45 -0
- package/lib/types/formation/service.d.ts +58 -0
- package/lib/types/formation/transcript.d.ts +75 -0
- package/lib/types/formation/triggers.d.ts +3 -0
- package/lib/types/inbox/cascade.d.ts +3 -0
- package/lib/types/inbox/effects.d.ts +275 -0
- package/lib/types/inbox/index.d.ts +5 -0
- package/lib/types/inbox/prepare.d.ts +380 -0
- package/lib/types/inbox/service.d.ts +26 -0
- package/lib/types/inbox/sync.d.ts +9 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/interaction-messages.d.ts +69 -0
- package/lib/types/interaction.d.ts +541 -0
- package/lib/types/knowledge/alignment.d.ts +49 -0
- package/lib/types/knowledge/catalog.d.ts +5 -0
- package/lib/types/knowledge/changes.d.ts +32 -0
- package/lib/types/knowledge/disputes.d.ts +3 -0
- package/lib/types/knowledge/errors.d.ts +9 -0
- package/lib/types/knowledge/ordering.d.ts +7 -0
- package/lib/types/knowledge/pages.d.ts +7 -0
- package/lib/types/knowledge/safety.d.ts +2 -0
- package/lib/types/knowledge/service.d.ts +52 -0
- package/lib/types/knowledge/sessions.d.ts +59 -0
- package/lib/types/knowledge/sources.d.ts +2 -0
- package/lib/types/knowledge/timestamps.d.ts +1 -0
- package/lib/types/knowledge/types.d.ts +84 -0
- package/lib/types/llm/response.d.ts +1 -0
- package/lib/types/llm/structured.d.ts +27 -0
- package/lib/types/local-name.d.ts +1 -0
- package/lib/types/plugins/client.d.ts +9 -0
- package/lib/types/plugins/commands.d.ts +11 -0
- package/lib/types/plugins/configuration.d.ts +8 -0
- package/lib/types/plugins/dream.d.ts +16 -0
- package/lib/types/plugins/formation.d.ts +16 -0
- package/lib/types/plugins/inbox.d.ts +16 -0
- package/lib/types/plugins/knowledge.d.ts +19 -0
- package/lib/types/plugins/prompt.d.ts +17 -0
- package/lib/types/plugins/tools.d.ts +10 -0
- package/lib/types/prompt/render.d.ts +2 -0
- package/lib/types/protocol/arbitration.d.ts +154 -0
- package/lib/types/protocol/auth.d.ts +31 -0
- package/lib/types/protocol/claim.d.ts +36 -0
- package/lib/types/protocol/dispute.d.ts +17 -0
- package/lib/types/protocol/ids.d.ts +20 -0
- package/lib/types/protocol/inbox.d.ts +141 -0
- package/lib/types/protocol/index.d.ts +11 -0
- package/lib/types/protocol/policy.d.ts +21 -0
- package/lib/types/protocol/revision.d.ts +2 -0
- package/lib/types/protocol/router.d.ts +114 -0
- package/lib/types/protocol/schema.d.ts +4 -0
- package/lib/types/protocol/time.d.ts +5 -0
- package/lib/types/protocol/trace.d.ts +11 -0
- package/lib/types/store/atomic.d.ts +8 -0
- package/lib/types/store/claim-edits.d.ts +33 -0
- package/lib/types/store/claims.d.ts +7 -0
- package/lib/types/store/context.d.ts +13 -0
- package/lib/types/store/delivery-status.d.ts +48 -0
- package/lib/types/store/disputes.d.ts +6 -0
- package/lib/types/store/entities.d.ts +16 -0
- package/lib/types/store/errors.d.ts +8 -0
- package/lib/types/store/history.d.ts +65 -0
- package/lib/types/store/inbox.d.ts +27 -0
- package/lib/types/store/index.d.ts +16 -0
- package/lib/types/store/jobs.d.ts +5 -0
- package/lib/types/store/library-directory.d.ts +4 -0
- package/lib/types/store/lock.d.ts +11 -0
- package/lib/types/store/path-names.d.ts +2 -0
- package/lib/types/store/paths.d.ts +45 -0
- package/lib/types/store/presentation.d.ts +13 -0
- package/lib/types/store/regular-file.d.ts +2 -0
- package/lib/types/store/rejected-disputes.d.ts +18 -0
- package/lib/types/store/rename.d.ts +1 -0
- package/lib/types/store/reported-sets.d.ts +24 -0
- package/lib/types/store/session-state.d.ts +17 -0
- package/lib/types/store/traces.d.ts +6 -0
- package/lib/types/store/uploads.d.ts +312 -0
- package/lib/types/store/yaml.d.ts +8 -0
- package/lib/types/team/errors.d.ts +10 -0
- package/lib/types/team/http.d.ts +20 -0
- package/lib/types/team/index.d.ts +5 -0
- package/lib/types/team/maintainer-client.d.ts +18 -0
- package/lib/types/team/router-client.d.ts +14 -0
- package/lib/types/team/service.d.ts +28 -0
- package/lib/types/team/system-proxy.d.ts +9 -0
- package/lib/types/tools/claim.d.ts +63 -0
- package/lib/types/tools/consult-router.d.ts +11 -0
- package/lib/types/tools/subagent.d.ts +8 -0
- package/lib/types/tools/validation.d.ts +2 -0
- package/lib/types/upload/consolidation.d.ts +63 -0
- package/lib/types/upload/deliver.d.ts +15 -0
- package/lib/types/upload/index.d.ts +2 -0
- package/lib/types/upload/scheduler.d.ts +19 -0
- package/lib/types/upstreams.d.ts +5 -0
- package/lib/types/worker/queue.d.ts +17 -0
- package/lib/types/worker/types.d.ts +51 -0
- package/lib/types/worker/worker.d.ts +39 -0
- package/lib/types-C2ST2Zdg.js +17 -0
- package/lib/upload.js +3 -0
- package/lib/uploads-BCA2p92b.js +210 -0
- package/lib/upstreams-DEi-56tD.js +495 -0
- package/lib/worker-HMGzJFWd.js +185 -0
- package/locale/commands/en.json +1 -0
- package/locale/commands/zh.json +1 -0
- package/locale/dream/en.json +1 -0
- package/locale/dream/zh.json +1 -0
- package/locale/en.json +7 -0
- package/locale/formation/en.json +1 -0
- package/locale/formation/zh.json +1 -0
- package/locale/inbox/en.json +1 -0
- package/locale/inbox/zh.json +1 -0
- package/locale/knowledge/en.json +1 -0
- package/locale/knowledge/zh.json +1 -0
- package/locale/prompt/en.json +1 -0
- package/locale/prompt/zh.json +1 -0
- package/locale/tools/en.json +1 -0
- package/locale/tools/zh.json +1 -0
- package/locale/zh.json +7 -0
- package/package.json +262 -3
- package/prompts/claim_dream.j2 +77 -0
- package/prompts/claim_dream_legacy.j2 +63 -0
- package/prompts/dream_compaction.j2 +11 -0
- package/prompts/dream_evidence.j2 +5 -0
- package/prompts/inbox_claim_attribute_update_internalize.j2 +112 -0
- package/prompts/inbox_policy_update_internalize.j2 +87 -0
- package/prompts/knowledge.j2 +38 -0
- package/prompts/session_recap.j2 +113 -0
- package/prompts/what_is_claim.j2 +51 -0
- package/prompts/what_is_dispute.j2 +21 -0
- package/prompts/what_is_policy.j2 +22 -0
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import { type PreparedFormation } from '../formation/prepare.js';
|
|
2
|
+
import type { Claim } from '../protocol/claim.js';
|
|
3
|
+
import type { InboxMessage } from '../protocol/inbox.js';
|
|
4
|
+
import type { AgentId } from '../protocol/ids.js';
|
|
5
|
+
export declare const InternalizeOutputSchema: import("zod").ZodObject<{
|
|
6
|
+
new_claims: import("zod").ZodArray<import("zod").ZodObject<{
|
|
7
|
+
id: import("zod").ZodString;
|
|
8
|
+
name: import("zod").ZodString;
|
|
9
|
+
statement: import("zod").ZodString;
|
|
10
|
+
scope: import("zod").ZodString;
|
|
11
|
+
confidence: import("zod").ZodEnum<{
|
|
12
|
+
high: "high";
|
|
13
|
+
medium: "medium";
|
|
14
|
+
low: "low";
|
|
15
|
+
}>;
|
|
16
|
+
evidence_summary: import("zod").ZodString;
|
|
17
|
+
source_claim_ids: import("zod").ZodArray<import("zod").ZodString>;
|
|
18
|
+
}, import("zod/v4/core").$strict>>;
|
|
19
|
+
updated_claims: import("zod").ZodArray<import("zod").ZodObject<{
|
|
20
|
+
status: import("zod").ZodEnum<{
|
|
21
|
+
active: "active";
|
|
22
|
+
stale: "stale";
|
|
23
|
+
deprecated: "deprecated";
|
|
24
|
+
}>;
|
|
25
|
+
id: import("zod").ZodString;
|
|
26
|
+
name: import("zod").ZodString;
|
|
27
|
+
statement: import("zod").ZodString;
|
|
28
|
+
scope: import("zod").ZodString;
|
|
29
|
+
confidence: import("zod").ZodEnum<{
|
|
30
|
+
high: "high";
|
|
31
|
+
medium: "medium";
|
|
32
|
+
low: "low";
|
|
33
|
+
}>;
|
|
34
|
+
evidence_summary: import("zod").ZodString;
|
|
35
|
+
source_claim_ids: import("zod").ZodArray<import("zod").ZodString>;
|
|
36
|
+
}, import("zod/v4/core").$strict>>;
|
|
37
|
+
new_disputes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
38
|
+
id: import("zod").ZodString;
|
|
39
|
+
name: import("zod").ZodString;
|
|
40
|
+
claims: import("zod").ZodArray<import("zod").ZodString>;
|
|
41
|
+
summary: import("zod").ZodString;
|
|
42
|
+
}, import("zod/v4/core").$strict>>;
|
|
43
|
+
}, import("zod/v4/core").$strict>;
|
|
44
|
+
export declare function validateArbitration(message: InboxMessage): void;
|
|
45
|
+
export declare function inboxContext(agentId: AgentId, messages: readonly InboxMessage[], local: readonly Claim[]): {
|
|
46
|
+
input: {
|
|
47
|
+
agent_id: string & import("zod").$brand<"AgentId">;
|
|
48
|
+
inbox_messages: readonly ({
|
|
49
|
+
id: string & import("zod").$brand<"InboxId">;
|
|
50
|
+
message_type: "policy_update";
|
|
51
|
+
policy: {
|
|
52
|
+
id: string & import("zod").$brand<"PolicyId">;
|
|
53
|
+
message_type: "policy_update" | "claim_attribute_update";
|
|
54
|
+
name: string;
|
|
55
|
+
statement: string;
|
|
56
|
+
scope: string;
|
|
57
|
+
status: "active" | "deprecated";
|
|
58
|
+
created_at: string;
|
|
59
|
+
updated_at?: string | undefined;
|
|
60
|
+
target_agents?: (string & import("zod").$brand<"AgentId">)[] | undefined;
|
|
61
|
+
};
|
|
62
|
+
handled_at?: string | undefined;
|
|
63
|
+
} | {
|
|
64
|
+
id: string & import("zod").$brand<"InboxId">;
|
|
65
|
+
message_type: "claim_attribute_update";
|
|
66
|
+
policy: {
|
|
67
|
+
id: string & import("zod").$brand<"PolicyId">;
|
|
68
|
+
message_type: "policy_update" | "claim_attribute_update";
|
|
69
|
+
name: string;
|
|
70
|
+
statement: string;
|
|
71
|
+
scope: string;
|
|
72
|
+
status: "active" | "deprecated";
|
|
73
|
+
created_at: string;
|
|
74
|
+
updated_at?: string | undefined;
|
|
75
|
+
target_agents?: (string & import("zod").$brand<"AgentId">)[] | undefined;
|
|
76
|
+
};
|
|
77
|
+
arbitration_resolution?: {
|
|
78
|
+
[x: string]: unknown;
|
|
79
|
+
dispute_snapshot: {
|
|
80
|
+
id: string & import("zod").$brand<"DisputeId">;
|
|
81
|
+
name: string;
|
|
82
|
+
reporter_agent_id: string & import("zod").$brand<"AgentId">;
|
|
83
|
+
claims: (string & import("zod").$brand<"ClaimId">)[];
|
|
84
|
+
summary: string;
|
|
85
|
+
status: "open" | "resolved";
|
|
86
|
+
created_at: string;
|
|
87
|
+
resolved_at?: string | undefined;
|
|
88
|
+
};
|
|
89
|
+
direct_claim_snapshots: {
|
|
90
|
+
id: string & import("zod").$brand<"ClaimId">;
|
|
91
|
+
name: string;
|
|
92
|
+
statement: string;
|
|
93
|
+
scope: string;
|
|
94
|
+
holder: string & import("zod").$brand<"AgentId">;
|
|
95
|
+
confidence: "high" | "medium" | "low";
|
|
96
|
+
status: "active" | "stale" | "deprecated";
|
|
97
|
+
created_at: string;
|
|
98
|
+
source_claim_ids: ((string & import("zod").$brand<"ClaimId">) | (string & import("zod").$brand<"PolicyId">))[];
|
|
99
|
+
evidence_summary: string;
|
|
100
|
+
updated_at?: string | undefined;
|
|
101
|
+
}[];
|
|
102
|
+
resolution_id: string & import("zod").$brand<"ResolutionId">;
|
|
103
|
+
resolved_by: "human" | "automatic";
|
|
104
|
+
resolved_at: string;
|
|
105
|
+
conclusion: string;
|
|
106
|
+
claim_assessments: {
|
|
107
|
+
claim_id: string & import("zod").$brand<"ClaimId">;
|
|
108
|
+
recommended_status: "active" | "stale" | "deprecated";
|
|
109
|
+
assessment: string;
|
|
110
|
+
reason: string;
|
|
111
|
+
recommended_scope?: string | undefined;
|
|
112
|
+
recommended_statement?: string | undefined;
|
|
113
|
+
}[] | undefined;
|
|
114
|
+
dispute_id: string & import("zod").$brand<"DisputeId">;
|
|
115
|
+
context_snapshot_hash?: string | undefined;
|
|
116
|
+
snapshot_source_resolution_id?: (string & import("zod").$brand<"ResolutionId">) | undefined;
|
|
117
|
+
resolution_type?: "coexist" | "lifecycle_update" | "conflict_resolved" | "unresolved" | undefined;
|
|
118
|
+
resolution_basis?: "evidence" | "insufficient_evidence" | "direct_analysis" | "prior_resolution" | "policy" | undefined;
|
|
119
|
+
rejection_reason?: string | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
handled_at?: string | undefined;
|
|
122
|
+
})[];
|
|
123
|
+
local_claims: {
|
|
124
|
+
id: string & import("zod").$brand<"ClaimId">;
|
|
125
|
+
name: string;
|
|
126
|
+
statement: string;
|
|
127
|
+
scope: string;
|
|
128
|
+
holder: string & import("zod").$brand<"AgentId">;
|
|
129
|
+
confidence: "high" | "medium" | "low";
|
|
130
|
+
status: "active" | "stale" | "deprecated";
|
|
131
|
+
created_at: string;
|
|
132
|
+
source_claim_ids: ((string & import("zod").$brand<"ClaimId">) | (string & import("zod").$brand<"PolicyId">))[];
|
|
133
|
+
evidence_summary: string;
|
|
134
|
+
updated_at?: string | undefined;
|
|
135
|
+
}[];
|
|
136
|
+
claim_attribute_updates?: never;
|
|
137
|
+
} | {
|
|
138
|
+
agent_id: string & import("zod").$brand<"AgentId">;
|
|
139
|
+
claim_attribute_updates: ({
|
|
140
|
+
claim_attribute_update: {
|
|
141
|
+
id: string & import("zod").$brand<"InboxId">;
|
|
142
|
+
message_type: "policy_update";
|
|
143
|
+
policy: {
|
|
144
|
+
id: string & import("zod").$brand<"PolicyId">;
|
|
145
|
+
message_type: "policy_update" | "claim_attribute_update";
|
|
146
|
+
name: string;
|
|
147
|
+
statement: string;
|
|
148
|
+
scope: string;
|
|
149
|
+
status: "active" | "deprecated";
|
|
150
|
+
created_at: string;
|
|
151
|
+
updated_at?: string | undefined;
|
|
152
|
+
target_agents?: (string & import("zod").$brand<"AgentId">)[] | undefined;
|
|
153
|
+
};
|
|
154
|
+
handled_at?: string | undefined;
|
|
155
|
+
} | {
|
|
156
|
+
id: string & import("zod").$brand<"InboxId">;
|
|
157
|
+
message_type: "claim_attribute_update";
|
|
158
|
+
policy: {
|
|
159
|
+
id: string & import("zod").$brand<"PolicyId">;
|
|
160
|
+
message_type: "policy_update" | "claim_attribute_update";
|
|
161
|
+
name: string;
|
|
162
|
+
statement: string;
|
|
163
|
+
scope: string;
|
|
164
|
+
status: "active" | "deprecated";
|
|
165
|
+
created_at: string;
|
|
166
|
+
updated_at?: string | undefined;
|
|
167
|
+
target_agents?: (string & import("zod").$brand<"AgentId">)[] | undefined;
|
|
168
|
+
};
|
|
169
|
+
arbitration_resolution?: {
|
|
170
|
+
[x: string]: unknown;
|
|
171
|
+
dispute_snapshot: {
|
|
172
|
+
id: string & import("zod").$brand<"DisputeId">;
|
|
173
|
+
name: string;
|
|
174
|
+
reporter_agent_id: string & import("zod").$brand<"AgentId">;
|
|
175
|
+
claims: (string & import("zod").$brand<"ClaimId">)[];
|
|
176
|
+
summary: string;
|
|
177
|
+
status: "open" | "resolved";
|
|
178
|
+
created_at: string;
|
|
179
|
+
resolved_at?: string | undefined;
|
|
180
|
+
};
|
|
181
|
+
direct_claim_snapshots: {
|
|
182
|
+
id: string & import("zod").$brand<"ClaimId">;
|
|
183
|
+
name: string;
|
|
184
|
+
statement: string;
|
|
185
|
+
scope: string;
|
|
186
|
+
holder: string & import("zod").$brand<"AgentId">;
|
|
187
|
+
confidence: "high" | "medium" | "low";
|
|
188
|
+
status: "active" | "stale" | "deprecated";
|
|
189
|
+
created_at: string;
|
|
190
|
+
source_claim_ids: ((string & import("zod").$brand<"ClaimId">) | (string & import("zod").$brand<"PolicyId">))[];
|
|
191
|
+
evidence_summary: string;
|
|
192
|
+
updated_at?: string | undefined;
|
|
193
|
+
}[];
|
|
194
|
+
resolution_id: string & import("zod").$brand<"ResolutionId">;
|
|
195
|
+
resolved_by: "human" | "automatic";
|
|
196
|
+
resolved_at: string;
|
|
197
|
+
conclusion: string;
|
|
198
|
+
claim_assessments: {
|
|
199
|
+
claim_id: string & import("zod").$brand<"ClaimId">;
|
|
200
|
+
recommended_status: "active" | "stale" | "deprecated";
|
|
201
|
+
assessment: string;
|
|
202
|
+
reason: string;
|
|
203
|
+
recommended_scope?: string | undefined;
|
|
204
|
+
recommended_statement?: string | undefined;
|
|
205
|
+
}[] | undefined;
|
|
206
|
+
dispute_id: string & import("zod").$brand<"DisputeId">;
|
|
207
|
+
context_snapshot_hash?: string | undefined;
|
|
208
|
+
snapshot_source_resolution_id?: (string & import("zod").$brand<"ResolutionId">) | undefined;
|
|
209
|
+
resolution_type?: "coexist" | "lifecycle_update" | "conflict_resolved" | "unresolved" | undefined;
|
|
210
|
+
resolution_basis?: "evidence" | "insufficient_evidence" | "direct_analysis" | "prior_resolution" | "policy" | undefined;
|
|
211
|
+
rejection_reason?: string | undefined;
|
|
212
|
+
} | undefined;
|
|
213
|
+
handled_at?: string | undefined;
|
|
214
|
+
};
|
|
215
|
+
conclusion: string;
|
|
216
|
+
direct_claims: never[];
|
|
217
|
+
resolution?: never;
|
|
218
|
+
dispute?: never;
|
|
219
|
+
} | {
|
|
220
|
+
claim_attribute_update: {
|
|
221
|
+
id: string & import("zod").$brand<"InboxId">;
|
|
222
|
+
message_type: "policy_update";
|
|
223
|
+
policy: {
|
|
224
|
+
id: string & import("zod").$brand<"PolicyId">;
|
|
225
|
+
message_type: "policy_update" | "claim_attribute_update";
|
|
226
|
+
name: string;
|
|
227
|
+
statement: string;
|
|
228
|
+
scope: string;
|
|
229
|
+
status: "active" | "deprecated";
|
|
230
|
+
created_at: string;
|
|
231
|
+
updated_at?: string | undefined;
|
|
232
|
+
target_agents?: (string & import("zod").$brand<"AgentId">)[] | undefined;
|
|
233
|
+
};
|
|
234
|
+
handled_at?: string | undefined;
|
|
235
|
+
} | {
|
|
236
|
+
id: string & import("zod").$brand<"InboxId">;
|
|
237
|
+
message_type: "claim_attribute_update";
|
|
238
|
+
policy: {
|
|
239
|
+
id: string & import("zod").$brand<"PolicyId">;
|
|
240
|
+
message_type: "policy_update" | "claim_attribute_update";
|
|
241
|
+
name: string;
|
|
242
|
+
statement: string;
|
|
243
|
+
scope: string;
|
|
244
|
+
status: "active" | "deprecated";
|
|
245
|
+
created_at: string;
|
|
246
|
+
updated_at?: string | undefined;
|
|
247
|
+
target_agents?: (string & import("zod").$brand<"AgentId">)[] | undefined;
|
|
248
|
+
};
|
|
249
|
+
arbitration_resolution?: {
|
|
250
|
+
[x: string]: unknown;
|
|
251
|
+
dispute_snapshot: {
|
|
252
|
+
id: string & import("zod").$brand<"DisputeId">;
|
|
253
|
+
name: string;
|
|
254
|
+
reporter_agent_id: string & import("zod").$brand<"AgentId">;
|
|
255
|
+
claims: (string & import("zod").$brand<"ClaimId">)[];
|
|
256
|
+
summary: string;
|
|
257
|
+
status: "open" | "resolved";
|
|
258
|
+
created_at: string;
|
|
259
|
+
resolved_at?: string | undefined;
|
|
260
|
+
};
|
|
261
|
+
direct_claim_snapshots: {
|
|
262
|
+
id: string & import("zod").$brand<"ClaimId">;
|
|
263
|
+
name: string;
|
|
264
|
+
statement: string;
|
|
265
|
+
scope: string;
|
|
266
|
+
holder: string & import("zod").$brand<"AgentId">;
|
|
267
|
+
confidence: "high" | "medium" | "low";
|
|
268
|
+
status: "active" | "stale" | "deprecated";
|
|
269
|
+
created_at: string;
|
|
270
|
+
source_claim_ids: ((string & import("zod").$brand<"ClaimId">) | (string & import("zod").$brand<"PolicyId">))[];
|
|
271
|
+
evidence_summary: string;
|
|
272
|
+
updated_at?: string | undefined;
|
|
273
|
+
}[];
|
|
274
|
+
resolution_id: string & import("zod").$brand<"ResolutionId">;
|
|
275
|
+
resolved_by: "human" | "automatic";
|
|
276
|
+
resolved_at: string;
|
|
277
|
+
conclusion: string;
|
|
278
|
+
claim_assessments: {
|
|
279
|
+
claim_id: string & import("zod").$brand<"ClaimId">;
|
|
280
|
+
recommended_status: "active" | "stale" | "deprecated";
|
|
281
|
+
assessment: string;
|
|
282
|
+
reason: string;
|
|
283
|
+
recommended_scope?: string | undefined;
|
|
284
|
+
recommended_statement?: string | undefined;
|
|
285
|
+
}[] | undefined;
|
|
286
|
+
dispute_id: string & import("zod").$brand<"DisputeId">;
|
|
287
|
+
context_snapshot_hash?: string | undefined;
|
|
288
|
+
snapshot_source_resolution_id?: (string & import("zod").$brand<"ResolutionId">) | undefined;
|
|
289
|
+
resolution_type?: "coexist" | "lifecycle_update" | "conflict_resolved" | "unresolved" | undefined;
|
|
290
|
+
resolution_basis?: "evidence" | "insufficient_evidence" | "direct_analysis" | "prior_resolution" | "policy" | undefined;
|
|
291
|
+
rejection_reason?: string | undefined;
|
|
292
|
+
} | undefined;
|
|
293
|
+
handled_at?: string | undefined;
|
|
294
|
+
};
|
|
295
|
+
conclusion: string;
|
|
296
|
+
resolution: {
|
|
297
|
+
resolution_id: string & import("zod").$brand<"ResolutionId">;
|
|
298
|
+
resolved_by: "human" | "automatic";
|
|
299
|
+
resolved_at: string;
|
|
300
|
+
conclusion: string;
|
|
301
|
+
claim_assessments: {
|
|
302
|
+
claim_id: string & import("zod").$brand<"ClaimId">;
|
|
303
|
+
recommended_status: "active" | "stale" | "deprecated";
|
|
304
|
+
assessment: string;
|
|
305
|
+
reason: string;
|
|
306
|
+
recommended_scope?: string | undefined;
|
|
307
|
+
recommended_statement?: string | undefined;
|
|
308
|
+
}[] | undefined;
|
|
309
|
+
resolution_type?: "coexist" | "lifecycle_update" | "conflict_resolved" | "unresolved" | undefined;
|
|
310
|
+
resolution_basis?: "evidence" | "insufficient_evidence" | "direct_analysis" | "prior_resolution" | "policy" | undefined;
|
|
311
|
+
rejection_reason?: string | undefined;
|
|
312
|
+
};
|
|
313
|
+
dispute: {
|
|
314
|
+
id: string & import("zod").$brand<"DisputeId">;
|
|
315
|
+
name: string;
|
|
316
|
+
reporter_agent_id: string & import("zod").$brand<"AgentId">;
|
|
317
|
+
claims: (string & import("zod").$brand<"ClaimId">)[];
|
|
318
|
+
summary: string;
|
|
319
|
+
status: "open" | "resolved";
|
|
320
|
+
created_at: string;
|
|
321
|
+
resolved_at?: string | undefined;
|
|
322
|
+
};
|
|
323
|
+
direct_claims: {
|
|
324
|
+
id: string & import("zod").$brand<"ClaimId">;
|
|
325
|
+
name: string;
|
|
326
|
+
statement: string;
|
|
327
|
+
scope: string;
|
|
328
|
+
holder: string & import("zod").$brand<"AgentId">;
|
|
329
|
+
confidence: "high" | "medium" | "low";
|
|
330
|
+
status: "active" | "stale" | "deprecated";
|
|
331
|
+
created_at: string;
|
|
332
|
+
source_claim_ids: ((string & import("zod").$brand<"ClaimId">) | (string & import("zod").$brand<"PolicyId">))[];
|
|
333
|
+
evidence_summary: string;
|
|
334
|
+
updated_at?: string | undefined;
|
|
335
|
+
}[];
|
|
336
|
+
})[];
|
|
337
|
+
local_claims: {
|
|
338
|
+
id: string & import("zod").$brand<"ClaimId">;
|
|
339
|
+
name: string;
|
|
340
|
+
statement: string;
|
|
341
|
+
scope: string;
|
|
342
|
+
holder: string & import("zod").$brand<"AgentId">;
|
|
343
|
+
confidence: "high" | "medium" | "low";
|
|
344
|
+
status: "active" | "stale" | "deprecated";
|
|
345
|
+
created_at: string;
|
|
346
|
+
source_claim_ids: ((string & import("zod").$brand<"ClaimId">) | (string & import("zod").$brand<"PolicyId">))[];
|
|
347
|
+
evidence_summary: string;
|
|
348
|
+
updated_at?: string | undefined;
|
|
349
|
+
}[];
|
|
350
|
+
inbox_messages?: never;
|
|
351
|
+
};
|
|
352
|
+
editable: {
|
|
353
|
+
id: string & import("zod").$brand<"ClaimId">;
|
|
354
|
+
name: string;
|
|
355
|
+
statement: string;
|
|
356
|
+
scope: string;
|
|
357
|
+
holder: string & import("zod").$brand<"AgentId">;
|
|
358
|
+
confidence: "high" | "medium" | "low";
|
|
359
|
+
status: "active" | "stale" | "deprecated";
|
|
360
|
+
created_at: string;
|
|
361
|
+
source_claim_ids: ((string & import("zod").$brand<"ClaimId">) | (string & import("zod").$brand<"PolicyId">))[];
|
|
362
|
+
evidence_summary: string;
|
|
363
|
+
updated_at?: string | undefined;
|
|
364
|
+
}[];
|
|
365
|
+
directClaims: {
|
|
366
|
+
id: string & import("zod").$brand<"ClaimId">;
|
|
367
|
+
name: string;
|
|
368
|
+
statement: string;
|
|
369
|
+
scope: string;
|
|
370
|
+
holder: string & import("zod").$brand<"AgentId">;
|
|
371
|
+
confidence: "high" | "medium" | "low";
|
|
372
|
+
status: "active" | "stale" | "deprecated";
|
|
373
|
+
created_at: string;
|
|
374
|
+
source_claim_ids: ((string & import("zod").$brand<"ClaimId">) | (string & import("zod").$brand<"PolicyId">))[];
|
|
375
|
+
evidence_summary: string;
|
|
376
|
+
updated_at?: string | undefined;
|
|
377
|
+
}[];
|
|
378
|
+
directIds: Set<string & import("zod").$brand<"ClaimId">>;
|
|
379
|
+
};
|
|
380
|
+
export declare function prepareInbox(raw: unknown, agentId: AgentId, messages: readonly InboxMessage[], local: readonly Claim[], now?: string): PreparedFormation;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AcnKnowledge } from '../knowledge/service.js';
|
|
2
|
+
import type { StructuredBackend } from '../llm/structured.js';
|
|
3
|
+
import type { Job } from '../worker/types.js';
|
|
4
|
+
export declare class AcnInbox {
|
|
5
|
+
readonly knowledge: AcnKnowledge;
|
|
6
|
+
private readonly backend;
|
|
7
|
+
private readonly render;
|
|
8
|
+
private readonly unregister;
|
|
9
|
+
private readonly stopping;
|
|
10
|
+
private readonly active;
|
|
11
|
+
constructor(knowledge: AcnKnowledge, backend: StructuredBackend, render: (name: string, context: object) => string);
|
|
12
|
+
private track;
|
|
13
|
+
enqueue(synchronize?: boolean, sessionId?: string): Promise<Job>;
|
|
14
|
+
request(signal?: AbortSignal, sessionId?: string): Promise<{
|
|
15
|
+
pending: number;
|
|
16
|
+
jobId: string;
|
|
17
|
+
pulled: number;
|
|
18
|
+
accepted: number;
|
|
19
|
+
acknowledged: number;
|
|
20
|
+
warnings: string[];
|
|
21
|
+
}>;
|
|
22
|
+
start(): Promise<void>;
|
|
23
|
+
private prepare;
|
|
24
|
+
private run;
|
|
25
|
+
close(): Promise<void>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TeamFacade } from '../team/service.js';
|
|
2
|
+
import type { StoreContext } from '../store/context.js';
|
|
3
|
+
export interface SyncReport {
|
|
4
|
+
pulled: number;
|
|
5
|
+
accepted: number;
|
|
6
|
+
acknowledged: number;
|
|
7
|
+
warnings: string[];
|
|
8
|
+
}
|
|
9
|
+
export declare function syncInbox(context: StoreContext, team: TeamFacade | null, signal?: AbortSignal): Promise<SyncReport>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { apply, default, name } from './plugins/configuration.js';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MessageInfoSchema: z.ZodObject<{
|
|
3
|
+
code: z.ZodString;
|
|
4
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
5
|
+
entityId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
status: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type MessageInfo = z.infer<typeof MessageInfoSchema>;
|
|
9
|
+
declare const messages: {
|
|
10
|
+
readonly check_auth: readonly ["认证未通过,请检查 Agent ID 和团队鉴权密钥。", "Authentication failed. Check the Agent ID and team authentication key."];
|
|
11
|
+
readonly check_timeout: readonly ["连接超时,请检查服务状态和网络后重试。", "The connection timed out. Check the service and network, then retry."];
|
|
12
|
+
readonly check_dns: readonly ["无法解析服务域名,请检查地址和网络。", "The service hostname could not be resolved. Check the URL and network."];
|
|
13
|
+
readonly check_unreachable: readonly ["无法连接服务,请检查地址、端口和服务是否已启动。", "The service could not be reached. Check its address, port and whether it is running."];
|
|
14
|
+
readonly check_network: readonly ["网络连接失败,请检查网络或代理后重试。", "The network connection failed. Check the network or proxy and retry."];
|
|
15
|
+
readonly check_service: readonly ["服务暂时不可用,请检查服务状态后重试。", "The service is temporarily unavailable. Check its status and retry."];
|
|
16
|
+
readonly check_protocol: readonly ["服务响应不符合 ACN 协议,请联系团队管理员检查服务版本。", "The response does not match the ACN protocol. Ask your team administrator to check the service version."];
|
|
17
|
+
readonly check_client: readonly ["服务拒绝了请求,请检查服务地址和访问权限。", "The service rejected the request. Check its URL and access permissions."];
|
|
18
|
+
readonly check_offline: readonly ["部分团队服务不可用;可保存配置并继续本地工作,团队同步前需恢复连接。", "Some team services are unavailable. You can save and continue local work; restore the connection before team sync."];
|
|
19
|
+
readonly team_check_ok: readonly ["连接与认证通过", "Connection and authentication passed"];
|
|
20
|
+
readonly team_check_failed: readonly ["未通过,请检查地址、服务状态和团队鉴权密钥。", "Check the service URL, availability and team authentication key."];
|
|
21
|
+
readonly delivery_ack: readonly ["已标记知悉;该争议仍未成功投递。", "Acknowledged. This dispute was not successfully delivered."];
|
|
22
|
+
readonly delivery_complete: readonly ["本轮团队投递已完成。", "This delivery attempt completed."];
|
|
23
|
+
readonly delivery_incomplete: readonly ["团队投递未全部完成,请查看活动中的具体原因。", "Team delivery did not fully complete. Review the reasons in Activity."];
|
|
24
|
+
readonly delivery_wait: readonly ["仍有投递正在进行或等待依赖,待投记录已保留。", "Delivery is still in progress or waiting for dependencies. Pending records are retained."];
|
|
25
|
+
readonly dream_new: readonly ["已创建新的 Dream 请求,将重新读取当前知识。", "A new Dream request was created and will read current knowledge."];
|
|
26
|
+
readonly service_inactive: readonly ["知识组件尚未启用,聊天仍可继续。请在插件管理中启用 ACN 知识组件。", "The knowledge component is inactive. Chat remains available. Enable the ACN knowledge component in the plugin manager."];
|
|
27
|
+
readonly invalid_request: readonly ["请求字段不合法,请重新加载页面。", "The request is invalid. Reopen the ACN page and retry."];
|
|
28
|
+
readonly select_identity: readonly ["请选择可用的知识身份。", "Select an available work configuration."];
|
|
29
|
+
readonly identity_unavailable: readonly ["知识身份不可用。", "This knowledge identity is unavailable. Restore its work configuration first."];
|
|
30
|
+
readonly retry_disabled: readonly ["连接已停用或删除,不能重试。", "This configuration is disabled or missing. Restore it in ACN settings before retrying."];
|
|
31
|
+
readonly retry_queued: readonly ["任务已重新入队。", "The task has been queued again."];
|
|
32
|
+
readonly session_unavailable: readonly ["会话不可用,请重新打开或新建会话。", "The session is unavailable. Reopen it or start a new session."];
|
|
33
|
+
readonly session_unbound: readonly ["本会话未启用 ACN,聊天仍可继续。只有安装插件后新建且尚未发送消息的会话可选择工作配置;如需使用 ACN,请新建会话。", "ACN is not enabled for this session; ordinary chat remains available. Only blank sessions created after installation can choose a work configuration. Start a new session to use ACN."];
|
|
34
|
+
readonly session_optional: readonly ["本会话尚未启用 ACN,可直接聊天,或在首条消息前选择工作配置。", "ACN is not enabled for this session. You can chat normally, or choose a work configuration before the first message."];
|
|
35
|
+
readonly recap_disabled: readonly ["知识形成组件未启用。", "Knowledge formation is inactive. Enable the formation component in the plugin manager."];
|
|
36
|
+
readonly recap_empty: readonly ["没有可复盘的新增内容。", "There is no new completed content to recap."];
|
|
37
|
+
readonly recap_queued: readonly ["复盘已入队,可在处理活动中查看。", "The recap is queued. View it in Activity."];
|
|
38
|
+
readonly solo_check: readonly ["单人配置不需要连接检查;请先填写两个团队地址。", "Solo configurations need no team check. Enter both team service URLs first."];
|
|
39
|
+
readonly agent_required: readonly ["请先填写 Agent ID。", "Enter an Agent ID first."];
|
|
40
|
+
readonly check_cancelled: readonly ["检查已取消。", "The check was cancelled."];
|
|
41
|
+
readonly team_checked: readonly ["团队连接检查通过。", "Team connection and authentication checks passed."];
|
|
42
|
+
readonly team_unavailable: readonly ["部分服务不可用;可离线保存,使用前需恢复连接。", "Some team services are unavailable. You can save offline; restore connectivity before using them."];
|
|
43
|
+
readonly model_automatic: readonly ["沿用会话模型;首次同步前请先选择聊天模型。", "Following the session model. Select a chat model before the first sync."];
|
|
44
|
+
readonly model_checked: readonly ["知识模型检查通过。", "The knowledge model check passed."];
|
|
45
|
+
readonly model_check_failed: readonly ["模型未正常完成检查,保留原模型。请检查模型配置或重试。", "The model did not complete the check. The previous model is retained. Check its configuration and retry."];
|
|
46
|
+
readonly operation_failed: readonly ["操作未完成。请检查连接、知识模型和本地存储后重试。", "The operation did not complete. Check the team connection, knowledge model and local storage, then retry."];
|
|
47
|
+
readonly configuration_busy: readonly ["ACN 配置正在应用,请稍后重试。", "ACN configuration is being applied. Retry shortly."];
|
|
48
|
+
readonly key_invalid: readonly ["请检查团队配置,并填写有效的鉴权密钥。", "Check the team configuration and enter a valid authentication key."];
|
|
49
|
+
readonly key_check_failed: readonly ["检查未完成,请核对团队配置后重试。", "The check did not complete. Review the team settings and retry."];
|
|
50
|
+
readonly key_unmanaged: readonly ["当前 DSH 未提供凭据托管,无法在此页保存新密钥。仍可输入临时密钥检查连接;保存新密钥需使用支持凭据托管的 DSH。已有环境变量引用可继续沿用,高级配置方法见插件配置文档。", "This DSH has no credential storage, so this page cannot save a new key. You can check a temporary key or retain an existing environment reference. Saving a key requires DSH credential storage; see the plugin configuration guide for advanced setup."];
|
|
51
|
+
readonly key_readonly: readonly ["当前密钥存储只读,无法保存新密钥;仍可检查连接,或留空保留现有密钥。", "Credential storage is read-only. You can check a draft key or keep the current key, but cannot save a replacement."];
|
|
52
|
+
readonly key_immutable: readonly ["已有密钥引用不能覆盖,请重新输入并保存为新引用。", "An existing credential reference cannot be overwritten. Enter the key again and save a new reference."];
|
|
53
|
+
readonly key_in_use: readonly ["密钥已被配置或会话使用,保留现有凭据。", "The key is in use by a configuration or session and has been retained."];
|
|
54
|
+
readonly key_stored: readonly ["凭据已保存到 DSH 托管存储,完成配置保存后,新启动的会话才会采用;已有会话保留原连接。", "The new credential is stored. New sessions adopt it after the configuration saves; existing sessions retain their connection."];
|
|
55
|
+
readonly key_failed: readonly ["凭据操作未完成,请检查宿主凭据服务后重试。", "The credential operation failed. Check the host credential service and retry."];
|
|
56
|
+
readonly blank_identity: readonly ["请从 ACN 菜单选择可用的工作配置,初始化当前空白会话。", "Choose a work configuration from the ACN menu to initialize this blank session."];
|
|
57
|
+
readonly bound_identity: readonly ["工作配置已停用、缺失或 Agent ID 已改变;请在设置中恢复同一配置及原 Agent ID,或使用新会话。", "The work configuration is disabled, missing, or its Agent ID changed. Restore the same configuration and original Agent ID, or start a new session."];
|
|
58
|
+
readonly connection_changed: readonly ["已保存新连接,当前会话仍使用启动时的配置。", "The new connection is saved. This session retains its startup configuration."];
|
|
59
|
+
readonly sync_retry: readonly ["上次同步未完成,可继续本地工作或重试同步。", "The last sync did not finish. Continue with local knowledge or retry sync."];
|
|
60
|
+
readonly sync_cancelled: readonly ["已取消同步等待,已持久化的收件保留,可继续使用本地知识。", "Sync waiting was cancelled. Received items are retained; continue with local knowledge."];
|
|
61
|
+
readonly sync_wait: readonly ["正在同步团队收件并准备本地知识…", "Synchronizing the team Inbox and preparing local knowledge…"];
|
|
62
|
+
readonly sync_cancelling: readonly ["正在结束同步并准备本地知识,已持久化的收件保留。", "Ending sync waiting and preparing local knowledge. Received items are retained."];
|
|
63
|
+
readonly solo_ready: readonly ["单人模式已就绪,不连接团队服务。", "Solo mode is ready. No team services are contacted."];
|
|
64
|
+
};
|
|
65
|
+
export type MessageCode = keyof typeof messages;
|
|
66
|
+
export declare const messageInfo: (message: string, kind?: string) => MessageInfo;
|
|
67
|
+
export declare function displayMessage(message: string, copy: (zh: string, en: string) => string, info?: MessageInfo): string;
|
|
68
|
+
export declare function commandMessage(message: string, kind?: string): string;
|
|
69
|
+
export {};
|