@akanjs/cli 2.2.2-rc.0 → 2.2.2
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/incrementalBuilder.proc.js +3 -13
- package/index.js +3 -13
- package/package.json +2 -2
|
@@ -341,7 +341,7 @@ class Spinner {
|
|
|
341
341
|
// pkgs/@akanjs/devkit/aiEditor.ts
|
|
342
342
|
var MAX_ASK_TRY = 300;
|
|
343
343
|
var deepSeekLlmModels = ["deepseek-chat", "deepseek-reasoner"];
|
|
344
|
-
var openAiLlmModels = ["gpt-5.5"
|
|
344
|
+
var openAiLlmModels = ["gpt-5.5"];
|
|
345
345
|
var supportedLlmModels = [...deepSeekLlmModels, ...openAiLlmModels];
|
|
346
346
|
var isOpenAiLlmModel = (model) => openAiLlmModels.includes(model);
|
|
347
347
|
var parseTypescriptFileBlocks = (text) => {
|
|
@@ -373,10 +373,7 @@ var preserveTypescriptResponseContent = (previousContent, nextContent) => {
|
|
|
373
373
|
class AiSession {
|
|
374
374
|
static #cacheDir = "node_modules/.cache/akan/aiSession";
|
|
375
375
|
static #chat = null;
|
|
376
|
-
static async init({
|
|
377
|
-
temperature = 0,
|
|
378
|
-
useExisting = true
|
|
379
|
-
} = {}) {
|
|
376
|
+
static async init({ temperature = 0, useExisting = true } = {}) {
|
|
380
377
|
if (useExisting) {
|
|
381
378
|
const llmConfig2 = await AiSession.getLlmConfig();
|
|
382
379
|
if (llmConfig2) {
|
|
@@ -530,14 +527,7 @@ class AiSession {
|
|
|
530
527
|
throw new Error("Failed to stream response");
|
|
531
528
|
}
|
|
532
529
|
}
|
|
533
|
-
async edit(question, {
|
|
534
|
-
onChunk,
|
|
535
|
-
onReasoning,
|
|
536
|
-
maxTry = MAX_ASK_TRY,
|
|
537
|
-
validate,
|
|
538
|
-
approve,
|
|
539
|
-
fallbackToPreviousTypescript
|
|
540
|
-
} = {}) {
|
|
530
|
+
async edit(question, { onChunk, onReasoning, maxTry = MAX_ASK_TRY, validate, approve, fallbackToPreviousTypescript } = {}) {
|
|
541
531
|
for (let tryCount = 0;tryCount < maxTry; tryCount++) {
|
|
542
532
|
let response = await this.ask(question, { onChunk, onReasoning });
|
|
543
533
|
if (validate?.length && tryCount === 0) {
|
package/index.js
CHANGED
|
@@ -339,7 +339,7 @@ class Spinner {
|
|
|
339
339
|
// pkgs/@akanjs/devkit/aiEditor.ts
|
|
340
340
|
var MAX_ASK_TRY = 300;
|
|
341
341
|
var deepSeekLlmModels = ["deepseek-chat", "deepseek-reasoner"];
|
|
342
|
-
var openAiLlmModels = ["gpt-5.5"
|
|
342
|
+
var openAiLlmModels = ["gpt-5.5"];
|
|
343
343
|
var supportedLlmModels = [...deepSeekLlmModels, ...openAiLlmModels];
|
|
344
344
|
var isOpenAiLlmModel = (model) => openAiLlmModels.includes(model);
|
|
345
345
|
var parseTypescriptFileBlocks = (text) => {
|
|
@@ -371,10 +371,7 @@ var preserveTypescriptResponseContent = (previousContent, nextContent) => {
|
|
|
371
371
|
class AiSession {
|
|
372
372
|
static #cacheDir = "node_modules/.cache/akan/aiSession";
|
|
373
373
|
static #chat = null;
|
|
374
|
-
static async init({
|
|
375
|
-
temperature = 0,
|
|
376
|
-
useExisting = true
|
|
377
|
-
} = {}) {
|
|
374
|
+
static async init({ temperature = 0, useExisting = true } = {}) {
|
|
378
375
|
if (useExisting) {
|
|
379
376
|
const llmConfig2 = await AiSession.getLlmConfig();
|
|
380
377
|
if (llmConfig2) {
|
|
@@ -528,14 +525,7 @@ class AiSession {
|
|
|
528
525
|
throw new Error("Failed to stream response");
|
|
529
526
|
}
|
|
530
527
|
}
|
|
531
|
-
async edit(question, {
|
|
532
|
-
onChunk,
|
|
533
|
-
onReasoning,
|
|
534
|
-
maxTry = MAX_ASK_TRY,
|
|
535
|
-
validate,
|
|
536
|
-
approve,
|
|
537
|
-
fallbackToPreviousTypescript
|
|
538
|
-
} = {}) {
|
|
528
|
+
async edit(question, { onChunk, onReasoning, maxTry = MAX_ASK_TRY, validate, approve, fallbackToPreviousTypescript } = {}) {
|
|
539
529
|
for (let tryCount = 0;tryCount < maxTry; tryCount++) {
|
|
540
530
|
let response = await this.ask(question, { onChunk, onReasoning });
|
|
541
531
|
if (validate?.length && tryCount === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "2.2.2
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@langchain/openai": "^1.4.6",
|
|
36
36
|
"@tailwindcss/node": "^4.3.0",
|
|
37
37
|
"@trapezedev/project": "^7.1.4",
|
|
38
|
-
"akanjs": "2.2.2
|
|
38
|
+
"akanjs": "2.2.2",
|
|
39
39
|
"chalk": "^5.6.2",
|
|
40
40
|
"commander": "^14.0.3",
|
|
41
41
|
"daisyui": "^5.5.20",
|