@mondaydotcomorg/z2h-shared-utils 0.6.0 → 0.6.2

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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/index.test.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
1
  export { ALWAYS_ON_CHANNELS, DECLARED_INTEGRATIONS, type AlwaysOnChannel, type DeclaredIntegration, } from './integrations';
2
- export * from './secrets';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC"}
@@ -1,2 +1 @@
1
1
  export { ALWAYS_ON_CHANNELS, DECLARED_INTEGRATIONS } from './integrations.mjs';
2
- export { decryptSecret, encryptSecret } from './secrets/secret-cipher.mjs';
@@ -63,6 +63,10 @@ export declare const Z2hServiceEvents: {
63
63
  export declare const Z2hAgentEvents: {
64
64
  readonly subagents: {
65
65
  readonly cliHelpUnavailable: "z2h.subagents.cli_help_unavailable";
66
+ readonly runLimitHit: "z2h.subagents.run_limit_hit";
67
+ };
68
+ readonly mainAgent: {
69
+ readonly runLimitHit: "z2h.main_agent.run_limit_hit";
66
70
  };
67
71
  readonly toolCall: {
68
72
  readonly softFailureMetric: "z2h.agent_tool_call.soft_failure";
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;;CAGf,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;;CAGf,CAAC"}
@@ -63,6 +63,10 @@ const Z2hServiceEvents = {
63
63
  const Z2hAgentEvents = {
64
64
  subagents: {
65
65
  cliHelpUnavailable: 'z2h.subagents.cli_help_unavailable',
66
+ runLimitHit: 'z2h.subagents.run_limit_hit',
67
+ },
68
+ mainAgent: {
69
+ runLimitHit: 'z2h.main_agent.run_limit_hit',
66
70
  },
67
71
  toolCall: {
68
72
  softFailureMetric: 'z2h.agent_tool_call.soft_failure',
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export { ALWAYS_ON_CHANNELS, DECLARED_INTEGRATIONS, type AlwaysOnChannel, type DeclaredIntegration, } from './integrations';
2
- export * from './secrets';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -1,11 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
3
  const integrations = require('./integrations.js');
4
- const secrets_secretCipher = require('./secrets/secret-cipher.js');
5
4
 
6
5
 
7
6
 
8
7
  exports.ALWAYS_ON_CHANNELS = integrations.ALWAYS_ON_CHANNELS;
9
8
  exports.DECLARED_INTEGRATIONS = integrations.DECLARED_INTEGRATIONS;
10
- exports.decryptSecret = secrets_secretCipher.decryptSecret;
11
- exports.encryptSecret = secrets_secretCipher.encryptSecret;
@@ -63,6 +63,10 @@ export declare const Z2hServiceEvents: {
63
63
  export declare const Z2hAgentEvents: {
64
64
  readonly subagents: {
65
65
  readonly cliHelpUnavailable: "z2h.subagents.cli_help_unavailable";
66
+ readonly runLimitHit: "z2h.subagents.run_limit_hit";
67
+ };
68
+ readonly mainAgent: {
69
+ readonly runLimitHit: "z2h.main_agent.run_limit_hit";
66
70
  };
67
71
  readonly toolCall: {
68
72
  readonly softFailureMetric: "z2h.agent_tool_call.soft_failure";
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;;CAGf,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;;CAGf,CAAC"}
@@ -65,6 +65,10 @@ const Z2hServiceEvents = {
65
65
  const Z2hAgentEvents = {
66
66
  subagents: {
67
67
  cliHelpUnavailable: 'z2h.subagents.cli_help_unavailable',
68
+ runLimitHit: 'z2h.subagents.run_limit_hit',
69
+ },
70
+ mainAgent: {
71
+ runLimitHit: 'z2h.main_agent.run_limit_hit',
68
72
  },
69
73
  toolCall: {
70
74
  softFailureMetric: 'z2h.agent_tool_call.soft_failure',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/z2h-shared-utils",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -29,6 +29,11 @@
29
29
  "require": "./dist/dashboardTemplateHooks.js",
30
30
  "types": "./dist/dashboardTemplateHooks.d.ts"
31
31
  },
32
+ "./secrets": {
33
+ "import": "./dist/esm/secrets/index.mjs",
34
+ "require": "./dist/secrets/index.js",
35
+ "types": "./dist/secrets/index.d.ts"
36
+ },
32
37
  "./package.json": "./package.json"
33
38
  },
34
39
  "nx": {
@@ -0,0 +1,13 @@
1
+ import { describe, expect, it } from 'vitest';
2
+
3
+ // The root barrel is loaded by consumers (e.g. z2h-cli) that never install
4
+ // the optional peer dep `@mondaydotcomorg/trident-backend-api`. Anything that
5
+ // imports it (secrets/*) must stay off this barrel and live behind its own
6
+ // subpath export instead - see package.json `exports`.
7
+ describe('root barrel', () => {
8
+ it('does not re-export secrets/', async () => {
9
+ const barrel = await import('../index');
10
+ expect(barrel).not.toHaveProperty('encryptSecret');
11
+ expect(barrel).not.toHaveProperty('decryptSecret');
12
+ });
13
+ });
package/src/index.ts CHANGED
@@ -4,4 +4,3 @@ export {
4
4
  type AlwaysOnChannel,
5
5
  type DeclaredIntegration,
6
6
  } from './integrations';
7
- export * from './secrets';
@@ -65,6 +65,10 @@ export const Z2hServiceEvents = {
65
65
  export const Z2hAgentEvents = {
66
66
  subagents: {
67
67
  cliHelpUnavailable: 'z2h.subagents.cli_help_unavailable',
68
+ runLimitHit: 'z2h.subagents.run_limit_hit',
69
+ },
70
+ mainAgent: {
71
+ runLimitHit: 'z2h.main_agent.run_limit_hit',
68
72
  },
69
73
  toolCall: {
70
74
  softFailureMetric: 'z2h.agent_tool_call.soft_failure',