@buildautomaton/cli 0.1.86 → 0.1.88
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/cli.js +23 -3
- package/dist/cli.js.map +3 -3
- package/dist/index.js +23 -3
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32863,6 +32863,19 @@ var AGENT_SUBSCRIPTION_TYPES = INSTALLABLE_BRIDGE_AGENTS.map(
|
|
|
32863
32863
|
(a) => a.value
|
|
32864
32864
|
);
|
|
32865
32865
|
|
|
32866
|
+
// ../types/src/role-payment-model.ts
|
|
32867
|
+
var PerSessionUsdMaxObjectSchema = external_exports.object({
|
|
32868
|
+
type: external_exports.literal("per_session_usd_max"),
|
|
32869
|
+
maxUsd: external_exports.number().int().min(1).max(200)
|
|
32870
|
+
});
|
|
32871
|
+
var RolePaymentModelSchema = external_exports.discriminatedUnion("type", [
|
|
32872
|
+
PerSessionUsdMaxObjectSchema
|
|
32873
|
+
]);
|
|
32874
|
+
var RolePaymentModelWireSchema = external_exports.object({
|
|
32875
|
+
type: external_exports.literal("per_session_usd_max"),
|
|
32876
|
+
max_usd: external_exports.number().int().min(1).max(200)
|
|
32877
|
+
});
|
|
32878
|
+
|
|
32866
32879
|
// src/agents/acp/safe-fs-path.ts
|
|
32867
32880
|
import * as path2 from "node:path";
|
|
32868
32881
|
function resolveSafePathUnderCwd(cwd, filePath) {
|
|
@@ -35195,7 +35208,7 @@ function createPendingAuthOnMessage(params) {
|
|
|
35195
35208
|
}
|
|
35196
35209
|
|
|
35197
35210
|
// src/cli-version.ts
|
|
35198
|
-
var CLI_VERSION = "0.1.
|
|
35211
|
+
var CLI_VERSION = "0.1.88".length > 0 ? "0.1.88" : "0.0.0-dev";
|
|
35199
35212
|
|
|
35200
35213
|
// src/auth/pending/pending-auth-on-open.ts
|
|
35201
35214
|
function createPendingAuthOnOpen(params) {
|
|
@@ -36895,6 +36908,7 @@ function buildCursorTaskToolCallUpdate(params) {
|
|
|
36895
36908
|
const model = typeof params.model === "string" ? params.model : void 0;
|
|
36896
36909
|
const agentId = typeof params.agentId === "string" ? params.agentId : typeof params.agent_id === "string" ? params.agent_id : void 0;
|
|
36897
36910
|
const durationMs = typeof params.durationMs === "number" ? params.durationMs : typeof params.duration_ms === "number" ? params.duration_ms : void 0;
|
|
36911
|
+
const isBackground = typeof params.isBackground === "boolean" ? params.isBackground : typeof params.is_background === "boolean" ? params.is_background : typeof params.runInBackground === "boolean" ? params.runInBackground : typeof params.run_in_background === "boolean" ? params.run_in_background : void 0;
|
|
36898
36912
|
return {
|
|
36899
36913
|
sessionUpdate: "tool_call_update",
|
|
36900
36914
|
toolCallId,
|
|
@@ -36905,7 +36919,8 @@ function buildCursorTaskToolCallUpdate(params) {
|
|
|
36905
36919
|
...subagentType != null ? { subagentType } : {},
|
|
36906
36920
|
...model != null ? { model } : {},
|
|
36907
36921
|
...agentId != null ? { agentId } : {},
|
|
36908
|
-
...durationMs != null ? { durationMs } : {}
|
|
36922
|
+
...durationMs != null ? { durationMs } : {},
|
|
36923
|
+
...isBackground != null ? { isBackground } : {}
|
|
36909
36924
|
}
|
|
36910
36925
|
};
|
|
36911
36926
|
}
|
|
@@ -37073,6 +37088,11 @@ function writeCreatePlanFile(params) {
|
|
|
37073
37088
|
function asRecord2(v) {
|
|
37074
37089
|
return v != null && typeof v === "object" && !Array.isArray(v) ? v : null;
|
|
37075
37090
|
}
|
|
37091
|
+
function resolveAcceptedPlanMarkdown(outcome, pendingParams) {
|
|
37092
|
+
if (typeof outcome.plan === "string" && outcome.plan.trim()) return outcome.plan;
|
|
37093
|
+
if (typeof pendingParams.plan === "string") return pendingParams.plan;
|
|
37094
|
+
return "";
|
|
37095
|
+
}
|
|
37076
37096
|
function enrichCreatePlanRpcResult(result, pendingParams, cloudSessionId) {
|
|
37077
37097
|
const root = asRecord2(result);
|
|
37078
37098
|
const outcome = asRecord2(root?.outcome);
|
|
@@ -37082,7 +37102,7 @@ function enrichCreatePlanRpcResult(result, pendingParams, cloudSessionId) {
|
|
|
37082
37102
|
const { plan: _drop, ...rest } = outcome;
|
|
37083
37103
|
return { ...root, outcome: rest };
|
|
37084
37104
|
}
|
|
37085
|
-
const planMarkdown =
|
|
37105
|
+
const planMarkdown = resolveAcceptedPlanMarkdown(outcome, pendingParams);
|
|
37086
37106
|
const toolCallIdRaw = pendingParams.toolCallId ?? pendingParams.tool_call_id;
|
|
37087
37107
|
const toolCallId = typeof toolCallIdRaw === "string" ? toolCallIdRaw.trim() : "";
|
|
37088
37108
|
const sessionId = cloudSessionId?.trim() ?? "";
|