@http-forge/core 0.6.38 → 0.6.39

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.
@@ -49,6 +49,7 @@ export declare class FolderCollectionStore implements ICollectionStore {
49
49
  * Ensure collections directory exists, and write AGENTS.md to the forge root
50
50
  * (.http-forge/) on first initialisation so AI agents can discover the workspace
51
51
  * schema without needing MCP tools.
52
+ * Only called when actually saving data, not on construction.
52
53
  */
53
54
  private ensureDirectory;
54
55
  /**
@@ -18,7 +18,7 @@ export declare class JsonCollectionLoader implements ICollectionStore {
18
18
  private cache;
19
19
  constructor(collectionsDir: string);
20
20
  /**
21
- * Ensure collections directory exists
21
+ * Ensure collections directory exists (lazy)
22
22
  */
23
23
  private ensureDirectory;
24
24
  /**
@@ -21,6 +21,7 @@ export declare class ConfigService implements IConfigService {
21
21
  private notifications?;
22
22
  private config;
23
23
  private configPath;
24
+ private configDir;
24
25
  private fileWatchers;
25
26
  constructor(workspacePath: string, fileWatcherFactory?: IFileWatcherFactory | undefined, notifications?: INotificationService | undefined);
26
27
  private normalizeWorkspacePath;
@@ -57,7 +58,11 @@ export declare class ConfigService implements IConfigService {
57
58
  getDiscoveryConfig(): DiscoveryConfig;
58
59
  getMcpConfig(): McpConfig;
59
60
  /**
60
- * Resolve a path relative to workspace
61
+ * Resolve a path relative to the config file location.
62
+ * When a config file exists, paths are resolved against its directory.
63
+ * When no config exists, fallback to workspace root.
64
+ * Handles backward compatibility for configs inside .http-forge that used
65
+ * workspace-relative defaults like "./.http-forge/assets".
61
66
  */
62
67
  private resolvePath;
63
68
  /**
@@ -73,9 +78,8 @@ export declare class ConfigService implements IConfigService {
73
78
  /**
74
79
  * Resolve storage root with backward compatibility for config-less workspaces.
75
80
  *
76
- * In v0.6.16 the default root changed to `.http-forge/assets`. If a workspace
77
- * has no config file and existing collections were created under an older
78
- * default location, prefer that legacy location so collections remain visible.
81
+ * Supports both integrated mode (workspace/.http-forge/assets) and standalone mode
82
+ * (workspace/assets) where .http-forge is opened as the workspace root.
79
83
  */
80
84
  private resolveStorageRootPath;
81
85
  getRootPath(): string;
@@ -92,6 +96,7 @@ export declare class ConfigService implements IConfigService {
92
96
  onConfigReloaded?: () => void;
93
97
  reload(): void;
94
98
  configExists(): boolean;
99
+ private getDefaultConfigForCurrentLocation;
95
100
  createDefaultConfig(): Promise<void>;
96
101
  /**
97
102
  * Create sample environment files
@@ -30,7 +30,7 @@ export declare class TestSuiteService implements ITestSuiteService {
30
30
  onSuitesChanged?: SuitesChangedCallback;
31
31
  });
32
32
  /**
33
- * Ensure suites directory exists
33
+ * Ensure suites directory exists (lazy — only when saving).
34
34
  */
35
35
  private ensureSuitesDir;
36
36
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@http-forge/core",
3
- "version": "0.6.38",
3
+ "version": "0.6.39",
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",
@@ -68,7 +68,7 @@
68
68
  "@apidevtools/json-schema-ref-parser": "^11.7.3",
69
69
  "ajv": "^8.12.0",
70
70
  "java-parser": "^3.0.1",
71
- "lodash": "^4.17.21",
71
+ "lodash": "4.18.1",
72
72
  "moment": "^2.30.1",
73
73
  "tv4": "^1.3.0",
74
74
  "typescript": "^5.3.0",
@@ -100,10 +100,15 @@
100
100
  "@types/node": "^20.10.0",
101
101
  "@types/tv4": "^1.2.33",
102
102
  "@types/uuid": "^9.0.7",
103
- "esbuild": "^0.28.1",
103
+ "esbuild": "0.28.2",
104
104
  "rimraf": "^5.0.5",
105
105
  "tsup": "^8.0.1",
106
106
  "typescript": "^5.3.0",
107
107
  "vitest": "^4.1.9"
108
+ },
109
+ "overrides": {
110
+ "esbuild": "0.28.2",
111
+ "lodash": "4.18.1",
112
+ "lodash-es": "4.18.1"
108
113
  }
109
114
  }