@openape/ape-agent 2.6.2 → 2.6.3
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/bridge.mjs +11 -11
- package/package.json +2 -2
package/dist/bridge.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
8
8
|
var __esm = (fn, res) => function __init() {
|
|
9
9
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
10
|
};
|
|
11
|
-
var __commonJS = (cb, mod) => function
|
|
11
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
12
12
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
13
|
};
|
|
14
14
|
var __export = (target, all) => {
|
|
@@ -1032,13 +1032,6 @@ var require_shell_quote = __commonJS({
|
|
|
1032
1032
|
}
|
|
1033
1033
|
});
|
|
1034
1034
|
|
|
1035
|
-
// ../../packages/apes/dist/chunk-7OCVIDC7.js
|
|
1036
|
-
var init_chunk_7OCVIDC7 = __esm({
|
|
1037
|
-
"../../packages/apes/dist/chunk-7OCVIDC7.js"() {
|
|
1038
|
-
"use strict";
|
|
1039
|
-
}
|
|
1040
|
-
});
|
|
1041
|
-
|
|
1042
1035
|
// src/bridge.ts
|
|
1043
1036
|
import { existsSync as existsSync7, readFileSync as readFileSync8 } from "fs";
|
|
1044
1037
|
import { homedir as homedir9 } from "os";
|
|
@@ -1352,6 +1345,8 @@ var ChatApi = class {
|
|
|
1352
1345
|
this.endpoint = endpoint;
|
|
1353
1346
|
this.bearer = bearer;
|
|
1354
1347
|
}
|
|
1348
|
+
endpoint;
|
|
1349
|
+
bearer;
|
|
1355
1350
|
async postMessage(roomId, body, opts = {}) {
|
|
1356
1351
|
const bodyForServer = opts.streaming ? body : clamp(body, MAX_BODY);
|
|
1357
1352
|
const url = `${this.endpoint}/api/rooms/${encodeURIComponent(roomId)}/messages`;
|
|
@@ -1455,7 +1450,7 @@ import { existsSync as existsSync4, mkdirSync as mkdirSync3, readdirSync as read
|
|
|
1455
1450
|
import { homedir as homedir6 } from "os";
|
|
1456
1451
|
import { join as join6 } from "path";
|
|
1457
1452
|
|
|
1458
|
-
// ../../packages/apes/dist/chunk-
|
|
1453
|
+
// ../../packages/apes/dist/chunk-L2V3CW5B.js
|
|
1459
1454
|
import { spawn } from "child_process";
|
|
1460
1455
|
import { mkdirSync as mkdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
|
|
1461
1456
|
import { homedir as homedir3 } from "os";
|
|
@@ -1983,6 +1978,7 @@ import { basename, join as join4 } from "path";
|
|
|
1983
1978
|
|
|
1984
1979
|
// ../../packages/core/dist/index.js
|
|
1985
1980
|
import * as jose from "jose";
|
|
1981
|
+
var HKDF_INFO = new TextEncoder().encode("openape-sealed-box-v1");
|
|
1986
1982
|
|
|
1987
1983
|
// ../../packages/grants/dist/index.js
|
|
1988
1984
|
function normalizeSelector(selector) {
|
|
@@ -3528,13 +3524,12 @@ function extractOption(args, name) {
|
|
|
3528
3524
|
}
|
|
3529
3525
|
var AUTH_FILE2 = join5(homedir52(), ".config", "apes", "auth.json");
|
|
3530
3526
|
|
|
3531
|
-
// ../../packages/apes/dist/chunk-
|
|
3527
|
+
// ../../packages/apes/dist/chunk-4KPKANZT.js
|
|
3532
3528
|
init_chunk_OBF7IMQ2();
|
|
3533
3529
|
var debug = process.argv.includes("--debug");
|
|
3534
3530
|
|
|
3535
3531
|
// ../../packages/apes/dist/index.js
|
|
3536
3532
|
init_chunk_OBF7IMQ2();
|
|
3537
|
-
init_chunk_7OCVIDC7();
|
|
3538
3533
|
|
|
3539
3534
|
// src/cron-runner.ts
|
|
3540
3535
|
var TASK_CACHE_DIR = join6(homedir6(), ".openape", "agent", "tasks");
|
|
@@ -3608,6 +3603,7 @@ var CronRunner = class {
|
|
|
3608
3603
|
this.deps = deps;
|
|
3609
3604
|
this.loadTaskThreads();
|
|
3610
3605
|
}
|
|
3606
|
+
deps;
|
|
3611
3607
|
timer;
|
|
3612
3608
|
lastTickedMinute;
|
|
3613
3609
|
/**
|
|
@@ -4075,6 +4071,7 @@ var ThreadSession = class {
|
|
|
4075
4071
|
constructor(deps) {
|
|
4076
4072
|
this.deps = deps;
|
|
4077
4073
|
}
|
|
4074
|
+
deps;
|
|
4078
4075
|
active;
|
|
4079
4076
|
queue = [];
|
|
4080
4077
|
history = [];
|
|
@@ -4357,6 +4354,9 @@ var Bridge = class {
|
|
|
4357
4354
|
});
|
|
4358
4355
|
this.cron.start();
|
|
4359
4356
|
}
|
|
4357
|
+
cfg;
|
|
4358
|
+
selfEmail;
|
|
4359
|
+
ownerEmail;
|
|
4360
4360
|
// Sessions keyed by `${roomId}:${threadId}`. Each ThreadSession holds
|
|
4361
4361
|
// its own message history and calls @openape/apes' runLoop directly
|
|
4362
4362
|
// (no stdio JSON-RPC subprocess — see thread-session.ts).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openape/ape-agent",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "OpenApe agent runtime: per-agent process that connects to chat.openape.ai, runs the LLM loop with tools + cron tasks, and streams replies back to owners.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"ofetch": "^1.4.1",
|
|
24
24
|
"ws": "^8.18.0",
|
|
25
25
|
"yaml": "^2.8.0",
|
|
26
|
-
"@openape/apes": "1.
|
|
26
|
+
"@openape/apes": "1.25.0",
|
|
27
27
|
"@openape/cli-auth": "0.4.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|