@isaacthoman/pulpo 0.145.0 → 0.147.0
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/index.js +21 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16983,6 +16983,21 @@ var recallItemSchema = external_exports.object({
|
|
|
16983
16983
|
status: external_exports.literal("completed"),
|
|
16984
16984
|
sources: external_exports.array(recallSourceSchema).max(5)
|
|
16985
16985
|
});
|
|
16986
|
+
var AGENT_COST_LIMIT_MIN_MICROS = 1e4;
|
|
16987
|
+
var AGENT_COST_LIMIT_MAX_MICROS = 1e9;
|
|
16988
|
+
var DEFAULT_AGENT_COST_LIMIT_MICROS = 1e6;
|
|
16989
|
+
var agentCostLimitMicrosSchema = external_exports.number().int().min(AGENT_COST_LIMIT_MIN_MICROS).max(AGENT_COST_LIMIT_MAX_MICROS).default(DEFAULT_AGENT_COST_LIMIT_MICROS);
|
|
16990
|
+
var costLimitItemSchema = external_exports.object({
|
|
16991
|
+
id: external_exports.string().min(1),
|
|
16992
|
+
type: external_exports.literal("pulpo_cost_limit"),
|
|
16993
|
+
status: external_exports.enum(["awaiting_confirmation", "continued"]),
|
|
16994
|
+
threshold_micros: external_exports.number().int().positive(),
|
|
16995
|
+
limit_micros: external_exports.number().int().positive(),
|
|
16996
|
+
cost_micros: external_exports.number().int().nonnegative(),
|
|
16997
|
+
paused_at: isoDateSchema,
|
|
16998
|
+
/** The Agent turn whose work preceded the pause; the item is shown after that turn's tool calls. */
|
|
16999
|
+
agent_turn: external_exports.number().int().positive().optional()
|
|
17000
|
+
});
|
|
16986
17001
|
var responseSnapshotSchema = external_exports.object({
|
|
16987
17002
|
requestReceivedAt: isoDateSchema.nullable().optional(),
|
|
16988
17003
|
firstReplyTextAt: isoDateSchema.nullable().optional(),
|
|
@@ -17090,6 +17105,9 @@ function applyAgentEventOutput(output, event) {
|
|
|
17090
17105
|
if (event.type === "pulpo.compaction.updated" && typeof payload.id === "string") {
|
|
17091
17106
|
return upsertOutputItem(output, (item) => item.id === payload.id, payload);
|
|
17092
17107
|
}
|
|
17108
|
+
if (event.type === "pulpo.agent.cost_limit" && typeof payload.id === "string") {
|
|
17109
|
+
return upsertOutputItem(output, (item) => item.type === "pulpo_cost_limit" && item.id === payload.id, payload);
|
|
17110
|
+
}
|
|
17093
17111
|
if (event.type === "pulpo.agent.attachment.created" && typeof payload.attachment_id === "string") {
|
|
17094
17112
|
return upsertOutputItem(output, (item) => item.type === "pulpo_attachment" && item.attachment_id === payload.attachment_id, payload);
|
|
17095
17113
|
}
|
|
@@ -17737,6 +17755,8 @@ var managementAccountSettingsSchema = external_exports.object({
|
|
|
17737
17755
|
modelWarningDismissals: modelWarningDismissalsSchema.default({}),
|
|
17738
17756
|
showReasoning: external_exports.boolean().default(true),
|
|
17739
17757
|
showResponseCost: external_exports.boolean().default(false),
|
|
17758
|
+
agentCostLimitEnabled: external_exports.boolean().default(true),
|
|
17759
|
+
agentCostLimitMicros: agentCostLimitMicrosSchema,
|
|
17740
17760
|
chatWidth: external_exports.enum(["full", "narrow"]).default("narrow"),
|
|
17741
17761
|
animationSpeed: animationSpeedSchema,
|
|
17742
17762
|
customInstructions: external_exports.string().max(1e5).default(""),
|
|
@@ -20826,7 +20846,7 @@ async function runModelTest(input) {
|
|
|
20826
20846
|
}
|
|
20827
20847
|
|
|
20828
20848
|
// src/index.ts
|
|
20829
|
-
var CLI_VERSION = true ? "0.
|
|
20849
|
+
var CLI_VERSION = true ? "0.147.0" : "0.1.0";
|
|
20830
20850
|
var CLI_BUNDLED = true;
|
|
20831
20851
|
var commandIo = /* @__PURE__ */ new WeakMap();
|
|
20832
20852
|
var commandClientFactory = /* @__PURE__ */ new WeakMap();
|