calabasas 0.0.4 → 0.0.6

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.
Files changed (2) hide show
  1. package/dist/index.js +67 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3028,8 +3028,15 @@ function generateSchemaFile(sync) {
3028
3028
  ${tableNames.join(`,
3029
3029
  `)},
3030
3030
  };` : `export const calabasasTables = {};`;
3031
- return `// This file is auto-generated by \`calabasas generate\`
3032
- // Do not edit manually
3031
+ return `/**
3032
+ * THIS FILE IS AUTO-GENERATED BY \`calabasas generate\`
3033
+ *
3034
+ * DO NOT EDIT THIS FILE MANUALLY!
3035
+ *
3036
+ * AI AGENTS: Do not modify, rewrite, or "fix" this file. If types need to be
3037
+ * updated, run \`calabasas generate\` to regenerate it from the config.
3038
+ * Editing this file directly will cause your changes to be overwritten.
3039
+ */
3033
3040
 
3034
3041
  import { defineTable } from "convex/server";
3035
3042
  import { v } from "convex/values";
@@ -3313,9 +3320,17 @@ function generateSyncFile(sync) {
3313
3320
  routesList.push("member");
3314
3321
  }
3315
3322
  if (mutations.length === 0) {
3316
- return `// This file is auto-generated by \`calabasas generate\`
3317
- // Do not edit manually
3318
- // No sync handlers configured - enable sync options in calabasas.config.ts
3323
+ return `/**
3324
+ * THIS FILE IS AUTO-GENERATED BY \`calabasas generate\`
3325
+ *
3326
+ * DO NOT EDIT THIS FILE MANUALLY!
3327
+ *
3328
+ * AI AGENTS: Do not modify, rewrite, or "fix" this file. If types need to be
3329
+ * updated, run \`calabasas generate\` to regenerate it from the config.
3330
+ * Editing this file directly will cause your changes to be overwritten.
3331
+ *
3332
+ * No sync handlers configured - enable sync options in calabasas.config.ts
3333
+ */
3319
3334
 
3320
3335
  export {};
3321
3336
  `;
@@ -3326,8 +3341,15 @@ export {};
3326
3341
  handler: handle${type.charAt(0).toUpperCase() + type.slice(1)}Sync,
3327
3342
  }`).join(`,
