@http-forge/core 0.6.15 → 0.6.18

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.
@@ -21,8 +21,9 @@ export declare class ConfigService implements IConfigService {
21
21
  private notifications?;
22
22
  private config;
23
23
  private configPath;
24
- private fileWatcher?;
24
+ private fileWatchers;
25
25
  constructor(workspacePath: string, fileWatcherFactory?: IFileWatcherFactory | undefined, notifications?: INotificationService | undefined);
26
+ private resolveConfigPath;
26
27
  /**
27
28
  * Load configuration from file, merging with defaults
28
29
  */
@@ -57,6 +58,24 @@ export declare class ConfigService implements IConfigService {
57
58
  * Resolve a path relative to workspace
58
59
  */
59
60
  private resolvePath;
61
+ /**
62
+ * Detect whether a root path contains folder-format collections.
63
+ * We require at least one collection folder with a collection.json file
64
+ * to avoid false positives on unrelated empty directories.
65
+ */
66
+ private hasFolderCollectionsAtRoot;
67
+ /**
68
+ * Returns true when a directory exists and contains at least one entry.
69
+ */
70
+ private hasAnyEntries;
71
+ /**
72
+ * Resolve storage root with backward compatibility for config-less workspaces.
73
+ *
74
+ * In v0.6.16 the default root changed to `.http-forge/assets`. If a workspace
75
+ * has no config file and existing collections were created under an older
76
+ * default location, prefer that legacy location so collections remain visible.
77
+ */
78
+ private resolveStorageRootPath;
60
79
  getRootPath(): string;
61
80
  getCollectionsPath(): string;
62
81
  getEnvironmentsPath(): string;
@@ -11,8 +11,10 @@ export declare const DEFAULT_CONFIG: HttpForgeConfig;
11
11
  * Configuration file names
12
12
  */
13
13
  export declare const CONFIG_FILES: {
14
- /** Main configuration file */
15
- config: string;
14
+ /** Preferred main configuration file */
15
+ preferred: string;
16
+ /** Backward-compatible legacy configuration file */
17
+ legacy: string;
16
18
  };
17
19
  /**
18
20
  * Directory names within the root
@@ -39,7 +39,7 @@ export declare function createLodashShim(): any;
39
39
  *
40
40
  * Directory structure:
41
41
  * ```
42
- * http-forge-assets/modules/ ← modulePath
42
+ * .http-forge/assets/modules/ ← modulePath
43
43
  * ├── package.json ← Declares dependencies
44
44
  * ├── global-setup.js ← Global exports injected into sandbox
45
45
  * └── auth-helpers.js ← User's custom code
@@ -13,6 +13,11 @@ export interface NodeBootstrapOptions {
13
13
  name: string;
14
14
  version: string;
15
15
  };
16
+ /**
17
+ * Optional global store file path.
18
+ * If relative, it is resolved against the workspace folder.
19
+ */
20
+ globalStorePath?: string;
16
21
  }
17
22
  /**
18
23
  * Bootstrap HTTP Forge core services for Node.js environment.
@@ -27,3 +32,7 @@ export declare function bootstrapNodeRuntime(options: NodeBootstrapOptions): Ser
27
32
  * This is a convenience wrapper that combines bootstrap and returns the container.
28
33
  */
29
34
  export declare function createNodeContainer(workspaceFolder: string): ServiceContainer;
35
+ /**
36
+ * Create and initialize service container with optional Node bootstrap overrides.
37
+ */
38
+ export declare function createNodeContainerWithOptions(workspaceFolder: string, options: Omit<NodeBootstrapOptions, 'workspaceFolder'>): ServiceContainer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@http-forge/core",
3
- "version": "0.6.15",
3
+ "version": "0.6.18",
4
4
  "description": "Headless Postman-compatible API testing engine for Node.js, CI/CD, OpenAPI workflows, and HTTP Forge automation",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",