@sema-agent/server 7.118.0 → 7.119.0
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/MIGRATION.md +85 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/USAGE.md +24 -13
- package/deploy/sema-up/README.md +2 -0
- package/deploy/sema-up/chart/templates/minio.yaml +2 -1
- package/deploy/sema-up/chart/templates/server-v4pro.yaml +1 -0
- package/deploy/sema-up/chart/templates/server.yaml +1 -0
- package/deploy/sema-up/chart/values.yaml +7 -1
- package/deploy/sema-up/cluster-up.sh +20 -8
- package/deploy/sema-up/kube-up.sh +29 -16
- package/deploy/sema-up/lib/buckets.sh +21 -0
- package/deploy/sema-up/lib/health.sh +33 -0
- package/deploy/sema-up/sema-up.sh +14 -9
- package/deploy/sema-up/smoke.sh +16 -6
- package/deploy/sema-up/stack/compose.yaml +1 -1
- package/deploy/sema-up/stack/sema-stack-cluster.yaml +4 -1
- package/dist/approval-ask-audit-store.js +2 -7
- package/dist/approval-card.d.ts +5 -5
- package/dist/approval.d.ts +51 -5
- package/dist/approval.js +76 -13
- package/dist/audit.d.ts +12 -1
- package/dist/audit.js +62 -2
- package/dist/auto-mode-face.d.ts +2 -3
- package/dist/bake-runner/main.js +1 -6
- package/dist/bake-runner/protocol.d.ts +18 -0
- package/dist/bake-runner/protocol.js +22 -2
- package/dist/bake-runner/runner.d.ts +12 -8
- package/dist/bake-runner/runner.js +5 -9
- package/dist/boot/config-center.js +1 -1
- package/dist/boot/coordinators.js +4 -1
- package/dist/boot/device-lane.d.ts +3 -3
- package/dist/boot/device-lane.js +1 -2
- package/dist/boot/leader.d.ts +4 -4
- package/dist/boot/leader.js +1 -2
- package/dist/boot/parked-revive-gate.d.ts +5 -1
- package/dist/boot/parked-revive-gate.js +8 -2
- package/dist/boot/resolve-spec.js +7 -4
- package/dist/boot/stage-07-capability-layer.js +5 -1
- package/dist/boot/stage-10-http-server.js +3 -2
- package/dist/boot/stores.js +12 -7
- package/dist/capabilities/center-plugins.d.ts +2 -0
- package/dist/capabilities/center-plugins.js +24 -6
- package/dist/capabilities/code-review-council.js +8 -11
- package/dist/capabilities/scenarios.d.ts +34 -7
- package/dist/capabilities/scenarios.js +33 -6
- package/dist/config-catalog.js +3 -3
- package/dist/config.js +2 -2
- package/dist/deployment-governance.d.ts +5 -2
- package/dist/deployment-governance.js +4 -3
- package/dist/host-decision.d.ts +52 -27
- package/dist/host-decision.js +14 -7
- package/dist/http/admission.js +6 -6
- package/dist/http/resume-legs.js +2 -1
- package/dist/http/routes/approvals-assistant.d.ts +25 -3
- package/dist/http/routes/approvals-assistant.js +9 -5
- package/dist/http/routes/capabilities.js +4 -3
- package/dist/http/routes/memory-origin.d.ts +1 -1
- package/dist/http/routes/runs.js +11 -5
- package/dist/http/routes/sessions.js +20 -16
- package/dist/http/wire-types.d.ts +12 -13
- package/dist/images/manifest.d.ts +7 -1
- package/dist/images/manifest.js +18 -16
- package/dist/memory-store-refusal.d.ts +7 -12
- package/dist/memory-store-refusal.js +4 -5
- package/dist/namespaced-rule-name.d.ts +4 -3
- package/dist/observability/fail-open.d.ts +5 -1
- package/dist/observability/fail-open.js +5 -1
- package/dist/operator-ask.d.ts +6 -5
- package/dist/plugins/approval-exemption-store.d.ts +4 -0
- package/dist/plugins/approval-exemption-store.js +1 -0
- package/dist/plugins/blob-backend.d.ts +13 -0
- package/dist/plugins/blob-backend.js +26 -0
- package/dist/plugins/local-session-store.d.ts +78 -47
- package/dist/plugins/local-session-store.js +152 -122
- package/dist/plugins/one-time-migrations.d.ts +6 -0
- package/dist/plugins/one-time-migrations.js +19 -1
- package/dist/plugins/snapshot-bucket-presence.d.ts +36 -0
- package/dist/plugins/snapshot-bucket-presence.js +40 -0
- package/dist/plugins/store-backend.d.ts +17 -6
- package/dist/plugins/store-backend.js +46 -16
- package/dist/plugins/store-open-wait.d.ts +33 -0
- package/dist/plugins/store-open-wait.js +73 -0
- package/dist/rule-entry-list.js +1 -1
- package/dist/run-local.js +4 -3
- package/dist/security.d.ts +5 -3
- package/dist/security.js +4 -0
- package/dist/session-policy-wire.js +7 -12
- package/dist/spec-fields.d.ts +6 -2
- package/dist/store-posture.d.ts +14 -6
- package/dist/store-posture.js +7 -4
- package/dist/task-settings.d.ts +27 -55
- package/dist/task-settings.js +6 -18
- package/dist/tool-approval.d.ts +97 -43
- package/dist/tool-approval.js +120 -31
- package/dist/trace/redact.d.ts +6 -0
- package/dist/trace/redact.js +9 -9
- package/dist/trace/self-minted-wire.d.ts +1 -1
- package/dist/user-input-ledger.d.ts +19 -15
- package/dist/user-input-ledger.js +12 -20
- package/package.json +2 -2
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { type AcquiredSession, type SessionStore, type SessionRepo, type SessionTreeEntry } from "@sema-agent/core";
|
|
1
|
+
import { FileSessionRepo, type AcquiredSession, type SessionStore, type SessionRepo, type SessionTreeEntry } from "@sema-agent/core";
|
|
2
2
|
import type { SessionSummary } from "./store-contracts.js";
|
|
3
|
+
import { type Logger } from "../observability/logger.js";
|
|
3
4
|
import { type SessionFace } from "../session-incarnation.js";
|
|
4
5
|
import { type InstructionSourceBaseline } from "../instruction-source-notice.js";
|
|
5
6
|
import { type StagingHandle } from "../session-sync-kernel.js";
|
|
7
|
+
/**
|
|
8
|
+
* local 车道会话存档的**唯一 repo 出口**:本仓里每一只读 `<root>/sessions/*.jsonl` 的 `FileSessionRepo` 都从这里取(`LocalSessionStore` 的底座与会话视图口
|
|
9
|
+
* `audit.ts#buildSessionAuditLocal` 的读旁路),所以坏记录的披露座只有这一份接线 —— 修前视图口自建一只不带座的 repo,同一份坏档在这里读到有计数 / 探针,
|
|
10
|
+
* 在视图口读到一个字都没有。座 = F 类 `server.session-repo.corrupt-record-skipped`(会话存档里读不出的记录丢的是可用性:历史少一截 / 列表少一行,不开任何门;
|
|
11
|
+
* 计数单位 = 一条被跳过的记录,逐命中探针行,warn 每进程一次),外加会话打开作用域的计数腿(`noteReplayInSessionOpenScope`:只在 `openSessionForItself`
|
|
12
|
+
* 的作用域里才记,作用域外 —— 列表 / 导出 / 视图口 —— 是空操作,那些读只进运维面)。
|
|
13
|
+
*/
|
|
14
|
+
export declare function createLocalSessionRepo(root: string): FileSessionRepo;
|
|
6
15
|
export declare class LocalSessionStore implements SessionStore {
|
|
7
16
|
private readonly repo;
|
|
8
17
|
/** [ref] 车1:托管留存声明 —— **诚实的 none**。本店的行没有任何按期删除的腿(留存 lane 的三方法只实现在
|
|
@@ -12,8 +21,6 @@ export declare class LocalSessionStore implements SessionStore {
|
|
|
12
21
|
readonly retention: import("@sema-agent/core").RetentionDeclaration;
|
|
13
22
|
/** In-flight acquisitions keyed by id, so concurrent acquire(sameId) in one process share one (mirrors TiDBSessionStore). */
|
|
14
23
|
private readonly pending;
|
|
15
|
-
/** Service-side owner scope per session (core's repo has no owner column). Registered-ownerless ⇒ null; absent ⇒ undefined. */
|
|
16
|
-
private readonly owners;
|
|
17
24
|
/** Last-activity marker (touch) for ordering — the keyset sort key for {@link listSessions}. PERSISTED to a JSON
|
|
18
25
|
* sidecar under {@link dataDir} (when given) so the /resume picker's newest-first order SURVIVES a service restart:
|
|
19
26
|
* without persistence the map starts EMPTY on boot and every session degrades to `createdAt` ordering (the picker
|
|
@@ -54,35 +61,52 @@ export declare class LocalSessionStore implements SessionStore {
|
|
|
54
61
|
private readonly sidecarPath?;
|
|
55
62
|
/** Auto-title map (`session-titles.json`). Separate file from the lastActivity sidecar ON PURPOSE (that format is a
|
|
56
63
|
* #10 clobber area); titles are write-once + ultra-low-rate (one per session, ever). Cross-instance sharing: see
|
|
57
|
-
* {@link
|
|
64
|
+
* {@link SidecarMap}. */
|
|
58
65
|
private readonly titles;
|
|
59
66
|
/** S-690 — instruction-source baselines (`session-instruction-sources.json`): the chain member the session's previous
|
|
60
67
|
* run selected, encoded like the SQL twins' `session_meta.instruction_source` column ('' = none; missing key = never
|
|
61
68
|
* recorded). Its own file for the same reason titles have theirs: one small map per concern, no format coupling. */
|
|
62
69
|
private readonly instructionSources;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
|
|
70
|
+
/**
|
|
71
|
+
* 会话元数据(`session-incarnations.json`,一格的形与两种读法见 {@link SessionMetaCell}):**属主与化身的唯一真源**,SQL 孪生
|
|
72
|
+
* `session_meta` 行上 `owner` / `incarnation` 两列在本店的对位。两样都**必须落盘**:
|
|
73
|
+
* · 化身(S-790 / S-506,[ref] §2)的口径是「一位住客一生稳定」,记忆引擎按它绑定会话级记录(opt-out / 污染标记)——
|
|
74
|
+
* 重启后换一只值 = 同一位住客的 opt-out 不再绑它 = 静默恢复采集;
|
|
75
|
+
* · 属主(7.119.0)是会话策略规则的存储键:规则按「会话 × 属主」存、按 run 的 principal 读 —— 重启后属主丢了,规则照样在跑,
|
|
76
|
+
* 属主自己却读不到也删不掉(`409 conflict.session_ownerless`)。7.118.x 及更早属主只活在一只进程内存 Map 里,就是这个病。
|
|
77
|
+
* 没有第二份:进程里的读视图就是这只边档按路径共享的那张表({@link SidecarMap},同写链;只发布已落盘的值 —— 写失败什么都不发布)。铸点只在新建会话;
|
|
78
|
+
* 盘上有会话而边档里没有它那一格 ⇒ 第一次读补铸一格只有化身的(属主没有事实可写)并落盘。严格读(读不出 ⇒ 整只拒,见 `SidecarMap.strict`)。
|
|
79
|
+
*/
|
|
80
|
+
private readonly meta;
|
|
81
|
+
/** 认领行(`session_owner_claimed`)的出口 —— 一次性迁移 M10 的认领臂专用(窗口见 `plugins/one-time-migrations.ts` 登记表)。 */
|
|
82
|
+
private readonly log;
|
|
69
83
|
/** @param repo the core SessionRepo this store projects into the §0.5 SessionStore shape.
|
|
70
84
|
* @param dataDir the SAME data dir the file-backed repo persists under (LocalBackend passes `fileBackend.root`).
|
|
71
85
|
* When given, lastActivity is persisted to `<dataDir>/session-last-activity.json` so it survives a
|
|
72
|
-
* restart (the file-backed deployment); omit it for the in-memory deployment (nothing survives).
|
|
73
|
-
|
|
86
|
+
* restart (the file-backed deployment); omit it for the in-memory deployment (nothing survives).
|
|
87
|
+
* @param opts.log the `session_owner_claimed` line's sink (LocalBackend passes a logger at the deployment's LOG_LEVEL;
|
|
88
|
+
* absent ⇒ an info-level JSON-line logger — a claim is never silent). */
|
|
89
|
+
constructor(repo: SessionRepo, dataDir?: string, opts?: {
|
|
90
|
+
log?: Pick<Logger, "info">;
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* 把 `sessionId` 那一格写成 `next(before)` 的结果并**落盘**(写链里在草稿上判、写、落盘后才发布给读者 —— 与 instruction-source 同一只 `commit`;
|
|
94
|
+
* 判据建立在每一节之前的盘上状态上,所以防 clobber 的「已记下就不动」写在 `next` 里,不写在链外)。`next` 返回 `undefined` = 不改。
|
|
95
|
+
* 落不了盘 ⇒ 抛(属主与化身都是正确性事实,不做「内存里先记着」的降级:一只没落盘的化身重启后会被换掉 —— 那是另一位住客;
|
|
96
|
+
* 一个没落盘的属主重启后就丢了 —— 那正是 7.119.0 修的病)。返回这一次是否真改了那一格。
|
|
97
|
+
*/
|
|
98
|
+
private writeMeta;
|
|
99
|
+
/** 删一只会话的那一格(落盘;落不了 ⇒ 抛 —— 留下的格会让一只删掉的会话在重启后「还在」)。 */
|
|
100
|
+
private dropMeta;
|
|
101
|
+
/** 盘上有没有这只会话(repo 的唯一探针;`open` 读整只存档,所以只在边档里没有那一格时才走到这里)。 */
|
|
102
|
+
private existsInRepo;
|
|
74
103
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
104
|
+
* 一只会话的元数据 —— 属主与化身的**唯一读口**(`ownerOf` / `sessionFaceOf` / `getHead` / 删除与换装的属主门都经它)。`undefined` = 无此会话。
|
|
105
|
+
* 边档里有那一格 ⇒ 读它(一次同步读,两样同出一格,不会拼出混世代组合);没有那一格而盘上有会话(7.104.0 之前的会话从没被铸过化身)
|
|
106
|
+
* ⇒ 补铸一格只有化身的(属主没有事实可写,不伪造)并落盘后再答 —— 之后的读都命中那一格,不再回 repo。
|
|
78
107
|
*/
|
|
79
|
-
private
|
|
80
|
-
/** S-790
|
|
81
|
-
private mintIncarnation;
|
|
82
|
-
/** S-790:已存在的会话缺一只化身(盘上 7.104.0 之前的会话)⇒ 补铸;已有的一个字节不动。 */
|
|
83
|
-
private ensureIncarnation;
|
|
84
|
-
/** S-790:属主 + 化身一次读(SQL 孪生同义;`undefined` = 无此会话)。盘上有会话而边档里没有它的化身 ⇒ 补铸并落盘后再答;
|
|
85
|
-
* 读的过程中会话被删 / 换了主 ⇒ `undefined`(与 {@link getHead} 同一条「读间被删」判据)。 */
|
|
108
|
+
private metaOf;
|
|
109
|
+
/** S-790:属主 + 化身一次读(SQL 孪生同义;`undefined` = 无此会话)—— 两样出自 {@link metaOf} 读到的同一格。 */
|
|
86
110
|
sessionFaceOf(sessionId: string): Promise<SessionFace | undefined>;
|
|
87
111
|
/** Cheap pre-LLM probe (local twin). The map write needs no session_meta row, so there is
|
|
88
112
|
* no "none" (register-lag) dimension here — two states only. */
|
|
@@ -94,10 +118,10 @@ export declare class LocalSessionStore implements SessionStore {
|
|
|
94
118
|
/** S-690 —— 换源通告的基线读(local 孪生;三态读法与 SQL 两孪生的 `session_meta.instruction_source` 同一只编解码)。 */
|
|
95
119
|
readInstructionSource(sessionId: string): Promise<InstructionSourceBaseline>;
|
|
96
120
|
/**
|
|
97
|
-
* S-690 —— CAS 覆写基线(契约见 `InstructionSourceStore`:期望值不符 ⇒ 不写;**没落盘 ⇒
|
|
121
|
+
* S-690 —— CAS 覆写基线(契约见 `InstructionSourceStore`:期望值不符 ⇒ 不写;**没落盘 ⇒ 内存不动、抛**,与 SQL 孪生
|
|
98
122
|
* 「要么提交要么抛」同形 —— 修前写失败只 warn、内存照样前进,同来源的后续 run 在相等比较上短路、再也不重写,重启后
|
|
99
|
-
* 比的是一份过期的盘,codex che-NM r1 [medium])。CAS
|
|
100
|
-
*
|
|
123
|
+
* 比的是一份过期的盘,codex che-NM r1 [medium])。CAS 判定(在草稿上)、落盘、发布**整段在写链的一节里**(`commit`):下一节
|
|
124
|
+
* 开始之前共享的那张表只含落过盘的值,判定永远不会建立在一个没落过盘的值上(codex che-NM r2 [medium])。
|
|
101
125
|
*/
|
|
102
126
|
recordInstructionSource(sessionId: string, expected: InstructionSourceBaseline, source: string | null): Promise<void>;
|
|
103
127
|
/** Best-effort, one-shot hydrate of the persisted lastActivity map (no-op when not persisting / no sidecar yet). A
|
|
@@ -141,28 +165,35 @@ export declare class LocalSessionStore implements SessionStore {
|
|
|
141
165
|
requireExisting?: boolean;
|
|
142
166
|
}): Promise<AcquiredSession>;
|
|
143
167
|
private load;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
|
|
149
|
-
/** Owner of a session: `null` if registered ownerless, `undefined` if no such session (mirrors TiDBSessionStore.ownerOf).
|
|
168
|
+
/**
|
|
169
|
+
* Idempotently record a session's owner — never overwrites a RECORDED owner (incl. a recorded `null`, "registered ownerless";
|
|
170
|
+
* mirrors TiDBSessionStore.register's first-write rule). TiDB parity: register INSERTs a session_meta row so the session EXISTS
|
|
171
|
+
* (forkable) even before its first acquire/run — so we also ensure an EMPTY repo session exists (open if present → never
|
|
172
|
+
* overwrite history; create if not), else `ownerOf` would say a registered-but-never-acquired session exists while `fork` 404s it.
|
|
150
173
|
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
174
|
+
* 首写判据在写链里判(两只并发登记:先落盘的那一只赢,后一只不改、也不建会话)。一只**盘上已有、属主从没被记下**的会话
|
|
175
|
+
* (边档那一格只有化身 —— 7.118.x 及更早写下的,或更早到连化身都没有)是一次性迁移 M10 的对象(窗口见 `plugins/one-time-migrations.ts`
|
|
176
|
+
* 登记表):窗开着、且这次登记带着 principal(`owner !== null`)⇒ **认领**(记下属主,化身一个字节不动 —— 同一位住客),一行 info
|
|
177
|
+
* `session_owner_claimed`;否则只补化身(缺就补),属主仍是「没被记下」,读作无主。认领的安全前提是单用户 —— local 后端起服门拒
|
|
178
|
+
* `REQUIRE_PRINCIPAL=true`,授权口也只在那时才把 principal 递过来认领(`security.ts` `createAuthorizer`)。
|
|
179
|
+
*/
|
|
180
|
+
register(sessionId: string, owner: string | null): Promise<void>;
|
|
181
|
+
/** Owner of a session: `null` if ownerless (registered ownerless, or an owner that was never recorded — a session written by
|
|
182
|
+
* an earlier version), `undefined` if no such session (mirrors TiDBSessionStore.ownerOf). Reads {@link metaOf}: the persisted
|
|
183
|
+
* cell, so the answer survives a restart exactly like the SQL twins' `session_meta.owner` column does. (Before 7.119.0 the
|
|
184
|
+
* owner lived in a process-local Map and this method answered `null` for every session after a restart — the S3 fallback
|
|
185
|
+
* "on disk ⇒ ownerless" kept the E21 delete working, but froze every owner-keyed session-policy rule.) */
|
|
156
186
|
ownerOf(sessionId: string): Promise<string | null | undefined>;
|
|
157
|
-
/** [ref] 六轮复审:owner+leafId
|
|
158
|
-
* (
|
|
187
|
+
/** [ref] 六轮复审:owner+leafId 原子快照 —— 先读那一格,读 leaf,再同步复读那一格:格没了(读间被删)或换了主 / 换了住客 ⇒
|
|
188
|
+
* undefined(调用方按删处理)。 */
|
|
159
189
|
getHead(sessionId: string): Promise<{
|
|
160
190
|
owner: string | null;
|
|
161
191
|
leafId: string | null;
|
|
162
192
|
} | undefined>;
|
|
163
|
-
/** 2c P1d-β — re-stamp the
|
|
164
|
-
*
|
|
165
|
-
|
|
193
|
+
/** 2c P1d-β — re-stamp the session's owner WITHOUT rewriting entries (the staged-commit `identical` path: the log is
|
|
194
|
+
* already present & equal, so only the owner needs re-stamping to the importing principal, §9). Persisted like every
|
|
195
|
+
* owner write; the incarnation is untouched (same occupant). No cell (no such session) ⇒ no-op. */
|
|
196
|
+
restampOwner(sessionId: string, owner: string | null): Promise<void>;
|
|
166
197
|
touch(sessionId: string): Promise<void>;
|
|
167
198
|
/** E18 — the session's current leaf SessionTreeEntry.id (@see TiDBSessionStore.getLeafId). Reads the repo's storage
|
|
168
199
|
* leaf (no acquire-lock; InMemory/File repo reads don't lock). null when the session doesn't exist / has no leaf. */
|
|
@@ -174,10 +205,9 @@ export declare class LocalSessionStore implements SessionStore {
|
|
|
174
205
|
* abstraction (`repo.list()`), keyset-paginated newest-first by last activity. Session IDENTITY comes from the
|
|
175
206
|
* repo (one entry per persisted session); a {@link SessionSummary} is SYNTHESIZED per id so the wire shape is
|
|
176
207
|
* byte-identical to {@link TiDBSessionStore.listSessions} (the run picker doesn't drift):
|
|
177
|
-
* - `owner` — the
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* null-owner session lists). The route already owner-gates at the HTTP layer.
|
|
208
|
+
* - `owner` — the session's persisted session-meta cell (null when ownerless / never recorded). A
|
|
209
|
+
* single-user local deployment runs REQUIRE_PRINCIPAL=off; the route already owner-gates
|
|
210
|
+
* at the HTTP layer.
|
|
181
211
|
* - `firstActivityAt` — the session's `createdAt` (repo metadata).
|
|
182
212
|
* - `lastActivityAt` — the touch marker (falls back to `createdAt`); the keyset sort key.
|
|
183
213
|
* - `objectivePreview`— the last USER-text entry, synthesized from the session tree (no run ledger).
|
|
@@ -240,9 +270,10 @@ export declare class LocalSessionStore implements SessionStore {
|
|
|
240
270
|
/** 2c session-sync — IMPORT a verbatim entry log into `sessionId` via core `SessionRepo.importEntries`
|
|
241
271
|
* (which runs the `validateEntriesForImport` fail-closed gate before writing). `owner` is the authenticated
|
|
242
272
|
* importing principal (re-stamped into the service-side owner map; core's local repo has no owner column, §9).
|
|
243
|
-
* `owner=null` (single-user local) is passed as `undefined` to the core seam (its owner param is `string | undefined`).
|
|
273
|
+
* `owner=null` (single-user local) is passed as `undefined` to the core seam (its owner param is `string | undefined`).
|
|
274
|
+
* The owner is recorded in the session-meta cell (persisted), together with the incarnation. */
|
|
244
275
|
importEntries(sessionId: string, owner: string | null, entries: SessionTreeEntry[]): Promise<void>;
|
|
245
|
-
/** importEntries / replaceEntries 的共用写半场:导日志 +
|
|
276
|
+
/** importEntries / replaceEntries 的共用写半场:导日志 + 一格写全属主与化身(新建铸的那只,或换装沿用的那只)。 */
|
|
246
277
|
private importEntriesAs;
|
|
247
278
|
/** 2c session-sync (§7/§8) — IDEMPOTENT REPLACE. The local twin's replace is DELETE-then-IMPORT: core's
|
|
248
279
|
* InMemorySessionRepo / FileSessionRepo expose no single replace primitive, but the local backend is single-writer
|