ide-assi 0.688.0 → 0.690.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.
@@ -202494,9 +202494,12 @@ class IdeUtils
202494
202494
  let template = "";//await fetch(path).then(res => res.text());
202495
202495
 
202496
202496
  for (let path of paths) {
202497
+ console.log(path);
202497
202498
  template += await fetch(path).then(res => res.text());
202498
202499
  }
202499
202500
 
202501
+ console.log(template);
202502
+
202500
202503
  return await new PromptTemplate({
202501
202504
  template,
202502
202505
  inputVariables: Object.keys(params),
@@ -203980,13 +203983,7 @@ class IdeAssi extends HTMLElement
203980
203983
  api.post(`/api/prompt/dir`, {
203981
203984
  feProjectName: this.settings.feProjectName,
203982
203985
  }).then(res => {
203983
- this.#ai.prompt = {
203984
- mybatis: (res.mybatis || []).map(item => "/prompt/mybatis" + item),
203985
- service: (res.service || []).map(item => "/prompt/service" + item),
203986
- controller: (res.controller || []).map(item => "/prompt/controller" + item),
203987
- react: res.react.map(item => "/prompt/react" + item),
203988
- };
203989
-
203986
+ this.#ai.prompt = res;
203990
203987
  console.log(this.#ai.prompt);
203991
203988
  });
203992
203989
 
@@ -202490,9 +202490,12 @@ class IdeUtils
202490
202490
  let template = "";//await fetch(path).then(res => res.text());
202491
202491
 
202492
202492
  for (let path of paths) {
202493
+ console.log(path);
202493
202494
  template += await fetch(path).then(res => res.text());
202494
202495
  }
202495
202496
 
202497
+ console.log(template);
202498
+
202496
202499
  return await new PromptTemplate({
202497
202500
  template,
202498
202501
  inputVariables: Object.keys(params),
@@ -203976,13 +203979,7 @@ class IdeAssi extends HTMLElement
203976
203979
  api.post(`/api/prompt/dir`, {
203977
203980
  feProjectName: this.settings.feProjectName,
203978
203981
  }).then(res => {
203979
- this.#ai.prompt = {
203980
- mybatis: (res.mybatis || []).map(item => "/prompt/mybatis" + item),
203981
- service: (res.service || []).map(item => "/prompt/service" + item),
203982
- controller: (res.controller || []).map(item => "/prompt/controller" + item),
203983
- react: res.react.map(item => "/prompt/react" + item),
203984
- };
203985
-
203982
+ this.#ai.prompt = res;
203986
203983
  console.log(this.#ai.prompt);
203987
203984
  });
203988
203985
 
@@ -124,13 +124,7 @@ export class IdeAssi extends HTMLElement
124
124
  api.post(`/api/prompt/dir`, {
125
125
  feProjectName: this.settings.feProjectName,
126
126
  }).then(res => {
127
- this.#ai.prompt = {
128
- mybatis: (res.mybatis || []).map(item => "/prompt/mybatis" + item),
129
- service: (res.service || []).map(item => "/prompt/service" + item),
130
- controller: (res.controller || []).map(item => "/prompt/controller" + item),
131
- react: res.react.map(item => "/prompt/react" + item),
132
- };
133
-
127
+ this.#ai.prompt = res;
134
128
  console.log(this.#ai.prompt);
135
129
  });
136
130
 
@@ -16,9 +16,12 @@ export class IdeUtils
16
16
  let template = "";//await fetch(path).then(res => res.text());
17
17
 
18
18
  for (let path of paths) {
19
+ console.log(path);
19
20
  template += await fetch(path).then(res => res.text());
20
21
  }
21
22
 
23
+ console.log(template);
24
+
22
25
  return await new PromptTemplate({
23
26
  template,
24
27
  inputVariables: Object.keys(params),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.688.0",
4
+ "version": "0.690.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -124,13 +124,7 @@ export class IdeAssi extends HTMLElement
124
124
  api.post(`/api/prompt/dir`, {
125
125
  feProjectName: this.settings.feProjectName,
126
126
  }).then(res => {
127
- this.#ai.prompt = {
128
- mybatis: (res.mybatis || []).map(item => "/prompt/mybatis" + item),
129
- service: (res.service || []).map(item => "/prompt/service" + item),
130
- controller: (res.controller || []).map(item => "/prompt/controller" + item),
131
- react: res.react.map(item => "/prompt/react" + item),
132
- };
133
-
127
+ this.#ai.prompt = res;
134
128
  console.log(this.#ai.prompt);
135
129
  });
136
130
 
@@ -16,9 +16,12 @@ export class IdeUtils
16
16
  let template = "";//await fetch(path).then(res => res.text());
17
17
 
18
18
  for (let path of paths) {
19
+ console.log(path);
19
20
  template += await fetch(path).then(res => res.text());
20
21
  }
21
22
 
23
+ console.log(template);
24
+
22
25
  return await new PromptTemplate({
23
26
  template,
24
27
  inputVariables: Object.keys(params),