@rudderhq/cli 0.1.0-canary.1 → 0.1.0-canary.3

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 CHANGED
@@ -389,7 +389,9 @@ var init_instance = __esm({
389
389
  patchInstanceGeneralSettingsSchema = instanceGeneralSettingsSchema.partial();
390
390
  instanceNotificationSettingsSchema = z.object({
391
391
  desktopInboxNotifications: z.boolean().default(true),
392
- desktopDockBadge: z.boolean().default(true)
392
+ desktopDockBadge: z.boolean().default(true),
393
+ desktopIssueNotifications: z.boolean().default(true),
394
+ desktopChatNotifications: z.boolean().default(true)
393
395
  }).strict();
394
396
  patchInstanceNotificationSettingsSchema = instanceNotificationSettingsSchema.partial();
395
397
  instanceLangfuseSettingsSchema = z.object({
@@ -550,7 +552,7 @@ var init_resource = __esm({
550
552
 
551
553
  // ../packages/shared/src/validators/chat.ts
552
554
  import { z as z5 } from "zod";
553
- var chatConversationStatusSchema, chatIssueCreationModeSchema, chatMessageRoleSchema, chatMessageKindSchema, chatMessageStatusSchema, chatContextEntityTypeSchema, createChatContextLinkSchema, createChatConversationSchema, updateChatConversationSchema, addChatMessageSchema, createChatAttachmentMetadataSchema, chatIssueProposalSchema, convertChatToIssueSchema, chatOperationProposalSchema, resolveChatOperationProposalSchema, updateChatConversationUserStateSchema;
555
+ var chatConversationStatusSchema, chatIssueCreationModeSchema, chatMessageRoleSchema, chatMessageKindSchema, chatMessageStatusSchema, chatContextEntityTypeSchema, createChatContextLinkSchema, createChatConversationSchema, setChatProjectContextSchema, updateChatConversationSchema, addChatMessageSchema, createChatAttachmentMetadataSchema, chatIssueProposalSchema, convertChatToIssueSchema, chatOperationProposalSchema, resolveChatOperationProposalSchema, updateChatConversationUserStateSchema;
554
556
  var init_chat = __esm({
555
557
  "../packages/shared/src/validators/chat.ts"() {
556
558
  "use strict";
@@ -574,6 +576,9 @@ var init_chat = __esm({
574
576
  planMode: z5.boolean().optional(),
575
577
  contextLinks: z5.array(createChatContextLinkSchema).optional().default([])
576
578
  });
579
+ setChatProjectContextSchema = z5.object({
580
+ projectId: z5.string().uuid().optional().nullable()
581
+ });
577
582
  updateChatConversationSchema = createChatConversationSchema.partial().extend({
578
583
  status: chatConversationStatusSchema.optional(),
579
584
  routedAgentId: z5.string().uuid().optional().nullable(),
@@ -1104,7 +1109,7 @@ var init_secret = __esm({
1104
1109
 
1105
1110
  // ../packages/shared/src/validators/agent.ts
1106
1111
  import { z as z10 } from "zod";
1107
- var agentPermissionsSchema, agentInstructionsBundleModeSchema, updateAgentInstructionsBundleSchema, upsertAgentInstructionsFileSchema, agentRuntimeConfigSchema, optionalAgentNameSchema, createAgentSchema, createAgentHireSchema, updateAgentSchema, updateAgentInstructionsPathSchema, createAgentKeySchema, wakeAgentSchema, resetAgentSessionSchema, testAgentRuntimeEnvironmentSchema, updateAgentPermissionsSchema;
1112
+ var agentPermissionsSchema, agentInstructionsBundleModeSchema, updateAgentInstructionsBundleSchema, upsertAgentInstructionsFileSchema, agentRuntimeConfigSchema, optionalAgentNameSchema, uploadedAgentIconSchema, customAgentIconSchema, agentIconSchema, createAgentSchema, createAgentHireSchema, updateAgentSchema, updateAgentInstructionsPathSchema, createAgentKeySchema, wakeAgentSchema, resetAgentSessionSchema, testAgentRuntimeEnvironmentSchema, updateAgentPermissionsSchema;
1108
1113
  var init_agent = __esm({
1109
1114
  "../packages/shared/src/validators/agent.ts"() {
1110
1115
  "use strict";
@@ -1145,11 +1150,28 @@ var init_agent = __esm({
1145
1150
  },
1146
1151
  z10.string().trim().min(1).optional()
1147
1152
  );
1153
+ uploadedAgentIconSchema = z10.string().regex(
1154
+ /^asset:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,
1155
+ "Invalid uploaded avatar reference"
1156
+ );
1157
+ customAgentIconSchema = z10.string().trim().min(1).max(24).refine((value) => !value.toLowerCase().startsWith("asset:"), "Invalid uploaded avatar reference").refine((value) => !/[<>\u0000-\u001f\u007f]/u.test(value), "Icon cannot contain markup or control characters");
1158
+ agentIconSchema = z10.preprocess(
1159
+ (value) => {
1160
+ if (typeof value !== "string") return value;
1161
+ const trimmed = value.trim();
1162
+ return trimmed.length > 0 ? trimmed : null;
1163
+ },
1164
+ z10.union([
1165
+ z10.enum(AGENT_ICON_NAMES),
1166
+ uploadedAgentIconSchema,
1167
+ customAgentIconSchema
1168
+ ]).nullable()
1169
+ );
1148
1170
  createAgentSchema = z10.object({
1149
1171
  name: optionalAgentNameSchema,
1150
1172
  role: z10.enum(AGENT_ROLES).optional().default("general"),
1151
1173
  title: z10.string().optional().nullable(),
1152
- icon: z10.enum(AGENT_ICON_NAMES).optional().nullable(),
1174
+ icon: agentIconSchema.optional(),
1153
1175
  reportsTo: z10.string().uuid().optional().nullable(),
1154
1176
  capabilities: z10.string().optional().nullable(),
1155
1177
  desiredSkills: z10.array(z10.string().min(1)).optional(),
@@ -19168,7 +19190,7 @@ var DATA_DIR_OPTION_HELP = "Rudder data directory root (isolates state from ~/.r
19168
19190
  var LOCAL_ENV_OPTION_HELP = "Local environment profile (dev, prod_local, e2e)";
19169
19191
  function createProgram() {
19170
19192
  const program = new Command();
19171
- program.name("rudder").description("Rudder CLI \u2014 setup, diagnose, and configure your instance").version("0.1.0-canary.1");
19193
+ program.name("rudder").description("Rudder CLI \u2014 setup, diagnose, and configure your instance").version("0.1.0-canary.3");
19172
19194
  program.option("--local-env <name>", LOCAL_ENV_OPTION_HELP);
19173
19195
  program.hook("preAction", (_thisCommand, actionCommand) => {
19174
19196
  const options = actionCommand.optsWithGlobals();