ide-assi 0.698.0 → 0.700.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.
@@ -202488,15 +202488,12 @@ class IdeUtils
202488
202488
 
202489
202489
  if (!Array.isArray(paths)) paths = [paths];
202490
202490
 
202491
- let template = "";//await fetch(path).then(res => res.text());
202491
+ let template = "";
202492
202492
 
202493
202493
  for (let path of paths) {
202494
- //console.log(path);
202495
202494
  template += await fetch(path).then(res => res.text());
202496
202495
  }
202497
202496
 
202498
- console.log(template);
202499
-
202500
202497
  return await new PromptTemplate({
202501
202498
  template,
202502
202499
  inputVariables: Object.keys(params),
@@ -202718,6 +202715,7 @@ class IdeAi
202718
202715
  #invoke = async (path, params) => {
202719
202716
 
202720
202717
  const prompt = await IdeUtils.generatePrompt(path, params);
202718
+ //console.log(prompt);
202721
202719
 
202722
202720
  try {
202723
202721
  const response = await this.#model.invoke([
@@ -203110,7 +203108,7 @@ console.log(el, href, title);
203110
203108
  * }
203111
203109
  */
203112
203110
  const src = await api.post("/api/source/read", srcPath);
203113
- //console.log(src);
203111
+ console.log(srcPath, src);
203114
203112
 
203115
203113
  /**
203116
203114
  const response = await fetch(srcPath.javascript);
@@ -202484,15 +202484,12 @@ class IdeUtils
202484
202484
 
202485
202485
  if (!Array.isArray(paths)) paths = [paths];
202486
202486
 
202487
- let template = "";//await fetch(path).then(res => res.text());
202487
+ let template = "";
202488
202488
 
202489
202489
  for (let path of paths) {
202490
- //console.log(path);
202491
202490
  template += await fetch(path).then(res => res.text());
202492
202491
  }
202493
202492
 
202494
- console.log(template);
202495
-
202496
202493
  return await new PromptTemplate({
202497
202494
  template,
202498
202495
  inputVariables: Object.keys(params),
@@ -202714,6 +202711,7 @@ class IdeAi
202714
202711
  #invoke = async (path, params) => {
202715
202712
 
202716
202713
  const prompt = await IdeUtils.generatePrompt(path, params);
202714
+ //console.log(prompt);
202717
202715
 
202718
202716
  try {
202719
202717
  const response = await this.#model.invoke([
@@ -203106,7 +203104,7 @@ console.log(el, href, title);
203106
203104
  * }
203107
203105
  */
203108
203106
  const src = await api.post("/api/source/read", srcPath);
203109
- //console.log(src);
203107
+ console.log(srcPath, src);
203110
203108
 
203111
203109
  /**
203112
203110
  const response = await fetch(srcPath.javascript);
@@ -189,6 +189,7 @@ export class IdeAi
189
189
  #invoke = async (path, params) => {
190
190
 
191
191
  const prompt = await IdeUtils.generatePrompt(path, params);
192
+ //console.log(prompt);
192
193
 
193
194
  try {
194
195
  const response = await this.#model.invoke([
@@ -581,7 +582,7 @@ console.log(el, href, title);
581
582
  * }
582
583
  */
583
584
  const src = await api.post("/api/source/read", srcPath);
584
- //console.log(src);
585
+ console.log(srcPath, src);
585
586
 
586
587
  /**
587
588
  const response = await fetch(srcPath.javascript);
@@ -10,15 +10,12 @@ export class IdeUtils
10
10
 
11
11
  if (!Array.isArray(paths)) paths = [paths];
12
12
 
13
- let template = "";//await fetch(path).then(res => res.text());
13
+ let template = "";
14
14
 
15
15
  for (let path of paths) {
16
- //console.log(path);
17
16
  template += await fetch(path).then(res => res.text());
18
17
  }
19
18
 
20
- console.log(template);
21
-
22
19
  return await new PromptTemplate({
23
20
  template,
24
21
  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.698.0",
4
+ "version": "0.700.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -189,6 +189,7 @@ export class IdeAi
189
189
  #invoke = async (path, params) => {
190
190
 
191
191
  const prompt = await IdeUtils.generatePrompt(path, params);
192
+ //console.log(prompt);
192
193
 
193
194
  try {
194
195
  const response = await this.#model.invoke([
@@ -581,7 +582,7 @@ console.log(el, href, title);
581
582
  * }
582
583
  */
583
584
  const src = await api.post("/api/source/read", srcPath);
584
- //console.log(src);
585
+ console.log(srcPath, src);
585
586
 
586
587
  /**
587
588
  const response = await fetch(srcPath.javascript);
@@ -10,15 +10,12 @@ export class IdeUtils
10
10
 
11
11
  if (!Array.isArray(paths)) paths = [paths];
12
12
 
13
- let template = "";//await fetch(path).then(res => res.text());
13
+ let template = "";
14
14
 
15
15
  for (let path of paths) {
16
- //console.log(path);
17
16
  template += await fetch(path).then(res => res.text());
18
17
  }
19
18
 
20
- console.log(template);
21
-
22
19
  return await new PromptTemplate({
23
20
  template,
24
21
  inputVariables: Object.keys(params),