@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.
Files changed (61) hide show
  1. package/dist/{active-root-config-Ba57tJrq.d.mts → active-root-config-wpH_ZblJ.d.mts} +17 -17
  2. package/dist/active-root-config.d.mts +5 -5
  3. package/dist/app-daemon-control.d.mts +8 -8
  4. package/dist/{cli-projection-CvtX601c.d.mts → cli-projection-0tdEPnTe.d.mts} +17 -17
  5. package/dist/cli-projection.d.mts +5 -5
  6. package/dist/{command-result-DbXO8ZgG.mjs → command-result-DfCY18TD.mjs} +31 -3
  7. package/dist/{dashboard-summary-transport-edeWQPi7.d.mts → dashboard-summary-transport-uE7nCxmD.d.mts} +5573 -5367
  8. package/dist/dashboard-summary-transport.d.mts +19 -19
  9. package/dist/{document-translation-CGMD0RLA.d.mts → document-translation-DzF7Og-j.d.mts} +102 -102
  10. package/dist/document-translation.d.mts +1 -1
  11. package/dist/{hosted-app-CHqdo5vd.mjs → hosted-app-DWYFMLkw.mjs} +1 -1
  12. package/dist/hosted-app.d.mts +19 -19
  13. package/dist/hosted-app.mjs +3 -3
  14. package/dist/{hosted-contract-Qe5AmkiE.mjs → hosted-contract-SsTBQklx.mjs} +1 -1
  15. package/dist/hosted-contract.d.mts +19 -19
  16. package/dist/hosted-contract.mjs +2 -2
  17. package/dist/{index-D9qYKNqh.d.mts → index-DPsUTX4C.d.mts} +262 -106
  18. package/dist/index.d.mts +20 -20
  19. package/dist/index.mjs +63 -41
  20. package/dist/{local-download-profiles-DaFozMhH.d.mts → local-download-profiles-CsKGe_qF.d.mts} +1 -1
  21. package/dist/local-download-profiles.d.mts +2 -2
  22. package/dist/{notifications-Dkoh_xrs.d.mts → notifications-B8Ael_hq.d.mts} +8 -8
  23. package/dist/notifications.d.mts +2 -2
  24. package/dist/{openspec-compat-CpMO8-dz.mjs → openspec-compat-CNMMuTot.mjs} +15 -14
  25. package/dist/openspec-compat.d.mts +4 -4
  26. package/dist/openspec-compat.mjs +2 -2
  27. package/dist/{openspec-projection-46QLZ6b8.d.mts → openspec-projection-xOnjhQ7v.d.mts} +1 -1
  28. package/dist/openspec-projection.d.mts +2 -2
  29. package/dist/{opsx-entity-Btqm5OhC.d.mts → opsx-entity-DsigFL5Z.d.mts} +2 -2
  30. package/dist/opsx-entity.d.mts +7 -7
  31. package/dist/{opsx-schema-detail-C4VyWZ8B.d.mts → opsx-schema-detail-IlY4T5vO.d.mts} +2 -2
  32. package/dist/opsx-schema-detail.d.mts +8 -8
  33. package/dist/{opsx-types-hVFHL9Cb.d.mts → opsx-types-r1oKVWgZ.d.mts} +302 -280
  34. package/dist/{planning-cli-projection-BUU26bEw.mjs → planning-cli-projection-C4eG7-Yr.mjs} +27 -5
  35. package/dist/planning-cli-projection.d.mts +20 -20
  36. package/dist/planning-cli-projection.mjs +5 -5
  37. package/dist/{schemas-Ce7B_SNx.d.mts → schemas-pfpqDlAd.d.mts} +208 -208
  38. package/dist/{sounds-DzDkqTIX.d.mts → sounds-B0GiWqBN.d.mts} +4 -4
  39. package/dist/sounds.d.mts +1 -1
  40. package/dist/{spec-catalog-DshONoJ9.mjs → spec-catalog-B8TIBzwP.mjs} +1 -1
  41. package/dist/spec-catalog.d.mts +19 -19
  42. package/dist/spec-catalog.mjs +2 -2
  43. package/dist/{store-content-projection-DV31znWA.mjs → store-content-projection-CLNY-hNu.mjs} +5 -1
  44. package/dist/{store-content-projection-BnNYyb0x.d.mts → store-content-projection-DMHTVCFM.d.mts} +126 -0
  45. package/dist/store-content-projection.d.mts +1 -1
  46. package/dist/store-content-projection.mjs +1 -1
  47. package/dist/{store-mutation-protocol-DHjp76v0.d.mts → store-mutation-protocol-DXeWtAvN.d.mts} +24 -24
  48. package/dist/store-mutation-protocol.d.mts +1 -1
  49. package/dist/{store-types-vKTsXtfb.d.mts → store-types-BghVB9Qj.d.mts} +1 -1
  50. package/dist/store-types.d.mts +5 -5
  51. package/dist/{task-progress-Bvid_Ws8.mjs → task-progress-moL-QUhJ.mjs} +29 -4
  52. package/dist/task-progress.d.mts +6 -6
  53. package/dist/task-progress.mjs +1 -1
  54. package/dist/{terminal-audio-C6kc0fbX.d.mts → terminal-audio-BpfUW_eB.d.mts} +1 -1
  55. package/dist/terminal-audio.d.mts +2 -2
  56. package/dist/terminal-control.d.mts +2 -2
  57. package/dist/{terminal-invocation-zNp8J57-.d.mts → terminal-invocation-CYibC-WC.d.mts} +68 -68
  58. package/dist/terminal-invocation.d.mts +1 -1
  59. package/dist/{translator-DZO_bY1X.d.mts → translator-BdTMcSWN.d.mts} +253 -253
  60. package/dist/translator.d.mts +1 -1
  61. 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-DHjp76v0.mjs";
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 };
@@ -1,4 +1,4 @@
1
- import { xt as CliCommandResult } from "./index-D9qYKNqh.mjs";
1
+ import { Ct as CliCommandResult } from "./index-DPsUTX4C.mjs";
2
2
  import { z } from "zod";
