@ai-setting/roy-agent-core 1.5.3 → 1.5.5
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/env/agent/index.js +7 -7
- package/dist/env/commands/index.js +4 -4
- package/dist/env/debug/index.js +1 -1
- package/dist/env/index.js +15 -15
- package/dist/env/llm/index.js +5 -5
- package/dist/env/log-trace/index.js +5 -5
- package/dist/env/mcp/index.js +5 -5
- package/dist/env/mcp/tool/index.js +4 -4
- package/dist/env/memory/index.js +5 -5
- package/dist/env/memory/plugin/index.js +4 -4
- package/dist/env/prompt/index.js +4 -4
- package/dist/env/session/index.js +8 -8
- package/dist/env/session/storage/index.js +6 -6
- package/dist/env/skill/index.js +4 -4
- package/dist/env/task/delegate/index.js +4 -4
- package/dist/env/task/index.js +6 -6
- package/dist/env/task/plugins/index.js +4 -4
- package/dist/env/task/storage/index.js +4 -4
- package/dist/env/tool/built-in/index.js +3 -3
- package/dist/env/tool/index.js +5 -5
- package/dist/env/workflow/engine/index.js +5 -5
- package/dist/env/workflow/index.js +6 -6
- package/dist/env/workflow/storage/index.js +5 -5
- package/dist/env/workflow/tools/index.js +3 -3
- package/dist/env/workflow/utils/index.js +4 -4
- package/dist/index.js +28 -28
- 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-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-bcbqy27c.js +14 -0
- package/dist/shared/@ai-setting/{roy-agent-core-nga1gqft.js → roy-agent-core-c0jcxnf4.js} +2 -2
- 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-j3bbr2n0.js → roy-agent-core-eajcvp4e.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-fsvb6bwe.js → roy-agent-core-f0cc2ep9.js} +3 -3
- 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-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-fdb6m4e4.js → roy-agent-core-kkp3qmc3.js} +2 -2
- 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-6a72jfdy.js → roy-agent-core-nhdrvfp8.js} +1 -1
- 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-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-r973kbm7.js → roy-agent-core-ya8krqzt.js} +5 -5
- 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 +9 -8
- package/dist/shared/@ai-setting/roy-agent-core-rft3fmp0.js +0 -14
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
getTracerProvider,
|
|
4
4
|
init_tracer_provider,
|
|
5
5
|
resetTracerProvider
|
|
6
|
-
} from "./roy-agent-core-
|
|
7
|
-
import"./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-xs5rsgat.js";
|
|
7
|
+
import"./roy-agent-core-psv4v63c.js";
|
|
8
8
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
9
9
|
init_tracer_provider();
|
|
10
10
|
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
initDatabase,
|
|
6
6
|
initializeTables,
|
|
7
7
|
resetDatabase
|
|
8
|
-
} from "./roy-agent-core-
|
|
9
|
-
import"./roy-agent-core-
|
|
10
|
-
import"./roy-agent-core-
|
|
11
|
-
import"./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-zpn0bqa8.js";
|
|
9
|
+
import"./roy-agent-core-44hnfb02.js";
|
|
10
|
+
import"./roy-agent-core-xs5rsgat.js";
|
|
11
|
+
import"./roy-agent-core-psv4v63c.js";
|
|
12
12
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
13
13
|
export {
|
|
14
14
|
resetDatabase,
|
|
@@ -6,24 +6,24 @@ import {
|
|
|
6
6
|
} from "./roy-agent-core-kkbwepqb.js";
|
|
7
7
|
import {
|
|
8
8
|
init_decorator
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-zgypchmt.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger,
|
|
12
12
|
init_logger,
|
|
13
13
|
setConfigComponent,
|
|
14
14
|
setQuietMode
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-44hnfb02.js";
|
|
16
16
|
import {
|
|
17
17
|
getTracerProvider,
|
|
18
18
|
init_propagation,
|
|
19
19
|
init_tracer_provider,
|
|
20
20
|
init_types,
|
|
21
21
|
propagation
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-xs5rsgat.js";
|
|
23
23
|
import {
|
|
24
24
|
SQLiteSpanStorage,
|
|
25
25
|
init_span_storage
|
|
26
|
-
} from "./roy-agent-core-
|
|
26
|
+
} from "./roy-agent-core-psv4v63c.js";
|
|
27
27
|
import {
|
|
28
28
|
__require
|
|
29
29
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
WorkflowEngine,
|
|
13
13
|
exports_engine,
|
|
14
14
|
init_engine
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-kkp3qmc3.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseComponent
|
|
18
18
|
} from "./roy-agent-core-kkbwepqb.js";
|
|
19
19
|
import {
|
|
20
20
|
createLogger,
|
|
21
21
|
init_logger
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-44hnfb02.js";
|
|
23
23
|
import {
|
|
24
24
|
__require,
|
|
25
25
|
__toCommonJS
|
|
@@ -155,7 +155,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
155
155
|
if (this.workflowService) {
|
|
156
156
|
this.workflowService = null;
|
|
157
157
|
try {
|
|
158
|
-
const { closeDatabase } = await import("./roy-agent-core-
|
|
158
|
+
const { closeDatabase } = await import("./roy-agent-core-wft9ra24.js");
|
|
159
159
|
closeDatabase();
|
|
160
160
|
componentLogger.info("[WorkflowComponent] SQLite database closed");
|
|
161
161
|
} catch (error) {
|
|
@@ -192,8 +192,8 @@ class WorkflowComponent extends BaseComponent {
|
|
|
192
192
|
}
|
|
193
193
|
async initSqliteService() {
|
|
194
194
|
try {
|
|
195
|
-
const { getDatabase, initializeTables } = await import("./roy-agent-core-
|
|
196
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
195
|
+
const { getDatabase, initializeTables } = await import("./roy-agent-core-wft9ra24.js");
|
|
196
|
+
const { WorkflowRepository } = await import("./roy-agent-core-bcbqy27c.js");
|
|
197
197
|
const db = getDatabase();
|
|
198
198
|
initializeTables();
|
|
199
199
|
const workflowRepository = new WorkflowRepository(db);
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
getMaxOutput,
|
|
4
4
|
init_logger,
|
|
5
5
|
simplifyFilePath
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-44hnfb02.js";
|
|
7
7
|
import {
|
|
8
8
|
getTracerProvider,
|
|
9
9
|
init_tracer_provider
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-xs5rsgat.js";
|
|
11
11
|
import {
|
|
12
12
|
__esm
|
|
13
13
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -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.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core SDK for roy-agent - Environment, Components, Tools, Sessions, Tasks",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,6 +25,12 @@
|
|
|
25
25
|
"dist",
|
|
26
26
|
"README.md"
|
|
27
27
|
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "bunup",
|
|
30
|
+
"build:main": "bunup -- --entry src/index.ts",
|
|
31
|
+
"clean": "rm -rf dist",
|
|
32
|
+
"typecheck": "npx tsc --noEmit --skipLibCheck --project tsconfig.json"
|
|
33
|
+
},
|
|
28
34
|
"dependencies": {
|
|
29
35
|
"@ai-sdk/anthropic": "^3.0.0",
|
|
30
36
|
"@ai-sdk/google": "^3.0.0",
|
|
@@ -32,6 +38,7 @@
|
|
|
32
38
|
"@ai-sdk/openai-compatible": "^2.0.0",
|
|
33
39
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
34
40
|
"ai": "^6.0.0",
|
|
41
|
+
"better-sqlite3": "^11.10.0",
|
|
35
42
|
"glob": "^13.0.6",
|
|
36
43
|
"jsonc-parser": "^3.2.0",
|
|
37
44
|
"reflect-metadata": "^0.2.2",
|
|
@@ -70,11 +77,5 @@
|
|
|
70
77
|
"license": "MIT",
|
|
71
78
|
"bugs": {
|
|
72
79
|
"url": "https://github.com/ai-setting/roy-agent/issues"
|
|
73
|
-
},
|
|
74
|
-
"scripts": {
|
|
75
|
-
"build": "bunup",
|
|
76
|
-
"build:main": "bunup -- --entry src/index.ts",
|
|
77
|
-
"clean": "rm -rf dist",
|
|
78
|
-
"typecheck": "npx tsc --noEmit --skipLibCheck --project tsconfig.json"
|
|
79
80
|
}
|
|
80
|
-
}
|
|
81
|
+
}
|
|
@@ -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
|
-
};
|