@trygentic/agentloop 0.1.1-alpha.2 → 0.2.0-alpha.4

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/bin/run.js DELETED
@@ -1,64 +0,0 @@
1
- #!/usr/bin/env node
2
- import "dotenv/config";
3
- let useObfuscated = process.env.AGENTLOOP_DEV !== "1";
4
- if (useObfuscated) {
5
- try {
6
- await import("../dist-obfuscated/instrument.js");
7
- } catch {
8
- useObfuscated = false;
9
- try {
10
- await import("../dist/instrument.js");
11
- } catch (error) {
12
- }
13
- }
14
- } else {
15
- try {
16
- await import("../dist/instrument.js");
17
- } catch (error) {
18
- }
19
- }
20
- try {
21
- if (useObfuscated) {
22
- import("../dist-obfuscated/lib.js").then((m) => m.initMixpanel()).catch(() => {
23
- });
24
- } else {
25
- import("../dist/utils/analytics.js").then((m) => m.initMixpanel()).catch(() => {
26
- });
27
- }
28
- } catch (error) {
29
- }
30
- import { execute } from "@oclif/core";
31
- import { readFileSync, existsSync } from "fs";
32
- import { dirname, join } from "path";
33
- import { fileURLToPath } from "url";
34
- const __dirname = dirname(fileURLToPath(import.meta.url));
35
- const packageJsonPath = join(__dirname, "..", "package.json");
36
- const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
37
- const distObfuscatedPath = join(__dirname, "..", "dist-obfuscated");
38
- const distObfuscatedCommandsPath = join(distObfuscatedPath, "commands");
39
- if (!existsSync(distObfuscatedCommandsPath) || !useObfuscated) {
40
- if (packageJson.oclif) {
41
- if (packageJson.oclif.commands) {
42
- packageJson.oclif.commands = packageJson.oclif.commands.replace("dist-obfuscated", "dist");
43
- }
44
- if (packageJson.oclif.hooks) {
45
- Object.keys(packageJson.oclif.hooks).forEach((hookName) => {
46
- const hookValue = packageJson.oclif.hooks[hookName];
47
- if (typeof hookValue === "string") {
48
- packageJson.oclif.hooks[hookName] = hookValue.replace("dist-obfuscated", "dist");
49
- }
50
- });
51
- }
52
- }
53
- }
54
- const args = process.argv.slice(2);
55
- if (args.length === 0 || args.length === 1 && (args[0] === "--help" || args[0] === "-h")) {
56
- if (args.length === 0) {
57
- process.argv.push("interactive");
58
- }
59
- }
60
- await execute({
61
- development: false,
62
- dir: import.meta.url,
63
- loadOptions: packageJson.oclif ? { root: join(__dirname, ".."), pjson: packageJson } : void 0
64
- });
@@ -1,3 +0,0 @@
1
- import{AuthLogoutCmd as C}from'../../lib.js';export default C;
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b45356ff-75c4-59c2-859c-030c7bbc30af")}catch(e){}}();
3
- //# debugId=b45356ff-75c4-59c2-859c-030c7bbc30af
@@ -1,3 +0,0 @@
1
- import{AuthStatusCmd as C}from'../../lib.js';export default C;
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3454d9c1-40cc-561f-bfe5-44cff9d1b268")}catch(e){}}();
3
- //# debugId=3454d9c1-40cc-561f-bfe5-44cff9d1b268
@@ -1,3 +0,0 @@
1
- import{AuthSwitchCmd as C}from'../../lib.js';export default C;
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="07730ca2-9e25-5f33-b224-c17f223ba126")}catch(e){}}();
3
- //# debugId=07730ca2-9e25-5f33-b224-c17f223ba126
@@ -1,3 +0,0 @@
1
- import{ConfigCmd as C}from'../lib.js';export default C;
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7a21f0aa-37f7-5f64-8de2-15a948167ca0")}catch(e){}}();
3
- //# debugId=7a21f0aa-37f7-5f64-8de2-15a948167ca0
@@ -1,3 +0,0 @@
1
- import{InteractiveCmd as C}from'../lib.js';export default C;
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cd540ae0-62ed-5a66-a7cb-93f2fbfed4cc")}catch(e){}}();
3
- //# debugId=cd540ae0-62ed-5a66-a7cb-93f2fbfed4cc
@@ -1,3 +0,0 @@
1
- import{OrchestratorCmd as C}from'../lib.js';export default C;
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="fd2a3d63-2328-5135-a346-3a4098e2293f")}catch(e){}}();
3
- //# debugId=fd2a3d63-2328-5135-a346-3a4098e2293f
@@ -1,3 +0,0 @@
1
- import{QueryCmd as C}from'../lib.js';export default C;
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b0914a97-a876-5942-8319-59f1ffdbf8b2")}catch(e){}}();
3
- //# debugId=b0914a97-a876-5942-8319-59f1ffdbf8b2
@@ -1,3 +0,0 @@
1
- import{TelemetryTestCmd as C}from'../../lib.js';export default C;
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="60c0e0a5-bb9a-58f9-a92e-84936b811cd9")}catch(e){}}();
3
- //# debugId=60c0e0a5-bb9a-58f9-a92e-84936b811cd9