@hudhod/core 0.1.1 → 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/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;
@@ -974,6 +977,7 @@ interface CreateHudhodRuntimeOptions {
974
977
  readonly version?: string;
975
978
  readonly workspace?: WorkspaceApi;
976
979
  readonly terminal?: TerminalApi;
980
+ readonly workspaceConfig?: WorkspaceConfig;
977
981
  }
978
982
  /** Creates an environment-agnostic Hudhod runtime from host-provided adapters. */
979
983
  declare function createHudhodRuntime(options: CreateHudhodRuntimeOptions): HudhodRuntime;
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
  };
@@ -1964,7 +1966,7 @@ const unavailableTerminal = {
1964
1966
  };
1965
1967
  /** Creates an environment-agnostic Hudhod runtime from host-provided adapters. */
1966
1968
  function createHudhodRuntime(options) {
1967
- const fs = new FileSystemService(options.fileSystemProvider);
1969
+ const fs = new FileSystemService(options.fileSystemProvider, { config: options.workspaceConfig });
1968
1970
  const process = new ProcessService(options.processSpawner);
1969
1971
  const commands = new CommandRegistry();
1970
1972
  const keybindings = new KeybindingRegistry(options.platform ?? "other");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hudhod/core",
3
- "version": "0.1.1",
3
+ "version": "1.1.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.2.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"