casedev 0.35.0 → 0.37.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.37.0 (2026-03-31)
4
+
5
+ Full Changelog: [v0.36.0...v0.37.0](https://github.com/CaseMark/casedev-typescript/compare/v0.36.0...v0.37.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([48902e3](https://github.com/CaseMark/casedev-typescript/commit/48902e3f3c44f6ef46f70c7f08f7fa011e266b25))
10
+
11
+ ## 0.36.0 (2026-03-31)
12
+
13
+ Full Changelog: [v0.35.0...v0.36.0](https://github.com/CaseMark/casedev-typescript/compare/v0.35.0...v0.36.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([11d129e](https://github.com/CaseMark/casedev-typescript/commit/11d129e88b2287ba63c3f70ed9e02a0873a0a18a))
18
+
3
19
  ## 0.35.0 (2026-03-30)
4
20
 
5
21
  Full Changelog: [v0.34.0...v0.35.0](https://github.com/CaseMark/casedev-typescript/compare/v0.34.0...v0.35.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "casedev",
3
- "version": "0.35.0",
3
+ "version": "0.37.0",
4
4
  "description": "The official TypeScript library for the Casedev API",
5
5
  "author": "Casedev <support@casemark.com>",
6
6
  "types": "./index.d.ts",
@@ -6,21 +6,37 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
6
6
  */
7
7
  export declare class Execute extends APIResource {
8
8
  /**
9
- * Creates an ephemeral agent and immediately executes a v2 run on the Daytona
10
- * runtime.
9
+ * Creates an ephemeral agent and executes it immediately. By default this uses the
10
+ * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
11
+ * to opt into the legacy Daytona-backed agent runtime.
11
12
  */
12
13
  create(body: ExecuteCreateParams, options?: RequestOptions): APIPromise<ExecuteCreateResponse>;
13
14
  }
14
15
  export interface ExecuteCreateResponse {
15
16
  agentId?: string;
16
- message?: string;
17
- provider?: 'daytona';
17
+ error?: string | null;
18
+ logs?: ExecuteCreateResponse.Logs | null;
19
+ message?: string | null;
20
+ output?: string | null;
21
+ provider?: 'daytona' | 'vercel';
18
22
  runId?: string;
19
- runtimeState?: 'running';
20
- status?: 'running';
23
+ runtimeId?: string | null;
24
+ runtimeState?: 'running' | 'ended' | 'error';
25
+ status?: 'running' | 'completed' | 'failed';
26
+ usage?: unknown | null;
27
+ }
28
+ export declare namespace ExecuteCreateResponse {
29
+ interface Logs {
30
+ linc?: string | null;
31
+ runner?: string | null;
32
+ }
21
33
  }
22
34
  export interface ExecuteCreateParams {
23
35
  prompt: string;
36
+ /**
37
+ * Set to true to opt into the legacy Daytona-backed agent runtime.
38
+ */
39
+ agentRuntime?: boolean | null;
24
40
  disabledTools?: Array<string> | null;
25
41
  enabledTools?: Array<string> | null;
26
42
  guidance?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"execute.d.mts","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG/F;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;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SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -6,21 +6,37 @@ import { RequestOptions } from "../../../internal/request-options.js";
6
6
  */
7
7
  export declare class Execute extends APIResource {
8
8
  /**
9
- * Creates an ephemeral agent and immediately executes a v2 run on the Daytona
10
- * runtime.
9
+ * Creates an ephemeral agent and executes it immediately. By default this uses the
10
+ * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
11
+ * to opt into the legacy Daytona-backed agent runtime.
11
12
  */
12
13
  create(body: ExecuteCreateParams, options?: RequestOptions): APIPromise<ExecuteCreateResponse>;
13
14
  }
14
15
  export interface ExecuteCreateResponse {
15
16
  agentId?: string;
16
- message?: string;
17
- provider?: 'daytona';
17
+ error?: string | null;
18
+ logs?: ExecuteCreateResponse.Logs | null;
19
+ message?: string | null;
20
+ output?: string | null;
21
+ provider?: 'daytona' | 'vercel';
18
22
  runId?: string;
19
- runtimeState?: 'running';
20
- status?: 'running';
23
+ runtimeId?: string | null;
24
+ runtimeState?: 'running' | 'ended' | 'error';
25
+ status?: 'running' | 'completed' | 'failed';
26
+ usage?: unknown | null;
27
+ }
28
+ export declare namespace ExecuteCreateResponse {
29
+ interface Logs {
30
+ linc?: string | null;
31
+ runner?: string | null;
32
+ }
21
33
  }
22
34
  export interface ExecuteCreateParams {
23
35
  prompt: string;
36
+ /**
37
+ * Set to true to opt into the legacy Daytona-backed agent runtime.
38
+ */
39
+ agentRuntime?: boolean | null;
24
40
  disabledTools?: Array<string> | null;
25
41
  enabledTools?: Array<string> | null;
26
42
  guidance?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;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,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAErC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEjC,OAAO,CAAC,EAAE,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC;IAE7C,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACjC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;QACtB,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -8,8 +8,9 @@ const resource_1 = require("../../../core/resource.js");
8
8
  */
9
9
  class Execute extends resource_1.APIResource {
10
10
  /**
11
- * Creates an ephemeral agent and immediately executes a v2 run on the Daytona
12
- * runtime.
11
+ * Creates an ephemeral agent and executes it immediately. By default this uses the
12
+ * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
13
+ * to opt into the legacy Daytona-backed agent runtime.
13
14
  */
14
15
  create(body, options) {
15
16
  return this._client.post('/agent/v2/execute', { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AARD,0BAQC"}
1
+ {"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AATD,0BASC"}
@@ -5,8 +5,9 @@ import { APIResource } from "../../../core/resource.mjs";
5
5
  */
6
6
  export class Execute extends APIResource {
7
7
  /**
8
- * Creates an ephemeral agent and immediately executes a v2 run on the Daytona
9
- * runtime.
8
+ * Creates an ephemeral agent and executes it immediately. By default this uses the
9
+ * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
10
+ * to opt into the legacy Daytona-backed agent runtime.
10
11
  */
11
12
  create(body, options) {
12
13
  return this._client.post('/agent/v2/execute', { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"execute.mjs","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
1
+ {"version":3,"file":"execute.mjs","sourceRoot":"","sources":["../../../src/resources/agent/v2/execute.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
@@ -6,12 +6,12 @@ import { RequestOptions } from "../../internal/request-options.mjs";
6
6
  */
7
7
  export declare class V1 extends APIResource {
8
8
  /**
9
- * Analyzes text or vault documents for legal privilege. Detects attorney-client
10
- * privilege, work product doctrine, common interest privilege, and litigation hold
11
- * materials.
9
+ * Analyzes text or vault documents for legal privilege review. Detects
10
+ * attorney-client privilege, work product doctrine, and common interest privilege.
12
11
  *
13
- * Returns structured privilege flags with confidence scores and policy-friendly
14
- * rationale suitable for discovery workflows and privilege logs.
12
+ * Returns structured review flags with confidence scores and policy-friendly
13
+ * rationale suitable for discovery workflows and privilege logs. This endpoint is
14
+ * an AI-assisted triage tool and does not replace attorney judgment.
15
15
  *
16
16
  * **Size Limit:** Maximum 200,000 characters (larger documents rejected).
17
17
  *
@@ -69,9 +69,9 @@ export declare namespace V1DetectResponse {
69
69
  export interface V1DetectParams {
70
70
  /**
71
71
  * Privilege categories to check. Defaults to all: attorney_client, work_product,
72
- * common_interest, litigation_hold
72
+ * common_interest
73
73
  */
74
- categories?: Array<'attorney_client' | 'work_product' | 'common_interest' | 'litigation_hold'>;
74
+ categories?: Array<'attorney_client' | 'work_product' | 'common_interest'>;
75
75
  /**
76
76
  * Text content to analyze (required if document_id not provided)
77
77
  */
@@ -1 +1 @@
1
- {"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/privilege/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc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iB,CAAC,CAAC;IAE3E;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
@@ -6,12 +6,12 @@ import { RequestOptions } from "../../internal/request-options.js";
6
6
  */
7
7
  export declare class V1 extends APIResource {
8
8
  /**
9
- * Analyzes text or vault documents for legal privilege. Detects attorney-client
10
- * privilege, work product doctrine, common interest privilege, and litigation hold
11
- * materials.
9
+ * Analyzes text or vault documents for legal privilege review. Detects
10
+ * attorney-client privilege, work product doctrine, and common interest privilege.
12
11
  *
13
- * Returns structured privilege flags with confidence scores and policy-friendly
14
- * rationale suitable for discovery workflows and privilege logs.
12
+ * Returns structured review flags with confidence scores and policy-friendly
13
+ * rationale suitable for discovery workflows and privilege logs. This endpoint is
14
+ * an AI-assisted triage tool and does not replace attorney judgment.
15
15
  *
16
16
  * **Size Limit:** Maximum 200,000 characters (larger documents rejected).
17
17
  *
@@ -69,9 +69,9 @@ export declare namespace V1DetectResponse {
69
69
  export interface V1DetectParams {
70
70
  /**
71
71
  * Privilege categories to check. Defaults to all: attorney_client, work_product,
72
- * common_interest, litigation_hold
72
+ * common_interest
73
73
  */
74
- categories?: Array<'attorney_client' | 'work_product' | 'common_interest' | 'litigation_hold'>;
74
+ categories?: Array<'attorney_client' | 'work_product' | 'common_interest'>;
75
75
  /**
76
76
  * Text content to analyze (required if document_id not provided)
77
77
  */
@@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;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG,cAAc,GAAG,iBAAiB,CAAC,CAAC;IAE3E;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
@@ -8,12 +8,12 @@ const resource_1 = require("../../core/resource.js");
8
8
  */
9
9
  class V1 extends resource_1.APIResource {
10
10
  /**
11
- * Analyzes text or vault documents for legal privilege. Detects attorney-client
12
- * privilege, work product doctrine, common interest privilege, and litigation hold
13
- * materials.
11
+ * Analyzes text or vault documents for legal privilege review. Detects
12
+ * attorney-client privilege, work product doctrine, and common interest privilege.
14
13
  *
15
- * Returns structured privilege flags with confidence scores and policy-friendly
16
- * rationale suitable for discovery workflows and privilege logs.
14
+ * Returns structured review flags with confidence scores and policy-friendly
15
+ * rationale suitable for discovery workflows and privilege logs. This endpoint is
16
+ * an AI-assisted triage tool and does not replace attorney judgment.
17
17
  *
18
18
  * **Size Limit:** Maximum 200,000 characters (larger documents rejected).
19
19
  *
@@ -5,12 +5,12 @@ import { APIResource } from "../../core/resource.mjs";
5
5
  */
6
6
  export class V1 extends APIResource {
7
7
  /**
8
- * Analyzes text or vault documents for legal privilege. Detects attorney-client
9
- * privilege, work product doctrine, common interest privilege, and litigation hold
10
- * materials.
8
+ * Analyzes text or vault documents for legal privilege review. Detects
9
+ * attorney-client privilege, work product doctrine, and common interest privilege.
11
10
  *
12
- * Returns structured privilege flags with confidence scores and policy-friendly
13
- * rationale suitable for discovery workflows and privilege logs.
11
+ * Returns structured review flags with confidence scores and policy-friendly
12
+ * rationale suitable for discovery workflows and privilege logs. This endpoint is
13
+ * an AI-assisted triage tool and does not replace attorney judgment.
14
14
  *
15
15
  * **Size Limit:** Maximum 200,000 characters (larger documents rejected).
16
16
  *
@@ -9,8 +9,9 @@ import { RequestOptions } from '../../../internal/request-options';
9
9
  */
10
10
  export class Execute extends APIResource {
11
11
  /**
12
- * Creates an ephemeral agent and immediately executes a v2 run on the Daytona
13
- * runtime.
12
+ * Creates an ephemeral agent and executes it immediately. By default this uses the
13
+ * lightweight synchronous linc runtime on Vercel Sandbox. Set `agentRuntime: true`
14
+ * to opt into the legacy Daytona-backed agent runtime.
14
15
  */
15
16
  create(body: ExecuteCreateParams, options?: RequestOptions): APIPromise<ExecuteCreateResponse> {
16
17
  return this._client.post('/agent/v2/execute', { body, ...options });
@@ -20,20 +21,43 @@ export class Execute extends APIResource {
20
21
  export interface ExecuteCreateResponse {
21
22
  agentId?: string;
22
23
 
23
- message?: string;
24
+ error?: string | null;
24
25
 
25
- provider?: 'daytona';
26
+ logs?: ExecuteCreateResponse.Logs | null;
27
+
28
+ message?: string | null;
29
+
30
+ output?: string | null;
31
+
32
+ provider?: 'daytona' | 'vercel';
26
33
 
27
34
  runId?: string;
28
35
 
29
- runtimeState?: 'running';
36
+ runtimeId?: string | null;
37
+
38
+ runtimeState?: 'running' | 'ended' | 'error';
39
+
40
+ status?: 'running' | 'completed' | 'failed';
41
+
42
+ usage?: unknown | null;
43
+ }
44
+
45
+ export namespace ExecuteCreateResponse {
46
+ export interface Logs {
47
+ linc?: string | null;
30
48
 
31
- status?: 'running';
49
+ runner?: string | null;
50
+ }
32
51
  }
33
52
 
34
53
  export interface ExecuteCreateParams {
35
54
  prompt: string;
36
55
 
56
+ /**
57
+ * Set to true to opt into the legacy Daytona-backed agent runtime.
58
+ */
59
+ agentRuntime?: boolean | null;
60
+
37
61
  disabledTools?: Array<string> | null;
38
62
 
39
63
  enabledTools?: Array<string> | null;
@@ -9,12 +9,12 @@ import { RequestOptions } from '../../internal/request-options';
9
9
  */
10
10
  export class V1 extends APIResource {
11
11
  /**
12
- * Analyzes text or vault documents for legal privilege. Detects attorney-client
13
- * privilege, work product doctrine, common interest privilege, and litigation hold
14
- * materials.
12
+ * Analyzes text or vault documents for legal privilege review. Detects
13
+ * attorney-client privilege, work product doctrine, and common interest privilege.
15
14
  *
16
- * Returns structured privilege flags with confidence scores and policy-friendly
17
- * rationale suitable for discovery workflows and privilege logs.
15
+ * Returns structured review flags with confidence scores and policy-friendly
16
+ * rationale suitable for discovery workflows and privilege logs. This endpoint is
17
+ * an AI-assisted triage tool and does not replace attorney judgment.
18
18
  *
19
19
  * **Size Limit:** Maximum 200,000 characters (larger documents rejected).
20
20
  *
@@ -85,9 +85,9 @@ export namespace V1DetectResponse {
85
85
  export interface V1DetectParams {
86
86
  /**
87
87
  * Privilege categories to check. Defaults to all: attorney_client, work_product,
88
- * common_interest, litigation_hold
88
+ * common_interest
89
89
  */
90
- categories?: Array<'attorney_client' | 'work_product' | 'common_interest' | 'litigation_hold'>;
90
+ categories?: Array<'attorney_client' | 'work_product' | 'common_interest'>;
91
91
 
92
92
  /**
93
93
  * Text content to analyze (required if document_id not provided)
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.35.0'; // x-release-please-version
1
+ export const VERSION = '0.37.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.35.0";
1
+ export declare const VERSION = "0.37.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.35.0";
1
+ export declare const VERSION = "0.37.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.35.0'; // x-release-please-version
4
+ exports.VERSION = '0.37.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.35.0'; // x-release-please-version
1
+ export const VERSION = '0.37.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map