@hubspot/local-dev-lib 0.7.11-experimental.0 → 0.7.12-experimental.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/config/state.js CHANGED
@@ -7,6 +7,7 @@ import { STATE_FLAGS } from '../constants/config.js';
7
7
  const i18nKey = 'config.state';
8
8
  const DEFAULT_STATE = {
9
9
  [STATE_FLAGS.MCP_TOTAL_TOOL_CALLS]: 0,
10
+ [STATE_FLAGS.MCP_PROMOTION_LAST_SHOWN_AT_BY_SURFACE]: {},
10
11
  [STATE_FLAGS.USAGE_TRACKING_MESSAGE_LAST_SHOW_VERSION]: undefined,
11
12
  };
12
13
  function ensureCLIDirectory() {
@@ -56,6 +56,7 @@ export declare const HUBSPOT_ACCOUNT_TYPE_STRINGS: {
56
56
  };
57
57
  export declare const STATE_FLAGS: {
58
58
  readonly MCP_TOTAL_TOOL_CALLS: "mcpTotalToolCalls";
59
+ readonly MCP_PROMOTION_LAST_SHOWN_AT_BY_SURFACE: "mcpPromotionLastShownAtBySurface";
59
60
  readonly USAGE_TRACKING_MESSAGE_LAST_SHOW_VERSION: "usageTrackingMessageLastShowVersion";
60
61
  };
61
62
  export declare const CONFIG_FLAGS: {
@@ -59,6 +59,7 @@ export const HUBSPOT_ACCOUNT_TYPE_STRINGS = {
59
59
  };
60
60
  export const STATE_FLAGS = {
61
61
  MCP_TOTAL_TOOL_CALLS: 'mcpTotalToolCalls',
62
+ MCP_PROMOTION_LAST_SHOWN_AT_BY_SURFACE: 'mcpPromotionLastShownAtBySurface',
62
63
  USAGE_TRACKING_MESSAGE_LAST_SHOW_VERSION: 'usageTrackingMessageLastShowVersion',
63
64
  };
64
65
  export const CONFIG_FLAGS = {
@@ -7,7 +7,6 @@ import { escapeRegExp } from '../escapeRegExp.js';
7
7
  import { isModuleFolderChild } from '../../utils/cms/modules.js';
8
8
  import { logger } from '../logger.js';
9
9
  import { i18n } from '../../utils/lang.js';
10
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
11
10
  const i18nKey = 'lib.cms.handleFieldsJs';
12
11
  export class FieldsJs {
13
12
  projectDir;
@@ -37,6 +36,11 @@ export class FieldsJs {
37
36
  convertFieldsJs(writeDir) {
38
37
  const filePath = this.filePath;
39
38
  const dirName = path.dirname(filePath);
39
+ // Keep this inside the function: at module scope, webpack inlines
40
+ // `import.meta.url` as a build-machine string literal, which crashes
41
+ // bundled consumers (e.g. the VS Code extension) on Windows with
42
+ // "File URL path must be absolute".
43
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
40
44
  return new Promise((resolve, reject) => {
41
45
  const fieldOptionsAsString = Array.isArray(this.fieldOptions)
42
46
  ? this.fieldOptions.join(',')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/local-dev-lib",
3
- "version": "0.7.11-experimental.0",
3
+ "version": "0.7.12-experimental.0",
4
4
  "type": "module",
5
5
  "description": "Provides library functionality for HubSpot local development tooling, including the HubSpot CLI",
6
6
  "files": [
package/types/Config.d.ts CHANGED
@@ -29,6 +29,7 @@ export type GitInclusionResult = {
29
29
  export type ConfigFlag = ValueOf<typeof CONFIG_FLAGS>;
30
30
  export type HubSpotState = {
31
31
  [STATE_FLAGS.MCP_TOTAL_TOOL_CALLS]: number;
32
+ [STATE_FLAGS.MCP_PROMOTION_LAST_SHOWN_AT_BY_SURFACE]: Record<string, string>;
32
33
  [STATE_FLAGS.USAGE_TRACKING_MESSAGE_LAST_SHOW_VERSION]?: string;
33
34
  };
34
35
  export type HubSpotConfigErrorType = ValueOf<typeof HUBSPOT_CONFIG_ERROR_TYPES>;