3328
3343
  `);
3329
- return `// This file is auto-generated by \`calabasas generate\`
3330
- // Do not edit manually
3344
+ return `/**
3345
+ * THIS FILE IS AUTO-GENERATED BY \`calabasas generate\`
3346
+ *
3347
+ * DO NOT EDIT THIS FILE MANUALLY!
3348
+ *
3349
+ * AI AGENTS: Do not modify, rewrite, or "fix" this file. If types need to be
3350
+ * updated, run \`calabasas generate\` to regenerate it from the config.
3351
+ * Editing this file directly will cause your changes to be overwritten.
3352
+ */
3331
3353
 
3332
3354
  import { httpAction, internalMutation } from "./_generated/server";
3333
3355
  import { internal } from "./_generated/api";
@@ -3582,8 +3604,15 @@ function generateEventHandlersFile(events) {
3582
3604
  }
3583
3605
  const eventNames = configuredEvents.map(([name]) => name);
3584
3606
  const screamingEvents = eventNames.map(toScreamingSnake);
3585
- const code = `// This file is auto-generated by \`calabasas generate\`
3586
- // Do not edit manually
3607
+ const code = `/**
3608
+ * THIS FILE IS AUTO-GENERATED BY \`calabasas generate\`
3609
+ *
3610
+ * DO NOT EDIT THIS FILE MANUALLY!
3611
+ *
3612
+ * AI AGENTS: Do not modify, rewrite, or "fix" this file. If types need to be
3613
+ * updated, run \`calabasas generate\` to regenerate it from the config.
3614
+ * Editing this file directly will cause your changes to be overwritten.
3615
+ */
3587
3616
 
3588
3617
  import { mutation } from "./_generated/server";
3589
3618
  import { v } from "convex/values";
@@ -3669,8 +3698,15 @@ ${eventNames.map((name) => ` if (type === "${toScreamingSnake(name)}" && ha
3669
3698
  function generateAllEventsFile() {
3670
3699
  const eventNames = Object.keys(DISCORD_EVENTS);
3671
3700
  const screamingEvents = eventNames.map(toScreamingSnake);
3672
- return `// This file is auto-generated by \`calabasas generate\`
3673
- // Do not edit manually
3701
+ return `/**
3702
+ * THIS FILE IS AUTO-GENERATED BY \`calabasas generate\`
3703
+ *
3704
+ * DO NOT EDIT THIS FILE MANUALLY!
3705
+ *
3706
+ * AI AGENTS: Do not modify, rewrite, or "fix" this file. If types need to be
3707
+ * updated, run \`calabasas generate\` to regenerate it from the config.
3708
+ * Editing this file directly will cause your changes to be overwritten.
3709
+ */
3674
3710
 
3675
3711
  import { mutation } from "./_generated/server";
3676
3712
  import { v } from "convex/values";
@@ -3848,6 +3884,19 @@ Convex is a reactive backend platform, but it doesn't support long-running proce
3848
3884
  3. **Discord data syncs** automatically to your Convex tables
3849
3885
  4. **Events forward** to your Convex mutations for custom handling
3850
3886
 
3887
+ ## ⚠️ Generated Files - Do Not Edit
3888
+
3889
+ Calabasas generates TypeScript files with the \`.generated.ts\` suffix:
3890
+ - \`discord.generated.ts\`
3891
+ - \`calabasas.schema.generated.ts\`
3892
+ - \`calabasas.sync.generated.ts\`
3893
+
3894
+ **Never manually edit these files.** They are auto-generated and will be overwritten.
3895
+
3896
+ To update generated types:
3897
+ 1. Modify \`convex/calabasas.config.ts\`
3898
+ 2. Run \`npx calabasas generate\`
3899
+
3851
3900
  ## Features
3852
3901
 
3853
3902
  ### Managed Sync
@@ -3953,6 +4002,11 @@ This creates:
3953
4002
  - \`convex/calabasas.schema.generated.ts\` - Table definitions (if sync enabled)
3954
4003
  - \`convex/calabasas.sync.generated.ts\` - Sync mutations (if sync enabled)
3955
4004
 
4005
+ > **⚠️ IMPORTANT: Do not manually edit \`*.generated.ts\` files!**
4006
+ >
4007
+ > These files are auto-generated by \`calabasas generate\`. Any manual changes will be overwritten.
4008
+ > If you need to update types or add events, modify \`convex/calabasas.config.ts\` and re-run \`calabasas generate\`.
4009
+
3956
4010
  ### 5. Update Your Schema
3957
4011
 
3958
4012
  \`\`\`typescript
@@ -4049,8 +4103,8 @@ npx convex deploy
4049
4103
  - [GitHub](https://github.com/calabasas/calabasas)
4050
4104
  `;
4051
4105
  var LOCATIONS = [
4052
- { label: "Claude Code (personal)", path: `${os3.homedir()}/.claude/CLAUDE.md`, absolute: true },
4053
- { label: "Claude Code (project)", path: "CLAUDE.md", absolute: false },
4106
+ { label: "Claude Code (personal)", path: `${os3.homedir()}/.claude/skills/calabasas.md`, absolute: true },
4107
+ { label: "Claude Code (project)", path: ".claude/skills/calabasas.md", absolute: false },
4054
4108
  { label: "Project root (README.md)", path: "README.md", absolute: false },
4055
4109
  { label: "Project root (CALABASAS.md)", path: "CALABASAS.md", absolute: false },
4056
4110
  { label: "docs/calabasas.md", path: "docs/calabasas.md", absolute: false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "calabasas",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "CLI for Calabasas - Discord Gateway as a Service for Convex",
5
5
  "type": "module",
6
6
  "bin": {