create-stacki 1.0.24 → 1.1.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/cli.mjs CHANGED
@@ -211,7 +211,7 @@ function string(value, maximum = 1e6) {
211
211
 
212
212
  // studio/vendor/stacki/shared/ipc/studioRelease.ts
213
213
  var RELEASE_BYTES_MAX = 32e6;
214
- var RELEASE_FILES_MAX = 1500;
214
+ var RELEASE_FILES_MAX = 3e3;
215
215
  function releaseVersion(value) {
216
216
  const version = string(value, 40);
217
217
  if (!/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.test(version)) {
@@ -634,12 +634,110 @@ function parseRecipeChildren(input, depth, takeNode) {
634
634
  });
635
635
  }
636
636
 
637
+ // studio/vendor/stacki/shared/properties/projectRoles.ts
638
+ var ACCESS_FEATURES = [
639
+ // Left rail panels.
640
+ "panel:pages",
641
+ "panel:navigator",
642
+ "panel:properties",
643
+ "panel:components",
644
+ "panel:assets",
645
+ "panel:cms",
646
+ "panel:variables",
647
+ "panel:selectors",
648
+ "panel:code",
649
+ "panel:history",
650
+ "panel:apps",
651
+ "panel:ai",
652
+ /** The Instructions panel: the project's Markdown for agents and people, read-only without `instructions:edit`. */
653
+ "panel:instructions",
654
+ /** The Audits panel: accessibility and SEO findings, and their fixes. */
655
+ "panel:audits",
656
+ // Right panels.
657
+ "panel:style",
658
+ "panel:settings",
659
+ // Pages.
660
+ "page:create",
661
+ "page:delete",
662
+ "page:rename",
663
+ /** Edit the page layout and everything outside it; without it, edits stay inside the layout (Studio's Client mode). */
664
+ "page:layout",
665
+ // Components.
666
+ "component:create",
667
+ /** Open and edit a component's own source, its properties and its insertion defaults. */
668
+ "component:edit",
669
+ // Code.
670
+ /** Raw source: the code window, frontmatter, code files and the terminal. */
671
+ "code:edit",
672
+ // Instructions.
673
+ /** Create, edit and hide the project's skills, rules and docs in the Instructions panel; needs `panel:instructions`. */
674
+ "instructions:edit",
675
+ // Publishing.
676
+ "publish",
677
+ // The official app marketplace, inside the Apps panel (shared/properties/appMarketplace.ts).
678
+ /** Browse the marketplace: the Apps panel's Marketplace tab and the palette's marketplace results. */
679
+ "marketplace:view",
680
+ /** Install an approved version from the marketplace; needs `marketplace:view` too. */
681
+ "marketplace:install",
682
+ /** Publish an app to the marketplace: make its repository public and submit it; needs `marketplace:view` too. */
683
+ "marketplace:publish",
684
+ /** Share an app installed from a file to GitHub, private or public, and switch it to that release; needs `panel:apps`. */
685
+ "apps:share",
686
+ // Settings tabs.
687
+ "settings:editor",
688
+ "settings:folders",
689
+ "settings:cms",
690
+ "settings:studio",
691
+ "settings:instructions",
692
+ "settings:audits",
693
+ "settings:roles"
694
+ ];
695
+ var ADMIN_ROLE_ID = "admin";
696
+ var ADMIN_VIEW = {
697
+ id: ADMIN_ROLE_ID,
698
+ name: "Admin",
699
+ isAdmin: true,
700
+ features: new Set(ACCESS_FEATURES),
701
+ appPermissions: {},
702
+ pinnedApps: []
703
+ };
704
+
705
+ // studio/vendor/stacki/shared/properties/instructions.ts
706
+ var INSTRUCTION_LIMITS = {
707
+ /** Markdown files one listing carries; past it the listing says it is cut short. */
708
+ filesMax: 2e3,
709
+ /** Directories the walker opens: a large monorepo's documentation, never node_modules. */
710
+ directoriesMax: 2e4,
711
+ /** How deep the walker goes below the project root. */
712
+ depthMax: 24,
713
+ /** Empty rule folders a listing carries, so a new folder shows before its first file. */
714
+ foldersMax: 500,
715
+ /** The largest file the panel opens: a long handbook fits many times over. */
716
+ fileBytesMax: 2 * 1024 * 1024,
717
+ /** Characters in one project-relative path. */
718
+ pathCharsMax: 512,
719
+ /** Hidden paths one project keeps. */
720
+ hiddenMax: 200,
721
+ /** Characters in one hidden path or pattern. */
722
+ patternCharsMax: 256,
723
+ /** Characters in the whole settings file. */
724
+ settingsCharsMax: 65536,
725
+ /** A skill name, as Claude Code limits it. */
726
+ skillNameCharsMax: 64,
727
+ /** A skill description, as Claude Code limits it. */
728
+ skillDescriptionCharsMax: 1024,
729
+ /** The frontmatter a file may open with before it is read as body. */
730
+ frontmatterCharsMax: 65536,
731
+ /** A rule or doc file name typed in the panel. */
732
+ fileNameCharsMax: 80
733
+ };
734
+
637
735
  // studio/vendor/stacki/shared/properties/projectMetadata.ts
638
736
  function metadataKind(input) {
639
737
  if (input === "componentSources") {
640
738
  return input;
641
739
  }
642
- if (input === "components" || input === "guide" || input === "publish" || input === "pages" || input === "styles") {
740
+ if (input === "components" || input === "guide" || input === "publish" || input === "pages" || input === "styles" || input === "folders" || input === "roles" || input === "instructions" || input === "audits") {
643
741
  return input;
644
742
  }
645
743
  throw new Error("Unknown project metadata file");