@hudhod/core 0.1.0 → 1.0.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.d.ts CHANGED
@@ -611,6 +611,8 @@ interface PanelInfo {
611
611
  readonly icon?: unknown;
612
612
  /** Dock location, defaulted to `"bottom"` when the contribution omits it. */
613
613
  readonly location: "left" | "right" | "bottom" | "center";
614
+ /** Initial width in pixels, for `left` and `right` panels. */
615
+ readonly initialWidth?: number;
614
616
  /** Whether the panel comes from an extension or the built-in shell. */
615
617
  readonly source: "extension" | "builtin";
616
618
  /** Id of the owning extension, when the source is an extension. */
@@ -763,6 +765,7 @@ declare const extensionManifestSchema: z.ZodObject<{
763
765
  bottom: "bottom";
764
766
  center: "center";
765
767
  }>>;
768
+ initialWidth: z.ZodOptional<z.ZodNumber>;
766
769
  }, z.core.$strip>>>;
767
770
  views: z.ZodOptional<z.ZodArray<z.ZodObject<{
768
771
  id: z.ZodString;
package/dist/index.js CHANGED
@@ -570,7 +570,8 @@ const viewContainerContribution = z.object({
570
570
  "right",
571
571
  "bottom",
572
572
  "center"
573
- ]).optional()
573
+ ]).optional(),
574
+ initialWidth: z.number().finite().optional()
574
575
  });
575
576
  const viewContribution = z.object({
576
577
  id: z.string().min(1).max(256),
@@ -884,6 +885,7 @@ var PanelRegistry = class {
884
885
  title: contribution.title,
885
886
  icon: contribution.icon,
886
887
  location: contribution.location ?? "bottom",
888
+ initialWidth: contribution.initialWidth,
887
889
  source: options?.source ?? "extension",
888
890
  extensionId: options?.extensionId
889
891
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hudhod/core",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "Headless runtime for hudhod — file system, search, diff, process, command, and extension host services for an in-browser IDE.",
5
5
  "keywords": [
6
6
  "browser-ide",
@@ -29,7 +29,7 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@hudhod/sdk": "0.1.0",
32
+ "@hudhod/sdk": "1.0.0",
33
33
  "diff": "^8.0.2",
34
34
  "picomatch": "^4.0.3",
35
35
  "zod": "^4.4.3"