ai-spec-dev 0.46.0 → 0.55.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.
Files changed (39) hide show
  1. package/README.md +60 -30
  2. package/cli/commands/config.ts +129 -1
  3. package/cli/commands/create.ts +14 -0
  4. package/cli/commands/fix-history.ts +176 -0
  5. package/cli/commands/init.ts +36 -1
  6. package/cli/index.ts +2 -6
  7. package/cli/pipeline/helpers.ts +6 -0
  8. package/cli/pipeline/multi-repo.ts +291 -26
  9. package/cli/pipeline/single-repo.ts +103 -2
  10. package/cli/utils.ts +23 -0
  11. package/core/code-generator.ts +63 -14
  12. package/core/cross-stack-verifier.ts +395 -0
  13. package/core/fix-history.ts +333 -0
  14. package/core/import-fixer.ts +827 -0
  15. package/core/import-verifier.ts +569 -0
  16. package/core/knowledge-memory.ts +55 -6
  17. package/core/self-evaluator.ts +44 -7
  18. package/core/spec-generator.ts +3 -3
  19. package/core/types-generator.ts +2 -2
  20. package/dist/cli/index.js +3759 -2207
  21. package/dist/cli/index.js.map +1 -1
  22. package/dist/cli/index.mjs +3747 -2195
  23. package/dist/cli/index.mjs.map +1 -1
  24. package/dist/index.d.mts +14 -0
  25. package/dist/index.d.ts +14 -0
  26. package/dist/index.js +249 -128
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +249 -128
  29. package/dist/index.mjs.map +1 -1
  30. package/package.json +2 -2
  31. package/tests/cross-stack-verifier.test.ts +301 -0
  32. package/tests/fix-history.test.ts +335 -0
  33. package/tests/import-fixer.test.ts +944 -0
  34. package/tests/import-verifier.test.ts +420 -0
  35. package/tests/knowledge-memory.test.ts +40 -0
  36. package/tests/self-evaluator.test.ts +97 -0
  37. package/cli/commands/model.ts +0 -152
  38. package/cli/commands/scan.ts +0 -99
  39. package/cli/commands/workspace.ts +0 -219
package/dist/index.d.mts CHANGED
@@ -212,6 +212,20 @@ interface CodeGenOptions {
212
212
  dslFilePath?: string;
213
213
  /** Repo language type — selects the appropriate codegen system prompt */
214
214
  repoType?: string;
215
+ /**
216
+ * Maximum number of tasks that can run concurrently within a single batch
217
+ * (api mode only). A batch larger than this value is split into sequential
218
+ * sub-chunks, each running maxConcurrency tasks in parallel. Default: 3.
219
+ */
220
+ maxConcurrency?: number;
221
+ /**
222
+ * When true, prior hallucination patterns from `.ai-spec-fix-history.json`
223
+ * are injected into the codegen prompt as a "DO NOT REPEAT" section.
224
+ * Default: true when the ledger exists.
225
+ */
226
+ injectFixHistory?: boolean;
227
+ /** Max number of past hallucination patterns to inject. Default: 10 */
228
+ fixHistoryInjectMax?: number;
215
229
  }
216
230
  declare class CodeGenerator {
217
231
  private provider;
package/dist/index.d.ts CHANGED
@@ -212,6 +212,20 @@ interface CodeGenOptions {
212
212
  dslFilePath?: string;
213
213
  /** Repo language type — selects the appropriate codegen system prompt */
214
214
  repoType?: string;
215
+ /**
216
+ * Maximum number of tasks that can run concurrently within a single batch
217
+ * (api mode only). A batch larger than this value is split into sequential
218
+ * sub-chunks, each running maxConcurrency tasks in parallel. Default: 3.
219
+ */
220
+ maxConcurrency?: number;
221
+ /**
222
+ * When true, prior hallucination patterns from `.ai-spec-fix-history.json`
223
+ * are injected into the codegen prompt as a "DO NOT REPEAT" section.
224
+ * Default: true when the ledger exists.
225
+ */
226
+ injectFixHistory?: boolean;
227
+ /** Max number of past hallucination patterns to inject. Default: 10 */
228
+ fixHistoryInjectMax?: number;
215
229
  }
216
230
  declare class CodeGenerator {
217
231
  private provider;