@dudousxd/nestjs-agent 1.27.1 → 1.29.0
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/a2ui/index.cjs +536 -0
- package/dist/a2ui/index.cjs.map +1 -0
- package/dist/a2ui/index.d.cts +9 -0
- package/dist/a2ui/index.d.ts +9 -0
- package/dist/a2ui/index.js +510 -0
- package/dist/a2ui/index.js.map +1 -0
- package/dist/{chat-queue.service-uD1vR8fs.d.ts → chat-queue.service-B-fVOJGf.d.ts} +3 -2
- package/dist/{chat-queue.service-Cu2nJpXz.d.cts → chat-queue.service-Bk7DCKGV.d.cts} +3 -2
- package/dist/durable/index.cjs +18 -2
- package/dist/durable/index.cjs.map +1 -1
- package/dist/durable/index.d.cts +1 -1
- package/dist/durable/index.d.ts +1 -1
- package/dist/durable/index.js +19 -3
- package/dist/durable/index.js.map +1 -1
- package/dist/genui/index.cjs +10 -2
- package/dist/genui/index.cjs.map +1 -1
- package/dist/genui/index.d.cts +9 -1
- package/dist/genui/index.d.ts +9 -1
- package/dist/genui/index.js +11 -3
- package/dist/genui/index.js.map +1 -1
- package/dist/index-APh8WN3z.d.ts +641 -0
- package/dist/index-D9EM7ivO.d.cts +641 -0
- package/dist/index.cjs +431 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -562
- package/dist/index.d.ts +37 -562
- package/dist/index.js +424 -26
- package/dist/index.js.map +1 -1
- package/package.json +15 -3
package/dist/durable/index.cjs
CHANGED
|
@@ -1290,7 +1290,7 @@ function resolverProviders(resolver) {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
__name(resolverProviders, "resolverProviders");
|
|
1292
1292
|
function toolOptions(options, resolver) {
|
|
1293
|
-
const { catalog: _catalog, ...rest } = options;
|
|
1293
|
+
const { catalog: _catalog, sandbox: _sandbox, ...rest } = options;
|
|
1294
1294
|
return {
|
|
1295
1295
|
...rest,
|
|
1296
1296
|
...resolver !== void 0 ? {
|
|
@@ -1299,11 +1299,19 @@ function toolOptions(options, resolver) {
|
|
|
1299
1299
|
};
|
|
1300
1300
|
}
|
|
1301
1301
|
__name(toolOptions, "toolOptions");
|
|
1302
|
+
function withSandbox(options) {
|
|
1303
|
+
const base = options.catalog ?? (0, import_genui.defineCatalog)([]);
|
|
1304
|
+
const { sandbox } = options;
|
|
1305
|
+
return sandbox === void 0 || sandbox === false ? base : base.extend([
|
|
1306
|
+
(0, import_genui.defineSandbox)(sandbox === true ? {} : sandbox)
|
|
1307
|
+
]);
|
|
1308
|
+
}
|
|
1309
|
+
__name(withSandbox, "withSandbox");
|
|
1302
1310
|
function coreProviders(resolver) {
|
|
1303
1311
|
return [
|
|
1304
1312
|
{
|
|
1305
1313
|
provide: GENUI_CATALOG,
|
|
1306
|
-
useFactory: /* @__PURE__ */ __name((options) => options
|
|
1314
|
+
useFactory: /* @__PURE__ */ __name((options) => withSandbox(options), "useFactory"),
|
|
1307
1315
|
inject: [
|
|
1308
1316
|
GENUI_OPTIONS
|
|
1309
1317
|
]
|
|
@@ -1762,6 +1770,9 @@ AgentDepsFactory2 = _ts_decorate6([
|
|
|
1762
1770
|
])
|
|
1763
1771
|
], AgentDepsFactory2);
|
|
1764
1772
|
|
|
1773
|
+
// src/agent-service.token.ts
|
|
1774
|
+
var AGENT_SERVICE = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent:agent-service");
|
|
1775
|
+
|
|
1765
1776
|
// src/agent.service.ts
|
|
1766
1777
|
var import_nestjs_agent_core16 = require("@dudousxd/nestjs-agent-core");
|
|
1767
1778
|
var import_common10 = require("@nestjs/common");
|
|
@@ -7338,6 +7349,10 @@ function sharedProviders(durable, engine) {
|
|
|
7338
7349
|
},
|
|
7339
7350
|
InlineAgentRunner,
|
|
7340
7351
|
AgentService,
|
|
7352
|
+
{
|
|
7353
|
+
provide: AGENT_SERVICE,
|
|
7354
|
+
useExisting: AgentService
|
|
7355
|
+
},
|
|
7341
7356
|
ActionProposalService,
|
|
7342
7357
|
ActionProposalWorkerService,
|
|
7343
7358
|
// Bound ALWAYS (durable or inline) — the console's cross-thread approvals inbox routes decisions
|
|
@@ -7405,6 +7420,7 @@ function exportsFor(engine) {
|
|
|
7405
7420
|
import_nestjs_agent_core40.AGENT_DEPS_FACTORY,
|
|
7406
7421
|
AgentDepsFactory2,
|
|
7407
7422
|
AgentService,
|
|
7423
|
+
AGENT_SERVICE,
|
|
7408
7424
|
ActionProposalService,
|
|
7409
7425
|
ActionProposalWorkerService,
|
|
7410
7426
|
ChatQueueService2,
|