@vpxa/aikit 0.1.174 → 0.1.175

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 (38) hide show
  1. package/package.json +3 -3
  2. package/packages/blocks-core/dist/index.d.ts +2 -1
  3. package/packages/blocks-core/dist/index.js +1 -1
  4. package/packages/cli/dist/index.js +16 -16
  5. package/packages/cli/dist/{init-BVU1RVy5.js → init-BDZpaO7q.js} +1 -1
  6. package/packages/cli/dist/{scaffold-BB6OrTuA.js → scaffold-BdUnq1xy.js} +1 -1
  7. package/packages/core/dist/index.d.ts +29 -1
  8. package/packages/dashboard/dist/assets/{index-ehoWAjDs.js → index-4HQiq-qo.js} +2 -2
  9. package/packages/dashboard/dist/index.html +1 -1
  10. package/packages/present/dist/index.html +45 -45
  11. package/packages/server/dist/auth-BfqgawfR.js +1 -0
  12. package/packages/server/dist/config-DAnAxrUW.js +1 -0
  13. package/packages/server/dist/{curated-manager-BkSgtNC2.js → curated-manager-BnP6VqvL.js} +4 -4
  14. package/packages/server/dist/index.js +1 -1
  15. package/packages/server/dist/proxy.d.ts +32 -0
  16. package/packages/server/dist/proxy.js +4 -0
  17. package/packages/server/dist/server-B0gtRiNa.js +2909 -0
  18. package/packages/server/dist/supersession-DJQGXMWm.js +2 -0
  19. package/packages/settings-ui/dist/assets/{index-DSTxXokO.js → index-DLcLvASh.js} +2 -2
  20. package/packages/store/dist/index.d.ts +135 -1
  21. package/packages/store/dist/index.js +447 -12
  22. package/packages/tools/dist/index.d.ts +72 -30
  23. package/packages/tools/dist/index.js +72 -73
  24. package/{scaffold/general → packages}/viewers/README.md +1 -1
  25. package/scaffold/dist/definitions/prompts.mjs +1 -1
  26. package/scaffold/dist/definitions/protocols.mjs +2 -0
  27. package/scaffold/dist/definitions/skills/aikit.mjs +1 -1
  28. package/scaffold/dist/definitions/skills/c4-architecture.mjs +1 -1
  29. package/scaffold/dist/definitions/skills/docs.mjs +1 -1
  30. package/scaffold/dist/definitions/tools.mjs +1 -1
  31. package/packages/server/dist/config-Dsu2Kd3U.js +0 -1
  32. package/packages/server/dist/server-CqEB0MaC.js +0 -2901
  33. /package/packages/cli/dist/{templates-D-eA4QVK.js → templates-Do9eni2d.js} +0 -0
  34. /package/packages/server/dist/{dashboard-static-BfIe0Si1.js → dashboard-static-CnXafYTs.js} +0 -0
  35. /package/packages/server/dist/{routes-gbC5Wmr9.js → routes-CR3fI-HJ.js} +0 -0
  36. /package/packages/server/dist/{settings-static-BosGZSPf.js → settings-static-BkVLqWOr.js} +0 -0
  37. /package/packages/server/dist/{version-check-Bj07vc5x.js → version-check-BgHzxxCW.js} +0 -0
  38. /package/packages/store/dist/{lance-store-BIP1LEiS.js → lance-store-BRKcJXVO.js} +0 -0
@@ -267,42 +267,67 @@ interface Checkpoint {
267
267
  label: string;
268
268
  createdAt: string;
269
269
  data: Record<string, unknown>;
270
- files?: string[];
271
270
  notes?: string;
272
- gitSha?: string;
273
271
  }
