@dream_engine/agent 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/collaboration.d.ts +75 -0
- package/dist/collaboration.d.ts.map +1 -0
- package/dist/collaboration.js +332 -0
- package/dist/collaboration.js.map +1 -0
- package/dist/engine.d.ts +126 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +241 -0
- package/dist/engine.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/local-model.d.ts +85 -0
- package/dist/local-model.d.ts.map +1 -0
- package/dist/local-model.js +183 -0
- package/dist/local-model.js.map +1 -0
- package/dist/mcp.d.ts +56 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/mcp.js +181 -0
- package/dist/mcp.js.map +1 -0
- package/dist/orchestrator.d.ts +166 -0
- package/dist/orchestrator.d.ts.map +1 -0
- package/dist/orchestrator.js +416 -0
- package/dist/orchestrator.js.map +1 -0
- package/dist/providers.d.ts +110 -0
- package/dist/providers.d.ts.map +1 -0
- package/dist/providers.js +148 -0
- package/dist/providers.js.map +1 -0
- package/dist/tools.d.ts +136 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +189 -0
- package/dist/tools.js.map +1 -0
- package/package.json +34 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CodingWithBashir
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../core/dist/errors.d.ts","../../core/dist/events.d.ts","../../core/dist/logger.d.ts","../../core/dist/redact.d.ts","../../core/dist/url.d.ts","../../core/dist/async.d.ts","../../core/dist/text.d.ts","../../core/dist/ids.d.ts","../../core/dist/schema.d.ts","../../core/dist/config.d.ts","../../core/dist/index.d.ts","../../storage/dist/sqlite.d.ts","../../storage/dist/stores.d.ts","../../storage/dist/index.d.ts","../src/local-model.ts","../src/tools.ts","../src/engine.ts","../src/providers.ts","../src/collaboration.ts","../src/mcp.ts","../src/orchestrator.ts","../src/index.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/abortcontroller.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/domexception.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/events.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/fetch.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/navigator.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/storage.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/web-globals/streams.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/inspector.generated.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/sqlite.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@22.20.7/node_modules/@types/node/index.d.ts"],"fileIdsList":[[91,137,138,140,157,158],[91,139,140,157,158],[140,157,158],[91,140,145,157,158,175],[91,140,141,146,151,157,158,160,172,183],[91,140,141,142,151,157,158,160],[91,140,157,158],[86,87,88,91,140,157,158],[91,140,143,157,158,184],[91,140,144,145,152,157,158,161],[91,140,145,157,158,172,180],[91,140,146,148,151,157,158,160],[91,139,140,147,157,158],[91,140,148,149,157,158],[91,140,150,151,157,158],[91,139,140,151,157,158],[91,140,151,152,153,157,158,172,183],[91,140,151,152,153,157,158,167,172,175],[91,132,140,148,151,154,157,158,160,172,183],[91,140,151,152,154,155,157,158,160,172,180,183],[91,140,154,156,157,158,172,180,183],[89,90,91,92,93,94,95,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189],[91,140,151,157,158],[91,140,157,158,159,183],[91,140,148,151,157,158,160,172],[91,140,157,158,161],[91,140,157,158,162],[91,139,140,157,158,163],[91,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189],[91,140,157,158,165],[91,140,157,158,166],[91,140,151,157,158,167,168],[91,140,157,158,167,169,184,186],[91,140,152,157,158],[91,140,151,157,158,172,173,175],[91,140,157,158,174,175],[91,140,157,158,172,173],[91,140,157,158,175],[91,140,157,158,176],[91,137,140,157,158,172,177,183],[91,140,151,157,158,178,179],[91,140,157,158,178,179],[91,140,145,157,158,160,172,180],[91,140,157,158,181],[91,140,157,158,160,182],[91,140,154,157,158,166,183],[91,140,145,157,158,184],[91,140,157,158,172,185],[91,140,157,158,159,186],[91,140,157,158,187],[91,132,140,157,158],[91,132,140,151,153,157,158,163,172,175,183,185,186,188],[91,140,157,158,172,189],[91,104,108,140,157,158,183],[91,104,140,157,158,172,183],[91,99,140,157,158],[91,101,104,140,157,158,180,183],[91,140,157,158,160,180],[91,140,157,158,190],[91,99,140,157,158,190],[91,101,104,140,157,158,160,183],[91,96,97,100,103,140,151,157,158,172,183],[91,104,111,140,157,158],[91,96,102,140,157,158],[91,104,125,126,140,157,158],[91,100,104,140,157,158,175,183,190],[91,125,140,157,158,190],[91,98,99,140,157,158,190],[91,104,140,157,158],[91,98,99,100,101,102,103,104,105,106,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,126,127,128,129,130,131,140,157,158],[91,104,119,140,157,158],[91,104,111,112,140,157,158],[91,102,104,112,113,140,157,158],[91,103,140,157,158],[91,96,99,104,140,157,158],[91,104,108,112,113,140,157,158],[91,108,140,157,158],[91,102,104,107,140,157,158,183],[91,96,101,104,111,140,157,158],[91,140,157,158,172],[91,99,104,125,140,157,158,188,190],[74,79,80,81,91,140,157,158],[74,77,78,79,91,140,157,158],[78,79,80,81,82,83,84,91,140,157,158],[74,91,140,157,158],[74,79,91,140,157,158,167,172],[74,78,79,80,81,91,140,157,158],[74,78,79,91,140,157,158],[64,91,140,157,158],[72,91,140,157,158],[64,65,66,67,68,69,70,71,72,73,91,140,157,158],[75,76,91,140,157,158],[91,140,157,158,171],[75,91,140,157,158]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2cd394618cdb4d16e0edc972f2ea83ecdd4f3a3f87807eb787d4659bc0b3ce50","impliedFormat":99},{"version":"7c36b560a10efd5a07449c959ef482b06c82a1b940f86bd9017303a02959a84f","impliedFormat":99},{"version":"ab85dd6c839ffaf796c6d1eb9d005c7b6e19a1c9dd6194ac9e28899f09400f59","impliedFormat":99},{"version":"1709904caba5a0995e696d79b0a397ac008a5b94839fa220657dedcfef725219","impliedFormat":99},{"version":"dca02cdbfea21cc04242e29c1ffe6585346b995a36f85f36284110ca3a8692dd","impliedFormat":99},{"version":"99fa96241066465ffcb013cf5d4f7cf2506d901cad368f75169254d384885498","impliedFormat":99},{"version":"2982305a090c8721d65e3a6ac76e18d8ecc508d570c2f404d734e72171b4fe6e","impliedFormat":99},{"version":"4ce051f4e765562370d3eea0511d8f169f66648a2032fb1f006ea5367401646b","impliedFormat":99},{"version":"62f4e7012819e61f5bf8f0da46576876cc04a2ab3adb5c39de55f0e217123b81","impliedFormat":99},{"version":"0fe8f6548895a15bc3e43972c1b4f6b3bbc6e42c88ff737bae4c5ccf529dde77","impliedFormat":99},{"version":"1d14b2d995a2eb2cbbba52bd719b67a59599967dcee4157b7ef374133ae03569","impliedFormat":99},{"version":"57b180e79dfe4bf734ec461dde227506951531dabb2bfb144ed66627fe8cdfd4","impliedFormat":99},{"version":"d6a2bdb4a2733bee9380a2eaed71e71144aee2e79c2dec692acf9038a6539844","impliedFormat":99},{"version":"ec5b76ec202d1d82f25f5899a0b7aabb41242c48cb28b016d3ee9b1a136bcd59","impliedFormat":99},{"version":"2c2f1624b7ec5a3dffdd2556bd266df2b558fb4eaa07b3453cdd1669100a37aa","signature":"9060bdd337326cb571600dbe4c79096b3d1accde2c563d834c50f19cf9de823e","impliedFormat":99},{"version":"d2b46a077ecb804cfb2bc60c6282e9df98feb824ef8754b0a04d15b170cd2440","signature":"e7f45a4319c9505657bf8b69b7d4b7001a3c78566ee6e3ff707ea014d7c1a7a3","impliedFormat":99},{"version":"e052ffa22845c06a76b9ad8a61bb85f37cab7e3a01edce18f901fd7ea0f2541f","signature":"b1233b5a732091c32efe5a27e62fb6be98b36fe58c654e762402ac063804fb3b","impliedFormat":99},{"version":"99dc781a8410661587155dad785e3b5519fec4de5e4d4a1fefc48188e52a9b3d","signature":"cdcc625d0d8841102cc55313de3a4f9f3d726182a20dc0ebec3d25b81e04133f","impliedFormat":99},{"version":"cc3cb069d5aa801f5e205750ffa519ee38dab174e4486061f23231dc0a694909","signature":"be01603459b51d10bbc4d0fa16c10a158001aa9dcf070f3324f482d036d37446","impliedFormat":99},{"version":"0e7b4229fd94667b4139597ae74d0de9df4f9e9c19307a8a9af2d84e5bace4e5","signature":"2c9be497bea44a9e2c3ee8a113fe1fce11b3bcf0446ced4c5ea456176acd9153","impliedFormat":99},{"version":"4cb29c2772194334989c46289ed85945f528e2b2572287f8cf458c49771e7000","signature":"d67699a24a779c1646bfcdb28fc933a206cf410261d9491cf592c15417d49129","impliedFormat":99},{"version":"ae4838fd5ebb295efb470ff8eb3ff3a49a10f78d76029d82f1a747379f24d657","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d97fb21da858fb18b8ae72c314e9743fd52f73ebe2764e12af1db32fc03f853f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"913be43dad2a40e500104700aa26cfb5c51a976114bedf19624de43fdae7474f","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"78dbea00e90d2df8ea3dbef0cc379d95b8be9b71cd6bde4c28728f306811803b","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e1e46d0a9837ee058c100501080c920fa98081ea3956af0374308ba6f22a33e","impliedFormat":1},{"version":"272ca407e0c9068bdc5152552d876e68037ceae3de62e529306403e973dec8e1","impliedFormat":1},{"version":"fa7834c715d5357e4540cee40ce96c3250ddb67a7b879a6b7fa0e86d6696f121","impliedFormat":1},{"version":"22dfb07a7ab15b66ac043829056fe70124844636ae719551812ac631ba04985b","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6f137d651076822d4fe884287e68fd61785a0d3d1fdb250a5059b691fa897db","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7fcccb7463007c1a6e877709650c26cd297ef1b2679d0173157ee874bf16517","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"0cb167c371eaa8c869f8a7656a7296f2e4fae43b4d8b803a680236b24794e5f9","impliedFormat":1},{"version":"0a839dba0287cc0481ad4beedd48a1c64acf1e212ae865d1315f7007ca215161","impliedFormat":1},{"version":"38dc4655376cd1a4bd6bb3763d92949233e33d38d3dd3cbea7bbf218175a38ef","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"208a6a0bfb227bdf8fb964799d0a206c75cf03ccd72e63bf5495c9331354c6d6","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"48a679952eefe4cb776d5a0e1ccba2d3eb53b57448bbb7abc1fcebcbd5440188","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"2d14da6ecb49bf828d83948765ec2d3a579d476bbb9645e749610baa6ec880ca","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"33f03c0429f2c638069fc1186e2eccd96370c91fb9d8d7a69c5241bb31fc3d46","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"0aef708fb4c7a6b915e8305cbfac40cd207b032dbaabe9a01889a5fff3254681","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"ad9bdafb4e7abf14cc53ce7970486a84c87831e62891e5dfe798ddcd55e84701","affectsGlobalScope":true,"impliedFormat":1},{"version":"45479f65af737a3e5c26d8772bd8ab1aa8bebbd09c1a808c2b3faddb9b84afbb","impliedFormat":1},{"version":"71d3ae6a5e73ca4130762560425e00984ebaff64d5353a3333d1bb7eb86ef336","impliedFormat":1}],"root":[[78,85]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":false,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[137,1],[138,1],[139,2],[91,3],[140,4],[141,5],[142,6],[86,7],[89,8],[87,7],[88,7],[143,9],[144,10],[145,11],[146,12],[147,13],[148,14],[149,14],[150,15],[151,16],[152,17],[153,18],[92,7],[90,7],[154,19],[155,20],[156,21],[190,22],[157,23],[158,7],[159,24],[160,25],[161,26],[162,27],[163,28],[164,29],[165,30],[166,31],[167,32],[168,32],[169,33],[170,7],[171,34],[172,35],[174,36],[173,37],[175,38],[176,39],[177,40],[178,41],[179,42],[180,43],[181,44],[182,45],[183,46],[184,47],[185,48],[186,49],[187,50],[93,7],[94,7],[95,7],[133,51],[134,7],[135,7],[136,38],[188,52],[189,53],[62,7],[63,7],[11,7],[12,7],[14,7],[13,7],[2,7],[15,7],[16,7],[17,7],[18,7],[19,7],[20,7],[21,7],[22,7],[3,7],[23,7],[24,7],[4,7],[25,7],[29,7],[26,7],[27,7],[28,7],[30,7],[31,7],[32,7],[5,7],[33,7],[34,7],[35,7],[36,7],[6,7],[40,7],[37,7],[38,7],[39,7],[41,7],[7,7],[42,7],[47,7],[48,7],[43,7],[44,7],[45,7],[46,7],[8,7],[52,7],[49,7],[50,7],[51,7],[53,7],[9,7],[54,7],[55,7],[56,7],[58,7],[57,7],[59,7],[60,7],[10,7],[61,7],[1,7],[111,54],[121,55],[110,54],[131,56],[102,57],[101,58],[130,59],[124,60],[129,61],[104,62],[118,63],[103,64],[127,65],[99,66],[98,59],[128,67],[100,68],[105,69],[106,7],[109,69],[96,7],[132,70],[122,71],[113,72],[114,73],[116,74],[112,75],[115,76],[125,59],[107,77],[108,78],[117,79],[97,80],[120,71],[119,69],[123,7],[126,81],[82,82],[80,83],[85,84],[78,85],[83,86],[84,87],[81,88],[79,85],[69,89],[73,90],[64,7],[65,7],[71,7],[74,91],[66,7],[67,7],[72,7],[70,7],[68,7],[77,92],[75,93],[76,94]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { TaskStore, type AgentTask } from './engine.js';
|
|
2
|
+
import type { ToolRegistry, AgentResult } from './tools.js';
|
|
3
|
+
import { type ReasoningModel, type Observation, type ProviderKind } from './providers.js';
|
|
4
|
+
export type { ReasoningModel, ReasoningInput, ModelDecision, Observation } from './providers.js';
|
|
5
|
+
export interface OrchestratorOptions {
|
|
6
|
+
/** Maximum number of actions before the task is failed. */
|
|
7
|
+
maxSteps: number;
|
|
8
|
+
/** Per-step timeout in ms. */
|
|
9
|
+
stepTimeoutMs?: number;
|
|
10
|
+
/** Persist tasks to a TaskStore (enables resume after restart). */
|
|
11
|
+
store?: TaskStore;
|
|
12
|
+
}
|
|
13
|
+
/** Progress callback invoked after each executed step. */
|
|
14
|
+
export type ProgressCallback = (step: StepRecord, task: AgentTask) => void | Promise<void>;
|
|
15
|
+
/** A record of one executed action within a task. */
|
|
16
|
+
export interface StepRecord {
|
|
17
|
+
index: number;
|
|
18
|
+
tool: string;
|
|
19
|
+
args: Record<string, unknown>;
|
|
20
|
+
status: 'ok' | 'failed' | 'skipped';
|
|
21
|
+
reasoning: string;
|
|
22
|
+
summary: string;
|
|
23
|
+
observation: Observation;
|
|
24
|
+
result?: AgentResult;
|
|
25
|
+
startedAt: string;
|
|
26
|
+
finishedAt: string;
|
|
27
|
+
durationMs: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The shared adaptive orchestrator. Drives Agent 1 (and Agent 2) through a continuous
|
|
31
|
+
* **observe → reason → act → observe** loop:
|
|
32
|
+
*
|
|
33
|
+
* 1. Build a {@link ReasoningInput} from the goal, available tools and observation history.
|
|
34
|
+
* 2. Ask the {@link ReasoningModel} for the next decision (tool / done / needsHelp).
|
|
35
|
+
* 3. Execute the tool through the {@link ToolRegistry} (validated, permission-checked).
|
|
36
|
+
* 4. Capture a fresh observation of the result and feed it back.
|
|
37
|
+
* 5. Repeat until done, needsHelp (pause), the step budget, or cancellation.
|
|
38
|
+
*
|
|
39
|
+
* A failed tool call does NOT end the task — the observation is recorded and the loop
|
|
40
|
+
* continues so the model can adapt. `needsHelp` pauses the task and saves a checkpoint
|
|
41
|
+
* so it can be resumed after human intervention.
|
|
42
|
+
*/
|
|
43
|
+
export declare class CollaborationOrchestrator {
|
|
44
|
+
private readonly tools;
|
|
45
|
+
private readonly model;
|
|
46
|
+
private readonly options;
|
|
47
|
+
private readonly tasks;
|
|
48
|
+
private readonly steps;
|
|
49
|
+
private readonly controllers;
|
|
50
|
+
constructor(tools: ToolRegistry, model: ReasoningModel, options: OrchestratorOptions);
|
|
51
|
+
/** The list of tool names available to the agent. */
|
|
52
|
+
get toolNames(): string[];
|
|
53
|
+
/** Runs a goal through the reasoning loop. Returns the final task. */
|
|
54
|
+
run(goal: string, options?: {
|
|
55
|
+
signal?: AbortSignal;
|
|
56
|
+
onStep?: ProgressCallback;
|
|
57
|
+
id?: string;
|
|
58
|
+
}): Promise<AgentTask>;
|
|
59
|
+
/** Resumes a paused task. Returns the final task. */
|
|
60
|
+
resume(taskId: string, options?: {
|
|
61
|
+
signal?: AbortSignal;
|
|
62
|
+
onStep?: ProgressCallback;
|
|
63
|
+
}): Promise<AgentTask>;
|
|
64
|
+
/** Stops a running task. */
|
|
65
|
+
stop(taskId: string): void;
|
|
66
|
+
/** Stops all running tasks. */
|
|
67
|
+
stopAll(): void;
|
|
68
|
+
/** Returns a task by id. */
|
|
69
|
+
task(taskId: string): AgentTask | null;
|
|
70
|
+
/** Returns the step records for a task. */
|
|
71
|
+
stepsFor(taskId: string): StepRecord[];
|
|
72
|
+
private withTimeout;
|
|
73
|
+
}
|
|
74
|
+
export type { ProviderKind };
|
|
75
|
+
//# sourceMappingURL=collaboration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../src/collaboration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAiB,MAAM,aAAa,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AAExB,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEjG,MAAM,WAAW,mBAAmB;IAClC,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mEAAmE;IACnE,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,0DAA0D;AAC1D,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE3F,qDAAqD;AACrD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,MAAM,EAAE,IAAI,GAAG,QAAQ,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MA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ationError, RuntimeError, ValidationError, serializeError } from '@dream_engine/core';
|
|
2
|
+
import { TaskStore } from './engine.js';
|
|
3
|
+
import {} from './providers.js';
|
|
4
|
+
/**
|
|
5
|
+
* The shared adaptive orchestrator. Drives Agent 1 (and Agent 2) through a continuous
|
|
6
|
+
* **observe → reason → act → observe** loop:
|
|
7
|
+
*
|
|
8
|
+
* 1. Build a {@link ReasoningInput} from the goal, available tools and observation history.
|
|
9
|
+
* 2. Ask the {@link ReasoningModel} for the next decision (tool / done / needsHelp).
|
|
10
|
+
* 3. Execute the tool through the {@link ToolRegistry} (validated, permission-checked).
|
|
11
|
+
* 4. Capture a fresh observation of the result and feed it back.
|
|
12
|
+
* 5. Repeat until done, needsHelp (pause), the step budget, or cancellation.
|
|
13
|
+
*
|
|
14
|
+
* A failed tool call does NOT end the task — the observation is recorded and the loop
|
|
15
|
+
* continues so the model can adapt. `needsHelp` pauses the task and saves a checkpoint
|
|
16
|
+
* so it can be resumed after human intervention.
|
|
17
|
+
*/
|
|
18
|
+
export class CollaborationOrchestrator {
|
|
19
|
+
tools;
|
|
20
|
+
model;
|
|
21
|
+
options;
|
|
22
|
+
tasks = new Map();
|
|
23
|
+
steps = new Map();
|
|
24
|
+
controllers = new Map();
|
|
25
|
+
constructor(tools, model, options) {
|
|
26
|
+
this.tools = tools;
|
|
27
|
+
this.model = model;
|
|
28
|
+
this.options = options;
|
|
29
|
+
if (!model)
|
|
30
|
+
throw new ConfigurationError('CollaborationOrchestrator requires a ReasoningModel. No default model is hardcoded.');
|
|
31
|
+
if (options.store) {
|
|
32
|
+
for (const task of options.store.load()) {
|
|
33
|
+
this.tasks.set(task.id, task);
|
|
34
|
+
this.steps.set(task.id, []);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/** The list of tool names available to the agent. */
|
|
39
|
+
get toolNames() {
|
|
40
|
+
return this.tools.list().map((t) => t.name);
|
|
41
|
+
}
|
|
42
|
+
/** Runs a goal through the reasoning loop. Returns the final task. */
|
|
43
|
+
async run(goal, options = {}) {
|
|
44
|
+
if (!goal?.trim())
|
|
45
|
+
throw new ValidationError('Goal is required');
|
|
46
|
+
const id = options.id ?? `agent-${goal.slice(0, 24).replace(/[^a-zA-Z0-9]+/g, '-').replace(/^-+|-+$/g, '') || 'goal'}-${Date.now().toString(36)}`;
|
|
47
|
+
const task = {
|
|
48
|
+
id,
|
|
49
|
+
owner: null,
|
|
50
|
+
goal: goal.trim(),
|
|
51
|
+
status: 'running',
|
|
52
|
+
steps: [],
|
|
53
|
+
cursor: 0,
|
|
54
|
+
createdAt: new Date().toISOString(),
|
|
55
|
+
startedAt: new Date().toISOString(),
|
|
56
|
+
finishedAt: null,
|
|
57
|
+
error: null,
|
|
58
|
+
summary: null,
|
|
59
|
+
};
|
|
60
|
+
this.tasks.set(id, task);
|
|
61
|
+
this.steps.set(id, []);
|
|
62
|
+
this.options.store?.save(task);
|
|
63
|
+
const controller = new AbortController();
|
|
64
|
+
if (options.signal) {
|
|
65
|
+
if (options.signal.aborted)
|
|
66
|
+
controller.abort();
|
|
67
|
+
options.signal.addEventListener('abort', () => controller.abort(), { once: true });
|
|
68
|
+
}
|
|
69
|
+
this.controllers.set(id, controller);
|
|
70
|
+
const history = [];
|
|
71
|
+
const stepRecords = [];
|
|
72
|
+
try {
|
|
73
|
+
for (let i = 0; i < this.options.maxSteps; i++) {
|
|
74
|
+
if (controller.signal.aborted) {
|
|
75
|
+
task.status = 'cancelled';
|
|
76
|
+
task.error = serializeError(new RuntimeError('Task cancelled'));
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
const input = {
|
|
80
|
+
goal: task.goal,
|
|
81
|
+
tools: this.tools.list().map((t) => ({ name: t.name, description: t.description })),
|
|
82
|
+
history,
|
|
83
|
+
stepsTaken: i,
|
|
84
|
+
maxSteps: this.options.maxSteps,
|
|
85
|
+
};
|
|
86
|
+
let decision;
|
|
87
|
+
try {
|
|
88
|
+
decision = await this.withTimeout(this.model.nextAction(input), this.options.stepTimeoutMs ?? 30_000, id);
|
|
89
|
+
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
if (error instanceof ConfigurationError)
|
|
92
|
+
throw error;
|
|
93
|
+
// Model call failed — record and try to continue; if it's a hard error, fail.
|
|
94
|
+
history.push({ tool: 'reason', ok: false, summary: `Model error: ${error.message}`, at: new Date().toISOString() });
|
|
95
|
+
continue;
|
|
96
|
+
}
|
|
97
|
+
if (decision.action === 'done') {
|
|
98
|
+
task.status = 'completed';
|
|
99
|
+
task.summary = decision.summary;
|
|
100
|
+
task.finishedAt = new Date().toISOString();
|
|
101
|
+
this.options.store?.save(task);
|
|
102
|
+
return { ...task };
|
|
103
|
+
}
|
|
104
|
+
if (decision.action === 'needsHelp') {
|
|
105
|
+
task.status = 'paused';
|
|
106
|
+
task.summary = decision.reason;
|
|
107
|
+
task.finishedAt = new Date().toISOString();
|
|
108
|
+
this.options.store?.save(task);
|
|
109
|
+
return { ...task };
|
|
110
|
+
}
|
|
111
|
+
// Execute the tool.
|
|
112
|
+
const startedAt = new Date().toISOString();
|
|
113
|
+
const started = Date.now();
|
|
114
|
+
const result = await this.tools.call(decision.tool, decision.args, { signal: controller.signal });
|
|
115
|
+
const finishedAt = new Date().toISOString();
|
|
116
|
+
const observation = {
|
|
117
|
+
tool: decision.tool,
|
|
118
|
+
ok: result.ok,
|
|
119
|
+
summary: result.ok ? summarizeResult(result) : `Failed: ${result.error?.message ?? 'unknown error'}`,
|
|
120
|
+
result,
|
|
121
|
+
at: finishedAt,
|
|
122
|
+
};
|
|
123
|
+
history.push(observation);
|
|
124
|
+
const record = {
|
|
125
|
+
index: i,
|
|
126
|
+
tool: decision.tool,
|
|
127
|
+
args: decision.args,
|
|
128
|
+
status: result.ok ? 'ok' : 'failed',
|
|
129
|
+
reasoning: decision.reasoning,
|
|
130
|
+
summary: observation.summary,
|
|
131
|
+
observation,
|
|
132
|
+
result,
|
|
133
|
+
startedAt,
|
|
134
|
+
finishedAt,
|
|
135
|
+
durationMs: Date.now() - started,
|
|
136
|
+
};
|
|
137
|
+
stepRecords.push(record);
|
|
138
|
+
task.steps.push({
|
|
139
|
+
id: `step-${i}`,
|
|
140
|
+
tool: decision.tool,
|
|
141
|
+
args: decision.args,
|
|
142
|
+
description: decision.reasoning,
|
|
143
|
+
status: result.ok ? 'completed' : 'failed',
|
|
144
|
+
result,
|
|
145
|
+
startedAt,
|
|
146
|
+
finishedAt,
|
|
147
|
+
});
|
|
148
|
+
this.steps.set(id, stepRecords);
|
|
149
|
+
this.options.store?.save(task);
|
|
150
|
+
await options.onStep?.(record, { ...task });
|
|
151
|
+
// A failed action does not end the loop — the model sees the failure and adapts.
|
|
152
|
+
}
|
|
153
|
+
// Step budget exhausted.
|
|
154
|
+
task.status = 'failed';
|
|
155
|
+
task.error = serializeError(new RuntimeError(`Task exceeded maximum steps (${this.options.maxSteps})`));
|
|
156
|
+
task.finishedAt = new Date().toISOString();
|
|
157
|
+
this.options.store?.save(task);
|
|
158
|
+
return { ...task };
|
|
159
|
+
}
|
|
160
|
+
catch (error) {
|
|
161
|
+
if (error instanceof ConfigurationError)
|
|
162
|
+
throw error;
|
|
163
|
+
task.status = 'failed';
|
|
164
|
+
task.error = serializeError(error);
|
|
165
|
+
task.finishedAt = new Date().toISOString();
|
|
166
|
+
this.options.store?.save(task);
|
|
167
|
+
return { ...task };
|
|
168
|
+
}
|
|
169
|
+
finally {
|
|
170
|
+
this.controllers.delete(id);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/** Resumes a paused task. Returns the final task. */
|
|
174
|
+
async resume(taskId, options = {}) {
|
|
175
|
+
const task = this.tasks.get(taskId);
|
|
176
|
+
if (!task)
|
|
177
|
+
throw new RuntimeError(`Task ${taskId} not found`);
|
|
178
|
+
if (task.status === 'completed' || task.status === 'cancelled')
|
|
179
|
+
return { ...task };
|
|
180
|
+
if (task.status !== 'paused') {
|
|
181
|
+
task.status = 'running';
|
|
182
|
+
task.startedAt ??= new Date().toISOString();
|
|
183
|
+
}
|
|
184
|
+
this.options.store?.save(task);
|
|
185
|
+
const controller = new AbortController();
|
|
186
|
+
if (options.signal)
|
|
187
|
+
options.signal.addEventListener('abort', () => controller.abort(), { once: true });
|
|
188
|
+
this.controllers.set(taskId, controller);
|
|
189
|
+
const history = this.steps.get(taskId)?.map((s) => s.observation) ?? [];
|
|
190
|
+
try {
|
|
191
|
+
for (let i = task.steps.length; i < this.options.maxSteps; i++) {
|
|
192
|
+
if (controller.signal.aborted) {
|
|
193
|
+
task.status = 'cancelled';
|
|
194
|
+
task.error = serializeError(new RuntimeError('Task cancelled'));
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
const input = {
|
|
198
|
+
goal: task.goal,
|
|
199
|
+
tools: this.tools.list().map((t) => ({ name: t.name, description: t.description })),
|
|
200
|
+
history,
|
|
201
|
+
stepsTaken: i,
|
|
202
|
+
maxSteps: this.options.maxSteps,
|
|
203
|
+
};
|
|
204
|
+
const decision = await this.withTimeout(this.model.nextAction(input), this.options.stepTimeoutMs ?? 30_000, taskId);
|
|
205
|
+
if (decision.action === 'done') {
|
|
206
|
+
task.status = 'completed';
|
|
207
|
+
task.summary = decision.summary;
|
|
208
|
+
task.finishedAt = new Date().toISOString();
|
|
209
|
+
this.options.store?.save(task);
|
|
210
|
+
return { ...task };
|
|
211
|
+
}
|
|
212
|
+
if (decision.action === 'needsHelp') {
|
|
213
|
+
task.status = 'paused';
|
|
214
|
+
task.summary = decision.reason;
|
|
215
|
+
task.finishedAt = new Date().toISOString();
|
|
216
|
+
this.options.store?.save(task);
|
|
217
|
+
return { ...task };
|
|
218
|
+
}
|
|
219
|
+
const startedAt = new Date().toISOString();
|
|
220
|
+
const started = Date.now();
|
|
221
|
+
const result = await this.tools.call(decision.tool, decision.args, { signal: controller.signal });
|
|
222
|
+
const finishedAt = new Date().toISOString();
|
|
223
|
+
const observation = {
|
|
224
|
+
tool: decision.tool,
|
|
225
|
+
ok: result.ok,
|
|
226
|
+
summary: result.ok ? summarizeResult(result) : `Failed: ${result.error?.message ?? 'unknown error'}`,
|
|
227
|
+
result,
|
|
228
|
+
at: finishedAt,
|
|
229
|
+
};
|
|
230
|
+
history.push(observation);
|
|
231
|
+
const record = {
|
|
232
|
+
index: i,
|
|
233
|
+
tool: decision.tool,
|
|
234
|
+
args: decision.args,
|
|
235
|
+
status: result.ok ? 'ok' : 'failed',
|
|
236
|
+
reasoning: decision.reasoning,
|
|
237
|
+
summary: observation.summary,
|
|
238
|
+
observation,
|
|
239
|
+
result,
|
|
240
|
+
startedAt,
|
|
241
|
+
finishedAt,
|
|
242
|
+
durationMs: Date.now() - started,
|
|
243
|
+
};
|
|
244
|
+
task.steps.push({
|
|
245
|
+
id: `step-${i}`,
|
|
246
|
+
tool: decision.tool,
|
|
247
|
+
args: decision.args,
|
|
248
|
+
description: decision.reasoning,
|
|
249
|
+
status: result.ok ? 'completed' : 'failed',
|
|
250
|
+
result,
|
|
251
|
+
startedAt,
|
|
252
|
+
finishedAt,
|
|
253
|
+
});
|
|
254
|
+
this.options.store?.save(task);
|
|
255
|
+
await options.onStep?.(record, { ...task });
|
|
256
|
+
}
|
|
257
|
+
task.status = 'failed';
|
|
258
|
+
task.error = serializeError(new RuntimeError(`Task exceeded maximum steps (${this.options.maxSteps})`));
|
|
259
|
+
task.finishedAt = new Date().toISOString();
|
|
260
|
+
this.options.store?.save(task);
|
|
261
|
+
return { ...task };
|
|
262
|
+
}
|
|
263
|
+
catch (error) {
|
|
264
|
+
if (error instanceof ConfigurationError)
|
|
265
|
+
throw error;
|
|
266
|
+
task.status = 'failed';
|
|
267
|
+
task.error = serializeError(error);
|
|
268
|
+
task.finishedAt = new Date().toISOString();
|
|
269
|
+
this.options.store?.save(task);
|
|
270
|
+
return { ...task };
|
|
271
|
+
}
|
|
272
|
+
finally {
|
|
273
|
+
this.controllers.delete(taskId);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
/** Stops a running task. */
|
|
277
|
+
stop(taskId) {
|
|
278
|
+
this.controllers.get(taskId)?.abort();
|
|
279
|
+
const task = this.tasks.get(taskId);
|
|
280
|
+
if (task && task.status === 'running') {
|
|
281
|
+
task.status = 'cancelled';
|
|
282
|
+
task.error = serializeError(new RuntimeError('Task cancelled'));
|
|
283
|
+
task.finishedAt = new Date().toISOString();
|
|
284
|
+
this.options.store?.save(task);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
/** Stops all running tasks. */
|
|
288
|
+
stopAll() {
|
|
289
|
+
for (const id of [...this.controllers.keys()])
|
|
290
|
+
this.stop(id);
|
|
291
|
+
}
|
|
292
|
+
/** Returns a task by id. */
|
|
293
|
+
task(taskId) {
|
|
294
|
+
return this.tasks.get(taskId) ? { ...this.tasks.get(taskId) } : null;
|
|
295
|
+
}
|
|
296
|
+
/** Returns the step records for a task. */
|
|
297
|
+
stepsFor(taskId) {
|
|
298
|
+
return this.steps.get(taskId) ? [...this.steps.get(taskId)] : [];
|
|
299
|
+
}
|
|
300
|
+
async withTimeout(promise, ms, taskId) {
|
|
301
|
+
let timer;
|
|
302
|
+
try {
|
|
303
|
+
return await Promise.race([
|
|
304
|
+
promise,
|
|
305
|
+
new Promise((_, reject) => {
|
|
306
|
+
timer = setTimeout(() => reject(new RuntimeError(`Step timed out after ${ms}ms`, { details: { taskId } })), ms);
|
|
307
|
+
}),
|
|
308
|
+
]);
|
|
309
|
+
}
|
|
310
|
+
finally {
|
|
311
|
+
if (timer)
|
|
312
|
+
clearTimeout(timer);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
function summarizeResult(result) {
|
|
317
|
+
const data = result.data;
|
|
318
|
+
if (data == null)
|
|
319
|
+
return `${result.tool} succeeded`;
|
|
320
|
+
if (typeof data === 'string')
|
|
321
|
+
return `${result.tool}: ${data.slice(0, 200)}`;
|
|
322
|
+
if (typeof data === 'object') {
|
|
323
|
+
try {
|
|
324
|
+
return `${result.tool}: ${JSON.stringify(data).slice(0, 200)}`;
|
|
325
|
+
}
|
|
326
|
+
catch {
|
|
327
|
+
return `${result.tool} succeeded`;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return `${result.tool} succeeded`;
|
|
331
|
+
}
|
|
332
|
+
//# sourceMappingURL=collaboration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collaboration.js","sourceRoot":"","sources":["../src/collaboration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACvG,OAAO,EAAE,SAAS,EAAiC,MAAM,aAAa,CAAC;AAEvE,OAAO,EAMN,MAAM,gBAAgB,CAAC;AA+BxB;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,yBAAyB;IAMjB;IACA;IACA;IAPF,KAAK,GAAG,IAAI,GAAG,EAAqB,CAAC;IACrC,KAAK,GAAG,IAAI,GAAG,EAAwB,CAAC;IACxC,WAAW,GAAG,IAAI,GAAG,EAA2B,CAAC;IAElE,YACmB,KAAmB,EACnB,KAAqB,EACrB,OAA4B;QAF5B,UAAK,GAAL,KAAK,CAAc;QACnB,UAAK,GAAL,KAAK,CAAgB;QACrB,YAAO,GAAP,OAAO,CAAqB;QAE7C,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,kBAAkB,CAAC,qFAAqF,CAAC,CAAC;QAChI,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;YAClB,KAAK,MAAM,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;gBACxC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;gBAC9B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC;IACH,CAAC;IAED,qDAAqD;IACrD,IAAI,SAAS;QACX,OAA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