@dudousxd/nestjs-agent 0.3.1 → 0.3.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/{agent-deps.factory-DpVkZYCy.d.cts → agent-deps.factory-D4KyREOv.d.cts} +11 -0
- package/dist/{agent-deps.factory-DpVkZYCy.d.ts → agent-deps.factory-D4KyREOv.d.ts} +11 -0
- package/dist/durable/index.cjs +336 -245
- package/dist/durable/index.cjs.map +1 -1
- package/dist/durable/index.d.cts +4 -4
- package/dist/durable/index.d.ts +4 -4
- package/dist/durable/index.js +279 -188
- package/dist/durable/index.js.map +1 -1
- package/dist/index.cjs +325 -243
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +268 -186
- package/dist/index.js.map +1 -1
- package/dist/sink-redis/index.cjs +144 -0
- package/dist/sink-redis/index.cjs.map +1 -0
- package/dist/sink-redis/index.d.cts +39 -0
- package/dist/sink-redis/index.d.ts +39 -0
- package/dist/sink-redis/index.js +119 -0
- package/dist/sink-redis/index.js.map +1 -0
- package/package.json +20 -5
|
@@ -140,6 +140,17 @@ interface AgentModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
|
140
140
|
* the runner. Requires importing `AgentDurableModule` and a configured `DurableModule`.
|
|
141
141
|
*/
|
|
142
142
|
durable?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Set when `AGENT_STORE` is bound by a globally-imported store module (e.g.
|
|
145
|
+
* `MikroOrmAgentStoreModule.forFeature()`) instead of returned as `store` from `useFactory`.
|
|
146
|
+
*
|
|
147
|
+
* `forRoot` decides this synchronously (`store` present or not), but the async factory resolves
|
|
148
|
+
* too late to inspect — so by default `forRootAsync` binds `AGENT_STORE` from the factory result,
|
|
149
|
+
* which would shadow a global store binding with `undefined` when the factory omits `store`. Set
|
|
150
|
+
* this to `true` to skip the local binding and defer to the global one. Leave it unset (and return
|
|
151
|
+
* `store` from the factory) when the store is constructed inside the factory.
|
|
152
|
+
*/
|
|
153
|
+
externalStore?: boolean;
|
|
143
154
|
}
|
|
144
155
|
|
|
145
156
|
/** The synthesized `agent`-kind tool name an orchestrator uses to hand off to `target`. */
|
|
@@ -140,6 +140,17 @@ interface AgentModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
|
140
140
|
* the runner. Requires importing `AgentDurableModule` and a configured `DurableModule`.
|
|
141
141
|
*/
|
|
142
142
|
durable?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Set when `AGENT_STORE` is bound by a globally-imported store module (e.g.
|
|
145
|
+
* `MikroOrmAgentStoreModule.forFeature()`) instead of returned as `store` from `useFactory`.
|
|
146
|
+
*
|
|
147
|
+
* `forRoot` decides this synchronously (`store` present or not), but the async factory resolves
|
|
148
|
+
* too late to inspect — so by default `forRootAsync` binds `AGENT_STORE` from the factory result,
|
|
149
|
+
* which would shadow a global store binding with `undefined` when the factory omits `store`. Set
|
|
150
|
+
* this to `true` to skip the local binding and defer to the global one. Leave it unset (and return
|
|
151
|
+
* `store` from the factory) when the store is constructed inside the factory.
|
|
152
|
+
*/
|
|
153
|
+
externalStore?: boolean;
|
|
143
154
|
}
|
|
144
155
|
|
|
145
156
|
/** The synthesized `agent`-kind tool name an orchestrator uses to hand off to `target`. */
|