3
3
 
4
4
  //#region src/store-types.d.ts
@@ -1,6 +1,6 @@
1
- import "./index-D9qYKNqh.mjs";
2
- import "./document-translation-CGMD0RLA.mjs";
3
- import "./sounds-DzDkqTIX.mjs";
4
- import "./notifications-Dkoh_xrs.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-vKTsXtfb.mjs";
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
- const CHECKBOX_TASK_LINE = /^\s*[-*]\s+\[([ xX])\]\s+(.+)$/;
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 = /^(\s*[-*]\s+)\[([ xX])\](\s+.*)$/.exec(lines[index]);
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]}[${completed ? "x" : " "}]${taskMatch[3]}`;
192
+ lines[index] = `${taskMatch[1]}${completed ? "x" : " "}]${taskMatch[3]}`;
168
193
  return lines.join("\n");
169
194
  }
170
195
  return null;
@@ -1,7 +1,7 @@
1
- import "./index-D9qYKNqh.mjs";
2
- import "./document-translation-CGMD0RLA.mjs";
3
- import "./sounds-DzDkqTIX.mjs";
4
- import "./notifications-Dkoh_xrs.mjs";
5
- import "./schemas-Ce7B_SNx.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-hVFHL9Cb.mjs";
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 };
@@ -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-Bvid_Ws8.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-moL-QUhJ.mjs";
3
3
 
4
4
  export { createApplyInstructionProgress, createDocumentChecklistSummary, createTrackedTaskProgress, deriveTrackedTaskPhase, isMarkdownTaskSourcePath, parseMarkdownTasks, projectTaskProjectionsFromMarkdownFiles, toggleMarkdownTask };
@@ -1,4 +1,4 @@
1
- import { x as SoundId } from "./sounds-DzDkqTIX.mjs";
1
+ import { x as SoundId } from "./sounds-B0GiWqBN.mjs";
2
2
  import * as zod0 from "zod";
3
3
 
4
4
  //#region src/terminal-audio.d.ts
@@ -1,3 +1,3 @@
1
- import "./sounds-DzDkqTIX.mjs";
2
- import { i as TerminalBellSoundSchema, n as TERMINAL_BELL_SOUND_VALUES, r as TerminalBellSound, t as TERMINAL_BELL_SOUND_OPTIONS } from "./terminal-audio-C6kc0fbX.mjs";
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-DzDkqTIX.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-Dkoh_xrs.mjs";
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 };