agency-lang 0.0.67 → 0.0.68

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.
@@ -418,7 +418,7 @@ export class TypeScriptGenerator extends BaseGenerator {
418
418
  _tools = prompt.tools.toolNames.map((name) => `__${name}Tool`).join(", ");
419
419
  }
420
420
  const tools = _tools.length > 0 ? `[${_tools}]` : "undefined";
421
- /* What's going on here? This is a nine. We change all agency functions to take an array of arguments.
421
+ /* What's going on here? This is annoying. We change all agency functions to take an array of arguments.
422
422
  So, for example, `function add(a, b)` would get turned into `function add(arr)`.
423
423
  Earlier, the arguments were getting converted into an object like `function add({a, b})` because LLMs
424
424
  pass back an object of parameters for the function calls, so that made it easy to pass those arguments
@@ -36,6 +36,7 @@ export class TypescriptPreprocessor {
36
36
  }
37
37
  }
38
38
  }
39
+ // parallel llm calls also need their own message threads.
39
40
  _addNodeIDsToMessageThreads(body, parentId = 0) {
40
41
  for (const node of body) {
41
42
  let messageThreadNode = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agency-lang",
3
- "version": "0.0.67",
3
+ "version": "0.0.68",
4
4
  "description": "The Agency language",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -32,7 +32,8 @@
32
32
  "url": "git+https://github.com/egonSchiele/agency-lang.git"
33
33
  },
34
34
  "files": [
35
- "./dist"
35
+ "./dist",
36
+ "./scripts/hooks/postinstall.js"
36
37
  ],
37
38
  "exports": {
38
39
  ".": {
@@ -0,0 +1,13 @@
1
+ const cyan = "\x1b[36m";
2
+ const yellow = "\x1b[33m";
3
+ const reset = "\x1b[0m";
4
+ console.log(`${cyan}Welcome to${reset}`);
5
+ console.log(`${yellow}
6
+ _______
7
+ | _ .-----.-----.-----.----.--.--.
8
+ |. 1 | _ | -__| | __| | |
9
+ |. _ |___ |_____|__|__|____|___ |
10
+ |: | |_____| |_____|
11
+ |::.|:. |
12
+ \`--- ---'
13
+ ${reset}`);