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.
- package/README.md +60 -30
- package/cli/commands/config.ts +129 -1
- package/cli/commands/create.ts +14 -0
- package/cli/commands/fix-history.ts +176 -0
- package/cli/commands/init.ts +36 -1
- package/cli/index.ts +2 -6
- package/cli/pipeline/helpers.ts +6 -0
- package/cli/pipeline/multi-repo.ts +291 -26
- package/cli/pipeline/single-repo.ts +103 -2
- package/cli/utils.ts +23 -0
- package/core/code-generator.ts +63 -14
- package/core/cross-stack-verifier.ts +395 -0
- package/core/fix-history.ts +333 -0
- package/core/import-fixer.ts +827 -0
- package/core/import-verifier.ts +569 -0
- package/core/knowledge-memory.ts +55 -6
- package/core/self-evaluator.ts +44 -7
- package/core/spec-generator.ts +3 -3
- package/core/types-generator.ts +2 -2
- package/dist/cli/index.js +3759 -2207
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/index.mjs +3747 -2195
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +249 -128
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +249 -128
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/tests/cross-stack-verifier.test.ts +301 -0
- package/tests/fix-history.test.ts +335 -0
- package/tests/import-fixer.test.ts +944 -0
- package/tests/import-verifier.test.ts +420 -0
- package/tests/knowledge-memory.test.ts +40 -0
- package/tests/self-evaluator.test.ts +97 -0
- package/cli/commands/model.ts +0 -152
- package/cli/commands/scan.ts +0 -99
- 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;
|