@capybara-hq/kernel 0.1.0-rc.125 → 0.1.0-rc.127
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/bootstrap.json +3 -3
- package/dist/catalog/catalog.module.js +0 -3
- package/dist/catalog/org-catalog.service.d.ts +0 -2
- package/dist/catalog/org-catalog.service.js +0 -4
- package/dist/catalog/org-extension.controller.d.ts +5 -9
- package/dist/catalog/org-extension.controller.js +22 -22
- package/dist/catalog/org-extension.schemas.d.ts +0 -1
- package/dist/catalog/org-extension.schemas.js +0 -2
- package/dist/catalog/plugin-install.d.ts +4 -1
- package/dist/catalog/plugin-install.js +4 -1
- package/dist/conversations/events.d.ts +10 -154
- package/dist/conversations/events.js +8 -83
- package/dist/db/kernel-schema.d.ts +7 -107
- package/dist/devices/conversation-devices.d.ts +1 -2
- package/dist/devices/devices.service.d.ts +8 -1
- package/dist/devices/devices.service.js +1 -1
- package/dist/errors.d.ts +5 -0
- package/dist/errors.js +5 -0
- package/dist/evals/recorded-permission-context.js +1 -3
- package/dist/evals/recorded-tools.d.ts +3 -4
- package/dist/evals/recorded-tools.js +6 -7
- package/dist/extensions/org-config.d.ts +35 -8
- package/dist/extensions/org-config.js +61 -14
- package/dist/extensions/plugin-items.d.ts +16 -0
- package/dist/extensions/plugin-items.js +35 -0
- package/dist/platform/operation.d.ts +0 -2
- package/dist/platform/ops/extensions.ops.d.ts +4 -6
- package/dist/platform/ops/extensions.ops.js +17 -34
- package/dist/runtime/context/build.d.ts +1 -1
- package/dist/runtime/context/build.js +1 -10
- package/dist/runtime/context/device-paths.d.ts +5 -82
- package/dist/runtime/context/device-paths.js +3 -174
- package/dist/runtime/context/permission-profile.d.ts +3 -13
- package/dist/runtime/context/permission-profile.js +9 -26
- package/dist/runtime/permission-context.service.js +3 -4
- package/dist/runtime/run-worker.js +6 -5
- package/package.json +1 -1
- package/src/migrations/0210_normalize_conversation_history.sql +1012 -0
- package/src/migrations/0211_pre_release_cleanup.sql +154 -0
- package/dist/catalog/org-extension-switch.d.ts +0 -41
- package/dist/catalog/org-extension-switch.js +0 -123
|
@@ -640,9 +640,9 @@ let RunWorker = class RunWorker {
|
|
|
640
640
|
const row = await dispatchOfChildRun(this.db, runId);
|
|
641
641
|
const otherAgent = started.payload.template.source === "agent";
|
|
642
642
|
const parentConversationId = row?.parentConversationId ?? started.payload.parent.conversationId;
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
const depth =
|
|
643
|
+
if (conv.subagent_depth < 1)
|
|
644
|
+
throw new Error(`Invalid depth for sub-agent conversation ${conversationId}`);
|
|
645
|
+
const depth = conv.subagent_depth - 1;
|
|
646
646
|
const rootConversationId = depth === 0
|
|
647
647
|
? parentConversationId
|
|
648
648
|
: await rootConversationOf(this.db, parentConversationId);
|
|
@@ -996,8 +996,9 @@ let RunWorker = class RunWorker {
|
|
|
996
996
|
async executeCompaction(run, conv, agent, saved, startedAt, state) {
|
|
997
997
|
const runId = run.id;
|
|
998
998
|
const conversationId = conv.id;
|
|
999
|
-
|
|
1000
|
-
|
|
999
|
+
const origin = run.compact_origin;
|
|
1000
|
+
if (origin === null)
|
|
1001
|
+
throw new Error(`Missing origin for compact run ${runId}`);
|
|
1001
1002
|
const existingStart = await this.eventLog.findByIdem(conversationId, `run_started:${runId}`);
|
|
1002
1003
|
if (run.status === "queued" || startedAt === null) {
|
|
1003
1004
|
if (!existingStart) {
|
package/package.json
CHANGED