@tea-agent/loop-agent 0.52.0-next.3 → 0.52.0-next.5
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 +5 -1
- package/dist/build-stamp.json +3 -3
- package/dist/commands/init-upgrade.js +1 -0
- package/dist/executors/pi-sdk-executor.js +3 -3
- package/dist/governance/path-guard.js +2 -0
- package/dist/records/harvest.js +1 -1
- package/dist/shared/git-progress.js +3 -0
- package/dist/task/delegate.js +1 -1
- package/dist/task/worktree.js +1 -1
- package/dist/worker/console/chat/scheduled-goal-request.js +1 -1
- package/dist/worker/console/chat/terminal-sessions.js +12 -6
- package/dist/worker/console/chat/workspace-changes.js +10 -0
- package/dist/worker/console/static/assets/{abnfDiagram-N423BO3Z-CM5ocMUs.js → abnfDiagram-N423BO3Z-q8Zn-JlS.js} +1 -1
- package/dist/worker/console/static/assets/{arc-CDapwdTN.js → arc-CqXYi6Cq.js} +1 -1
- package/dist/worker/console/static/assets/{architectureDiagram-T3A2C74G-Ogy4GOqS.js → architectureDiagram-T3A2C74G-BfrVQFaO.js} +1 -1
- package/dist/worker/console/static/assets/{blockDiagram-VBNYF7ZC-DsiaOIgU.js → blockDiagram-VBNYF7ZC-DFl6xIeQ.js} +1 -1
- package/dist/worker/console/static/assets/{c4Diagram-5PPSVZJV-B84hhgSe.js → c4Diagram-5PPSVZJV-BkeCachn.js} +1 -1
- package/dist/worker/console/static/assets/channel-bnnK2hoC.js +1 -0
- package/dist/worker/console/static/assets/{chunk-2GRJ4B5K-SPqOhMla.js → chunk-2GRJ4B5K-DKbA7wvS.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-2Q5K7J3B-BL0Q4ZV3.js → chunk-2Q5K7J3B-COeFrK0l.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-5RXB4S5H-CJpOcFAh.js → chunk-5RXB4S5H-DN50xlDZ.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-5VM5RSS4-DQC6vqVW.js → chunk-5VM5RSS4-Cds3bTQr.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-6Q2QTUOP-D4dq_L0l.js → chunk-6Q2QTUOP-GnSZ3Q_F.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-GF5L2VYU-DVNZmiVo.js → chunk-GF5L2VYU-C6UwY9nR.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-JWPE2WC7-B1yOfAhr.js → chunk-JWPE2WC7-BuYYcpOE.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-KBJHAD2P-BEPc1N6N.js → chunk-KBJHAD2P-BksBBron.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-RYQCIY6F-Da_-gMwh.js → chunk-RYQCIY6F-lATCww1u.js} +1 -1
- package/dist/worker/console/static/assets/{chunk-XXDRQBXY-C75eW9DT.js → chunk-XXDRQBXY-w1pNKtr7.js} +1 -1
- package/dist/worker/console/static/assets/classDiagram-JCYQIIEL-CRSYuU2u.js +1 -0
- package/dist/worker/console/static/assets/classDiagram-v2-OCEON4UE-CRSYuU2u.js +1 -0
- package/dist/worker/console/static/assets/{cose-bilkent-JH36ORCC-C4Gn7eYB.js → cose-bilkent-JH36ORCC-C-M-DjUn.js} +1 -1
- package/dist/worker/console/static/assets/{cynefinDiagram-MW4NZA55--CBwVt18.js → cynefinDiagram-MW4NZA55-zh47XBGY.js} +1 -1
- package/dist/worker/console/static/assets/{dagre-VZM6K2ZE-B8dBxboB.js → dagre-VZM6K2ZE-DmBrLR56.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-7IWD3JNH-hKtlE0w-.js → diagram-7IWD3JNH-_aQq1Uwl.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-B4RE2ZJO-BKirx0F3.js → diagram-B4RE2ZJO-rD-1FbDW.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-LBJQPF4R-bkx-oUrD.js → diagram-LBJQPF4R-BIOtuSUO.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-Q27KOJAE-D7sFtSjr.js → diagram-Q27KOJAE-COYOUs-A.js} +1 -1
- package/dist/worker/console/static/assets/{diagram-UB23O5K3-BPjzGBV_.js → diagram-UB23O5K3-DHBljm5_.js} +1 -1
- package/dist/worker/console/static/assets/{ebnfDiagram-BXEA7PRR-DODv-GbM.js → ebnfDiagram-BXEA7PRR-B2aPoFUL.js} +1 -1
- package/dist/worker/console/static/assets/{erDiagram-JOGREHBK-DbfVp5uI.js → erDiagram-JOGREHBK-S3jGp2gH.js} +1 -1
- package/dist/worker/console/static/assets/{flowDiagram-UKHOOZJN-BHWWThbx.js → flowDiagram-UKHOOZJN-4PZPJme4.js} +1 -1
- package/dist/worker/console/static/assets/{ganttDiagram-PKOTCBZU-SWY_8oU3.js → ganttDiagram-PKOTCBZU-hY9AqGVo.js} +1 -1
- package/dist/worker/console/static/assets/{gitGraphDiagram-DS77QQ5N-CJdhHY-i.js → gitGraphDiagram-DS77QQ5N-DBNB0wWX.js} +1 -1
- package/dist/worker/console/static/assets/{infoDiagram-6WML65LV-CLC4mTWX.js → infoDiagram-6WML65LV-Cej8plCh.js} +1 -1
- package/dist/worker/console/static/assets/{ishikawaDiagram-WSZJBQD7-CiJDWOmX.js → ishikawaDiagram-WSZJBQD7-BmeNegTv.js} +1 -1
- package/dist/worker/console/static/assets/{journeyDiagram-NVQOT4AX-eIQfMD0f.js → journeyDiagram-NVQOT4AX-BlL2uW1B.js} +1 -1
- package/dist/worker/console/static/assets/{kanban-definition-27J2QSJJ-3d6r1cG7.js → kanban-definition-27J2QSJJ-BUQ6cZg2.js} +1 -1
- package/dist/worker/console/static/assets/{linear-BjbmxxDk.js → linear-XcBbsyGj.js} +1 -1
- package/dist/worker/console/static/assets/{main-D4knTr0R.js → main-BtQuxoWS.js} +132 -131
- package/dist/worker/console/static/assets/{main-B9ZnQejR.css → main-C9HyHMYb.css} +1 -1
- package/dist/worker/console/static/assets/{mermaid.core-CD2GFYrr.js → mermaid.core-CIj0Ef-_.js} +4 -4
- package/dist/worker/console/static/assets/{mindmap-definition-FAOFIHXS-D0ORXhx-.js → mindmap-definition-FAOFIHXS-J2HWWWHK.js} +1 -1
- package/dist/worker/console/static/assets/{pegDiagram-VL7TDLO6-BqNbcp7_.js → pegDiagram-VL7TDLO6-Bi4Txdnd.js} +1 -1
- package/dist/worker/console/static/assets/{pieDiagram-7S7Q4E2Y-CGO0Y13N.js → pieDiagram-7S7Q4E2Y-C_Ir9kQa.js} +1 -1
- package/dist/worker/console/static/assets/{quadrantDiagram-CIZ2JOQS-vH4fdvTV.js → quadrantDiagram-CIZ2JOQS-Wmzc16HI.js} +1 -1
- package/dist/worker/console/static/assets/{railroadDiagram-AXF67PYL-B_sbmiFS.js → railroadDiagram-AXF67PYL-BBlE2mdV.js} +1 -1
- package/dist/worker/console/static/assets/{requirementDiagram-LRYGKXZP-DbHtPigL.js → requirementDiagram-LRYGKXZP-10tJvPpg.js} +1 -1
- package/dist/worker/console/static/assets/{sankeyDiagram-W5VNT64P-BcqNS0Ko.js → sankeyDiagram-W5VNT64P-CMyZUusG.js} +1 -1
- package/dist/worker/console/static/assets/{sequenceDiagram-SI44F4Z6-5Zf3xJfg.js → sequenceDiagram-SI44F4Z6-BAMpiKB0.js} +1 -1
- package/dist/worker/console/static/assets/{sheet-workbook-Bvq6WFll.js → sheet-workbook-C-2fz9qI.js} +1 -1
- package/dist/worker/console/static/assets/{sizeCapture-X5ZJPWSS-BoO7GXeG.js → sizeCapture-X5ZJPWSS-f5t9RbJB.js} +1 -1
- package/dist/worker/console/static/assets/{stateDiagram-OKZ733FA-3suojNXT.js → stateDiagram-OKZ733FA-EMnmXMw9.js} +1 -1
- package/dist/worker/console/static/assets/stateDiagram-v2-UEYNNEHI-pqCJTCQK.js +1 -0
- package/dist/worker/console/static/assets/{swimlanes-SLNWSIFB-B5CyFSLq.js → swimlanes-SLNWSIFB-BosIuNEF.js} +2 -2
- package/dist/worker/console/static/assets/swimlanesDiagram-ULZ7WXOC-6P0fI_e1.js +8 -0
- package/dist/worker/console/static/assets/{timeline-definition-Z64GVDOM-BuZ_HcXz.js → timeline-definition-Z64GVDOM-dhqGUSL1.js} +1 -1
- package/dist/worker/console/static/assets/{vennDiagram-T6HMQDX7-CJ_IDS7Q.js → vennDiagram-T6HMQDX7-Buj6-SnQ.js} +1 -1
- package/dist/worker/console/static/assets/{wardleyDiagram-T6FBY63Y-BpKLb-Su.js → wardleyDiagram-T6FBY63Y-BdmO-2xt.js} +1 -1
- package/dist/worker/console/static/assets/{xychartDiagram-ELKLHX3M-Mdo6gaIk.js → xychartDiagram-ELKLHX3M-dbO2MqJN.js} +1 -1
- package/dist/worker/console/static/index.html +2 -2
- package/dist/worker/console/static-src/operator-chat/changed-file-diff.js +15 -0
- package/dist/worker/scheduler/git-base.js +3 -0
- package/dist/worker/scheduler/night-git-finalizer.js +1 -1
- package/dist/worker/scheduler/night-harvest.js +1 -1
- package/dist/worker/scheduler/prepared-attempt-recovery.js +1 -1
- package/dist/worker/scheduler/scheduled-goal-evidence.js +1 -1
- package/package.json +7 -7
- package/scripts/patch-pi-sdk-windows-hide.mjs +3 -3
- package/dist/worker/console/static/assets/channel-BCVzSVXD.js +0 -1
- package/dist/worker/console/static/assets/classDiagram-JCYQIIEL-BRlRsJR0.js +0 -1
- package/dist/worker/console/static/assets/classDiagram-v2-OCEON4UE-BRlRsJR0.js +0 -1
- package/dist/worker/console/static/assets/stateDiagram-v2-UEYNNEHI-Bq6cg1c9.js +0 -1
- package/dist/worker/console/static/assets/swimlanesDiagram-ULZ7WXOC-VvJzDuB_.js +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -31,15 +31,17 @@
|
|
|
31
31
|
- 视觉卡片不再使用超粗的展示字体。标题与数据默认改用系统字体,字重限制在常规与半粗之间,之前那种糊成一团的黑字不会再出现。
|
|
32
32
|
- 视觉卡片可以按需选用系统宋体、楷体和等宽字体,macOS 与 Windows 都能直接显示,不必再为不同系统分别指定字体。
|
|
33
33
|
- 视觉卡片的字体文件从 5 个减到 3 个,随包体积减少约 4.5 MB;移除的字体不再随安装包下载。
|
|
34
|
+
- 在 macOS 上选择工作区目录时,可以在对话框的「前往文件夹」「搜索」「标签」输入框里粘贴、全选和使用撤销,之前这些框无法粘贴路径。
|
|
34
35
|
|
|
35
36
|
### 修复
|
|
36
37
|
|
|
38
|
+
- 修复继续之前的对话后,本次会话按需加载的工具(例如脚本工具和工具搜索)会丢失、需要重新启用的问题。
|
|
37
39
|
- 修复在未安装 Python 的环境下后端测试参数无法自动修正的问题。
|
|
38
40
|
- 修复会话列表因历史遗留的已删除工作区而变慢的问题,打开和刷新列表更快。
|
|
39
41
|
- 修复任务管理把已收起的子代理仍然画在图上,导致聚合卡片和成员卡片同时出现、连线交叉杂乱的问题。
|
|
40
42
|
- 修复点击子代理详情后跳到仓库文件页而不是子代理内容的问题。
|
|
41
43
|
|
|
42
|
-
## [0.52.0-next.
|
|
44
|
+
## [0.52.0-next.5] - 2026-10-20
|
|
43
45
|
|
|
44
46
|
本预发布快照记录构建时已整理的待发布变化,不表示相对上一构建全部新增。
|
|
45
47
|
|
|
@@ -70,9 +72,11 @@
|
|
|
70
72
|
- 视觉卡片不再使用超粗的展示字体。标题与数据默认改用系统字体,字重限制在常规与半粗之间,之前那种糊成一团的黑字不会再出现。
|
|
71
73
|
- 视觉卡片可以按需选用系统宋体、楷体和等宽字体,macOS 与 Windows 都能直接显示,不必再为不同系统分别指定字体。
|
|
72
74
|
- 视觉卡片的字体文件从 5 个减到 3 个,随包体积减少约 4.5 MB;移除的字体不再随安装包下载。
|
|
75
|
+
- 在 macOS 上选择工作区目录时,可以在对话框的「前往文件夹」「搜索」「标签」输入框里粘贴、全选和使用撤销,之前这些框无法粘贴路径。
|
|
73
76
|
|
|
74
77
|
### 修复
|
|
75
78
|
|
|
79
|
+
- 修复继续之前的对话后,本次会话按需加载的工具(例如脚本工具和工具搜索)会丢失、需要重新启用的问题。
|
|
76
80
|
- 修复在未安装 Python 的环境下后端测试参数无法自动修正的问题。
|
|
77
81
|
- 修复会话列表因历史遗留的已删除工作区而变慢的问题,打开和刷新列表更快。
|
|
78
82
|
- 修复任务管理把已收起的子代理仍然画在图上,导致聚合卡片和成员卡片同时出现、连线交叉杂乱的问题。
|
package/dist/build-stamp.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.52.0-next.
|
|
4
|
-
"gitSha": "
|
|
5
|
-
"builtAt": "2026-10-
|
|
3
|
+
"version": "0.52.0-next.5",
|
|
4
|
+
"gitSha": "00048f89d5f8b3db9d1ff7e0051feaf7a48e8a97",
|
|
5
|
+
"builtAt": "2026-10-20T12:22:24.568Z"
|
|
6
6
|
}
|
|
@@ -409,6 +409,7 @@ function runGitQuery(cwd, args) {
|
|
|
409
409
|
return new Promise((resolve) => {
|
|
410
410
|
const child = spawn("git", ["-C", cwd, ...args], {
|
|
411
411
|
stdio: ["ignore", "pipe", "pipe"],
|
|
412
|
+
windowsHide: true,
|
|
412
413
|
});
|
|
413
414
|
const stdoutChunks = [];
|
|
414
415
|
const stderrChunks = [];
|
|
@@ -136,7 +136,7 @@ export function setPiSdkImportOverrideForTests(fn) {
|
|
|
136
136
|
export function setPiSdkModuleOverrideForTests(fn) {
|
|
137
137
|
sdkModuleOverrideForTests = fn;
|
|
138
138
|
}
|
|
139
|
-
/** Check whether the Pi SDK runtime dependency satisfies the 1.0
|
|
139
|
+
/** Check whether the Pi SDK runtime dependency satisfies the 1.3.0 runtime contract. */
|
|
140
140
|
export async function checkPiSdkAvailability(_repoRoot) {
|
|
141
141
|
if (sdkSessionFactoryOverride) {
|
|
142
142
|
return { ok: true, detail: "pi SDK session factory override active" };
|
|
@@ -154,10 +154,10 @@ export async function checkPiSdkAvailability(_repoRoot) {
|
|
|
154
154
|
!hasModelRuntime) {
|
|
155
155
|
return {
|
|
156
156
|
ok: false,
|
|
157
|
-
detail: "pi SDK incompatible: requires createAgentSession, getAgentDir, and ModelRuntime.create (1.
|
|
157
|
+
detail: "pi SDK incompatible: requires createAgentSession, getAgentDir, and ModelRuntime.create (1.3.0 contract)",
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
return { ok: true, detail: "pi SDK 1.
|
|
160
|
+
return { ok: true, detail: "pi SDK 1.3.0 contract available" };
|
|
161
161
|
}
|
|
162
162
|
catch (error) {
|
|
163
163
|
const message = error instanceof Error ? error.message : String(error);
|
|
@@ -52,6 +52,8 @@ export async function listDiffPaths(repoRoot, baseRef, headRef) {
|
|
|
52
52
|
const child = spawn('git', ['diff', '--name-only', '-z', `${baseRef}..${headRef}`], {
|
|
53
53
|
cwd: repoRoot,
|
|
54
54
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
55
|
+
// A visible console per call would flash during every guarded write.
|
|
56
|
+
windowsHide: true,
|
|
55
57
|
});
|
|
56
58
|
const out = [];
|
|
57
59
|
child.stdout?.on('data', (chunk) => out.push(chunk));
|
package/dist/records/harvest.js
CHANGED
|
@@ -193,7 +193,7 @@ function runGit(repoRoot, args) {
|
|
|
193
193
|
return new Promise((resolve, reject) => {
|
|
194
194
|
const child = spawn('git', args, {
|
|
195
195
|
cwd: repoRoot,
|
|
196
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
196
|
+
stdio: ['ignore', 'pipe', 'pipe'], windowsHide: true,
|
|
197
197
|
});
|
|
198
198
|
const stdoutChunks = [];
|
|
199
199
|
const stderrChunks = [];
|
|
@@ -151,6 +151,9 @@ async function runGit(repoRoot, args) {
|
|
|
151
151
|
const child = spawn('git', args, {
|
|
152
152
|
cwd: repoRoot,
|
|
153
153
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
154
|
+
// Without this Windows allocates a console for every child process, so
|
|
155
|
+
// each git call during a chat turn flashes a console window.
|
|
156
|
+
windowsHide: true,
|
|
154
157
|
});
|
|
155
158
|
let stdout = '';
|
|
156
159
|
let stderr = '';
|
package/dist/task/delegate.js
CHANGED
|
@@ -192,7 +192,7 @@ async function tryRunGit(repoRoot, args) {
|
|
|
192
192
|
return new Promise((resolve) => {
|
|
193
193
|
const child = spawn('git', args, {
|
|
194
194
|
cwd: repoRoot,
|
|
195
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
195
|
+
stdio: ['ignore', 'pipe', 'pipe'], windowsHide: true,
|
|
196
196
|
});
|
|
197
197
|
const out = [];
|
|
198
198
|
child.stdout?.on('data', (chunk) => out.push(chunk));
|
package/dist/task/worktree.js
CHANGED
|
@@ -291,7 +291,7 @@ export async function removeWorktree(repoRoot, manifest, opts) {
|
|
|
291
291
|
async function runGit(cwd, args) {
|
|
292
292
|
return new Promise((resolve, reject) => {
|
|
293
293
|
const child = spawn("git", ["-C", cwd, ...args], {
|
|
294
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
294
|
+
stdio: ["ignore", "pipe", "pipe"], windowsHide: true,
|
|
295
295
|
});
|
|
296
296
|
const stdoutChunks = [];
|
|
297
297
|
const stderrChunks = [];
|
|
@@ -55,7 +55,7 @@ export function resolveScheduledTaskTime(input, now) {
|
|
|
55
55
|
stopAtUtc: new Date(stop).toISOString(), expiresAt: new Date(stop).toISOString(), timezone,
|
|
56
56
|
allowedHours: schedule.allowedHours ?? [], misfirePolicy: "run-immediately" });
|
|
57
57
|
}
|
|
58
|
-
const git = async (cwd, ...args) => (await execFileAsync("git", ["-C", cwd, ...args], { encoding: "utf8", timeout: 30000, maxBuffer: 4 * 1024 * 1024 })).stdout.trim();
|
|
58
|
+
const git = async (cwd, ...args) => (await execFileAsync("git", ["-C", cwd, ...args], { encoding: "utf8", timeout: 30000, maxBuffer: 4 * 1024 * 1024, windowsHide: true })).stdout.trim();
|
|
59
59
|
const sameSet = (a, b) => JSON.stringify([...new Set(a)].sort()) === JSON.stringify([...new Set(b)].sort());
|
|
60
60
|
function assertScheduledAcceptanceDoesNotRepeatBackendTests(request) {
|
|
61
61
|
if (request.workflow !== "backend-test")
|
|
@@ -232,12 +232,18 @@ export class TerminalSessionRegistry {
|
|
|
232
232
|
env: process.env ?? {},
|
|
233
233
|
encoding: "utf8",
|
|
234
234
|
/*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
235
|
+
* winpty allocates a REAL console host window — the black box that
|
|
236
|
+
* flashed on every terminal session — while ConPTY keeps the
|
|
237
|
+
* session headless. node-pty picks ConPTY automatically from
|
|
238
|
+
* Windows build 18309, and `useConpty` is deprecated and ignored
|
|
239
|
+
* in 1.2 (microsoft/node-pty#871), so passing it documents the
|
|
240
|
+
* intent rather than flipping a switch.
|
|
241
|
+
*
|
|
242
|
+
* `useConptyDll` (the bundled conpty.dll) is NOT a drop-in
|
|
243
|
+
* improvement: measured on Windows 10.0.26300 it starts the shell
|
|
244
|
+
* but stops delivering output, so readAll/subscribe see the banner
|
|
245
|
+
* and nothing else. Two terminal tests catch that. Keep the system
|
|
246
|
+
* ConPTY; left undefined on other platforms.
|
|
241
247
|
*/
|
|
242
248
|
...(IS_WINDOWS ? { useConpty: true } : {}),
|
|
243
249
|
});
|
|
@@ -94,7 +94,17 @@ export async function captureWorkspaceChanges(input) {
|
|
|
94
94
|
}
|
|
95
95
|
const files = [];
|
|
96
96
|
const seen = new Set();
|
|
97
|
+
/*
|
|
98
|
+
* Sessions can share one working directory, so the two `git status` calls
|
|
99
|
+
* bracket every write in the repo — including another Session's. When this
|
|
100
|
+
* turn recorded file-tool edits, those records decide WHICH files belong to
|
|
101
|
+
* it; the snapshot is then only a source of counts for those same paths.
|
|
102
|
+
* Without tool records (shell-driven edits) the snapshot stays authoritative.
|
|
103
|
+
*/
|
|
104
|
+
const toolScoped = byTool.size > 0;
|
|
97
105
|
for (const [path, status] of statuses) {
|
|
106
|
+
if (toolScoped && !byTool.has(path))
|
|
107
|
+
continue;
|
|
98
108
|
const stat = stats.get(path) ?? { added: 0, deleted: 0 };
|
|
99
109
|
const before = input.baseline.stats.get(path);
|
|
100
110
|
const changedSinceBaseline = !input.baseline.paths.has(path) || input.baseline.digests.get(path) !== finalDigests.get(path) || !before || before.added !== stat.added || before.deleted !== stat.deleted || before.binary !== stat.binary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as p,r as u,d as a}from"./chunk-6Q2QTUOP-
|
|
1
|
+
import{g as p,r as u,d as a}from"./chunk-6Q2QTUOP-GnSZ3Q_F.js";import{p as f}from"./chunk-JWPE2WC7-BuYYcpOE.js";import{_ as n,l as o}from"./mermaid.core-CIj0Ef-_.js";import{M as c,b as d}from"./cynefin-VYW2F7L2-BIFL8KrA.js";import"./FilePreviewDocx-ybM3ZqSl.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},B={parser:R,db:a,renderer:u,styles:p};export{B as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Y as ln,$ as an,a0 as F,a1 as q,a2 as j,a3 as un,a4 as y,a5 as tn,a6 as J,a7 as _,a8 as rn,a9 as o,aa as on,ab as sn,ac as fn}from"./mermaid.core-
|
|
1
|
+
import{Y as ln,$ as an,a0 as F,a1 as q,a2 as j,a3 as un,a4 as y,a5 as tn,a6 as J,a7 as _,a8 as rn,a9 as o,aa as on,ab as sn,ac as fn}from"./mermaid.core-CIj0Ef-_.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,I,D,v,A,z,a){var O=I-l,i=D-h,n=z-v,d=a-A,u=d*O-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*O,h+u*i]}function U(l,h,I,D,v,A,z){var a=l-I,O=h-D,i=(z?A:-A)/J(a*a+O*O),n=i*O,d=-i*a,u=l+n,s=h+d,f=I+n,c=D+d,B=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,S=(g<0?-1:1)*J(on(0,T*T*R-P*P)),Y=(P*g-m*S)/R,$=(-P*m-g*S)/R,w=(P*g+m*S)/R,p=(-P*m+g*S)/R,x=Y-B,e=$-t,r=w-B,C=p-t;return x*x+e*e>r*r+C*C&&(Y=w,$=p),{cx:Y,cy:$,x01:-n,y01:-d,x11:Y*(v/T-1),y11:$*(v/T-1)}}function hn(){var l=cn,h=yn,I=j(0),D=null,v=gn,A=dn,z=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,B=rn(c-f),t=c>f;if(a||(a=n=O()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(B>tn-y)a.moveTo(s*F(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*F(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=B,S=B,Y=z.apply(this,arguments)/2,$=Y>y&&(D?+D.apply(this,arguments):J(u*u+s*s)),w=_(rn(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if($>y){var C=sn($/u*q(Y)),K=sn($/s*q(Y));(P-=C*2)>y?(C*=t?1:-1,R+=C,T-=C):(P=0,R=T=(f+c)/2),(S-=K*2)>y?(K*=t?1:-1,m+=K,g-=K):(S=0,m=g=(f+c)/2)}var G=s*F(m),H=s*q(m),L=u*F(T),M=u*q(T);if(w>y){var N=s*F(g),Q=s*q(g),V=u*F(R),W=u*q(R),E;if(B<an)if(E=pn(G,H,V,W,N,Q,L,M)){var X=G-E[0],Z=H-E[1],b=N-E[0],k=Q-E[1],nn=1/q(fn((X*b+Z*k)/(J(X*X+Z*Z)*J(b*b+k*k)))/2),en=J(E[0]*E[0]+E[1]*E[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}S>y?x>y?(e=U(V,W,G,H,s,x,t),r=U(N,Q,L,M,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(G,H),a.arc(0,0,s,m,g,!t)):a.moveTo(G,H),!(u>y)||!(P>y)?a.lineTo(L,M):p>y?(e=U(L,M,N,Q,u,-p,t),r=U(G,H,V,W,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[F(d)*n,q(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:j(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:j(+n),i):h},i.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:j(+n),i):I},i.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:j(+n),i):D},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:j(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:j(+n),i):A},i.padAngle=function(n){return arguments.length?(z=typeof n=="function"?n:j(+n),i):z},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
|