@llman-sdd/core 0.10.1 → 0.12.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/package.json +11 -8
- package/src/archive/freeze.ts +41 -15
- package/src/archive/frozenCard.ts +57 -9
- package/src/archive/ignoreChain.ts +2 -6
- package/src/archive/sevenzip.ts +0 -1
- package/src/change/closeOutHarness.ts +17 -0
- package/src/change/collect.ts +0 -5
- package/src/change/frontmatter.ts +15 -7
- package/src/change/id.ts +0 -2
- package/src/change/lifecycle.ts +53 -94
- package/src/config/changeId.ts +0 -2
- package/src/config/load.ts +0 -4
- package/src/config/schema.ts +24 -13
- package/src/config/surface.ts +2 -12
- package/src/context/sddState.ts +23 -18
- package/src/git/spawnGit.ts +0 -3
- package/src/hints/jitHints.ts +82 -0
- package/src/index.ts +462 -39
- package/src/init/defaultConfig.ts +4 -13
- package/src/init/init.ts +108 -36
- package/src/init/skillCheck.ts +60 -0
- package/src/init/uncommentConfig.ts +909 -0
- package/src/locale.ts +0 -2
- package/src/project/migrateNotes.ts +0 -9
- package/src/project/migrations.ts +151 -9
- package/src/report/graph/analysis.ts +0 -4
- package/src/report/graph/nodes.ts +0 -6
- package/src/report/show.ts +7 -23
- package/src/report/specHelpers.ts +10 -14
- package/src/review/review.ts +0 -12
- package/src/spec/assignSpecIds.ts +0 -3
- package/src/spec/authoring.ts +16 -24
- package/src/spec/ir.ts +14 -5
- package/src/spec/keywords.ts +0 -2
- package/src/spec/machineKey.ts +49 -0
- package/src/spec/migrateNative.ts +4 -18
- package/src/spec/parser.ts +10 -19
- package/src/spec/reqRef.ts +135 -0
- package/src/studio/changeScope.ts +50 -0
- package/src/studio/changeScopeDiff.ts +195 -0
- package/src/studio/contracts.ts +493 -0
- package/src/studio/decisionTree.ts +206 -0
- package/src/studio/deeplink.ts +116 -0
- package/src/studio/demos.ts +167 -0
- package/src/studio/diff.ts +494 -0
- package/src/studio/drift.ts +738 -0
- package/src/studio/extract.ts +360 -0
- package/src/studio/featureSync.ts +592 -0
- package/src/studio/forest.ts +570 -0
- package/src/studio/index.ts +32 -0
- package/src/studio/model.ts +254 -0
- package/src/studio/revisions.ts +476 -0
- package/src/studio/search.ts +337 -0
- package/src/studio/store.ts +811 -0
- package/src/studio/sync.ts +912 -0
- package/src/studio/textfold.ts +72 -0
- package/src/studio/time.ts +107 -0
- package/src/studio/validate.ts +363 -0
- package/src/templates/embedded.ts +4 -6
- package/src/templates/engine.ts +1 -1
- package/src/templates/skills.ts +76 -51
- package/src/theorems/guard.ts +52 -0
- package/src/theorems/index.ts +56 -0
- package/src/theorems/migrate.ts +133 -0
- package/src/theorems/schema.ts +67 -0
- package/src/theorems/scope.ts +68 -0
- package/src/theorems/serialize.ts +60 -0
- package/src/theorems/transactionMachine.ts +247 -0
- package/src/theorems/validate.ts +141 -0
- package/src/util/nextNumber.ts +0 -2
- package/src/validation/changeCheck.ts +0 -24
- package/src/validation/flowAndNesting.ts +434 -0
- package/src/validation/harness.ts +108 -65
- package/src/validation/validate.ts +26 -12
- package/src/validation/xstateTransitions.ts +483 -184
- package/templates/zh-Hans/llmanspec-agents-stub.md +17 -2
- package/templates/zh-Hans/skills/llman-sdd-autopilot/SKILL.md +34 -0
- package/templates/zh-Hans/skills/llman-sdd-change/SKILL.md +44 -0
- package/templates/zh-Hans/skills/llman-sdd-change/playbooks/archive.md +15 -0
- package/templates/zh-Hans/skills/llman-sdd-change/playbooks/draft.md +9 -0
- package/templates/zh-Hans/skills/llman-sdd-review/SKILL.md +71 -0
- package/templates/zh-Hans/skills/llman-sdd-specs/SKILL.md +70 -0
- package/templates/zh-Hans/skills/llman-sdd-specs/playbooks/compact.md +12 -0
- package/templates/zh-Hans/skills/llman-sdd-specs/playbooks/doctor.md +26 -0
- package/templates/zh-Hans/skills/llman-sdd-specs/references/graph-dsl.md +33 -0
- package/templates/zh-Hans/skills/llman-sdd-studio/SKILL.md +33 -0
- package/templates/zh-Hans/skills/llman-sdd-studio/playbooks/collab.md +20 -0
- package/templates/zh-Hans/skills/llman-sdd-studio/playbooks/drift.md +52 -0
- package/templates/zh-Hans/skills/llman-sdd-studio/playbooks/onboard.md +33 -0
- package/templates/zh-Hans/units/skills/cli-footer.md +2 -2
- package/src/context/indexStore.ts +0 -171
- package/src/context/retrieve.ts +0 -332
- package/src/context/tree.ts +0 -112
- package/templates/zh-Hans/agents-root-stub.md +0 -9
- package/templates/zh-Hans/skills/llman-sdd-apply-cycle.md +0 -69
- package/templates/zh-Hans/skills/llman-sdd-apply.md +0 -117
- package/templates/zh-Hans/skills/llman-sdd-arch-review.md +0 -58
- package/templates/zh-Hans/skills/llman-sdd-archive.md +0 -79
- package/templates/zh-Hans/skills/llman-sdd-continue.md +0 -34
- package/templates/zh-Hans/skills/llman-sdd-draft.md +0 -53
- package/templates/zh-Hans/skills/llman-sdd-explore.md +0 -64
- package/templates/zh-Hans/skills/llman-sdd-ff.md +0 -33
- package/templates/zh-Hans/skills/llman-sdd-graph.md +0 -56
- package/templates/zh-Hans/skills/llman-sdd-propose.md +0 -107
- package/templates/zh-Hans/skills/llman-sdd-quick.md +0 -41
- package/templates/zh-Hans/skills/llman-sdd-research.md +0 -35
- package/templates/zh-Hans/skills/llman-sdd-specs-compact.md +0 -41
- package/templates/zh-Hans/skills/llman-sdd-validate.md +0 -28
- package/templates/zh-Hans/skills/llman-sdd-verify.md +0 -77
- package/templates/zh-Hans/skills/llman-sdd-wayfinder.md +0 -83
- package/templates/zh-Hans/units/skills/ethics-governance.md +0 -6
- package/templates/zh-Hans/units/skills/git-native-flow.md +0 -56
- package/templates/zh-Hans/units/skills/human-readable-summary.md +0 -9
- package/templates/zh-Hans/units/skills/index-fallback.md +0 -1
- package/templates/zh-Hans/units/skills/stage-guard.md +0 -17
- package/templates/zh-Hans/units/skills/structured-protocol.md +0 -19
- package/templates/zh-Hans/units/skills/validation-hints.md +0 -20
- package/templates/zh-Hans/units/skills/version-drift.md +0 -3
- package/templates/zh-Hans/units/spec/feature-contract.md +0 -8
package/src/index.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export {
|
|
2
|
-
EXTRA_SKILLS,
|
|
3
2
|
archiveSchema,
|
|
4
3
|
changeIdSchema,
|
|
5
4
|
sddConfigSchema,
|
|
@@ -20,7 +19,7 @@ export {
|
|
|
20
19
|
compileChangeIdPattern,
|
|
21
20
|
renderChangeIdTemplate,
|
|
22
21
|
} from './config/changeId.ts';
|
|
23
|
-
export { renderConfigOverview
|
|
22
|
+
export { renderConfigOverview } from './config/surface.ts';
|
|
24
23
|
|
|
25
24
|
export type {
|
|
26
25
|
CapabilityDoc,
|
|
@@ -53,6 +52,16 @@ export {
|
|
|
53
52
|
type RegistryOccurrence,
|
|
54
53
|
type ReqRegistry,
|
|
55
54
|
} from './spec/reqRegistry.ts';
|
|
55
|
+
export {
|
|
56
|
+
REQ_ID_RE,
|
|
57
|
+
allocateNextReqId,
|
|
58
|
+
formatReqRef,
|
|
59
|
+
parseReqRef,
|
|
60
|
+
quoteScenarioName,
|
|
61
|
+
reqIdFromTag,
|
|
62
|
+
tokenizeReqRefs,
|
|
63
|
+
type ReqRef,
|
|
64
|
+
} from './spec/reqRef.ts';
|
|
56
65
|
export {
|
|
57
66
|
analyzeLegacy,
|
|
58
67
|
hasNativeRules,
|
|
@@ -98,10 +107,26 @@ export type {
|
|
|
98
107
|
} from './validation/validate.ts';
|
|
99
108
|
export { validateAllSpecs, validateCapability } from './validation/validate.ts';
|
|
100
109
|
export { buildDuplicatesFor, formatTotals } from './validation/validate.ts';
|
|
110
|
+
export { validateFlowAndNesting } from './validation/flowAndNesting.ts';
|
|
101
111
|
export {
|
|
102
112
|
TRANSITIONS_INTROSPECTION,
|
|
103
|
-
|
|
104
|
-
|
|
113
|
+
extractTransitions,
|
|
114
|
+
isJudgmentKind,
|
|
115
|
+
isNodesOutline,
|
|
116
|
+
parseNestRef,
|
|
117
|
+
resolveNodesColumns,
|
|
118
|
+
resolveFlowEdgeColumns,
|
|
119
|
+
resolveStateEdgeColumns,
|
|
120
|
+
resolveGraphScope,
|
|
121
|
+
FLOW_TAG,
|
|
122
|
+
STATE_TAG,
|
|
123
|
+
NODES_TAG,
|
|
124
|
+
DECISION_TABLE_TAG,
|
|
125
|
+
namedExitsInGraph,
|
|
126
|
+
validateDecisionScenario,
|
|
127
|
+
type EdgeColumnMap,
|
|
128
|
+
type NodesColumnMap,
|
|
129
|
+
type NestRef,
|
|
105
130
|
type TransitionEdge,
|
|
106
131
|
} from './validation/xstateTransitions.ts';
|
|
107
132
|
export { splitVerb } from './config/changeId.ts';
|
|
@@ -136,7 +161,9 @@ export {
|
|
|
136
161
|
export {
|
|
137
162
|
expandRunCommand,
|
|
138
163
|
runHarnessForSpecs,
|
|
164
|
+
type HarnessCommandKind,
|
|
139
165
|
type HarnessGate,
|
|
166
|
+
type HarnessNamedCommand,
|
|
140
167
|
type HarnessRunner,
|
|
141
168
|
type HarnessRunOutcome,
|
|
142
169
|
type HarnessTarget,
|
|
@@ -169,7 +196,11 @@ export {
|
|
|
169
196
|
export { DRAFT_PROPOSAL_TEMPLATE, deriveChangeId } from './change/id.ts';
|
|
170
197
|
export { parseTaskCheckboxes, type ParsedTaskCheckboxes } from './change/tasks.ts';
|
|
171
198
|
export { CLOSE_OUT_TASK_HINT, closeOutTaskLines, isCloseOutTaskTitle } from './change/tasks.ts';
|
|
172
|
-
export {
|
|
199
|
+
export {
|
|
200
|
+
decideCloseOutHarness,
|
|
201
|
+
decideCloseOutDangling,
|
|
202
|
+
type CloseOutHarnessDecision,
|
|
203
|
+
} from './change/closeOutHarness.ts';
|
|
173
204
|
export {
|
|
174
205
|
extractUniqueNumber,
|
|
175
206
|
collectNumbers,
|
|
@@ -179,6 +210,7 @@ export {
|
|
|
179
210
|
export { ChangeIdResolveError, resolveChangeId, type ResolvedChangeId } from './change/resolve.ts';
|
|
180
211
|
export {
|
|
181
212
|
CHANGES_DIR,
|
|
213
|
+
SPECS_DIR,
|
|
182
214
|
LifecycleError,
|
|
183
215
|
attachChange,
|
|
184
216
|
changeDiff,
|
|
@@ -202,13 +234,16 @@ export {
|
|
|
202
234
|
} from './templates/engine.ts';
|
|
203
235
|
export {
|
|
204
236
|
ETHICS_KEYS,
|
|
237
|
+
SKILL_PACKAGES,
|
|
205
238
|
buildTemplateVars,
|
|
206
239
|
enforceEthicsGovernance,
|
|
207
240
|
loadLocaleResource,
|
|
208
241
|
loadSkillTemplates,
|
|
209
242
|
loadUnitRegistry,
|
|
210
243
|
skillCandidates,
|
|
244
|
+
type SkillPackageSpec,
|
|
211
245
|
type SkillTemplate,
|
|
246
|
+
type SkillTemplateFile,
|
|
212
247
|
type TemplateIo,
|
|
213
248
|
} from './templates/skills.ts';
|
|
214
249
|
export {
|
|
@@ -222,10 +257,21 @@ export {
|
|
|
222
257
|
refreshSubRootBlocks,
|
|
223
258
|
resolveEffectiveLocale,
|
|
224
259
|
runInit,
|
|
260
|
+
stripManagedBlock,
|
|
225
261
|
updateFileWithMarkers,
|
|
226
262
|
type InitIo,
|
|
227
263
|
type InitResult,
|
|
264
|
+
type UncommentConfigOutcome,
|
|
228
265
|
} from './init/init.ts';
|
|
266
|
+
export {
|
|
267
|
+
LLMAN_UNCOMMENT_EXCLUDES,
|
|
268
|
+
LLMAN_UNCOMMENT_PRESERVE_PATTERNS,
|
|
269
|
+
UNCOMMENT_CONFIG_CANDIDATES,
|
|
270
|
+
findUncommentConfig,
|
|
271
|
+
patchUncommentConfig,
|
|
272
|
+
type UncommentPatchResult,
|
|
273
|
+
} from './init/uncommentConfig.ts';
|
|
274
|
+
export { checkSkillVersions, readSkillVersion, skillVersionCompatible } from './init/skillCheck.ts';
|
|
229
275
|
export {
|
|
230
276
|
changeTitle,
|
|
231
277
|
collectChanges,
|
|
@@ -252,6 +298,7 @@ export {
|
|
|
252
298
|
nextReqId,
|
|
253
299
|
scaffoldSpec,
|
|
254
300
|
skeletonContent,
|
|
301
|
+
usedReqIds,
|
|
255
302
|
type SpecHelperIo,
|
|
256
303
|
} from './report/specHelpers.ts';
|
|
257
304
|
export {
|
|
@@ -276,6 +323,8 @@ export {
|
|
|
276
323
|
runFreeze,
|
|
277
324
|
runList,
|
|
278
325
|
runThaw,
|
|
326
|
+
unfenceLegacyCards,
|
|
327
|
+
planUnfenceLegacyCards,
|
|
279
328
|
type FreezeIo,
|
|
280
329
|
type FreezeOpts,
|
|
281
330
|
type FreezeRunResult,
|
|
@@ -287,6 +336,7 @@ export {
|
|
|
287
336
|
frozenCardIdOf,
|
|
288
337
|
frozenCardName,
|
|
289
338
|
isFrozenCard,
|
|
339
|
+
unfenceFrozenCard,
|
|
290
340
|
} from './archive/frozenCard.ts';
|
|
291
341
|
export {
|
|
292
342
|
IgnoreChainError,
|
|
@@ -305,46 +355,13 @@ export {
|
|
|
305
355
|
type ReviewSignal,
|
|
306
356
|
} from './review/review.ts';
|
|
307
357
|
export {
|
|
308
|
-
|
|
309
|
-
computeSpecHash,
|
|
310
|
-
type HashIo,
|
|
311
|
-
type SerializedDocNode,
|
|
312
|
-
type SerializedScenarioNode,
|
|
313
|
-
type SerializedReqNode,
|
|
314
|
-
type SerializedTreeIndex,
|
|
315
|
-
} from './context/tree.ts';
|
|
316
|
-
export {
|
|
317
|
-
CONTEXT_DIR_REL,
|
|
318
|
-
PAGEINDEX_DIR_REL,
|
|
319
|
-
REBUILD_LOCK_REL,
|
|
320
|
-
TREE_JSON_REL,
|
|
321
|
-
checkIndexFreshness,
|
|
322
|
-
loadTreeWithAutoRebuild,
|
|
323
|
-
parseLock,
|
|
324
|
-
rebuildIndex,
|
|
325
|
-
type AutoRefreshResult,
|
|
326
|
-
type FreshnessResult,
|
|
327
|
-
type IndexIo,
|
|
328
|
-
type RebuildOpts,
|
|
329
|
-
type RebuildResult,
|
|
330
|
-
} from './context/indexStore.ts';
|
|
331
|
-
export {
|
|
358
|
+
LEGACY_SDD_STATE_REL,
|
|
332
359
|
SDD_STATE_REL,
|
|
333
360
|
readSddState,
|
|
334
361
|
semverLt,
|
|
335
362
|
writeSddState,
|
|
336
363
|
type SddState,
|
|
337
364
|
} from './context/sddState.ts';
|
|
338
|
-
export {
|
|
339
|
-
resolveChatConfig,
|
|
340
|
-
runContextRetrieval,
|
|
341
|
-
unavailableResult,
|
|
342
|
-
type ChatConfig,
|
|
343
|
-
type ContextResult,
|
|
344
|
-
type RetrieveDeps,
|
|
345
|
-
type TierEntry,
|
|
346
|
-
type TreeToolDeps,
|
|
347
|
-
} from './context/retrieve.ts';
|
|
348
365
|
export { maxUsedNumber, nextNumber } from './util/nextNumber.ts';
|
|
349
366
|
export {
|
|
350
367
|
COMPLETION_BIN,
|
|
@@ -360,3 +377,409 @@ export {
|
|
|
360
377
|
type CompletionCommandSpec,
|
|
361
378
|
type CompletionShell,
|
|
362
379
|
} from './self/completion.ts';
|
|
380
|
+
export {
|
|
381
|
+
cloneMachineDraft,
|
|
382
|
+
cloneMachineIR,
|
|
383
|
+
makeMachineKey,
|
|
384
|
+
splitMachineKey,
|
|
385
|
+
nextPrefixedUid,
|
|
386
|
+
type DocDraftChangeKind,
|
|
387
|
+
type EdgeBendOffset,
|
|
388
|
+
type MachineDraft,
|
|
389
|
+
type MachineDraftMode,
|
|
390
|
+
type MachineTimeline,
|
|
391
|
+
type ParsedMachineKey,
|
|
392
|
+
type NodePosition,
|
|
393
|
+
type RevisionOp,
|
|
394
|
+
type SemanticAnchor,
|
|
395
|
+
type StudioComment,
|
|
396
|
+
type StudioDocDraft,
|
|
397
|
+
type StudioGraphKind,
|
|
398
|
+
type StudioMachineColumns,
|
|
399
|
+
type StudioMachineIR,
|
|
400
|
+
type StudioRevisionProposal,
|
|
401
|
+
type StudioStateDoc,
|
|
402
|
+
type StudioStateNode,
|
|
403
|
+
type StudioTransitionEdge,
|
|
404
|
+
type TimelineActor,
|
|
405
|
+
type TimelineEntry,
|
|
406
|
+
} from './studio/model.ts';
|
|
407
|
+
export {
|
|
408
|
+
createMachineDraft,
|
|
409
|
+
extractStudioMachines,
|
|
410
|
+
fillMissingExtractedMachines,
|
|
411
|
+
markMachineRemoved,
|
|
412
|
+
type CreateMachineDraftInput,
|
|
413
|
+
type ExtractedStudioMachine,
|
|
414
|
+
} from './studio/extract.ts';
|
|
415
|
+
export {
|
|
416
|
+
FLOWCHART_LINTER_RULES,
|
|
417
|
+
STUDIO_LINTER_RULES,
|
|
418
|
+
hasBlockingDiagnostics,
|
|
419
|
+
validateMachineGraph,
|
|
420
|
+
type DiagnosticFixKind,
|
|
421
|
+
type DiagnosticSeverity,
|
|
422
|
+
type DiagnosticTargetKind,
|
|
423
|
+
type MachineDiagnostic,
|
|
424
|
+
type StudioLinterRuleMeta,
|
|
425
|
+
} from './studio/validate.ts';
|
|
426
|
+
export {
|
|
427
|
+
computeMachineDiff,
|
|
428
|
+
computeWorldlineOverlayDiff,
|
|
429
|
+
formatSemanticDiff,
|
|
430
|
+
EDGE_ANNOTATION_FIELDS,
|
|
431
|
+
NODE_ANNOTATION_FIELDS,
|
|
432
|
+
isAnnotationField,
|
|
433
|
+
isAnnotationOnlyDiff,
|
|
434
|
+
isAnnotationOnlyEntry,
|
|
435
|
+
isAnnotationOnlyPatch,
|
|
436
|
+
type AnnotationEntity,
|
|
437
|
+
type NodeKindDiff,
|
|
438
|
+
type NodeMetaDiff,
|
|
439
|
+
type NodeMetaField,
|
|
440
|
+
type MachineSemanticDiff,
|
|
441
|
+
type NestLinkDiff,
|
|
442
|
+
type StateRenameDiff,
|
|
443
|
+
type TransitionChangedField,
|
|
444
|
+
type TransitionModifiedDiff,
|
|
445
|
+
type WorldlineOverlayDiff,
|
|
446
|
+
} from './studio/diff.ts';
|
|
447
|
+
export {
|
|
448
|
+
StudioRevisionError,
|
|
449
|
+
acceptRevisionProposal,
|
|
450
|
+
addStudioComment,
|
|
451
|
+
applyRevisionOpsToMachine,
|
|
452
|
+
deleteStudioComment,
|
|
453
|
+
editStudioComment,
|
|
454
|
+
previewRevisionProposal,
|
|
455
|
+
proposeRevision,
|
|
456
|
+
rejectRevisionProposal,
|
|
457
|
+
reopenStudioComment,
|
|
458
|
+
replyStudioComment,
|
|
459
|
+
resolveStudioComment,
|
|
460
|
+
commentWatchTag,
|
|
461
|
+
setStudioCommentWatchTag,
|
|
462
|
+
type AddCommentInput,
|
|
463
|
+
type ProposeRevisionInput,
|
|
464
|
+
type RevisionPreviewResult,
|
|
465
|
+
} from './studio/revisions.ts';
|
|
466
|
+
export {
|
|
467
|
+
STUDIO_STATES_REL,
|
|
468
|
+
StudioStateError,
|
|
469
|
+
applyAllocatedReqIds,
|
|
470
|
+
buildInitialTimeline,
|
|
471
|
+
planStudioApply,
|
|
472
|
+
createStudioStateDoc,
|
|
473
|
+
deleteStudioState,
|
|
474
|
+
listStudioStates,
|
|
475
|
+
parseStudioStateDoc,
|
|
476
|
+
previewTimelineEntry,
|
|
477
|
+
readStudioState,
|
|
478
|
+
recordTimelineCommit,
|
|
479
|
+
recordWorldlineCommit,
|
|
480
|
+
redoTimeline,
|
|
481
|
+
rollbackTimeline,
|
|
482
|
+
studioStateDocSchema,
|
|
483
|
+
studioStateRelPath,
|
|
484
|
+
switchWorldlineHead,
|
|
485
|
+
undoTimeline,
|
|
486
|
+
validateStateId,
|
|
487
|
+
writeStudioState,
|
|
488
|
+
type AllocatedReqId,
|
|
489
|
+
type CreateStudioStateDocInput,
|
|
490
|
+
type StudioApplyPlan,
|
|
491
|
+
type StudioStateIo,
|
|
492
|
+
type StudioStateSummary,
|
|
493
|
+
} from './studio/store.ts';
|
|
494
|
+
export {
|
|
495
|
+
STUDIO_FOCUS_KINDS,
|
|
496
|
+
formatStudioDeepLinkQuery,
|
|
497
|
+
formatStudioFocusToken,
|
|
498
|
+
formatStudioNestToken,
|
|
499
|
+
nestLevelLabel,
|
|
500
|
+
nestPathFromStack,
|
|
501
|
+
nestStackFromPath,
|
|
502
|
+
parseStudioDeepLink,
|
|
503
|
+
parseStudioFocusToken,
|
|
504
|
+
parseStudioNestToken,
|
|
505
|
+
type StudioDeepLink,
|
|
506
|
+
type StudioDeepLinkFocus,
|
|
507
|
+
type StudioFocusKind,
|
|
508
|
+
} from './studio/deeplink.ts';
|
|
509
|
+
export {
|
|
510
|
+
buildDemoJobRunnerDraft,
|
|
511
|
+
buildDemoReimbursementDraft,
|
|
512
|
+
buildDemoStudioDrafts,
|
|
513
|
+
buildDemoStudioWebDrafts,
|
|
514
|
+
mergeDemoDraftsWithExtracted,
|
|
515
|
+
} from './studio/demos.ts';
|
|
516
|
+
export {
|
|
517
|
+
compileDecisionTableToTree,
|
|
518
|
+
detectConvertibleStructure,
|
|
519
|
+
extractDecisionTables,
|
|
520
|
+
type ConvertibleStructureHint,
|
|
521
|
+
type DecisionTreeEdge,
|
|
522
|
+
type DecisionTreeGraph,
|
|
523
|
+
type DecisionTreeNode,
|
|
524
|
+
type StudioDecisionTable,
|
|
525
|
+
} from './studio/decisionTree.ts';
|
|
526
|
+
export { foldFeatureAst, foldPlainText, type TextfoldLevels } from './studio/textfold.ts';
|
|
527
|
+
export {
|
|
528
|
+
EMPTY_CHANGE_SCOPE,
|
|
529
|
+
resolveChangeScopeActivation,
|
|
530
|
+
type ChangeScopeActivationDecision,
|
|
531
|
+
type ChangeScopeActivationInput,
|
|
532
|
+
type StudioScopeViewMode,
|
|
533
|
+
} from './studio/changeScope.ts';
|
|
534
|
+
export {
|
|
535
|
+
computeFeatureChangeDiff,
|
|
536
|
+
type FeatureChangeDiffResult,
|
|
537
|
+
} from './studio/changeScopeDiff.ts';
|
|
538
|
+
export {
|
|
539
|
+
bootstrapResponseSchema,
|
|
540
|
+
convertibleHintSchema,
|
|
541
|
+
decisionTreeEdgeSchema,
|
|
542
|
+
decisionTreeNodeSchema,
|
|
543
|
+
exportProposalRequestSchema,
|
|
544
|
+
exportProposalResponseSchema,
|
|
545
|
+
healthResponseSchema,
|
|
546
|
+
hubInfoSchema,
|
|
547
|
+
previewDiffResponseSchema,
|
|
548
|
+
putLayoutRequestSchema,
|
|
549
|
+
putStateRequestSchema,
|
|
550
|
+
putStateResponseSchema,
|
|
551
|
+
putViewsRequestSchema,
|
|
552
|
+
registerWorkspaceRequestSchema,
|
|
553
|
+
specDetailResponseSchema,
|
|
554
|
+
specIndexEdgeSchema,
|
|
555
|
+
specIndexItemSchema,
|
|
556
|
+
specRuleItemSchema,
|
|
557
|
+
studioChangeItemStatusSchema,
|
|
558
|
+
studioChangeScopeSchema,
|
|
559
|
+
studioDecisionTableSchema,
|
|
560
|
+
studioDeepLinkJsonSchema,
|
|
561
|
+
studioFocusContextSchema,
|
|
562
|
+
studioFocusObjectSchema,
|
|
563
|
+
studioGraphKindSchema,
|
|
564
|
+
studioSpecKindSchema,
|
|
565
|
+
studioSseEventSchema,
|
|
566
|
+
studioTouchedSpecSchema,
|
|
567
|
+
textfoldRequestSchema,
|
|
568
|
+
textfoldResponseSchema,
|
|
569
|
+
verificationHardnessSchema,
|
|
570
|
+
viewsResponseSchema,
|
|
571
|
+
workspaceItemSchema,
|
|
572
|
+
workspacesResponseSchema,
|
|
573
|
+
type BootstrapResponse,
|
|
574
|
+
type ExportProposalRequest,
|
|
575
|
+
type ExportProposalResponse,
|
|
576
|
+
type HealthResponse,
|
|
577
|
+
type HubInfo,
|
|
578
|
+
type PreviewDiffResponse,
|
|
579
|
+
type PutLayoutRequest,
|
|
580
|
+
type PutStateRequest,
|
|
581
|
+
type PutStateResponse,
|
|
582
|
+
type PutViewsRequest,
|
|
583
|
+
type RegisterWorkspaceRequest,
|
|
584
|
+
type SpecDetailResponse,
|
|
585
|
+
type SpecIndexEdge,
|
|
586
|
+
type SpecIndexItem,
|
|
587
|
+
type SpecRuleItem,
|
|
588
|
+
type StudioChangeItemStatus,
|
|
589
|
+
type StudioChangeScope,
|
|
590
|
+
type StudioDecisionTableDto,
|
|
591
|
+
type StudioDeepLinkJson,
|
|
592
|
+
type StudioFocusContext,
|
|
593
|
+
type StudioFocusObject,
|
|
594
|
+
type StudioSseEvent,
|
|
595
|
+
type StudioTouchedSpec,
|
|
596
|
+
type TextfoldRequest,
|
|
597
|
+
type TextfoldResponse,
|
|
598
|
+
type ViewsResponse,
|
|
599
|
+
type WorkspaceItem,
|
|
600
|
+
type WorkspacesResponse,
|
|
601
|
+
studioSearchHitSchema,
|
|
602
|
+
studioSearchRequestSchema,
|
|
603
|
+
studioSearchResponseSchema,
|
|
604
|
+
studioSearchTargetKindSchema,
|
|
605
|
+
studioTheoremSchema,
|
|
606
|
+
theoremProtectionSummarySchema,
|
|
607
|
+
type StudioSearchHit,
|
|
608
|
+
type StudioSearchRequest,
|
|
609
|
+
type StudioSearchResponse,
|
|
610
|
+
type StudioTheoremDto,
|
|
611
|
+
type TheoremProtectionSummary,
|
|
612
|
+
syncApplyRequestSchema,
|
|
613
|
+
syncApplyResponseSchema,
|
|
614
|
+
syncItemSchema,
|
|
615
|
+
syncPickSchema,
|
|
616
|
+
syncPreviewResponseSchema,
|
|
617
|
+
type SyncApplyRequest,
|
|
618
|
+
type SyncApplyResponse,
|
|
619
|
+
type SyncItemDto,
|
|
620
|
+
type SyncPickDto,
|
|
621
|
+
type SyncPreviewResponse,
|
|
622
|
+
} from './studio/contracts.ts';
|
|
623
|
+
export {
|
|
624
|
+
SYNC_BOTH_BLOCKED_REASON,
|
|
625
|
+
SYNC_SNAPSHOT_BRANCH_REF,
|
|
626
|
+
SYNC_SNAPSHOT_LABEL,
|
|
627
|
+
applyDocSyncPicks,
|
|
628
|
+
applySyncPicks,
|
|
629
|
+
buildDocSyncItems,
|
|
630
|
+
buildSyncItems,
|
|
631
|
+
closeAllSyncSnapshots,
|
|
632
|
+
closeSyncSnapshot,
|
|
633
|
+
hasOpenSyncSnapshot,
|
|
634
|
+
machineIrSemanticallyEquivalent,
|
|
635
|
+
machineDomainEquals,
|
|
636
|
+
picksMatchDiff,
|
|
637
|
+
snapshotBeforeSync,
|
|
638
|
+
type ApplyDocSyncPicksResult,
|
|
639
|
+
type ApplySyncPicksResult,
|
|
640
|
+
type SyncItem,
|
|
641
|
+
type SyncItemKind,
|
|
642
|
+
type SyncPick,
|
|
643
|
+
type SyncTransitionPayload,
|
|
644
|
+
} from './studio/sync.ts';
|
|
645
|
+
export {
|
|
646
|
+
formatStudioDateTime,
|
|
647
|
+
partitionTimelineEntries,
|
|
648
|
+
pruneTimelineEntries,
|
|
649
|
+
pruneStudioTimelines,
|
|
650
|
+
} from './studio/time.ts';
|
|
651
|
+
export {
|
|
652
|
+
THEOREM_CONFIRM_STATE,
|
|
653
|
+
THEOREM_ID_RE,
|
|
654
|
+
THEOREM_LEGACY_LOCK_FILE,
|
|
655
|
+
THEOREM_LOCK_STRENGTHS,
|
|
656
|
+
THEOREM_TRANSACTION_FINAL_STATES,
|
|
657
|
+
THEOREM_TRANSACTION_SPEC_STATES,
|
|
658
|
+
THEOREMS_DIR_REL,
|
|
659
|
+
TheoremDocumentSchema,
|
|
660
|
+
TheoremSeveritySchema,
|
|
661
|
+
TheoremStatusSchema,
|
|
662
|
+
TheoremVerifySchema,
|
|
663
|
+
compileScopeGlob,
|
|
664
|
+
discoverTheoremFiles,
|
|
665
|
+
evaluateTheoremGuard,
|
|
666
|
+
findLegacyTheoremFiles,
|
|
667
|
+
isSingleTheoremDocument,
|
|
668
|
+
migrateLegacyTheoremMarkdown,
|
|
669
|
+
normalizeTheoremPath,
|
|
670
|
+
renderTheoremUnifiedDiff,
|
|
671
|
+
renderTheoremYaml,
|
|
672
|
+
selectTheoremsByTag,
|
|
673
|
+
selectTheoremsForPaths,
|
|
674
|
+
theoremMatchesPath,
|
|
675
|
+
theoremTransactionMachine,
|
|
676
|
+
validateTheoremSet,
|
|
677
|
+
yamlBlock,
|
|
678
|
+
yamlScalar,
|
|
679
|
+
type MigratedTheorem,
|
|
680
|
+
type TheoremDiscoverIo,
|
|
681
|
+
type TheoremDocument,
|
|
682
|
+
type TheoremEntry,
|
|
683
|
+
type TheoremGuardDecision,
|
|
684
|
+
type TheoremGuardInput,
|
|
685
|
+
type TheoremGuardScenario,
|
|
686
|
+
type TheoremGuardVerdict,
|
|
687
|
+
type TheoremIssue,
|
|
688
|
+
type TheoremLockStrength,
|
|
689
|
+
type TheoremMigrationResult,
|
|
690
|
+
type TheoremSeverity,
|
|
691
|
+
type TheoremSourceFile,
|
|
692
|
+
type TheoremStatus,
|
|
693
|
+
type TheoremTransactionActors,
|
|
694
|
+
type TheoremTransactionContext,
|
|
695
|
+
type TheoremTransactionEvent,
|
|
696
|
+
type TheoremTransactionSpecState,
|
|
697
|
+
type TheoremValidationResult,
|
|
698
|
+
type TheoremVerify,
|
|
699
|
+
} from './theorems/index.ts';
|
|
700
|
+
export {
|
|
701
|
+
buildWorkspaceSearchDocuments,
|
|
702
|
+
extractHighlightSnippet,
|
|
703
|
+
searchWorkspaceBm25,
|
|
704
|
+
tokenizeSearchText,
|
|
705
|
+
type SearchableSpecInput,
|
|
706
|
+
type StudioSearchTargetKind,
|
|
707
|
+
type WorkspaceSearchDocument,
|
|
708
|
+
type WorkspaceSearchHit,
|
|
709
|
+
} from './studio/search.ts';
|
|
710
|
+
export {
|
|
711
|
+
STUDIO_VIEWS_REL,
|
|
712
|
+
StudioViewsError,
|
|
713
|
+
buildForestGraph,
|
|
714
|
+
computeCrossForestBridges,
|
|
715
|
+
defaultStudioViewsDoc,
|
|
716
|
+
forestEdgeEvidenceSchema,
|
|
717
|
+
parseStudioViewsDoc,
|
|
718
|
+
readStudioViews,
|
|
719
|
+
studioManualGroupSchema,
|
|
720
|
+
studioManualLinkSchema,
|
|
721
|
+
studioTabViewSchema,
|
|
722
|
+
studioViewsDocSchema,
|
|
723
|
+
validateForestIsolation,
|
|
724
|
+
writeStudioViews,
|
|
725
|
+
type CrossForestBridgeItem,
|
|
726
|
+
type CrossForestBridgeResult,
|
|
727
|
+
type ForestDiagnostic,
|
|
728
|
+
type ForestEdge,
|
|
729
|
+
type ForestEdgeEvidence,
|
|
730
|
+
type ForestGraph,
|
|
731
|
+
type ForestGroupSpec,
|
|
732
|
+
type ForestNode,
|
|
733
|
+
type ForestNodeKind,
|
|
734
|
+
type StudioManualGroup,
|
|
735
|
+
type StudioManualLink,
|
|
736
|
+
type StudioTabView,
|
|
737
|
+
type StudioViewsDoc,
|
|
738
|
+
type StudioViewsIo,
|
|
739
|
+
} from './studio/forest.ts';
|
|
740
|
+
export {
|
|
741
|
+
StudioSyncError,
|
|
742
|
+
buildProposalDraft,
|
|
743
|
+
previewFeatureUnifiedDiff,
|
|
744
|
+
renderUpdatedFeatureSource,
|
|
745
|
+
type BuildProposalDraftInput,
|
|
746
|
+
type RenderFeatureOptions,
|
|
747
|
+
} from './studio/featureSync.ts';
|
|
748
|
+
export {
|
|
749
|
+
applyDriftProposalsToStateDoc,
|
|
750
|
+
buildDriftRevisionProposals,
|
|
751
|
+
buildDriftSlicePacket,
|
|
752
|
+
parseRuntimeTraceJsonl,
|
|
753
|
+
parseUnifiedDiffHunks,
|
|
754
|
+
reconcileRuntimeTrace,
|
|
755
|
+
runtimeTraceEventSchema,
|
|
756
|
+
scanLlmanspecAnchors,
|
|
757
|
+
type DriftDiffFileInput,
|
|
758
|
+
type DriftImpactedSpec,
|
|
759
|
+
type DriftMatchedFileSlice,
|
|
760
|
+
type DriftRevisionProposalDraft,
|
|
761
|
+
type DriftSlicePacket,
|
|
762
|
+
type LlmanspecAnchorMatch,
|
|
763
|
+
type ParseRuntimeTraceResult,
|
|
764
|
+
type ParsedDiffFile,
|
|
765
|
+
type ParsedRuntimeTraceEvent,
|
|
766
|
+
type RuntimeTraceEvent,
|
|
767
|
+
type RuntimeTraceParseError,
|
|
768
|
+
type RuntimeTraceReconcileResult,
|
|
769
|
+
type ShadowTransitionFinding,
|
|
770
|
+
type UncoveredTransitionFinding,
|
|
771
|
+
type UnifiedDiffHunk,
|
|
772
|
+
type UnknownMachineFinding,
|
|
773
|
+
} from './studio/drift.ts';
|
|
774
|
+
export {
|
|
775
|
+
formatCliHint,
|
|
776
|
+
hintForChangeNew,
|
|
777
|
+
hintForChangeStart,
|
|
778
|
+
hintForStudioDiagnostic,
|
|
779
|
+
hintForValidateCheckPass,
|
|
780
|
+
hintForValidationIssue,
|
|
781
|
+
shouldEmitCliHint,
|
|
782
|
+
type CliHint,
|
|
783
|
+
type CliHintKind,
|
|
784
|
+
type HintOutputMode,
|
|
785
|
+
} from './hints/jitHints.ts';
|
|
@@ -11,19 +11,8 @@ export const LLMANSPEC_SCHEMA_URL =
|
|
|
11
11
|
export const DEFAULT_CONFIG_ZH_HANS = `schema: spec-driven
|
|
12
12
|
locale: zh-Hans
|
|
13
13
|
|
|
14
|
-
#
|
|
15
|
-
#
|
|
16
|
-
# 默认 workflow 技能 + 本列表(extra_skills 扩展)。
|
|
17
|
-
# 然后扫描 \`.agents/skills/llman-sdd-*\`:不在候选集中的先删除,再写入/更新候选。
|
|
18
|
-
# 仅处理 \`llman-sdd-\` 前缀(无此前缀的自定义技能不会被删)。
|
|
19
|
-
# 已废弃的内置技能(从默认集移除后)会因此被正确清理。
|
|
20
|
-
# extra_skills:
|
|
21
|
-
# - llman-sdd-continue
|
|
22
|
-
# - llman-sdd-ff
|
|
23
|
-
# - llman-sdd-validate
|
|
24
|
-
# - llman-sdd-arch-review
|
|
25
|
-
# - llman-sdd-wayfinder
|
|
26
|
-
# - llman-sdd-research
|
|
14
|
+
# 内置技能由 llman-sdd init --update 全部写入 .agents/skills/。
|
|
15
|
+
# 无 llman-sdd- 前缀的自定义技能不会被删除。
|
|
27
16
|
|
|
28
17
|
# Spec 验证(可选,取消注释以启用)
|
|
29
18
|
# specs:
|
|
@@ -32,6 +21,8 @@ locale: zh-Hans
|
|
|
32
21
|
# # check_command: "pytest {feature_dir} -k {feature_name} -v"
|
|
33
22
|
# # 项目级 runner(无占位符):validate --all/--specs 整批只跑一次(batch-once)。
|
|
34
23
|
# # check_command: "cargo test --features bdd"
|
|
24
|
+
# # check_dangling_bdd_command: "cargo bdd unused"
|
|
25
|
+
# # check_dangling_bdd_command: "cucumber --dry-run --format usage"
|
|
35
26
|
# # verify_prompt: |
|
|
36
27
|
# # 将测试失败映射到对应的 requirement ID。
|
|
37
28
|
`;
|