@reinsjs/core 0.4.0 → 0.6.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/CHANGELOG.md +16 -0
- package/README.md +19 -1
- package/dist/index.d.ts +26 -9
- package/dist/index.js +91 -13
- package/dist/index.js.map +1 -1
- package/dist/testing/index.d.ts +1 -1
- package/dist/{types-xpjHur3K.d.ts → types-BOSGqMVX.d.ts} +12 -2
- package/package.json +1 -1
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BlobStore, E as EventLog, a as Event, M as MemoryStore, r as RunLease, f as LoweringCapabilities, o as CoreEventDraft, U as LoweringOutcome, a5 as ToRequestInput, L as Lowering, e as ModelRef, k as LoweredRequest, V as LoweringStreamContext, c as EventDraft } from '../types-
|
|
1
|
+
import { B as BlobStore, E as EventLog, a as Event, M as MemoryStore, r as RunLease, f as LoweringCapabilities, o as CoreEventDraft, U as LoweringOutcome, a5 as ToRequestInput, L as Lowering, e as ModelRef, k as LoweredRequest, V as LoweringStreamContext, c as EventDraft } from '../types-BOSGqMVX.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 一致性套件对测试框架的最小要求:只要 describe / it 两个函数。
|
|
@@ -139,6 +139,12 @@ interface SystemNotePayload {
|
|
|
139
139
|
* 折叠之前它照常可见(未折叠的历史原样展示)。可选字段,不升版本。
|
|
140
140
|
*/
|
|
141
141
|
supersedes?: string[];
|
|
142
|
+
/**
|
|
143
|
+
* 注入者声明这是要模型**去做**的指令(如 compact 的整理请求,OPT-261031-1),不是陈述。降级层据此选送达方式:
|
|
144
|
+
* 有的上游收下中途 system 却不执行其中的指令(踩坑 42),指令类说明一律以带标签的 user 文本送达,陈述类(感知、钉住)不受影响。
|
|
145
|
+
* 角色仍只由降级层决定(宪法二),这里只写语义。写进日志即定格:历史说明的送达方式不随升级变化,缓存前缀稳定。可选字段,不升版本。
|
|
146
|
+
*/
|
|
147
|
+
directive?: true;
|
|
142
148
|
}
|
|
143
149
|
interface ApprovalRequestPayload {
|
|
144
150
|
toolCallId: string;
|
|
@@ -155,13 +161,17 @@ interface ApprovalDecisionPayload {
|
|
|
155
161
|
}
|
|
156
162
|
/**
|
|
157
163
|
* 压缩不删原事件,只追加这一条:投影层看到它就用 summary 替代 coversSeq 范围内的事件。
|
|
158
|
-
* decidedBy
|
|
164
|
+
* decidedBy 记"谁定的时机":
|
|
165
|
+
* - `model`:模型自己挑的时机(默认路径,P1);
|
|
166
|
+
* - `forced`:用量过了软线、框架请它整理后模型照做的——时机是框架定的,摘要仍是模型写的(OPT-261030-3);
|
|
167
|
+
* - `threshold`:模型没整理、过了触发线,投影链机械裁剪。
|
|
168
|
+
* 新增取值不升 schemaVersion:注册表不校验载荷,旧日志照读。
|
|
159
169
|
*/
|
|
160
170
|
interface CompactionPayload {
|
|
161
171
|
/** 闭区间 [from, to],按 seq */
|
|
162
172
|
coversSeq: [number, number];
|
|
163
173
|
summary: string;
|
|
164
|
-
decidedBy: "model" | "threshold";
|
|
174
|
+
decidedBy: "model" | "forced" | "threshold";
|
|
165
175
|
/** 折叠后仍需重注入的钉住事件 id */
|
|
166
176
|
pinsKept: string[];
|
|
167
177
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reinsjs/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "reins — core: append-only event timeline, projection, the copyable runLoop, serializable run state and the Socket seam. Zero dependencies, zero node:*",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|