@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.
@@ -104,7 +104,9 @@ class AiSession {
104
104
  }
105
105
  } = {}) {
106
106
  if (!AiSession.#chat)
107
- throw new Error("Please initialize the AI session first");
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);
@@ -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 libDeps) {
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 });
@@ -71,7 +71,9 @@ class AiSession {
71
71
  }
72
72
  } = {}) {
73
73
  if (!AiSession.#chat)
74
- throw new Error("Please initialize the AI session first");
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);
@@ -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 libDeps) {
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "0.0.123",
3
+ "version": "0.0.125",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"