@ai-setting/roy-agent-core 1.5.4 → 1.5.6
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/config/index.d.ts +1250 -0
- package/dist/env/agent/index.d.ts +2279 -0
- package/dist/env/agent/index.js +7 -7
- package/dist/env/commands/index.d.ts +1131 -0
- package/dist/env/commands/index.js +4 -4
- package/dist/env/debug/formatters/index.d.ts +236 -0
- package/dist/env/debug/index.d.ts +1652 -0
- package/dist/env/debug/index.js +1 -1
- package/dist/env/hook/index.d.ts +279 -0
- package/dist/env/index.d.ts +3460 -0
- package/dist/env/index.js +18 -18
- package/dist/env/llm/index.d.ts +1760 -0
- package/dist/env/llm/index.js +5 -5
- package/dist/env/log-trace/index.d.ts +1574 -0
- package/dist/env/log-trace/index.js +5 -5
- package/dist/env/mcp/index.d.ts +1331 -0
- package/dist/env/mcp/index.js +5 -5
- package/dist/env/mcp/tool/index.d.ts +183 -0
- package/dist/env/mcp/tool/index.js +4 -4
- package/dist/env/memory/built-in/index.d.ts +232 -0
- package/dist/env/memory/index.d.ts +1799 -0
- package/dist/env/memory/index.js +5 -5
- package/dist/env/memory/plugin/index.d.ts +747 -0
- package/dist/env/memory/plugin/index.js +4 -4
- package/dist/env/prompt/index.d.ts +1164 -0
- package/dist/env/prompt/index.js +4 -4
- package/dist/env/session/index.d.ts +1908 -0
- package/dist/env/session/index.js +8 -8
- package/dist/env/session/storage/index.d.ts +564 -0
- package/dist/env/session/storage/index.js +6 -6
- package/dist/env/skill/index.d.ts +1266 -0
- package/dist/env/skill/index.js +4 -4
- package/dist/env/skill/tool/index.d.ts +193 -0
- package/dist/env/task/delegate/index.d.ts +1622 -0
- package/dist/env/task/delegate/index.js +4 -4
- package/dist/env/task/hooks/index.d.ts +607 -0
- package/dist/env/task/index.d.ts +1415 -0
- package/dist/env/task/index.js +6 -6
- package/dist/env/task/plugins/index.d.ts +462 -0
- package/dist/env/task/plugins/index.js +4 -4
- package/dist/env/task/storage/index.d.ts +224 -0
- package/dist/env/task/storage/index.js +4 -4
- package/dist/env/task/tools/index.d.ts +1464 -0
- package/dist/env/task/tools/operation/index.d.ts +1463 -0
- package/dist/env/tool/built-in/index.d.ts +218 -0
- package/dist/env/tool/built-in/index.js +3 -3
- package/dist/env/tool/index.d.ts +1396 -0
- package/dist/env/tool/index.js +5 -5
- package/dist/env/workflow/decorators/index.d.ts +2161 -0
- package/dist/env/workflow/engine/index.d.ts +3453 -0
- package/dist/env/workflow/engine/index.js +8 -8
- package/dist/env/workflow/index.d.ts +3546 -0
- package/dist/env/workflow/index.js +13 -9
- package/dist/env/workflow/nodes/index.d.ts +2092 -0
- package/dist/env/workflow/nodes/index.js +1 -1
- package/dist/env/workflow/service/index.d.ts +227 -0
- package/dist/env/workflow/storage/index.d.ts +165 -0
- package/dist/env/workflow/storage/index.js +5 -5
- package/dist/env/workflow/tools/index.d.ts +416 -0
- package/dist/env/workflow/tools/index.js +3 -3
- package/dist/env/workflow/types/index.d.ts +2255 -0
- package/dist/env/workflow/types/index.js +5 -1
- package/dist/env/workflow/utils/index.d.ts +2031 -0
- package/dist/env/workflow/utils/index.js +4 -4
- package/dist/index.d.ts +7837 -0
- package/dist/index.js +31 -31
- package/dist/shared/@ai-setting/{roy-agent-core-6a72jfdy.js → roy-agent-core-1akcqxj9.js} +50 -4
- package/dist/shared/@ai-setting/{roy-agent-core-12zkpda2.js → roy-agent-core-3jywqmdd.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-7n436rb4.js → roy-agent-core-3rr5k71j.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-zfbxb999.js → roy-agent-core-3xwneva0.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-j3wc4465.js → roy-agent-core-44hnfb02.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-cv890rg5.js → roy-agent-core-4txzpsbt.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-rzp9kxne.js → roy-agent-core-5x94xmt6.js} +14 -5
- package/dist/shared/@ai-setting/{roy-agent-core-pc9g3962.js → roy-agent-core-69jskqjg.js} +41 -66
- package/dist/shared/@ai-setting/{roy-agent-core-qya7seh6.js → roy-agent-core-6kvtahqv.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-kv5nkf8j.js → roy-agent-core-81w1963m.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-zqjdy75r.js → roy-agent-core-93zfb3r1.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fsvb6bwe.js → roy-agent-core-b0x5dda6.js} +5 -5
- package/dist/shared/@ai-setting/roy-agent-core-bcbqy27c.js +14 -0
- package/dist/shared/@ai-setting/{roy-agent-core-2x0m2p66.js → roy-agent-core-d7cyjkf7.js} +24 -3
- package/dist/shared/@ai-setting/{roy-agent-core-r973kbm7.js → roy-agent-core-dc497hmk.js} +9 -8
- package/dist/shared/@ai-setting/{roy-agent-core-z2t8hse8.js → roy-agent-core-dh9d7a3m.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-j3bbr2n0.js → roy-agent-core-eajcvp4e.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-m61m1vqf.js → roy-agent-core-f7q2x5z6.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-8a96qnjv.js → roy-agent-core-g99pxzn5.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-5v9bh6wz.js → roy-agent-core-gbqcyegm.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-qw0ebh1d.js → roy-agent-core-gq20wsgv.js} +49 -17
- package/dist/shared/@ai-setting/{roy-agent-core-2kg2wma8.js → roy-agent-core-htwpckw9.js} +24 -3
- package/dist/shared/@ai-setting/{roy-agent-core-e62e2a5a.js → roy-agent-core-jfh9q2qh.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-3agad0d9.js → roy-agent-core-jvatggbb.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-j8q93v21.js → roy-agent-core-n2cvdgd6.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-nga1gqft.js → roy-agent-core-pjr12nnd.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-bncgx3gb.js → roy-agent-core-psv4v63c.js} +24 -2
- package/dist/shared/@ai-setting/{roy-agent-core-p4xv133t.js → roy-agent-core-qqceba6k.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-e5jcp24a.js → roy-agent-core-r9ezzemr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ewrj1c4k.js → roy-agent-core-satmq6sh.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-7f303ffd.js → roy-agent-core-sx7wsvnn.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-q779wnwm.js → roy-agent-core-wft9ra24.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-fdb6m4e4.js → roy-agent-core-wrcy0h6z.js} +134 -182
- package/dist/shared/@ai-setting/{roy-agent-core-8y8tw6ns.js → roy-agent-core-xq8hhqb8.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-fv32jaa8.js → roy-agent-core-xs5rsgat.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-t2nc5acr.js → roy-agent-core-z62zee1e.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-72zpazpc.js → roy-agent-core-zbkpc41z.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-35x0wrtt.js → roy-agent-core-zgypchmt.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-37e4tep3.js → roy-agent-core-zpn0bqa8.js} +24 -3
- package/package.json +5 -2
- package/dist/shared/@ai-setting/roy-agent-core-rft3fmp0.js +0 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger,
|
|
3
3
|
init_logger
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-44hnfb02.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
7
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -10,6 +10,28 @@ import {
|
|
|
10
10
|
init_logger();
|
|
11
11
|
import { join } from "path";
|
|
12
12
|
var logger = createLogger("workflow:sqlite");
|
|
13
|
+
function getDatabaseClass() {
|
|
14
|
+
if (typeof Bun !== "undefined") {
|
|
15
|
+
const { Database } = __require("bun:sqlite");
|
|
16
|
+
return Database;
|
|
17
|
+
} else {
|
|
18
|
+
return __require("better-sqlite3");
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function createCompatibleDatabase(path) {
|
|
22
|
+
const Database = getDatabaseClass();
|
|
23
|
+
const db = new Database(path);
|
|
24
|
+
if (typeof db.run !== "function") {
|
|
25
|
+
db.run = function(sql, ...params) {
|
|
26
|
+
if (params.length > 0) {
|
|
27
|
+
return this.prepare(sql).run(...params);
|
|
28
|
+
} else {
|
|
29
|
+
return this.exec(sql);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
return db;
|
|
34
|
+
}
|
|
13
35
|
function getDefaultDataDir() {
|
|
14
36
|
const home = process.env.HOME || process.env.USERPROFILE || "/tmp";
|
|
15
37
|
return join(home, ".local", "share", "roy-agent");
|
|
@@ -28,8 +50,7 @@ function getDatabase(path) {
|
|
|
28
50
|
mkdirSync(dbDir, { recursive: true });
|
|
29
51
|
} catch {}
|
|
30
52
|
}
|
|
31
|
-
|
|
32
|
-
dbInstance = new Database(dbPath);
|
|
53
|
+
dbInstance = createCompatibleDatabase(dbPath);
|
|
33
54
|
try {
|
|
34
55
|
if (typeof dbInstance.pragma === "function") {
|
|
35
56
|
dbInstance.pragma("journal_mode = WAL");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-setting/roy-agent-core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core SDK for roy-agent - Environment, Components, Tools, Sessions, Tasks",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": "./dist/index.js",
|
|
12
|
-
"types": "./dist/index.d.ts"
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"require": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
13
15
|
},
|
|
14
16
|
"./*": {
|
|
15
17
|
"import": "./dist/*/index.js",
|
|
@@ -32,6 +34,7 @@
|
|
|
32
34
|
"@ai-sdk/openai-compatible": "^2.0.0",
|
|
33
35
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
34
36
|
"ai": "^6.0.0",
|
|
37
|
+
"better-sqlite3": "^11.10.0",
|
|
35
38
|
"glob": "^13.0.6",
|
|
36
39
|
"jsonc-parser": "^3.2.0",
|
|
37
40
|
"reflect-metadata": "^0.2.2",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
WorkflowRepository,
|
|
3
|
-
rowToWorkflow
|
|
4
|
-
} from "./roy-agent-core-7n436rb4.js";
|
|
5
|
-
import"./roy-agent-core-37e4tep3.js";
|
|
6
|
-
import"./roy-agent-core-rvxg1wps.js";
|
|
7
|
-
import"./roy-agent-core-j3wc4465.js";
|
|
8
|
-
import"./roy-agent-core-fv32jaa8.js";
|
|
9
|
-
import"./roy-agent-core-bncgx3gb.js";
|
|
10
|
-
import"./roy-agent-core-fs0mn2jk.js";
|
|
11
|
-
export {
|
|
12
|
-
rowToWorkflow,
|
|
13
|
-
WorkflowRepository
|
|
14
|
-
};
|