@akanjs/devkit 0.0.123 → 0.0.125
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/cjs/src/aiEditor.js +3 -1
- package/cjs/src/executors.js +1 -1
- package/esm/src/aiEditor.js +3 -1
- package/esm/src/executors.js +1 -1
- package/package.json +1 -1
package/cjs/src/aiEditor.js
CHANGED
|
@@ -104,7 +104,9 @@ class AiSession {
|
|
|
104
104
|
}
|
|
105
105
|
} = {}) {
|
|
106
106
|
if (!AiSession.#chat)
|
|
107
|
-
|
|
107
|
+
await AiSession.init();
|
|
108
|
+
if (!AiSession.#chat)
|
|
109
|
+
throw new Error("Failed to initialize the AI session");
|
|
108
110
|
try {
|
|
109
111
|
const humanMessage = new import_messages.HumanMessage(question);
|
|
110
112
|
this.messageHistory.push(humanMessage);
|
package/cjs/src/executors.js
CHANGED
|
@@ -521,7 +521,7 @@ class SysExecutor extends Executor {
|
|
|
521
521
|
throw new Error(
|
|
522
522
|
`Missing libs: ${missingLibDeps.join(", ")}, add these dependencies in akan.config.ts as { libs: [...other deps, ${missingLibDeps.join(", ")}] }`
|
|
523
523
|
);
|
|
524
|
-
for (const libName of
|
|
524
|
+
for (const libName of akanConfig.libs) {
|
|
525
525
|
if (libScanResults[libName])
|
|
526
526
|
continue;
|
|
527
527
|
const lib = new LibExecutor({ workspace: this.workspace, name: libName });
|
package/esm/src/aiEditor.js
CHANGED
|
@@ -71,7 +71,9 @@ class AiSession {
|
|
|
71
71
|
}
|
|
72
72
|
} = {}) {
|
|
73
73
|
if (!AiSession.#chat)
|
|
74
|
-
|
|
74
|
+
await AiSession.init();
|
|
75
|
+
if (!AiSession.#chat)
|
|
76
|
+
throw new Error("Failed to initialize the AI session");
|
|
75
77
|
try {
|
|
76
78
|
const humanMessage = new HumanMessage(question);
|
|
77
79
|
this.messageHistory.push(humanMessage);
|
package/esm/src/executors.js
CHANGED
|
@@ -488,7 +488,7 @@ class SysExecutor extends Executor {
|
|
|
488
488
|
throw new Error(
|
|
489
489
|
`Missing libs: ${missingLibDeps.join(", ")}, add these dependencies in akan.config.ts as { libs: [...other deps, ${missingLibDeps.join(", ")}] }`
|
|
490
490
|
);
|
|
491
|
-
for (const libName of
|
|
491
|
+
for (const libName of akanConfig.libs) {
|
|
492
492
|
if (libScanResults[libName])
|
|
493
493
|
continue;
|
|
494
494
|
const lib = new LibExecutor({ workspace: this.workspace, name: libName });
|