agent-transport-system 0.7.12 → 0.7.13
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 +34 -13
- package/dist/ats.js.map +1 -1
- package/package.json +1 -1
package/dist/ats.js
CHANGED
|
@@ -27,7 +27,7 @@ import wrapAnsi from "wrap-ansi";
|
|
|
27
27
|
import { Box, Container, Editor, Key, ProcessTerminal, TUI, Text, getEditorKeybindings, matchesKey } from "@mariozechner/pi-tui";
|
|
28
28
|
|
|
29
29
|
//#region package.json
|
|
30
|
-
var version = "0.7.
|
|
30
|
+
var version = "0.7.13";
|
|
31
31
|
var package_default = {
|
|
32
32
|
$schema: "https://www.schemastore.org/package.json",
|
|
33
33
|
name: "agent-transport-system",
|
|
@@ -29803,6 +29803,11 @@ function spaceTextHasOneShotMentionAttempts(text) {
|
|
|
29803
29803
|
return spaceTextHasCanonicalMentionAttempts(text);
|
|
29804
29804
|
}
|
|
29805
29805
|
function buildSpaceMemberAgentPresencePresentation(member) {
|
|
29806
|
+
const { publicReplyPresence: publicPresence } = resolveSpaceMemberAgentPublicCollaborationView(member);
|
|
29807
|
+
if (publicPresence) return buildPublicReplyPresencePresentation({
|
|
29808
|
+
liveNow: member.liveNow,
|
|
29809
|
+
status: publicPresence.status
|
|
29810
|
+
});
|
|
29806
29811
|
return buildSpaceMemberAgentOwnerLocalControlPresencePresentation(member);
|
|
29807
29812
|
}
|
|
29808
29813
|
function buildSpaceMemberAgentOwnerLocalControlPresencePresentation(member) {
|
|
@@ -83581,7 +83586,7 @@ async function prepareSpaceJoinEntryContext(input) {
|
|
|
83581
83586
|
view: input.view
|
|
83582
83587
|
});
|
|
83583
83588
|
const presenter = createPresenter(runtime);
|
|
83584
|
-
emitJoinEntryOverview({
|
|
83589
|
+
if (runtime.resolvedView === "agent" && String(input.space ?? "").trim().length === 0) emitJoinEntryOverview({
|
|
83585
83590
|
presenter,
|
|
83586
83591
|
resolvedView: runtime.resolvedView,
|
|
83587
83592
|
rawStream: input.rawStream
|
|
@@ -87181,12 +87186,14 @@ async function prepareSpaceCreateRuntimeState(input) {
|
|
|
87181
87186
|
});
|
|
87182
87187
|
const presenter = createPresenter(runtime);
|
|
87183
87188
|
const interactive = canUseInteractivePrompts(runtime);
|
|
87184
|
-
|
|
87185
|
-
|
|
87186
|
-
|
|
87187
|
-
|
|
87188
|
-
|
|
87189
|
-
|
|
87189
|
+
if (runtime.resolvedView === "agent" && String(input.name ?? "").trim().length === 0) {
|
|
87190
|
+
emitSpaceAgentOverview({
|
|
87191
|
+
presenter,
|
|
87192
|
+
resolvedView: runtime.resolvedView,
|
|
87193
|
+
command: "create"
|
|
87194
|
+
});
|
|
87195
|
+
throw createSpaceCreateGuideError();
|
|
87196
|
+
}
|
|
87190
87197
|
return {
|
|
87191
87198
|
runtime,
|
|
87192
87199
|
presenter,
|
|
@@ -99531,6 +99538,7 @@ async function main() {
|
|
|
99531
99538
|
const argv = process.argv.map((arg) => arg === "--h" ? "--help" : arg);
|
|
99532
99539
|
try {
|
|
99533
99540
|
await ensureSystemLayout();
|
|
99541
|
+
if (await handleExplicitHelpCommand(argv)) return;
|
|
99534
99542
|
if (isPassiveCliQueryArgv(argv)) {
|
|
99535
99543
|
await program.parseAsync(argv);
|
|
99536
99544
|
return;
|
|
@@ -99551,10 +99559,9 @@ async function main() {
|
|
|
99551
99559
|
});
|
|
99552
99560
|
return;
|
|
99553
99561
|
}
|
|
99554
|
-
if (handleExplicitHelpCommand(argv)) return;
|
|
99555
99562
|
const startupOutputView = await resolveEffectiveViewForOutput();
|
|
99556
99563
|
const [firstCommandToken = null, secondCommandToken = null, thirdCommandToken = null] = parseLeadingCommandTokensFromArgv(argv, 3);
|
|
99557
|
-
if (startupOutputView === "agent" && !isPassiveCliQueryArgv(argv) && !argv.includes("--raw-stream") && !argv.includes(UPGRADE_INTERNAL_ALIGN_SERVICE_FLAG)) emitStartupAgentOverviewForCommand({
|
|
99564
|
+
if (startupOutputView === "agent" && argv.includes("--details") && !isPassiveCliQueryArgv(argv) && !argv.includes("--raw-stream") && !argv.includes(UPGRADE_INTERNAL_ALIGN_SERVICE_FLAG)) emitStartupAgentOverviewForCommand({
|
|
99558
99565
|
firstCommandToken,
|
|
99559
99566
|
secondCommandToken,
|
|
99560
99567
|
thirdCommandToken
|
|
@@ -99658,16 +99665,26 @@ function stripViewArgs(args) {
|
|
|
99658
99665
|
}
|
|
99659
99666
|
return out;
|
|
99660
99667
|
}
|
|
99661
|
-
function handleExplicitHelpCommand(argv) {
|
|
99668
|
+
async function handleExplicitHelpCommand(argv) {
|
|
99662
99669
|
const args = stripViewArgs(argv.slice(2));
|
|
99663
99670
|
if (args.length === 0 || args[0] !== "help") return false;
|
|
99664
99671
|
const targetTokens = parseHelpTargetTokens(args.slice(1));
|
|
99672
|
+
const effectiveView = await resolveEffectiveViewForOutput();
|
|
99665
99673
|
if (targetTokens.length === 0) {
|
|
99674
|
+
if (effectiveView === "agent") {
|
|
99675
|
+
emitTopLevelCliAgentOverview("root");
|
|
99676
|
+
return true;
|
|
99677
|
+
}
|
|
99666
99678
|
program.outputHelp();
|
|
99667
99679
|
return true;
|
|
99668
99680
|
}
|
|
99669
99681
|
const targetCommand = resolveHelpCommandTarget(program, targetTokens);
|
|
99670
99682
|
if (!targetCommand) throw new Error(`unknown help target: ${targetTokens.join(" ")}`);
|
|
99683
|
+
if (effectiveView === "agent" && emitStartupAgentOverviewForCommand({
|
|
99684
|
+
firstCommandToken: targetTokens[0] ?? null,
|
|
99685
|
+
secondCommandToken: targetTokens[1] ?? null,
|
|
99686
|
+
thirdCommandToken: targetTokens[2] ?? null
|
|
99687
|
+
})) return true;
|
|
99671
99688
|
targetCommand.outputHelp();
|
|
99672
99689
|
return true;
|
|
99673
99690
|
}
|
|
@@ -99825,10 +99842,14 @@ function emitStartupAgentOverviewForCommand(input) {
|
|
|
99825
99842
|
const profileCommand = resolveProfileAgentOverviewCommandFromTokens(input);
|
|
99826
99843
|
if (profileCommand) {
|
|
99827
99844
|
emitProfileAgentOverview(profileCommand);
|
|
99828
|
-
return;
|
|
99845
|
+
return true;
|
|
99829
99846
|
}
|
|
99830
99847
|
const spaceCommand = resolveSpaceAgentOverviewCommandFromTokens(input);
|
|
99831
|
-
if (spaceCommand)
|
|
99848
|
+
if (spaceCommand) {
|
|
99849
|
+
emitSpaceCliAgentOverview(spaceCommand);
|
|
99850
|
+
return true;
|
|
99851
|
+
}
|
|
99852
|
+
return false;
|
|
99832
99853
|
}
|
|
99833
99854
|
function resolveProfileAgentOverviewCommandFromTokens(input) {
|
|
99834
99855
|
if (input.firstCommandToken !== "profile" && input.firstCommandToken !== "profiles") return null;
|