@vpxa/aikit 0.1.379 → 0.1.381

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 (74) hide show
  1. package/package.json +1 -1
  2. package/packages/claude-desktop/dist/manifest.json +1 -1
  3. package/packages/cli/dist/index.js +3 -3
  4. package/packages/cli/dist/{init-BTsNYC02.js → init-Be3nyugf.js} +1 -1
  5. package/packages/cli/dist/{templates-CRs_gkfS.js → templates-CK9mSHyJ.js} +24 -24
  6. package/packages/core/dist/index.d.ts +23 -3
  7. package/packages/server/dist/bin.js +2 -2
  8. package/packages/server/dist/config-Bz8Uyzuq.js +2 -0
  9. package/packages/server/dist/config-CTYSUkDf.js +1 -0
  10. package/packages/server/dist/{curated-manager-CBKTmAjM.js → curated-manager-D4MOFQ-t.js} +1 -1
  11. package/packages/server/dist/dashboard-static-BbHMHkQ3.js +1 -0
  12. package/packages/server/dist/dashboard-static-gAOiHHqI.js +2 -0
  13. package/packages/server/dist/index.d.ts +1 -1
  14. package/packages/server/dist/index.js +2 -2
  15. package/packages/server/dist/{observations-CfglxBMB.js → observations-BhMmh4uj.js} +1 -1
  16. package/packages/server/dist/{observations-CrQU_HVm.js → observations-Cri43dvk.js} +1 -1
  17. package/packages/server/dist/register-tools-0E-d3SIk.js +3043 -0
  18. package/packages/server/dist/register-tools-fdniAqWz.js +3044 -0
  19. package/packages/server/dist/server-C4qsakCZ.js +27 -0
  20. package/packages/server/dist/server-DHdcyAmX.js +26 -0
  21. package/packages/server/dist/server-http-CC39yGVF.js +1 -0
  22. package/packages/server/dist/server-http-DlTdz6ch.js +2 -0
  23. package/packages/server/dist/server-stdio-CTbBp6wO.js +1 -0
  24. package/packages/server/dist/server-stdio-Colzu8Wb.js +2 -0
  25. package/packages/server/dist/settings-static-DV2hXZgq.js +1 -0
  26. package/packages/server/dist/settings-static-PjpMR9Q7.js +2 -0
  27. package/packages/server/dist/startup-maintenance-BnTozHs1.js +21 -0
  28. package/packages/server/dist/startup-maintenance-CxAICs-n.js +20 -0
  29. package/packages/tools/dist/index.d.ts +40 -3
  30. package/packages/tools/dist/index.js +121 -104
  31. package/scaffold/dist/adapters/_shared.mjs +1 -1
  32. package/scaffold/dist/adapters/hermes.mjs +1 -1
  33. package/scaffold/dist/definitions/agents.mjs +1 -1
  34. package/scaffold/dist/definitions/exec-hooks.mjs +1 -1
  35. package/scaffold/dist/definitions/hooks.mjs +1 -1
  36. package/scaffold/dist/definitions/protocols.mjs +20 -20
  37. package/scaffold/dist/definitions/skills/aikit.mjs +10 -4
  38. package/scaffold/dist/definitions/skills/browser-use.mjs +1 -1
  39. package/scaffold/dist/definitions/skills/orchestrator.mjs +45 -8
  40. package/scaffold/dist/definitions/skills/present.mjs +8 -5
  41. package/scaffold/general/hooks/scripts/__tests__/bash-guard.test.mjs +214 -0
  42. package/scaffold/general/hooks/scripts/__tests__/read-size-guard.test.mjs +183 -0
  43. package/scaffold/general/hooks/scripts/bash-guard.mjs +6 -0
  44. package/packages/server/dist/config-BJiacqlj.js +0 -2
  45. package/packages/server/dist/config-DyLck_1C.js +0 -1
  46. package/packages/server/dist/dashboard-static-Dw7Nsq4f.js +0 -1
  47. package/packages/server/dist/dashboard-static-dPnij4uF.js +0 -2
  48. package/packages/server/dist/evolution-BX_zTSdj.js +0 -2
  49. package/packages/server/dist/evolution-DWaEE6XW.js +0 -3
  50. package/packages/server/dist/prelude-BbNJxiBp.js +0 -1
  51. package/packages/server/dist/prelude-CZ1LShfj.js +0 -2
  52. package/packages/server/dist/promotion-DRnRfteq.js +0 -3
  53. package/packages/server/dist/promotion-DzVLWVtx.js +0 -2
  54. package/packages/server/dist/repair-json-B6Q_HRoP.js +0 -3
  55. package/packages/server/dist/repair-json-D4mft_HA.js +0 -4
  56. package/packages/server/dist/resolve-sibling-BmZ7AxaA.js +0 -1
  57. package/packages/server/dist/resolve-sibling-DrGKPpb0.js +0 -2
  58. package/packages/server/dist/rolldown-runtime-yuFVEuWy.js +0 -2
  59. package/packages/server/dist/sampling-CzGQqIbt.js +0 -1
  60. package/packages/server/dist/sampling-MSeOiAqz.js +0 -2
  61. package/packages/server/dist/server-CMpnBSAC.js +0 -3068
  62. package/packages/server/dist/server-Cq5wP6Hk.js +0 -3067
  63. package/packages/server/dist/server-http-UNbq9MsP.js +0 -1
  64. package/packages/server/dist/server-http-dyzC379J.js +0 -2
  65. package/packages/server/dist/server-stdio-COZ6ut6S.js +0 -1
  66. package/packages/server/dist/server-stdio-yz2eyGS4.js +0 -2
  67. package/packages/server/dist/settings-static-BpQgaMRs.js +0 -1
  68. package/packages/server/dist/settings-static-MepJZjer.js +0 -2
  69. package/packages/server/dist/startup-maintenance-BPrX5-1U.js +0 -2
  70. package/packages/server/dist/startup-maintenance-CT6Z3734.js +0 -1
  71. package/packages/server/dist/supersession-CWEne3av.js +0 -2
  72. package/packages/server/dist/supersession-DO_ZROFl.js +0 -3
  73. package/packages/server/dist/version-check-C7xqQr9o.js +0 -1
  74. package/packages/server/dist/version-check-CH5SIhnq.js +0 -2
