@openspecui/core 12.0.0 → 13.0.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/dist/{active-root-config-Ba57tJrq.d.mts → active-root-config-wpH_ZblJ.d.mts} +17 -17
- package/dist/active-root-config.d.mts +5 -5
- package/dist/app-daemon-control.d.mts +8 -8
- package/dist/{cli-projection-CvtX601c.d.mts → cli-projection-0tdEPnTe.d.mts} +17 -17
- package/dist/cli-projection.d.mts +5 -5
- package/dist/{command-result-DbXO8ZgG.mjs → command-result-DfCY18TD.mjs} +31 -3
- package/dist/{dashboard-summary-transport-edeWQPi7.d.mts → dashboard-summary-transport-uE7nCxmD.d.mts} +5573 -5367
- package/dist/dashboard-summary-transport.d.mts +19 -19
- package/dist/{document-translation-CGMD0RLA.d.mts → document-translation-DzF7Og-j.d.mts} +102 -102
- package/dist/document-translation.d.mts +1 -1
- package/dist/{hosted-app-CHqdo5vd.mjs → hosted-app-DWYFMLkw.mjs} +1 -1
- package/dist/hosted-app.d.mts +19 -19
- package/dist/hosted-app.mjs +3 -3
- package/dist/{hosted-contract-Qe5AmkiE.mjs → hosted-contract-SsTBQklx.mjs} +1 -1
- package/dist/hosted-contract.d.mts +19 -19
- package/dist/hosted-contract.mjs +2 -2
- package/dist/{index-D9qYKNqh.d.mts → index-DPsUTX4C.d.mts} +262 -106
- package/dist/index.d.mts +20 -20
- package/dist/index.mjs +63 -41
- package/dist/{local-download-profiles-DaFozMhH.d.mts → local-download-profiles-CsKGe_qF.d.mts} +1 -1
- package/dist/local-download-profiles.d.mts +2 -2
- package/dist/{notifications-Dkoh_xrs.d.mts → notifications-B8Ael_hq.d.mts} +8 -8
- package/dist/notifications.d.mts +2 -2
- package/dist/{openspec-compat-CpMO8-dz.mjs → openspec-compat-CNMMuTot.mjs} +15 -14
- package/dist/openspec-compat.d.mts +4 -4
- package/dist/openspec-compat.mjs +2 -2
- package/dist/{openspec-projection-46QLZ6b8.d.mts → openspec-projection-xOnjhQ7v.d.mts} +1 -1
- package/dist/openspec-projection.d.mts +2 -2
- package/dist/{opsx-entity-Btqm5OhC.d.mts → opsx-entity-DsigFL5Z.d.mts} +2 -2
- package/dist/opsx-entity.d.mts +7 -7
- package/dist/{opsx-schema-detail-C4VyWZ8B.d.mts → opsx-schema-detail-IlY4T5vO.d.mts} +2 -2
- package/dist/opsx-schema-detail.d.mts +8 -8
- package/dist/{opsx-types-hVFHL9Cb.d.mts → opsx-types-r1oKVWgZ.d.mts} +302 -280
- package/dist/{planning-cli-projection-BUU26bEw.mjs → planning-cli-projection-C4eG7-Yr.mjs} +27 -5
- package/dist/planning-cli-projection.d.mts +20 -20
- package/dist/planning-cli-projection.mjs +5 -5
- package/dist/{schemas-Ce7B_SNx.d.mts → schemas-pfpqDlAd.d.mts} +208 -208
- package/dist/{sounds-DzDkqTIX.d.mts → sounds-B0GiWqBN.d.mts} +4 -4
- package/dist/sounds.d.mts +1 -1
- package/dist/{spec-catalog-DshONoJ9.mjs → spec-catalog-B8TIBzwP.mjs} +1 -1
- package/dist/spec-catalog.d.mts +19 -19
- package/dist/spec-catalog.mjs +2 -2
- package/dist/{store-content-projection-DV31znWA.mjs → store-content-projection-CLNY-hNu.mjs} +5 -1
- package/dist/{store-content-projection-BnNYyb0x.d.mts → store-content-projection-DMHTVCFM.d.mts} +126 -0
- package/dist/store-content-projection.d.mts +1 -1
- package/dist/store-content-projection.mjs +1 -1
- package/dist/{store-mutation-protocol-DHjp76v0.d.mts → store-mutation-protocol-DXeWtAvN.d.mts} +24 -24
- package/dist/store-mutation-protocol.d.mts +1 -1
- package/dist/{store-types-vKTsXtfb.d.mts → store-types-BghVB9Qj.d.mts} +1 -1
- package/dist/store-types.d.mts +5 -5
- package/dist/{task-progress-Bvid_Ws8.mjs → task-progress-moL-QUhJ.mjs} +29 -4
- package/dist/task-progress.d.mts +6 -6
- package/dist/task-progress.mjs +1 -1
- package/dist/{terminal-audio-C6kc0fbX.d.mts → terminal-audio-BpfUW_eB.d.mts} +1 -1
- package/dist/terminal-audio.d.mts +2 -2
- package/dist/terminal-control.d.mts +2 -2
- package/dist/{terminal-invocation-zNp8J57-.d.mts → terminal-invocation-CYibC-WC.d.mts} +68 -68
- package/dist/terminal-invocation.d.mts +1 -1
- package/dist/{translator-DZO_bY1X.d.mts → translator-BdTMcSWN.d.mts} +253 -253
- package/dist/translator.d.mts +1 -1
- package/package.json +2 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as StoreMutationResultSchema, c as StoreMutationStartResponseSchema, i as StoreMutationResultEnvelope, n as StoreMutationLifecycleEvent, o as StoreMutationSchema, r as StoreMutationLifecycleEventSchema, s as StoreMutationStartResponse, t as StoreMutationEnvelope } from "./store-mutation-protocol-
|
|
1
|
+
import { a as StoreMutationResultSchema, c as StoreMutationStartResponseSchema, i as StoreMutationResultEnvelope, n as StoreMutationLifecycleEvent, o as StoreMutationSchema, r as StoreMutationLifecycleEventSchema, s as StoreMutationStartResponse, t as StoreMutationEnvelope } from "./store-mutation-protocol-DXeWtAvN.mjs";
|
|
2
2
|
export { StoreMutationEnvelope, StoreMutationLifecycleEvent, StoreMutationLifecycleEventSchema, StoreMutationResultEnvelope, StoreMutationResultSchema, StoreMutationSchema, StoreMutationStartResponse, StoreMutationStartResponseSchema };
|
package/dist/store-types.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import "./document-translation-
|
|
3
|
-
import "./sounds-
|
|
4
|
-
import "./notifications-
|
|
5
|
-
import { _ as classifyStoreCliResult, a as StoreDiagnostic, c as StoreDoctorResultSchema, d as StoreFeatureError, f as StoreFeatureResult, g as StoreListResultSchema, h as StoreListResult, i as StoreDataIncompatibleError, l as StoreDoctorStore, m as StoreListEntrySchema, n as StoreCommandEvidence, o as StoreDiagnosticSchema, p as StoreListEntry, r as StoreCommandUnavailableError, s as StoreDoctorResult, t as StoreClassification, u as StoreDoctorStoreSchema, v as toStoreFeatureResult } from "./store-types-
|
|
1
|
+
import "./index-DPsUTX4C.mjs";
|
|
2
|
+
import "./document-translation-DzF7Og-j.mjs";
|
|
3
|
+
import "./sounds-B0GiWqBN.mjs";
|
|
4
|
+
import "./notifications-B8Ael_hq.mjs";
|
|
5
|
+
import { _ as classifyStoreCliResult, a as StoreDiagnostic, c as StoreDoctorResultSchema, d as StoreFeatureError, f as StoreFeatureResult, g as StoreListResultSchema, h as StoreListResult, i as StoreDataIncompatibleError, l as StoreDoctorStore, m as StoreListEntrySchema, n as StoreCommandEvidence, o as StoreDiagnosticSchema, p as StoreListEntry, r as StoreCommandUnavailableError, s as StoreDoctorResult, t as StoreClassification, u as StoreDoctorStoreSchema, v as toStoreFeatureResult } from "./store-types-BghVB9Qj.mjs";
|
|
6
6
|
export { StoreClassification, StoreCommandEvidence, StoreCommandUnavailableError, StoreDataIncompatibleError, StoreDiagnostic, StoreDiagnosticSchema, StoreDoctorResult, StoreDoctorResultSchema, StoreDoctorStore, StoreDoctorStoreSchema, StoreFeatureError, StoreFeatureResult, StoreListEntry, StoreListEntrySchema, StoreListResult, StoreListResultSchema, classifyStoreCliResult, toStoreFeatureResult };
|
|
@@ -10,8 +10,33 @@ import { s as opsxPathMatchesPattern } from "./opsx-entity-BnO3k48r.mjs";
|
|
|
10
10
|
* 5. Attach mutation-safe file identity to every tracked task.
|
|
11
11
|
*
|
|
12
12
|
* Original request (2026-07-15): "统计信息仍然有一定的间接价值。"
|
|
13
|
+
* Original request (2026-09-17): "Openspec 1.13.1 释放了…" — task-line reading parity with CLI 1.13.1 (update-openspec-cli-1131 Slice 3).
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Task-line pattern mirroring the admitted OpenSpec CLI 1.13 reading
|
|
17
|
+
* (references/openspec/src/utils/task-progress.ts, pinned v1.13.1): any
|
|
18
|
+
* CommonMark list marker - `-`, `*`, `+`, or an ordered `1.`/`1)` of up to
|
|
19
|
+
* nine digits - with optional leading indentation, followed by a checkbox
|
|
20
|
+
* holding at most one non-`]`/non-whitespace token, or whitespace only.
|
|
21
|
+
* The closing bracket may not continue Markdown link syntax (`(` or `[`),
|
|
22
|
+
* with one deliberate exception: a whitespace-only box (`- [ ](...)`) still
|
|
23
|
+
* counts. A line is done only when its marker lowercases to `x`; every other
|
|
24
|
+
* marker (`~`, digits, an empty box) reads as not-done, accepting the CLI's
|
|
25
|
+
* documented over-count of single-token labels such as `- [1] note` while
|
|
26
|
+
* multi-token boxes (`- [WIP]`) never match. Unanchored at the end so CRLF
|
|
27
|
+
* lines keep parsing (`.` stops before `\r`).
|
|
28
|
+
*/
|
|
29
|
+
const CHECKBOX_TASK_LINE = /^\s*(?:[-*+]|\d{1,9}[.)])\s*\[(?:\s*([^\]\s]?)\s*\](?![([])|\s+\])\s*(.*)/;
|
|
30
|
+
/**
|
|
31
|
+
* Same task-line set as CHECKBOX_TASK_LINE, grouped so the write-back keeps
|
|
32
|
+
* the prefix (indentation, list marker, spacing before the box) and the tail
|
|
33
|
+
* after the closing bracket byte-for-byte while only the box itself is
|
|
34
|
+
* rewritten to the canonical `[x]`/`[ ]`. The tail uses `[\s\S]*` because
|
|
35
|
+
* `.` stops before `\r`, and an end-anchored `.*` tail would drop the CR of
|
|
36
|
+
* a CRLF task line on write-back. Group 2 (the marker) is intentionally
|
|
37
|
+
* unread here: only the canonical replacement marker is written.
|
|
38
|
+
*/
|
|
39
|
+
const CHECKBOX_TASK_TOGGLE_PATTERN = /^(\s*(?:[-*+]|\d{1,9}[.)])\s*\[)(?:\s*([^\]\s]?)\s*\](?![([])|\s+\])([\s\S]*)$/;
|
|
15
40
|
const MARKDOWN_FILE_PATH = /\.(?:md|markdown)$/i;
|
|
16
41
|
function isMarkdownTaskSourcePath(path) {
|
|
17
42
|
return MARKDOWN_FILE_PATH.test(path);
|
|
@@ -33,7 +58,7 @@ function parseMarkdownTasks(content, options = {}) {
|
|
|
33
58
|
tasks.push({
|
|
34
59
|
id: `task-${taskIndex}`,
|
|
35
60
|
text: taskMatch[2].trim(),
|
|
36
|
-
completed: taskMatch[1].toLowerCase() === "x",
|
|
61
|
+
completed: (taskMatch[1] ?? "").toLowerCase() === "x",
|
|
37
62
|
section: currentSection || void 0
|
|
38
63
|
});
|
|
39
64
|
}
|
|
@@ -160,11 +185,11 @@ function toggleMarkdownTask(content, taskIndex, completed) {
|
|
|
160
185
|
const lines = content.split("\n");
|
|
161
186
|
let currentTaskIndex = 0;
|
|
162
187
|
for (let index = 0; index < lines.length; index += 1) {
|
|
163
|
-
const taskMatch =
|
|
188
|
+
const taskMatch = CHECKBOX_TASK_TOGGLE_PATTERN.exec(lines[index]);
|
|
164
189
|
if (!taskMatch) continue;
|
|
165
190
|
currentTaskIndex += 1;
|
|
166
191
|
if (currentTaskIndex !== taskIndex) continue;
|
|
167
|
-
lines[index] = `${taskMatch[1]}
|
|
192
|
+
lines[index] = `${taskMatch[1]}${completed ? "x" : " "}]${taskMatch[3]}`;
|
|
168
193
|
return lines.join("\n");
|
|
169
194
|
}
|
|
170
195
|
return null;
|
package/dist/task-progress.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./index-
|
|
2
|
-
import "./document-translation-
|
|
3
|
-
import "./sounds-
|
|
4
|
-
import "./notifications-
|
|
5
|
-
import "./schemas-
|
|
6
|
-
import { $ as isMarkdownTaskSourcePath, B as DocumentChecklistGroup, G as TrackedTaskLocation, H as TaskProjectionOptions, J as TrackedTaskSource, K as TrackedTaskPhase, L as ApplyInstructionDivergence, Q as deriveTrackedTaskPhase, R as ApplyInstructionProgress, U as TaskProjections, V as DocumentChecklistSummary, W as TrackedTask, X as createDocumentChecklistSummary, Y as createApplyInstructionProgress, Z as createTrackedTaskProgress, et as parseMarkdownTasks, nt as toggleMarkdownTask, q as TrackedTaskProgress, tt as projectTaskProjectionsFromMarkdownFiles, z as ApplyInstructionState } from "./opsx-types-
|
|
1
|
+
import "./index-DPsUTX4C.mjs";
|
|
2
|
+
import "./document-translation-DzF7Og-j.mjs";
|
|
3
|
+
import "./sounds-B0GiWqBN.mjs";
|
|
4
|
+
import "./notifications-B8Ael_hq.mjs";
|
|
5
|
+
import "./schemas-pfpqDlAd.mjs";
|
|
6
|
+
import { $ as isMarkdownTaskSourcePath, B as DocumentChecklistGroup, G as TrackedTaskLocation, H as TaskProjectionOptions, J as TrackedTaskSource, K as TrackedTaskPhase, L as ApplyInstructionDivergence, Q as deriveTrackedTaskPhase, R as ApplyInstructionProgress, U as TaskProjections, V as DocumentChecklistSummary, W as TrackedTask, X as createDocumentChecklistSummary, Y as createApplyInstructionProgress, Z as createTrackedTaskProgress, et as parseMarkdownTasks, nt as toggleMarkdownTask, q as TrackedTaskProgress, tt as projectTaskProjectionsFromMarkdownFiles, z as ApplyInstructionState } from "./opsx-types-r1oKVWgZ.mjs";
|
|
7
7
|
export { ApplyInstructionDivergence, ApplyInstructionProgress, ApplyInstructionState, DocumentChecklistGroup, DocumentChecklistSummary, TaskProjectionOptions, TaskProjections, TrackedTask, TrackedTaskLocation, TrackedTaskPhase, TrackedTaskProgress, TrackedTaskSource, createApplyInstructionProgress, createDocumentChecklistSummary, createTrackedTaskProgress, deriveTrackedTaskPhase, isMarkdownTaskSourcePath, parseMarkdownTasks, projectTaskProjectionsFromMarkdownFiles, toggleMarkdownTask };
|
package/dist/task-progress.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./opsx-entity-BnO3k48r.mjs";
|
|
2
|
-
import { a as isMarkdownTaskSourcePath, c as toggleMarkdownTask, i as deriveTrackedTaskPhase, n as createDocumentChecklistSummary, o as parseMarkdownTasks, r as createTrackedTaskProgress, s as projectTaskProjectionsFromMarkdownFiles, t as createApplyInstructionProgress } from "./task-progress-
|
|
2
|
+
import { a as isMarkdownTaskSourcePath, c as toggleMarkdownTask, i as deriveTrackedTaskPhase, n as createDocumentChecklistSummary, o as parseMarkdownTasks, r as createTrackedTaskProgress, s as projectTaskProjectionsFromMarkdownFiles, t as createApplyInstructionProgress } from "./task-progress-moL-QUhJ.mjs";
|
|
3
3
|
|
|
4
4
|
export { createApplyInstructionProgress, createDocumentChecklistSummary, createTrackedTaskProgress, deriveTrackedTaskPhase, isMarkdownTaskSourcePath, parseMarkdownTasks, projectTaskProjectionsFromMarkdownFiles, toggleMarkdownTask };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./sounds-
|
|
2
|
-
import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-
|
|
1
|
+
import "./sounds-B0GiWqBN.mjs";
|
|
2
|
+
import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-BpfUW_eB.mjs";
|
|
3
3
|
export { TERMINAL_BELL_SOUND_OPTIONS, TERMINAL_BELL_SOUND_VALUES, TerminalBellSound, TerminalBellSoundSchema };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./sounds-
|
|
2
|
-
import { A as TerminalNotificationProtocol, D as TerminalControlEvent, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, j as TerminalProgressState, k as TerminalControlParser } from "./notifications-
|
|
1
|
+
import "./sounds-B0GiWqBN.mjs";
|
|
2
|
+
import { A as TerminalNotificationProtocol, D as TerminalControlEvent, M as TerminalPromptState, N as TerminalTitleTarget, O as TerminalControlParseResult, P as terminalNotificationEventToPublishInput, j as TerminalProgressState, k as TerminalControlParser } from "./notifications-B8Ael_hq.mjs";
|
|
3
3
|
export { TerminalControlEvent, TerminalControlParseResult, TerminalControlParser, TerminalNotificationProtocol, TerminalProgressState, TerminalPromptState, TerminalTitleTarget, terminalNotificationEventToPublishInput };
|