@rudderhq/cli 0.1.0-canary.0 → 0.1.0-canary.2

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(),
@@ -9886,7 +9891,8 @@ import * as p13 from "@clack/prompts";
9886
9891
  import pc8 from "picocolors";
9887
9892
  var DEFAULT_DESKTOP_RELEASE_REPO = "Undertone0809/rudder";
9888
9893
  var STABLE_SEMVER_RE = /^[0-9]+\.[0-9]+\.[0-9]+$/;
9889
- var CLI_REGISTRY_LATEST_URL = "https://registry.npmjs.org/@rudder%2fcli/latest";
9894
+ var CANARY_SEMVER_RE = /^[0-9]+\.[0-9]+\.[0-9]+-canary\.[0-9]+$/;
9895
+ var CLI_REGISTRY_LATEST_URL = "https://registry.npmjs.org/@rudderhq%2fcli/latest";
9890
9896
  function resolveCurrentCliVersion(env = process.env) {
9891
9897
  const envPackageName = env.npm_package_name?.trim();
9892
9898
  const envPackageVersion = env.npm_package_version?.trim();
@@ -9946,12 +9952,11 @@ async function getCliUpdateNotice(currentVersion) {
9946
9952
  }
9947
9953
  function resolveDesktopReleaseTag(version) {
9948
9954
  if (!version || version === "latest") return "latest";
9949
- if (!STABLE_SEMVER_RE.test(version)) {
9950
- throw new Error(
9951
- `Desktop installer lookup requires a stable version like 0.1.0. Received ${version}.`
9952
- );
9953
- }
9954
- return `v${version}`;
9955
+ if (STABLE_SEMVER_RE.test(version)) return `v${version}`;
9956
+ if (CANARY_SEMVER_RE.test(version)) return `canary/v${version}`;
9957
+ throw new Error(
9958
+ `Desktop installer lookup requires a release version like 0.1.0 or 0.1.0-canary.0. Received ${version}.`
9959
+ );
9955
9960
  }
9956
9961
  function resolveDesktopAssetTarget(platform = process.platform, arch = process.arch) {
9957
9962
  const normalizedArch = arch === "x64" || arch === "arm64" ? arch : null;
@@ -19168,7 +19173,7 @@ var DATA_DIR_OPTION_HELP = "Rudder data directory root (isolates state from ~/.r
19168
19173
  var LOCAL_ENV_OPTION_HELP = "Local environment profile (dev, prod_local, e2e)";
19169
19174
  function createProgram() {
19170
19175
  const program = new Command();
19171
- program.name("rudder").description("Rudder CLI \u2014 setup, diagnose, and configure your instance").version("0.1.0-canary.0");
19176
+ program.name("rudder").description("Rudder CLI \u2014 setup, diagnose, and configure your instance").version("0.1.0-canary.2");
19172
19177
  program.option("--local-env <name>", LOCAL_ENV_OPTION_HELP);
19173
19178
  program.hook("preAction", (_thisCommand, actionCommand) => {
19174
19179
  const options = actionCommand.optsWithGlobals();