@@ -544,6 +544,8 @@ interface ReplayOptions {
544
544
  source?: 'mcp' | 'cli';
545
545
  /** Filter entries after this ISO timestamp */
546
546
  since?: string;
547
+ /** Approximate token limit for output. When set, entries are condensed to fit. */
548
+ maxTokens?: number;
547
549
  }
548
550
  /**
549
551
  * Append a replay entry to the audit log.
@@ -1082,6 +1084,11 @@ interface DigestResult {
1082
1084
  totalOriginalChars: number;
1083
1085
  totalCompressedChars: number;
1084
1086
  ratio: number;
1087
+ /** Input token/char statistics for LLM budget decisions */
1088
+ inputStats?: {
1089
+ /** Total input characters across all sources */totalChars: number; /** Total estimated input tokens */
1090
+ totalTokens: number;
1091
+ };
1085
1092
  }
1086
1093
  /**
1087
1094
  * Compress multiple text sources into a single digest.
@@ -1436,6 +1443,10 @@ interface FileSummaryToolCard {
1436
1443
  riskTier: 'low' | 'medium' | 'high';
1437
1444
  tokenEstimate: number;
1438
1445
  originalTokenEstimate: number;
1446
+ /** Optional ref ID for content recovery */
1447
+ ref?: string;
1448
+ /** Freshness timestamp (ISO) of last file modification */
1449
+ freshness?: string;
1439
1450
  }
1440
1451
  interface FileSummaryToolResult {
1441
1452
  /** Card results when files were provided */
@@ -1444,6 +1455,8 @@ interface FileSummaryToolResult {
1444
1455
  text?: string;
1445
1456
  /** Reusable cache reference */
1446
1457
  ref?: string;
1458
+ /** Freshness timestamp (ISO) of last file modification */
1459
+ freshness?: string;
1447
1460
  /** Original size in chars (text/ref mode) */
1448
1461
  originalChars?: number;
1449
1462
  /** Compressed size in chars (text/ref mode) */
@@ -1605,6 +1618,8 @@ interface ScopeMapEntry {
1605
1618
  estimatedTokens: number;
1606
1619
  /** Relevance score (0-1) */
1607
1620
  relevance: number;
1621
+ /** Confidence in relevance estimate (0-1) */
1622
+ confidence?: number;
1608
1623
  /** Line ranges to focus on */
1609
1624
  focusRanges: Array<{
1610
1625
  start: number;
@@ -3600,6 +3615,20 @@ declare const SECTION_NAMES: Record<string, string>;
3600
3615
  declare const MAX_SKILL_CHARS = 4800;
3601
3616
  /** Name of the workspace skill SKILL.md file. */
3602
3617
  declare const WORKSPACE_SKILL_FILENAME = "SKILL.md";
3618
+ /**
3619
+ * Compiled skill output bundle containing both the visible SKILL.md
3620
+ * and the references/workspace-memory.md companion file.
3621
+ */
3622
+ interface CompiledSkillBundle {
3623
+ /** The visible SKILL.md content (compact, reference-backed). */
3624
+ skillMarkdown: string;
3625
+ /** The references/workspace-memory.md content (detailed, source-backed). */
3626
+ referencesMarkdown: string;
3627
+ /** Quality warnings generated during compilation. */
3628
+ warnings: string[];
3629
+ /** Content hash for staleness detection. */
3630
+ contentHash: string;
3631
+ }
3603
3632
  interface PromotedKnowledgeEntry {
3604
3633
  title: string;
3605
3634
  insight: string;
@@ -3617,6 +3646,12 @@ interface SkillInput {
3617
3646
  adrSummaries?: string[];
3618
3647
  pitfalls?: string[];
3619
3648
  validationCommands?: string[];
3649
+ userPreferences?: string[];
3650
+ architectureMemory?: string[];
3651
+ preventionRules?: string[];
3652
+ reviewGates?: string[];
3653
+ /** True if package.json exists in workspace root — structural sections are required. */
3654
+ hasPackageJson?: boolean;
3620
3655
  }
3621
3656
  /** Input data for generating a flow briefing reference file. */
3622
3657
  interface FlowBriefingInput {
@@ -3666,10 +3701,12 @@ declare function computeSourceHash(input: SkillInput): string;
3666
3701
  */
3667
3702
  declare function computeFlowSourceHash(input: FlowBriefingInput): string;
3668
3703
  /**
3669
- * Generate a workspace skill SKILL.md from workspace analysis data
3670
- * and promoted knowledge.
3704
+ * Generate a workspace skill SKILL.md and references/workspace-memory.md
3705
+ * from workspace analysis data and promoted knowledge.
3706
+ *
3707
+ * Returns a CompiledSkillBundle containing both files plus warnings.
3671
3708
  */
3672
- declare function generateWorkspaceSkill(input: SkillInput, version?: number): string;
3709
+ declare function generateWorkspaceSkill(input: SkillInput, version?: number): CompiledSkillBundle;
3673
3710
  /**
3674
3711
  * Generate a flow briefing reference file from flow execution state.
3675
3712
  */