@isaacthoman/pulpo 0.80.1 → 0.81.1
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 +51 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16677,6 +16677,13 @@ function applyAgentEventOutput(output, event) {
|
|
|
16677
16677
|
if (event.type === "pulpo.agent.attachment.created" && typeof payload.attachment_id === "string") {
|
|
16678
16678
|
return upsertOutputItem(output, (item) => item.type === "pulpo_attachment" && item.attachment_id === payload.attachment_id, payload);
|
|
16679
16679
|
}
|
|
16680
|
+
if (event.type === "pulpo.agent.reasoning.completed" && typeof payload.id === "string") {
|
|
16681
|
+
return upsertOutputItem(output, (item) => item.id === payload.id, {
|
|
16682
|
+
...payload,
|
|
16683
|
+
type: "reasoning",
|
|
16684
|
+
status: "completed"
|
|
16685
|
+
});
|
|
16686
|
+
}
|
|
16680
16687
|
if (!event.type.startsWith("pulpo.agent.tool.") || typeof payload.id !== "string")
|
|
16681
16688
|
return output;
|
|
16682
16689
|
if (event.type === "pulpo.agent.tool.delta") {
|
|
@@ -16785,6 +16792,7 @@ var sidebarPinsSchema = external_exports.object({
|
|
|
16785
16792
|
apiKeys: external_exports.boolean().default(false)
|
|
16786
16793
|
});
|
|
16787
16794
|
var agentModesSchema = external_exports.record(external_exports.string(), external_exports.boolean());
|
|
16795
|
+
var instructionPresetSelectionsSchema = external_exports.record(external_exports.string().trim().min(1).max(120), external_exports.boolean()).refine((value) => Object.keys(value).length <= 500, "Too many instruction preset selections");
|
|
16788
16796
|
var newAccountModelDefaultsSchema = external_exports.object({
|
|
16789
16797
|
defaultModelId: external_exports.string().trim().min(1).max(120).nullable().default(null),
|
|
16790
16798
|
favoriteModelIds: orderedPreferenceIdsSchema.default([])
|
|
@@ -17087,6 +17095,46 @@ var interfaceSettingsSchema = external_exports.object({
|
|
|
17087
17095
|
suggestedPromptsCount: external_exports.number().int().min(0).max(12).default(4),
|
|
17088
17096
|
suggestedPrompts: external_exports.array(suggestedPromptItemSchema).max(50).default([...DEFAULT_SUGGESTED_PROMPTS])
|
|
17089
17097
|
});
|
|
17098
|
+
var DEFAULT_CASUAL_INSTRUCTIONS = `You are chatting with the user like a familiar, casual friend.
|
|
17099
|
+
|
|
17100
|
+
Be warm, playful, and conversational. Match the user's tone and energy.
|
|
17101
|
+
Use natural slang and contractions when appropriate.
|
|
17102
|
+
Occasionally use expressive emojis such as \u{1F62D}, \u{1F602}, \u{1F480}, \u{1F604}, or \u{1F928}, but only when they genuinely fit.
|
|
17103
|
+
For casual conversation, prefer short responses and natural follow-up questions.
|
|
17104
|
+
It's okay to joke, react, or sound amused.
|
|
17105
|
+
Avoid sounding like customer support, a textbook, or a stereotypical AI assistant.
|
|
17106
|
+
Don't over-explain simple things.
|
|
17107
|
+
When the user asks a technical or serious question, become clearer and more detailed while keeping the conversational tone.`;
|
|
17108
|
+
var instructionPresetSchema = external_exports.object({
|
|
17109
|
+
id: external_exports.string().trim().min(1).max(120),
|
|
17110
|
+
title: external_exports.string().trim().min(1).max(80),
|
|
17111
|
+
instructions: external_exports.string().trim().min(1).max(1e5),
|
|
17112
|
+
color: external_exports.string().regex(/^#[0-9a-fA-F]{6}$/),
|
|
17113
|
+
defaultEnabled: external_exports.boolean()
|
|
17114
|
+
});
|
|
17115
|
+
var DEFAULT_INSTRUCTION_PRESETS = [{
|
|
17116
|
+
id: "casual",
|
|
17117
|
+
title: "Casual",
|
|
17118
|
+
instructions: DEFAULT_CASUAL_INSTRUCTIONS,
|
|
17119
|
+
color: "#f7b75f",
|
|
17120
|
+
defaultEnabled: true
|
|
17121
|
+
}];
|
|
17122
|
+
var instructionPresetsSchema = external_exports.array(instructionPresetSchema).max(50).superRefine((presets, context) => {
|
|
17123
|
+
const seen = /* @__PURE__ */ new Set();
|
|
17124
|
+
presets.forEach((preset, index) => {
|
|
17125
|
+
if (seen.has(preset.id)) {
|
|
17126
|
+
context.addIssue({
|
|
17127
|
+
code: "custom",
|
|
17128
|
+
message: "Instruction preset ids must be unique",
|
|
17129
|
+
path: [index, "id"]
|
|
17130
|
+
});
|
|
17131
|
+
}
|
|
17132
|
+
seen.add(preset.id);
|
|
17133
|
+
});
|
|
17134
|
+
});
|
|
17135
|
+
var personalizationSettingsSchema = external_exports.object({
|
|
17136
|
+
instructionPresets: instructionPresetsSchema.default(() => DEFAULT_INSTRUCTION_PRESETS.map((preset) => ({ ...preset })))
|
|
17137
|
+
});
|
|
17090
17138
|
var instanceOcrSettingsSchema = external_exports.object({
|
|
17091
17139
|
enabled: external_exports.boolean().default(false),
|
|
17092
17140
|
cacheEnabled: external_exports.boolean().default(true),
|
|
@@ -17109,6 +17157,7 @@ var managementAccountSettingsSchema = external_exports.object({
|
|
|
17109
17157
|
username: usernameSchema,
|
|
17110
17158
|
profileColor: profileColorSchema.nullable().default(null),
|
|
17111
17159
|
memoryEnabled: external_exports.boolean().default(false),
|
|
17160
|
+
instructionPresetSelections: instructionPresetSelectionsSchema.default({}),
|
|
17112
17161
|
/** Per-model composer Agent mode selections. Missing model ids default on in clients. */
|
|
17113
17162
|
agentModes: agentModesSchema.default({}),
|
|
17114
17163
|
/** @deprecated Retained so older management documents remain readable. */
|
|
@@ -17136,6 +17185,7 @@ var managementWebToolsSettingsSchema = webToolsSettingsSchema.extend({
|
|
|
17136
17185
|
var managementInstanceSettingsSchema = external_exports.object({
|
|
17137
17186
|
auth: authSettingsSchema.default(() => authSettingsSchema.parse({})),
|
|
17138
17187
|
interface: interfaceSettingsSchema.default(() => interfaceSettingsSchema.parse({})),
|
|
17188
|
+
personalization: personalizationSettingsSchema.default(() => personalizationSettingsSchema.parse({})),
|
|
17139
17189
|
ocr: instanceOcrSettingsSchema.default(() => instanceOcrSettingsSchema.parse({})),
|
|
17140
17190
|
agent: agentSettingsSchema.default(() => agentSettingsSchema.parse({})),
|
|
17141
17191
|
webTools: managementWebToolsSettingsSchema.default(() => managementWebToolsSettingsSchema.parse({})),
|
|
@@ -17967,7 +18017,7 @@ async function runModelTest(input) {
|
|
|
17967
18017
|
}
|
|
17968
18018
|
|
|
17969
18019
|
// src/index.ts
|
|
17970
|
-
var CLI_VERSION = true ? "0.
|
|
18020
|
+
var CLI_VERSION = true ? "0.81.1" : "0.1.0";
|
|
17971
18021
|
var CLI_BUNDLED = true;
|
|
17972
18022
|
var commandIo = /* @__PURE__ */ new WeakMap();
|
|
17973
18023
|
var commandClientFactory = /* @__PURE__ */ new WeakMap();
|