agency-lang 0.0.99 → 0.0.100
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/dist/lib/backends/typescriptBuilder.js +3 -2
- package/dist/lib/importPaths.d.ts +6 -2
- package/dist/lib/importPaths.js +14 -3
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/package.json +1 -1
- package/stdlib/agent.js +1 -1
- package/stdlib/array.js +1 -1
- package/stdlib/clipboard.js +1 -1
- package/stdlib/fs.js +1 -1
- package/stdlib/http.js +1 -1
- package/stdlib/math.agency +3 -5
- package/stdlib/math.js +5 -9
- package/stdlib/object.js +1 -1
- package/stdlib/path.js +1 -1
- package/stdlib/shell.js +1 -1
- package/stdlib/speech.js +1 -1
- package/stdlib/strategy.js +1 -1
- package/stdlib/system.js +1 -1
- package/stdlib/ui.js +1 -1
- package/stdlib/weather.js +1 -1
- package/stdlib/wikipedia.js +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import path from "path";
|
|
1
2
|
import { formatTypeHint } from "../cli/util.js";
|
|
2
3
|
import { BUILTIN_FUNCTIONS, BUILTIN_TOOLS, BUILTIN_VARIABLES, TYPES_THAT_DONT_TRIGGER_NEW_PART, } from "../config.js";
|
|
3
4
|
import { expressionToString } from "../utils/node.js";
|
|
@@ -1041,7 +1042,7 @@ export class TypeScriptBuilder {
|
|
|
1041
1042
|
return ts.runnerIfElse({ id, branches, elseBranch });
|
|
1042
1043
|
}
|
|
1043
1044
|
processImportStatement(node) {
|
|
1044
|
-
const from = toCompiledImportPath(node.modulePath);
|
|
1045
|
+
const from = toCompiledImportPath(node.modulePath, path.resolve(this.moduleId));
|
|
1045
1046
|
const imports = node.importedNames.map((nameType) => {
|
|
1046
1047
|
switch (nameType.type) {
|
|
1047
1048
|
case "namedImport":
|
|
@@ -1092,7 +1093,7 @@ export class TypeScriptBuilder {
|
|
|
1092
1093
|
return ts.importDecl({
|
|
1093
1094
|
importKind: "named",
|
|
1094
1095
|
names: importNames,
|
|
1095
|
-
from: toCompiledImportPath(node.agencyFile),
|
|
1096
|
+
from: toCompiledImportPath(node.agencyFile, path.resolve(this.moduleId)),
|
|
1096
1097
|
});
|
|
1097
1098
|
}
|
|
1098
1099
|
// ------- TsRaw wrapper methods (template-heavy) -------
|
|
@@ -68,7 +68,11 @@ export declare function resolveAgencyImportPath(importPath: string, fromFile: st
|
|
|
68
68
|
* Convert an Agency import path to the path that should appear in generated
|
|
69
69
|
* TypeScript import statements.
|
|
70
70
|
*
|
|
71
|
-
* - "std::foo" ->
|
|
71
|
+
* - "std::foo" -> relative path to <stdlib-dir>/foo.js from the source file
|
|
72
72
|
* - "./foo.agency" -> "./foo.js" (relative, just extension swap)
|
|
73
|
+
*
|
|
74
|
+
* @param fromFile - Absolute path of the source file containing the import.
|
|
75
|
+
* Used to compute relative paths for stdlib imports. If not provided,
|
|
76
|
+
* falls back to absolute paths.
|
|
73
77
|
*/
|
|
74
|
-
export declare function toCompiledImportPath(importPath: string): string;
|
|
78
|
+
export declare function toCompiledImportPath(importPath: string, fromFile?: string): string;
|
package/dist/lib/importPaths.js
CHANGED
|
@@ -220,12 +220,23 @@ export function resolveAgencyImportPath(importPath, fromFile) {
|
|
|
220
220
|
* Convert an Agency import path to the path that should appear in generated
|
|
221
221
|
* TypeScript import statements.
|
|
222
222
|
*
|
|
223
|
-
* - "std::foo" ->
|
|
223
|
+
* - "std::foo" -> relative path to <stdlib-dir>/foo.js from the source file
|
|
224
224
|
* - "./foo.agency" -> "./foo.js" (relative, just extension swap)
|
|
225
|
+
*
|
|
226
|
+
* @param fromFile - Absolute path of the source file containing the import.
|
|
227
|
+
* Used to compute relative paths for stdlib imports. If not provided,
|
|
228
|
+
* falls back to absolute paths.
|
|
225
229
|
*/
|
|
226
|
-
export function toCompiledImportPath(importPath) {
|
|
230
|
+
export function toCompiledImportPath(importPath, fromFile) {
|
|
227
231
|
if (isStdlibImport(importPath)) {
|
|
228
|
-
|
|
232
|
+
const absTarget = path.join(STDLIB_DIR, normalizeStdlibPath(importPath) + ".js");
|
|
233
|
+
if (fromFile) {
|
|
234
|
+
let rel = path.relative(path.dirname(fromFile), absTarget).replace(/\\/g, "/");
|
|
235
|
+
if (!rel.startsWith("."))
|
|
236
|
+
rel = "./" + rel;
|
|
237
|
+
return rel;
|
|
238
|
+
}
|
|
239
|
+
return absTarget;
|
|
229
240
|
}
|
|
230
241
|
if (isPkgImport(importPath)) {
|
|
231
242
|
// Emit bare specifier — Node resolves it at runtime via node_modules
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.100";
|
package/dist/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.0.
|
|
1
|
+
export const VERSION = "0.0.100";
|
package/package.json
CHANGED
package/stdlib/agent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import __process from "process";
|
|
4
4
|
import { z } from "zod";
|
package/stdlib/array.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import __process from "process";
|
|
4
4
|
import { z } from "zod";
|
package/stdlib/clipboard.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _copy, _paste } from "./lib/clipboard.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|
package/stdlib/fs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _edit, _multiedit, _applyPatch, _mkdir, _copy, _move, _remove } from "./lib/fs.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|
package/stdlib/http.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _fetch, _fetchJSON, _webfetch } from "./lib/http.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|
package/stdlib/math.agency
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { _add, _subtract, _multiply } from "./_math.js"
|
|
2
|
-
|
|
3
1
|
export def add(a: number, b: number): number {
|
|
4
|
-
return
|
|
2
|
+
return a + b
|
|
5
3
|
}
|
|
6
4
|
|
|
7
5
|
export def subtract(a: number, b: number): number {
|
|
8
|
-
return
|
|
6
|
+
return a - b
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
export def multiply(a: number, b: number): number {
|
|
12
|
-
return
|
|
10
|
+
return a * b
|
|
13
11
|
}
|
package/stdlib/math.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
2
|
-
import { _add, _subtract, _multiply } from "./_math.js";
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
3
2
|
import { fileURLToPath } from "url";
|
|
4
3
|
import __process from "process";
|
|
5
4
|
import { z } from "zod";
|
|
@@ -340,9 +339,8 @@ async function add(a, b, __state = void 0) {
|
|
|
340
339
|
}
|
|
341
340
|
try {
|
|
342
341
|
await runner.step(0, async (runner2) => {
|
|
343
|
-
__self.__retryable = false;
|
|
344
342
|
__functionCompleted = true;
|
|
345
|
-
runner2.halt(
|
|
343
|
+
runner2.halt(__stack.args.a + __stack.args.b);
|
|
346
344
|
return;
|
|
347
345
|
});
|
|
348
346
|
if (runner.halted) {
|
|
@@ -432,9 +430,8 @@ async function subtract(a, b, __state = void 0) {
|
|
|
432
430
|
}
|
|
433
431
|
try {
|
|
434
432
|
await runner.step(0, async (runner2) => {
|
|
435
|
-
__self.__retryable = false;
|
|
436
433
|
__functionCompleted = true;
|
|
437
|
-
runner2.halt(
|
|
434
|
+
runner2.halt(__stack.args.a - __stack.args.b);
|
|
438
435
|
return;
|
|
439
436
|
});
|
|
440
437
|
if (runner.halted) {
|
|
@@ -524,9 +521,8 @@ async function multiply(a, b, __state = void 0) {
|
|
|
524
521
|
}
|
|
525
522
|
try {
|
|
526
523
|
await runner.step(0, async (runner2) => {
|
|
527
|
-
__self.__retryable = false;
|
|
528
524
|
__functionCompleted = true;
|
|
529
|
-
runner2.halt(
|
|
525
|
+
runner2.halt(__stack.args.a * __stack.args.b);
|
|
530
526
|
return;
|
|
531
527
|
});
|
|
532
528
|
if (runner.halted) {
|
|
@@ -565,7 +561,7 @@ async function multiply(a, b, __state = void 0) {
|
|
|
565
561
|
}
|
|
566
562
|
}
|
|
567
563
|
var stdin_default = graph;
|
|
568
|
-
const __sourceMap = { "stdlib/math.agency:add": { "0": { "line":
|
|
564
|
+
const __sourceMap = { "stdlib/math.agency:add": { "0": { "line": 1, "col": 2 } }, "stdlib/math.agency:subtract": { "0": { "line": 5, "col": 2 } }, "stdlib/math.agency:multiply": { "0": { "line": 9, "col": 2 } } };
|
|
569
565
|
export {
|
|
570
566
|
__addTool,
|
|
571
567
|
__addToolParams,
|
package/stdlib/object.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import __process from "process";
|
|
4
4
|
import { z } from "zod";
|
package/stdlib/path.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _join, _resolve, _basename, _dirname, _extname, _relative, _isAbsolute } from "./lib/path.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|
package/stdlib/shell.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _bash, _ls, _grep, _glob, _stat, _exists, _which } from "./lib/shell.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|
package/stdlib/speech.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _speak, _transcribe } from "./lib/speech.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|
package/stdlib/strategy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { fileURLToPath } from "url";
|
|
3
3
|
import __process from "process";
|
|
4
4
|
import { z } from "zod";
|
package/stdlib/system.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _screenshot, _cwd, _env, _setEnv } from "./lib/system.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|
package/stdlib/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _initUI, _destroyUI, _log, _status, _chat, _code, _diff, _separator, _startSpinner, _stopSpinner, _prompt, _emptyLine } from "./lib/ui.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|
package/stdlib/weather.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _weather } from "./lib/weather.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|
package/stdlib/wikipedia.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "
|
|
1
|
+
import { print, __printTool, __printToolParams, printJSON, __printJSONTool, __printJSONToolParams, input, __inputTool, __inputToolParams, sleep, __sleepTool, __sleepToolParams, round, __roundTool, __roundToolParams, fetch, __fetchTool, __fetchToolParams, fetchJSON, __fetchJSONTool, __fetchJSONToolParams, read, __readTool, __readToolParams, write, __writeTool, __writeToolParams, readImage, __readImageTool, __readImageToolParams, notify, __notifyTool, __notifyToolParams, range, __rangeTool, __rangeToolParams, mostCommon, __mostCommonTool, __mostCommonToolParams, keys, __keysTool, __keysToolParams, values, __valuesTool, __valuesToolParams, entries, __entriesTool, __entriesToolParams } from "./index.js";
|
|
2
2
|
import { _search, _summary, _article } from "./lib/wikipedia.js";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import __process from "process";
|