agent-transport-system 0.7.69 → 0.7.70
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/ats.js +18 -10
- package/dist/ats.js.map +1 -1
- package/package.json +2 -2
package/dist/ats.js
CHANGED
|
@@ -30,7 +30,7 @@ import { Box, Container, Editor, Key, ProcessTerminal, TUI, Text, getEditorKeybi
|
|
|
30
30
|
import { ReadStream, WriteStream } from "node:tty";
|
|
31
31
|
|
|
32
32
|
//#region package.json
|
|
33
|
-
var version = "0.7.
|
|
33
|
+
var version = "0.7.70";
|
|
34
34
|
var package_default = {
|
|
35
35
|
$schema: "https://www.schemastore.org/package.json",
|
|
36
36
|
name: "agent-transport-system",
|
|
@@ -98,7 +98,7 @@ var package_default = {
|
|
|
98
98
|
"unplugin-lightningcss": "^0.4.0",
|
|
99
99
|
"vitest": "~3.2.0"
|
|
100
100
|
},
|
|
101
|
-
ats: { "minRequiredCliVersion": "0.7.
|
|
101
|
+
ats: { "minRequiredCliVersion": "0.7.70" }
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
//#endregion
|
|
@@ -89730,6 +89730,7 @@ async function runProfileShow(input) {
|
|
|
89730
89730
|
});
|
|
89731
89731
|
return;
|
|
89732
89732
|
}
|
|
89733
|
+
const primaryBinding = await resolveProfileShowPrimaryBinding(profile);
|
|
89733
89734
|
presenter.line({
|
|
89734
89735
|
code: "profile.show",
|
|
89735
89736
|
text: `profile: ${profile.atsProfileId}`,
|
|
@@ -89740,6 +89741,7 @@ async function runProfileShow(input) {
|
|
|
89740
89741
|
profileHandle: profile.profileHandle,
|
|
89741
89742
|
profileKind: profile.profileKind,
|
|
89742
89743
|
ownerUserId: profile.ownerUserId,
|
|
89744
|
+
binding: buildAgentProfileBindingData(primaryBinding),
|
|
89743
89745
|
...buildAgentProfileStateData(profile),
|
|
89744
89746
|
...buildAgentProfileRuntimeData(agentRuntimeState)
|
|
89745
89747
|
}
|
|
@@ -89758,17 +89760,22 @@ function buildProfileShowJsonPayload(input) {
|
|
|
89758
89760
|
profileKind: input.profile.profileKind,
|
|
89759
89761
|
ownerUserId: input.profile.ownerUserId,
|
|
89760
89762
|
status: input.profile.status,
|
|
89761
|
-
binding: input.primaryBinding
|
|
89762
|
-
agentControllerConversationId: input.primaryBinding.primaryBinding.executionTarget?.agentControllerConversationId ?? null,
|
|
89763
|
-
agentControllerRef: input.primaryBinding.agentControllerRef,
|
|
89764
|
-
atsServiceRuntimeId: input.primaryBinding.primaryBinding.executionTarget?.atsServiceRuntimeId ?? null,
|
|
89765
|
-
bindingState: input.primaryBinding.bindingState,
|
|
89766
|
-
reasonCodes: input.primaryBinding.reasonCodes,
|
|
89767
|
-
routable: input.primaryBinding.routable
|
|
89768
|
-
} : null,
|
|
89763
|
+
binding: buildAgentProfileBindingData(input.primaryBinding),
|
|
89769
89764
|
runtime: buildAgentProfileRuntimeData(input.agentRuntimeState)
|
|
89770
89765
|
};
|
|
89771
89766
|
}
|
|
89767
|
+
function buildAgentProfileBindingData(primaryBinding) {
|
|
89768
|
+
if (!primaryBinding) return null;
|
|
89769
|
+
return {
|
|
89770
|
+
agentControllerConversationId: primaryBinding.primaryBinding.executionTarget?.agentControllerConversationId ?? null,
|
|
89771
|
+
agentControllerRef: primaryBinding.agentControllerRef,
|
|
89772
|
+
atsServiceRuntimeId: primaryBinding.primaryBinding.executionTarget?.atsServiceRuntimeId ?? null,
|
|
89773
|
+
bindingState: primaryBinding.bindingState,
|
|
89774
|
+
modelSelection: primaryBinding.primaryBinding.modelSelection ?? null,
|
|
89775
|
+
reasonCodes: primaryBinding.reasonCodes,
|
|
89776
|
+
routable: primaryBinding.routable
|
|
89777
|
+
};
|
|
89778
|
+
}
|
|
89772
89779
|
async function runProfileCreate(input) {
|
|
89773
89780
|
const runtime = await resolveRuntimeContext({ view: input.view });
|
|
89774
89781
|
if (!input.entryChecksHandled) {
|
|
@@ -90195,6 +90202,7 @@ async function runProfileUpdate(input) {
|
|
|
90195
90202
|
profileKind: updated.profileKind,
|
|
90196
90203
|
ownerUserId: updated.ownerUserId,
|
|
90197
90204
|
updatedFields: payload.updatedFields,
|
|
90205
|
+
binding: buildAgentProfileBindingData(await resolveProfileShowPrimaryBinding(updated)),
|
|
90198
90206
|
...buildAgentProfileStateData(updated),
|
|
90199
90207
|
...buildAgentProfileRuntimeData(agentRuntimeState),
|
|
90200
90208
|
nextSteps: buildAgentUpdateNextSteps(updated)
|