274
- declare function checkpointSave(label: string, data: Record<string, unknown>, options?: {
275
- files?: string[];
272
+ interface CheckpointSummary {
273
+ id: string;
274
+ label: string;
275
+ createdAt: string;
276
+ notes?: string;
277
+ }
278
+ interface CheckpointStore {
279
+ checkpointSave(id: string, label: string, data: string, notes?: string): void;
280
+ checkpointLoad(id: string): {
281
+ id: string;
282
+ label: string;
283
+ data: string;
284
+ notes?: string;
285
+ createdAt: string;
286
+ } | undefined;
287
+ checkpointList(label?: string, limit?: number): CheckpointSummary[];
288
+ checkpointLatest(label?: string): {
289
+ id: string;
290
+ label: string;
291
+ data: string;
292
+ notes?: string;
293
+ createdAt: string;
294
+ } | undefined;
295
+ checkpointDelete(id: string): boolean;
296
+ checkpointDiff(fromId: string, toId: string): {
297
+ from: string;
298
+ to: string;
299
+ } | undefined;
300
+ checkpointHistory(label?: string, limit?: number): CheckpointSummary[];
301
+ checkpointGc(keepLast?: number, maxAgeDays?: number): number;
302
+ }
303
+ interface LegacyCheckpointOptions {
304
+ cwd?: string;
305
+ stateDir?: string;
306
+ }
307
+ declare function checkpointSave(stateStore: CheckpointStore, label: string, data: Record<string, unknown>, options?: {
276
308
  notes?: string;
277
309
  cwd?: string;
278
310
  }): Checkpoint;
279
- declare function checkpointLoad(id: string, cwd?: string): Checkpoint | undefined;
280
- declare function checkpointList(cwd?: string): Checkpoint[];
281
- declare function checkpointLatest(cwd?: string): Checkpoint | undefined;
282
- /**
283
- * Diff two checkpoints by ID — shows added/removed/modified keys in data.
284
- */
285
- declare function checkpointDiff(fromId: string, toId: string, cwd?: string): {
311
+ declare function checkpointLoad(stateStore: CheckpointStore, id: string, options?: LegacyCheckpointOptions): Checkpoint | undefined;
312
+ declare function checkpointList(stateStore: CheckpointStore, options?: LegacyCheckpointOptions & {
313
+ label?: string;
314
+ limit?: number;
315
+ }): CheckpointSummary[];
316
+ declare function checkpointLatest(stateStore: CheckpointStore, options?: LegacyCheckpointOptions & {
317
+ label?: string;
318
+ }): Checkpoint | undefined;
319
+ declare function checkpointDiff(stateStore: CheckpointStore, fromId: string, toId: string, options?: LegacyCheckpointOptions): {
286
320
  fromId: string;
287
321
  toId: string;
288
322
  added: string[];
289
323
  removed: string[];
290
324
  modified: string[];
291
325
  } | undefined;
292
- /**
293
- * List history of a checkpoint label — git log of that ref's commits.
294
- * Falls back to filesystem scan if git unavailable.
295
- */
296
- declare function checkpointHistory(label: string, options?: {
326
+ declare function checkpointHistory(stateStore: CheckpointStore, label: string, options?: {
297
327
  cwd?: string;
298
328
  limit?: number;
299
- }): Array<{
300
- sha?: string;
301
- id: string;
302
- createdAt: string;
303
- label: string;
304
- }>;
305
- declare function checkpointGC(options?: {
329
+ }): CheckpointSummary[];
330
+ declare function checkpointGC(stateStore: CheckpointStore, options?: {
306
331
  label?: string;
307
332
  keepLast?: number;
308
333
  maxAgeDays?: number;
@@ -1873,11 +1898,27 @@ interface StashEntry {
1873
1898
  type: string;
1874
1899
  storedAt: string;
1875
1900
  }
1876
- declare function stashSet(key: string, value: unknown, cwd?: string): StashEntry;
1877
- declare function stashGet(key: string, cwd?: string): StashEntry | undefined;
1878
- declare function stashList(cwd?: string): StashEntry[];
1879
- declare function stashDelete(key: string, cwd?: string): boolean;
1880
- declare function stashClear(cwd?: string): number;
1901
+ interface StashStore {
1902
+ stashGet(key: string): string | undefined;
1903
+ stashSet(key: string, value: string): void;
1904
+ stashList(): Array<{
1905
+ key: string;
1906
+ value: string;
1907
+ updatedAt: string;
1908
+ }>;
1909
+ stashDelete(key: string): boolean;
1910
+ stashClear(): void;
1911
+ }
1912
+ interface LegacyStashOptions {
1913
+ cwd?: string;
1914
+ stateDir?: string;
1915
+ }
1916
+ declare function ensureLegacyStashImported(stateStore: StashStore, options?: LegacyStashOptions): void;
1917
+ declare function stashSet(stateStore: StashStore, key: string, value: unknown, cwd?: string): StashEntry;
1918
+ declare function stashGet(stateStore: StashStore, key: string, cwd?: string): StashEntry | undefined;
1919
+ declare function stashList(stateStore: StashStore, cwd?: string): StashEntry[];
1920
+ declare function stashDelete(stateStore: StashStore, key: string, cwd?: string): boolean;
1921
+ declare function stashClear(stateStore: StashStore, cwd?: string): number;
1881
1922
  //#endregion
1882
1923
  //#region packages/tools/src/session-digest.d.ts
1883
1924
  interface SessionDigestOptions {
@@ -1903,8 +1944,9 @@ interface SessionDigestResult {
1903
1944
  interface SessionDigestDeps {
1904
1945
  replayEntries?: ReplayEntry[];
1905
1946
  stashEntries?: StashEntry[];
1906
- checkpoints?: Checkpoint[];
1947
+ checkpoints?: CheckpointSummary[];
1907
1948
  persistEntry?: (key: string, value: unknown) => StashEntry;
1949
+ stateStore?: CheckpointStore & StashStore;
1908
1950
  now?: Date;
1909
1951
  }
1910
1952
  declare function sessionDigest(options?: SessionDigestOptions, deps?: SessionDigestDeps): SessionDigestResult;
@@ -2303,4 +2345,4 @@ declare function addToWorkset(name: string, files: string[], cwd?: string): Work
2303
2345
  */
2304
2346
  declare function removeFromWorkset(name: string, files: string[], cwd?: string): Workset | null;
2305
2347
  //#endregion
2306
- export { type AikitNextHint, type AikitResponse, type AikitResponseMeta, type AikitToolError, type AikitToolErrorCode, type AuditCheck, type AuditData, type AuditOptions, type AuditRecommendation, type ChangelogEntry, type ChangelogFormat, type ChangelogOptions, type ChangelogResult, type CheckOptions, type CheckResult, type CheckSummaryResult, type Checkpoint, type ClassifyTrigger, type CodemodChange, type CodemodOptions, type CodemodResult, type CodemodRule, type CompactOptions, type CompactResult, type CompressOutputOptions, type CompressionContext, type CompressionMode, type CompressionResult, type CompressionRule, type ConstraintRef, type DeadSymbol, type DeadSymbolOptions, type DeadSymbolResult, type DelegateOptions, type DelegateResult, type DiffChange, type DiffFile, type DiffHunk, type DiffParseOptions, type DigestFieldEntry, type DigestOptions, type DigestResult, type DigestSource, type DogfoodLogEntry, type DogfoodLogGroupedEntry, type DogfoodLogOptions, type DogfoodLogResult, type EncodeOperation, type EncodeOptions, type EncodeResult, type EnvInfoOptions, type EnvInfoResult, type EvalOptions, type EvalResult, type EvidenceEntry, type EvidenceMapAction, type EvidenceMapResult, type EvidenceMapState, type EvidenceStatus, type Example, FileCache, type FileCacheEntry, type FileCacheStats, type FileMetrics, type FileSummaryOptions, type FileSummaryResult, type FindExamplesOptions, type FindExamplesResult, type FindOptions, type FindResult, type FindResults, type ForgeClassifyCeremony, type ForgeClassifyOptions, type ForgeClassifyResult, type ForgeGroundOptions, type ForgeGroundResult, type ForgeTier, GIT_REF_SLUG_PATTERN, type GateConfig, type GateDecision, type GateResult, type GitContextOptions, type GitContextResult, type GraphAugmentOptions, type GraphAugmentedResult, type GraphQueryOptions, type GraphQueryResult, type GuideRecommendation, type GuideResult, type HealthCheck, type HealthResult, type HotspotEntry, type HttpMethod, type HttpRequestOptions, type HttpRequestResult, type LaneDiffEntry, type LaneDiffResult, type LaneMergeResult, type LaneMeta, type Lease, type LeaseConflict, type ManagedProcess, type MeasureOptions, type MeasureResult, type OnboardMode, type OnboardOptions, type OnboardResult, type OnboardStepResult, type ParsedError, type ParsedGitStatus, type ParsedOutput, type ParsedTestResult, type ParsedTestSummary, type QueueItem, type QueueState, type RegexTestOptions, type RegexTestResult, type RenameChange, type RenameOptions, type RenameResult, type ReplayEntry, type ReplayOptions, type RestorePoint, type SafetyGate, type SafetyGateResult, type SchemaValidateOptions, type SchemaValidateResult, type ScopeMapEntry, type ScopeMapOptions, type ScopeMapResult, type SessionDigestOptions, type SessionDigestResult, type StashEntry, type StratumCard, type StratumCardOptions, type StratumCardResult, type SymbolGraphContext, type SymbolInfo, type SymbolOptions, type TestRunOptions, type TestRunResult, type TimeOptions, type TimeResult, type TimeoutAction, type TraceNode, type TraceOptions, type TraceResult, type TransformOptions, type TransformResult, type TypedUnknownSeed, type UnknownType, type ValidationError, type WatchEvent, type WatchHandle, type WatchOptions, type WebFetchMode, type WebFetchOptions, type WebFetchResult, type WebSearchOptions, type WebSearchResult, type WebSearchResultItem, type Workset, acquireLease, addToWorkset, analyzeFile, audit, autoClaimTestFailures, bookendReorder, bpeSurprise, changelog, check, checkpointDiff, checkpointGC, checkpointHistory, checkpointLatest, checkpointList, checkpointLoad, checkpointSave, classifyExitCode, codemod, compact, compressOutput, compressTerminalOutput, cosineSimilarity, createRestorePoint, dataTransform, delegate, delegateListModels, deleteWorkset, detectOutputTool, diffParse, digest, dogfoodLog, encode, envInfo, errorResponse, escapeRegExp, estimateTokens, evaluate, evidenceMap, fileSummary, find, findDeadSymbols, findExamples, forgeClassify, forgeGround, formatChangelog, getRegisteredRules, getWorkset, gitAvailable, gitCommitToRef, gitContext, gitExec, graphAugmentSearch, graphQuery, guide, headTailTruncate, health, httpRequest, laneCreate, laneDiff, laneDiscard, laneList, laneMerge, laneStatus, listActiveLeases, listRestorePoints, listWorksets, measure, okResponse, onboard, paragraphTruncate, parseBiome, parseGitStatus, parseOutput, parseSearchResults, parseTsc, parseVitest, processList, processLogs, processStart, processStatus, processStop, processStopAll, queueClear, queueCreate, queueDag, queueDelete, queueDone, queueFail, queueGet, queueList, queueNext, queuePush, regexTest, registerRule, registerRules, releaseLease, removeFromWorkset, rename, replayAppend, replayCapture, replayClear, replayList, replayTrim, resetGitCache, resolvePath, restoreFromPoint, saveWorkset, schemaValidate, scopeMap, scoreLine, scoreLines, segment, sessionDigest, sessionDigestSampling, shannonEntropy, slugForRef, stashClear, stashDelete, stashGet, stashList, stashSet, stratumCard, summarizeCheckResult, symbol, testRun, timeUtils, trace, truncateToTokenBudget, watchList, watchStart, watchStop, webFetch, webSearch };
2348
+ export { type AikitNextHint, type AikitResponse, type AikitResponseMeta, type AikitToolError, type AikitToolErrorCode, type AuditCheck, type AuditData, type AuditOptions, type AuditRecommendation, type ChangelogEntry, type ChangelogFormat, type ChangelogOptions, type ChangelogResult, type CheckOptions, type CheckResult, type CheckSummaryResult, type Checkpoint, type CheckpointSummary, type ClassifyTrigger, type CodemodChange, type CodemodOptions, type CodemodResult, type CodemodRule, type CompactOptions, type CompactResult, type CompressOutputOptions, type CompressionContext, type CompressionMode, type CompressionResult, type CompressionRule, type ConstraintRef, type DeadSymbol, type DeadSymbolOptions, type DeadSymbolResult, type DelegateOptions, type DelegateResult, type DiffChange, type DiffFile, type DiffHunk, type DiffParseOptions, type DigestFieldEntry, type DigestOptions, type DigestResult, type DigestSource, type DogfoodLogEntry, type DogfoodLogGroupedEntry, type DogfoodLogOptions, type DogfoodLogResult, type EncodeOperation, type EncodeOptions, type EncodeResult, type EnvInfoOptions, type EnvInfoResult, type EvalOptions, type EvalResult, type EvidenceEntry, type EvidenceMapAction, type EvidenceMapResult, type EvidenceMapState, type EvidenceStatus, type Example, FileCache, type FileCacheEntry, type FileCacheStats, type FileMetrics, type FileSummaryOptions, type FileSummaryResult, type FindExamplesOptions, type FindExamplesResult, type FindOptions, type FindResult, type FindResults, type ForgeClassifyCeremony, type ForgeClassifyOptions, type ForgeClassifyResult, type ForgeGroundOptions, type ForgeGroundResult, type ForgeTier, GIT_REF_SLUG_PATTERN, type GateConfig, type GateDecision, type GateResult, type GitContextOptions, type GitContextResult, type GraphAugmentOptions, type GraphAugmentedResult, type GraphQueryOptions, type GraphQueryResult, type GuideRecommendation, type GuideResult, type HealthCheck, type HealthResult, type HotspotEntry, type HttpMethod, type HttpRequestOptions, type HttpRequestResult, type LaneDiffEntry, type LaneDiffResult, type LaneMergeResult, type LaneMeta, type Lease, type LeaseConflict, type LegacyStashOptions, type ManagedProcess, type MeasureOptions, type MeasureResult, type OnboardMode, type OnboardOptions, type OnboardResult, type OnboardStepResult, type ParsedError, type ParsedGitStatus, type ParsedOutput, type ParsedTestResult, type ParsedTestSummary, type QueueItem, type QueueState, type RegexTestOptions, type RegexTestResult, type RenameChange, type RenameOptions, type RenameResult, type ReplayEntry, type ReplayOptions, type RestorePoint, type SafetyGate, type SafetyGateResult, type SchemaValidateOptions, type SchemaValidateResult, type ScopeMapEntry, type ScopeMapOptions, type ScopeMapResult, type SessionDigestOptions, type SessionDigestResult, type StashEntry, type StashStore, type StratumCard, type StratumCardOptions, type StratumCardResult, type SymbolGraphContext, type SymbolInfo, type SymbolOptions, type TestRunOptions, type TestRunResult, type TimeOptions, type TimeResult, type TimeoutAction, type TraceNode, type TraceOptions, type TraceResult, type TransformOptions, type TransformResult, type TypedUnknownSeed, type UnknownType, type ValidationError, type WatchEvent, type WatchHandle, type WatchOptions, type WebFetchMode, type WebFetchOptions, type WebFetchResult, type WebSearchOptions, type WebSearchResult, type WebSearchResultItem, type Workset, acquireLease, addToWorkset, analyzeFile, audit, autoClaimTestFailures, bookendReorder, bpeSurprise, changelog, check, checkpointDiff, checkpointGC, checkpointHistory, checkpointLatest, checkpointList, checkpointLoad, checkpointSave, classifyExitCode, codemod, compact, compressOutput, compressTerminalOutput, cosineSimilarity, createRestorePoint, dataTransform, delegate, delegateListModels, deleteWorkset, detectOutputTool, diffParse, digest, dogfoodLog, encode, ensureLegacyStashImported, envInfo, errorResponse, escapeRegExp, estimateTokens, evaluate, evidenceMap, fileSummary, find, findDeadSymbols, findExamples, forgeClassify, forgeGround, formatChangelog, getRegisteredRules, getWorkset, gitAvailable, gitCommitToRef, gitContext, gitExec, graphAugmentSearch, graphQuery, guide, headTailTruncate, health, httpRequest, laneCreate, laneDiff, laneDiscard, laneList, laneMerge, laneStatus, listActiveLeases, listRestorePoints, listWorksets, measure, okResponse, onboard, paragraphTruncate, parseBiome, parseGitStatus, parseOutput, parseSearchResults, parseTsc, parseVitest, processList, processLogs, processStart, processStatus, processStop, processStopAll, queueClear, queueCreate, queueDag, queueDelete, queueDone, queueFail, queueGet, queueList, queueNext, queuePush, regexTest, registerRule, registerRules, releaseLease, removeFromWorkset, rename, replayAppend, replayCapture, replayClear, replayList, replayTrim, resetGitCache, resolvePath, restoreFromPoint, saveWorkset, schemaValidate, scopeMap, scoreLine, scoreLines, segment, sessionDigest, sessionDigestSampling, shannonEntropy, slugForRef, stashClear, stashDelete, stashGet, stashList, stashSet, stratumCard, summarizeCheckResult, symbol, testRun, timeUtils, trace, truncateToTokenBudget, watchList, watchStart, watchStop, webFetch, webSearch };