@isaacthoman/pulpo 0.175.1 → 0.177.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 +63 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24594,8 +24594,36 @@ var toolImagePreviewSchema = external_exports.object({
|
|
|
24594
24594
|
var DEFAULT_MAX_ATTACHMENT_BYTES = 25 * 1024 * 1024;
|
|
24595
24595
|
var MAX_CONFIGURABLE_ATTACHMENT_BYTES = 1e3 * 1024 * 1024;
|
|
24596
24596
|
var roleSchema = external_exports.enum(["pending", "user", "admin"]);
|
|
24597
|
-
var
|
|
24597
|
+
var RESERVED_PROFILE_USERNAMES = [
|
|
24598
|
+
"account-deletion",
|
|
24599
|
+
"admin",
|
|
24600
|
+
"api",
|
|
24601
|
+
"api-keys",
|
|
24602
|
+
"assets",
|
|
24603
|
+
"attachments",
|
|
24604
|
+
"billing",
|
|
24605
|
+
"c",
|
|
24606
|
+
"files",
|
|
24607
|
+
"forgot-password",
|
|
24608
|
+
"friends",
|
|
24609
|
+
"health",
|
|
24610
|
+
"login",
|
|
24611
|
+
"mobile",
|
|
24612
|
+
"pending",
|
|
24613
|
+
"privacy",
|
|
24614
|
+
"ready",
|
|
24615
|
+
"reset-password",
|
|
24616
|
+
"setup",
|
|
24617
|
+
"share",
|
|
24618
|
+
"signup",
|
|
24619
|
+
"support",
|
|
24620
|
+
"usage",
|
|
24621
|
+
"v1"
|
|
24622
|
+
];
|
|
24623
|
+
var reservedProfileUsernames = new Set(RESERVED_PROFILE_USERNAMES);
|
|
24624
|
+
var usernameSchema = external_exports.string().trim().toLowerCase().regex(/^[a-z0-9][a-z0-9_]{1,28}[a-z0-9]$/, "Use 3\u201330 letters, numbers, or underscores; begin and end with a letter or number").refine((username) => !reservedProfileUsernames.has(username), "That username is reserved by Pulpo");
|
|
24598
24625
|
var profileColorSchema = external_exports.string().regex(/^#[0-9a-fA-F]{6}$/);
|
|
24626
|
+
var usageVisibilitySchema = external_exports.enum(["pool", "friends", "public"]);
|
|
24599
24627
|
var userSchema = external_exports.object({
|
|
24600
24628
|
id: idSchema,
|
|
24601
24629
|
email: external_exports.email(),
|
|
@@ -24603,6 +24631,7 @@ var userSchema = external_exports.object({
|
|
|
24603
24631
|
username: usernameSchema,
|
|
24604
24632
|
avatarUrl: external_exports.string().nullable(),
|
|
24605
24633
|
profileColor: profileColorSchema.nullable(),
|
|
24634
|
+
usageVisibility: usageVisibilitySchema,
|
|
24606
24635
|
role: roleSchema,
|
|
24607
24636
|
balanceMicros: external_exports.number().int(),
|
|
24608
24637
|
storageLimitBytes: external_exports.number().int().nonnegative(),
|
|
@@ -24876,7 +24905,8 @@ var mobilePasskeyCodeExchangeInputSchema = external_exports.object({
|
|
|
24876
24905
|
var updateProfileInputSchema = external_exports.object({
|
|
24877
24906
|
name: external_exports.string().trim().min(1).max(120).optional(),
|
|
24878
24907
|
username: usernameSchema.optional(),
|
|
24879
|
-
profileColor: profileColorSchema.nullable().optional()
|
|
24908
|
+
profileColor: profileColorSchema.nullable().optional(),
|
|
24909
|
+
usageVisibility: usageVisibilitySchema.optional()
|
|
24880
24910
|
}).refine((value) => Object.keys(value).length > 0, "At least one profile field is required");
|
|
24881
24911
|
var friendProfileSchema = external_exports.object({
|
|
24882
24912
|
id: idSchema,
|
|
@@ -24899,13 +24929,32 @@ var friendConnectionSchema = external_exports.object({
|
|
|
24899
24929
|
requestId: idSchema,
|
|
24900
24930
|
profile: friendProfileSchema,
|
|
24901
24931
|
requestedAt: isoDateSchema,
|
|
24902
|
-
acceptedAt: isoDateSchema.nullable()
|
|
24932
|
+
acceptedAt: isoDateSchema.nullable(),
|
|
24933
|
+
mutualFriends: external_exports.array(friendProfileSchema).optional()
|
|
24934
|
+
});
|
|
24935
|
+
var friendSuggestionSchema = external_exports.object({
|
|
24936
|
+
profile: friendProfileSchema,
|
|
24937
|
+
mutualFriends: external_exports.array(friendProfileSchema).min(1)
|
|
24903
24938
|
});
|
|
24904
24939
|
var friendsListSchema = external_exports.object({
|
|
24905
24940
|
friends: external_exports.array(friendConnectionSchema),
|
|
24906
24941
|
incoming: external_exports.array(friendConnectionSchema),
|
|
24907
24942
|
outgoing: external_exports.array(friendConnectionSchema),
|
|
24908
|
-
blocked: external_exports.array(friendProfileSchema)
|
|
24943
|
+
blocked: external_exports.array(friendProfileSchema),
|
|
24944
|
+
suggestions: external_exports.array(friendSuggestionSchema).max(6).optional()
|
|
24945
|
+
});
|
|
24946
|
+
var friendProfileDetailSchema = external_exports.object({
|
|
24947
|
+
profile: friendProfileSchema,
|
|
24948
|
+
relationship: friendRelationshipSchema,
|
|
24949
|
+
requestId: idSchema.nullable(),
|
|
24950
|
+
friendsSince: isoDateSchema.nullable(),
|
|
24951
|
+
mutualFriends: external_exports.array(friendProfileSchema),
|
|
24952
|
+
/** Whether the viewer may see this profile's usage; always true for the viewer's own profile. */
|
|
24953
|
+
usageVisible: external_exports.boolean(),
|
|
24954
|
+
/** Who this profile shares its usage with, shown as an icon beside the handle. */
|
|
24955
|
+
usageVisibility: usageVisibilitySchema,
|
|
24956
|
+
/** When the account was created. */
|
|
24957
|
+
joinedAt: isoDateSchema
|
|
24909
24958
|
});
|
|
24910
24959
|
var poolMemberSchema = external_exports.object({
|
|
24911
24960
|
profile: friendProfileSchema,
|
|
@@ -25358,8 +25407,10 @@ var sidebarPinsSchema = external_exports.object({
|
|
|
25358
25407
|
// Shown by default; saved preferences that predate these keys keep them visible.
|
|
25359
25408
|
searchChats: external_exports.boolean().default(true),
|
|
25360
25409
|
files: external_exports.boolean().default(true),
|
|
25410
|
+
/** Deprecated: usage moved into your profile, so no sidebar item reads it; kept so saved pins still parse. */
|
|
25361
25411
|
usage: external_exports.boolean().default(false),
|
|
25362
25412
|
billing: external_exports.boolean().default(false),
|
|
25413
|
+
/** The People item, keyed by its former name. */
|
|
25363
25414
|
friends: external_exports.boolean().default(false),
|
|
25364
25415
|
apiKeys: external_exports.boolean().default(false)
|
|
25365
25416
|
});
|
|
@@ -25906,13 +25957,19 @@ var managementAccountSettingsSchema = external_exports.object({
|
|
|
25906
25957
|
nickname: external_exports.string().max(80).default(""),
|
|
25907
25958
|
username: usernameSchema,
|
|
25908
25959
|
profileColor: profileColorSchema.nullable().default(null),
|
|
25960
|
+
/**
|
|
25961
|
+
* Reads always include the stored level. Writes that omit it keep that level, because
|
|
25962
|
+
* older clients strip fields they don't know and a default here would change who can see usage.
|
|
25963
|
+
*/
|
|
25964
|
+
usageVisibility: usageVisibilitySchema.optional(),
|
|
25909
25965
|
memoryEnabled: external_exports.boolean().default(false),
|
|
25910
25966
|
instructionPresetSelections: instructionPresetSelectionsSchema.default({}),
|
|
25911
25967
|
/** Per-model composer Agent mode selections. Missing model ids default on in clients. */
|
|
25912
25968
|
agentModes: agentModesSchema.default({}),
|
|
25913
25969
|
/** @deprecated Retained so older management documents remain readable. */
|
|
25914
25970
|
agentModeEnabled: external_exports.boolean().optional(),
|
|
25915
|
-
|
|
25971
|
+
/** @deprecated Retained so older management documents remain readable. */
|
|
25972
|
+
leaderboardVisible: external_exports.boolean().optional(),
|
|
25916
25973
|
leaderboardColor: external_exports.string().regex(/^#[0-9a-fA-F]{6}$/).default("#10b981"),
|
|
25917
25974
|
localChatLimit: external_exports.number().int().min(0).max(500).default(50),
|
|
25918
25975
|
localAttachmentCacheMb: external_exports.number().int().min(0).max(2048).default(50),
|
|
@@ -36655,7 +36712,7 @@ async function runModelTest(input2) {
|
|
|
36655
36712
|
}
|
|
36656
36713
|
|
|
36657
36714
|
// src/index.ts
|
|
36658
|
-
var CLI_VERSION = true ? "0.
|
|
36715
|
+
var CLI_VERSION = true ? "0.177.0" : "0.1.0";
|
|
36659
36716
|
var CLI_BUNDLED = true;
|
|
36660
36717
|
var commandIo = /* @__PURE__ */ new WeakMap();
|
|
36661
36718
|
var commandClientFactory = /* @__PURE__ */ new WeakMap();
|