@pellux/goodvibes-sdk 0.25.0 → 0.25.1

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.
Files changed (96) hide show
  1. package/dist/_internal/platform/intelligence/lsp/service.d.ts.map +1 -1
  2. package/dist/_internal/platform/intelligence/lsp/service.js +18 -9
  3. package/dist/_internal/platform/providers/anthropic-vertex.d.ts.map +1 -1
  4. package/dist/_internal/platform/providers/anthropic-vertex.js +135 -2
  5. package/dist/_internal/platform/version.js +1 -1
  6. package/dist/_internal/platform/watchers/registry.d.ts.map +1 -1
  7. package/dist/_internal/platform/watchers/registry.js +4 -1
  8. package/package.json +9 -8
  9. package/vendor/bash-language-server/CHANGELOG.md +453 -0
  10. package/vendor/bash-language-server/GOODVIBES_PATCH.md +22 -0
  11. package/vendor/bash-language-server/README.md +230 -0
  12. package/vendor/bash-language-server/out/analyser.d.ts +187 -0
  13. package/vendor/bash-language-server/out/analyser.js +782 -0
  14. package/vendor/bash-language-server/out/analyser.js.map +1 -0
  15. package/vendor/bash-language-server/out/builtins.d.ts +2 -0
  16. package/vendor/bash-language-server/out/builtins.js +71 -0
  17. package/vendor/bash-language-server/out/builtins.js.map +1 -0
  18. package/vendor/bash-language-server/out/cli.d.ts +3 -0
  19. package/vendor/bash-language-server/out/cli.js +74 -0
  20. package/vendor/bash-language-server/out/cli.js.map +1 -0
  21. package/vendor/bash-language-server/out/config.d.ts +88 -0
  22. package/vendor/bash-language-server/out/config.js +96 -0
  23. package/vendor/bash-language-server/out/config.js.map +1 -0
  24. package/vendor/bash-language-server/out/executables.d.ts +19 -0
  25. package/vendor/bash-language-server/out/executables.js +86 -0
  26. package/vendor/bash-language-server/out/executables.js.map +1 -0
  27. package/vendor/bash-language-server/out/parser.d.ts +2 -0
  28. package/vendor/bash-language-server/out/parser.js +36 -0
  29. package/vendor/bash-language-server/out/parser.js.map +1 -0
  30. package/vendor/bash-language-server/out/reserved-words.d.ts +2 -0
  31. package/vendor/bash-language-server/out/reserved-words.js +33 -0
  32. package/vendor/bash-language-server/out/reserved-words.js.map +1 -0
  33. package/vendor/bash-language-server/out/server.d.ts +56 -0
  34. package/vendor/bash-language-server/out/server.js +756 -0
  35. package/vendor/bash-language-server/out/server.js.map +1 -0
  36. package/vendor/bash-language-server/out/shellcheck/config.d.ts +5 -0
  37. package/vendor/bash-language-server/out/shellcheck/config.js +17 -0
  38. package/vendor/bash-language-server/out/shellcheck/config.js.map +1 -0
  39. package/vendor/bash-language-server/out/shellcheck/directive.d.ts +18 -0
  40. package/vendor/bash-language-server/out/shellcheck/directive.js +62 -0
  41. package/vendor/bash-language-server/out/shellcheck/directive.js.map +1 -0
  42. package/vendor/bash-language-server/out/shellcheck/index.d.ts +22 -0
  43. package/vendor/bash-language-server/out/shellcheck/index.js +229 -0
  44. package/vendor/bash-language-server/out/shellcheck/index.js.map +1 -0
  45. package/vendor/bash-language-server/out/shellcheck/types.d.ts +175 -0
  46. package/vendor/bash-language-server/out/shellcheck/types.js +35 -0
  47. package/vendor/bash-language-server/out/shellcheck/types.js.map +1 -0
  48. package/vendor/bash-language-server/out/shfmt/index.d.ts +18 -0
  49. package/vendor/bash-language-server/out/shfmt/index.js +151 -0
  50. package/vendor/bash-language-server/out/shfmt/index.js.map +1 -0
  51. package/vendor/bash-language-server/out/snippets.d.ts +2 -0
  52. package/vendor/bash-language-server/out/snippets.js +671 -0
  53. package/vendor/bash-language-server/out/snippets.js.map +1 -0
  54. package/vendor/bash-language-server/out/types.d.ts +13 -0
  55. package/vendor/bash-language-server/out/types.js +12 -0
  56. package/vendor/bash-language-server/out/types.js.map +1 -0
  57. package/vendor/bash-language-server/out/util/array.d.ts +14 -0
  58. package/vendor/bash-language-server/out/util/array.js +36 -0
  59. package/vendor/bash-language-server/out/util/array.js.map +1 -0
  60. package/vendor/bash-language-server/out/util/async.d.ts +13 -0
  61. package/vendor/bash-language-server/out/util/async.js +24 -0
  62. package/vendor/bash-language-server/out/util/async.js.map +1 -0
  63. package/vendor/bash-language-server/out/util/declarations.d.ts +88 -0
  64. package/vendor/bash-language-server/out/util/declarations.js +295 -0
  65. package/vendor/bash-language-server/out/util/declarations.js.map +1 -0
  66. package/vendor/bash-language-server/out/util/discriminate.d.ts +1 -0
  67. package/vendor/bash-language-server/out/util/discriminate.js +7 -0
  68. package/vendor/bash-language-server/out/util/discriminate.js.map +1 -0
  69. package/vendor/bash-language-server/out/util/fs.d.ts +6 -0
  70. package/vendor/bash-language-server/out/util/fs.js +73 -0
  71. package/vendor/bash-language-server/out/util/fs.js.map +1 -0
  72. package/vendor/bash-language-server/out/util/logger.d.ts +35 -0
  73. package/vendor/bash-language-server/out/util/logger.js +105 -0
  74. package/vendor/bash-language-server/out/util/logger.js.map +1 -0
  75. package/vendor/bash-language-server/out/util/lsp.d.ts +5 -0
  76. package/vendor/bash-language-server/out/util/lsp.js +13 -0
  77. package/vendor/bash-language-server/out/util/lsp.js.map +1 -0
  78. package/vendor/bash-language-server/out/util/platform.d.ts +1 -0
  79. package/vendor/bash-language-server/out/util/platform.js +7 -0
  80. package/vendor/bash-language-server/out/util/platform.js.map +1 -0
  81. package/vendor/bash-language-server/out/util/sh.d.ts +16 -0
  82. package/vendor/bash-language-server/out/util/sh.js +132 -0
  83. package/vendor/bash-language-server/out/util/sh.js.map +1 -0
  84. package/vendor/bash-language-server/out/util/shebang.d.ts +10 -0
  85. package/vendor/bash-language-server/out/util/shebang.js +53 -0
  86. package/vendor/bash-language-server/out/util/shebang.js.map +1 -0
  87. package/vendor/bash-language-server/out/util/sourcing.d.ts +15 -0
  88. package/vendor/bash-language-server/out/util/sourcing.js +182 -0
  89. package/vendor/bash-language-server/out/util/sourcing.js.map +1 -0
  90. package/vendor/bash-language-server/out/util/tree-sitter.d.ts +22 -0
  91. package/vendor/bash-language-server/out/util/tree-sitter.js +110 -0
  92. package/vendor/bash-language-server/out/util/tree-sitter.js.map +1 -0
  93. package/vendor/bash-language-server/package.json +52 -0
  94. package/vendor/bash-language-server/parser.info +2 -0
  95. package/vendor/bash-language-server/tree-sitter-bash.wasm +0 -0
  96. package/scripts/postinstall-patch-minimatch.mjs +0 -285
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/intelligence/lsp/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAGrE,KAAK,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,GAAG,oBAAoB,CAAC,CAAC;AAqBlF,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjD;AAeD,qBAAa,UAAU;IACrB,OAAO,CAAC,OAAO,CAAqC;IACpD,OAAO,CAAC,OAAO,CAA2C;IAC1D,OAAO,CAAC,YAAY,CAAqD;IACzE,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAW;gBAErB,KAAK,EAAE,QAAQ;IAI3B,sDAAsD;IACtD,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,IAAI;IAI7D;;;OAGG;IACG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC;YAuB5C,YAAY;IAuB1B;;;OAGG;IACG,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAkBnD,kDAAkD;YACpC,iBAAiB;IAkB/B,gCAAgC;IAC1B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAO/B;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IA0C5D;;;;OAIG;IACG,YAAY,CAAC,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AWlD"}
@@ -1,19 +1,30 @@
1
1
  import { existsSync } from 'fs';
2
- import { join } from 'path';
3
- import { pathToFileURL } from 'url';
2
+ import { dirname, join, resolve } from 'path';
3
+ import { fileURLToPath, pathToFileURL } from 'url';
4
4
  import { logger } from '../../utils/logger.js';
5
5
  import { LspClient } from './client.js';
6
6
  import { getBinaryPath, ensureBinary } from './binary-downloader.js';
7
7
  import { summarizeError } from '../../utils/error-display.js';
8
+ const SDK_PACKAGE_ROOT = resolve(dirname(fileURLToPath(import.meta.url)), '../../../../..');
9
+ function bundledCommandPath(command, workingDirectory) {
10
+ const candidates = [
11
+ join(workingDirectory, 'node_modules', '.bin', command),
12
+ join(SDK_PACKAGE_ROOT, 'node_modules', '.bin', command),
13
+ ];
14
+ for (const candidate of candidates) {
15
+ if (existsSync(candidate))
16
+ return candidate;
17
+ }
18
+ return null;
19
+ }
8
20
  /**
9
21
  * Resolve a server command: check node_modules/.bin/ first (bundled),
10
22
  * then fall back to system PATH via Bun.which().
11
23
  * Returns the resolved command path, or the original command if neither found.
12
24
  */
13
25
  function resolveCommand(command, workingDirectory) {
14
- // Try node_modules/.bin in project root
15
- const bundled = join(workingDirectory, 'node_modules', '.bin', command);
16
- if (existsSync(bundled))
26
+ const bundled = bundledCommandPath(command, workingDirectory);
27
+ if (bundled)
17
28
  return bundled;
18
29
  // Try .goodvibes/bin/ (downloaded binaries)
19
30
  const downloaded = getBinaryPath(join(workingDirectory, '.goodvibes', 'bin'), command);
@@ -110,8 +121,7 @@ export class LspService {
110
121
  if (!config)
111
122
  return false;
112
123
  // Check bundled first
113
- const bundled = join(this.roots.workingDirectory, 'node_modules', '.bin', config.command);
114
- if (existsSync(bundled))
124
+ if (bundledCommandPath(config.command, this.roots.workingDirectory))
115
125
  return true;
116
126
  // Check downloaded binaries
117
127
  const downloaded = getBinaryPath(this.roots.resolveProjectPath('bin'), config.command);
@@ -160,8 +170,7 @@ export class LspService {
160
170
  for (const { command, langIds, args } of WELL_KNOWN_SERVERS) {
161
171
  let found = false;
162
172
  // Check bundled first, then .goodvibes/bin/, then system PATH
163
- const bundledPath = join(this.roots.workingDirectory, 'node_modules', '.bin', command);
164
- if (existsSync(bundledPath)) {
173
+ if (bundledCommandPath(command, this.roots.workingDirectory)) {
165
174
  found = true;
166
175
  }
167
176
  // Check .goodvibes/bin/ (downloaded binaries)
@@ -1 +1 @@
1
- {"version":3,"file":"anthropic-vertex.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/providers/anthropic-vertex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAsBnE,qBAAa,uBAAwB,SAAQ,oBAAoB;;CAmChE"}
1
+ {"version":3,"file":"anthropic-vertex.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/providers/anthropic-vertex.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAoMnE,qBAAa,uBAAwB,SAAQ,oBAAoB;;CAmChE"}
@@ -1,10 +1,143 @@
1
- import { AnthropicVertex } from '@anthropic-ai/vertex-sdk';
1
+ import { BaseAnthropic } from '@anthropic-ai/sdk/client';
2
+ import * as Resources from '@anthropic-ai/sdk/resources/index';
3
+ import { AuthClient, GoogleAuth } from 'google-auth-library';
2
4
  import { AnthropicSdkProvider } from './anthropic-sdk-provider.js';
5
+ const DEFAULT_VERSION = 'vertex-2023-10-16';
6
+ const MODEL_ENDPOINTS = new Set(['/v1/messages', '/v1/messages?beta=true']);
3
7
  const VERTEX_MODELS = [
4
8
  'claude-sonnet-4-6',
5
9
  'claude-opus-4-6',
6
10
  'claude-haiku-4-5',
7
11
  ];
12
+ function readEnv(name) {
13
+ return process.env[name] ?? null;
14
+ }
15
+ function isRecord(value) {
16
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
17
+ }
18
+ function resolveVertexBaseUrl(region) {
19
+ if (region === 'global')
20
+ return 'https://aiplatform.googleapis.com/v1';
21
+ if (region === 'us')
22
+ return 'https://aiplatform.us.rep.googleapis.com/v1';
23
+ if (region === 'eu')
24
+ return 'https://aiplatform.eu.rep.googleapis.com/v1';
25
+ return `https://${region}-aiplatform.googleapis.com/v1`;
26
+ }
27
+ function mergeHeaders(authHeaders, existingHeaders) {
28
+ const merged = new Headers(authHeaders);
29
+ if (existingHeaders instanceof Headers) {
30
+ existingHeaders.forEach((value, key) => merged.set(key, value));
31
+ return merged;
32
+ }
33
+ if (Array.isArray(existingHeaders)) {
34
+ for (const entry of existingHeaders) {
35
+ if (Array.isArray(entry) && entry.length >= 2) {
36
+ const [key, value] = entry;
37
+ if (typeof key === 'string' && typeof value === 'string') {
38
+ merged.set(key, value);
39
+ }
40
+ }
41
+ }
42
+ return merged;
43
+ }
44
+ if (isRecord(existingHeaders)) {
45
+ for (const [key, value] of Object.entries(existingHeaders)) {
46
+ if (typeof value === 'string') {
47
+ merged.set(key, value);
48
+ }
49
+ else if (Array.isArray(value)) {
50
+ for (const item of value) {
51
+ if (typeof item === 'string')
52
+ merged.append(key, item);
53
+ }
54
+ }
55
+ }
56
+ }
57
+ return merged;
58
+ }
59
+ class AnthropicVertexClient extends BaseAnthropic {
60
+ messages;
61
+ beta;
62
+ region;
63
+ projectId;
64
+ authClientPromise;
65
+ constructor({ baseURL = readEnv('ANTHROPIC_VERTEX_BASE_URL'), region = readEnv('CLOUD_ML_REGION'), projectId = readEnv('ANTHROPIC_VERTEX_PROJECT_ID'), googleAuth, authClient, ...options } = {}) {
66
+ const resolvedRegion = region ?? 'global';
67
+ super({
68
+ baseURL: baseURL ?? resolveVertexBaseUrl(resolvedRegion),
69
+ ...options,
70
+ });
71
+ if (authClient && googleAuth) {
72
+ throw new Error('Provide either authClient or googleAuth for Anthropic Vertex, not both.');
73
+ }
74
+ this.messages = makeMessagesResource(this);
75
+ this.beta = makeBetaResource(this);
76
+ this.region = resolvedRegion;
77
+ this.projectId = projectId;
78
+ this.authClientPromise = authClient
79
+ ? Promise.resolve(authClient)
80
+ : (googleAuth ?? new GoogleAuth({ scopes: 'https://www.googleapis.com/auth/cloud-platform' })).getClient();
81
+ }
82
+ validateHeaders() {
83
+ // Vertex auth headers are resolved asynchronously in prepareOptions.
84
+ }
85
+ async prepareOptions(options) {
86
+ const authClient = await this.authClientPromise;
87
+ const authHeaders = await authClient.getRequestHeaders();
88
+ const credentialProjectId = authClient.projectId ?? authHeaders.get('x-goog-user-project');
89
+ if (!this.projectId && credentialProjectId) {
90
+ this.projectId = credentialProjectId;
91
+ }
92
+ options.headers = mergeHeaders(authHeaders, options.headers);
93
+ }
94
+ async buildRequest(options, context) {
95
+ if (isRecord(options.body)) {
96
+ options.body = { ...options.body };
97
+ }
98
+ if (isRecord(options.body) && !options.body['anthropic_version']) {
99
+ options.body['anthropic_version'] = DEFAULT_VERSION;
100
+ }
101
+ if (MODEL_ENDPOINTS.has(options.path) && options.method === 'post') {
102
+ if (!this.projectId) {
103
+ throw new Error('No projectId was given and it could not be resolved from credentials. '
104
+ + 'Set ANTHROPIC_VERTEX_PROJECT_ID, GOOGLE_CLOUD_PROJECT, or GOOGLE_CLOUD_PROJECT_ID.');
105
+ }
106
+ if (!isRecord(options.body)) {
107
+ throw new Error('Expected request body to be an object for Vertex messages requests.');
108
+ }
109
+ const model = options.body['model'];
110
+ if (typeof model !== 'string' || model.length === 0) {
111
+ throw new Error('Expected request body to include a non-empty Vertex model string.');
112
+ }
113
+ options.body['model'] = undefined;
114
+ const stream = options.body['stream'] ?? false;
115
+ const specifier = stream ? 'streamRawPredict' : 'rawPredict';
116
+ options.path = `/projects/${this.projectId}/locations/${this.region}/publishers/anthropic/models/${model}:${specifier}`;
117
+ }
118
+ if (options.path === '/v1/messages/count_tokens'
119
+ || (options.path === '/v1/messages/count_tokens?beta=true' && options.method === 'post')) {
120
+ if (!this.projectId) {
121
+ throw new Error('No projectId was given and it could not be resolved from credentials. '
122
+ + 'Set ANTHROPIC_VERTEX_PROJECT_ID, GOOGLE_CLOUD_PROJECT, or GOOGLE_CLOUD_PROJECT_ID.');
123
+ }
124
+ options.path = `/projects/${this.projectId}/locations/${this.region}/publishers/anthropic/models/count-tokens:rawPredict`;
125
+ }
126
+ return super.buildRequest(options, context);
127
+ }
128
+ }
129
+ function makeMessagesResource(client) {
130
+ const resource = new Resources.Messages(client);
131
+ // Vertex does not expose Anthropic message batches.
132
+ delete resource.batches;
133
+ return resource;
134
+ }
135
+ function makeBetaResource(client) {
136
+ const resource = new Resources.Beta(client);
137
+ // Vertex does not expose Anthropic beta message batches.
138
+ delete resource.messages.batches;
139
+ return resource;
140
+ }
8
141
  function resolveVertexProjectId() {
9
142
  return process.env['ANTHROPIC_VERTEX_PROJECT_ID']
10
143
  ?? process.env['GOOGLE_CLOUD_PROJECT']
@@ -23,7 +156,7 @@ export class AnthropicVertexProvider extends AnthropicSdkProvider {
23
156
  label: 'Anthropic Vertex',
24
157
  defaultModel: 'claude-sonnet-4-6',
25
158
  models: VERTEX_MODELS,
26
- createClient: () => new AnthropicVertex({
159
+ createClient: () => new AnthropicVertexClient({
27
160
  projectId: resolveVertexProjectId(),
28
161
  region: process.env['GOOGLE_CLOUD_LOCATION'] ?? process.env['CLOUD_ML_REGION'] ?? 'global',
29
162
  }),
@@ -1,6 +1,6 @@
1
1
  import { readFileSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
- let version = '0.25.0';
3
+ let version = '0.25.1';
4
4
  try {
5
5
  const pkg = JSON.parse(readFileSync(join(import.meta.dir, '..', '..', 'package.json'), 'utf-8'));
6
6
  version = pkg.version ?? version;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/watchers/registry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAkB,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAuB,MAAM,sCAAsC,CAAC;A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qB;IAC9C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,eAAe,CAA+B;IACtD,OAAO,CAAC,UAAU,CAAgC;IAClD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoB;IACjD,OAAO,CAAC,MAAM,CAAS;gBAEX,OAAO,GAAE,sBAA2B;IAKhD,OAAO,CAAC,SAAS;IAMjB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,WAAW;IAOnB,aAAa,CAAC,MAAM,EAAE;QACpB,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;QAC5C,QAAQ,CAAC,UAAU,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;KAC9C,GAAG,IAAI;IAYR,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,aAAa;IAwC3D,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,GAAG,aAAa;IAezE,IAAI,IAAI,aAAa,EAAE;IAsBvB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAiB5C,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAwC9C,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,SAAY,GAAG,aAAa,GAAG,IAAI;IA+B3D,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAS9D,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAqBlC,OAAO,CAAC,YAAY;IAmCpB,OAAO,CAAC,eAAe;YAYT,UAAU;IA6DxB,OAAO,CAAC,gBAAgB;IA+DxB,OAAO,CAAC,OAAO;CAShB"}
@@ -91,7 +91,10 @@ export class WatcherRegistry {
91
91
  this.featureFlags = options.featureFlags ?? null;
92
92
  }
93
93
  isEnabled() {
94
- return isFeatureGateEnabled(this.featureFlags, 'watcher-framework', ['managed-watcher-services']);
94
+ const enabled = isFeatureGateEnabled(this.featureFlags, 'watcher-framework', ['managed-watcher-services']);
95
+ if (!enabled)
96
+ this.clearTimers();
97
+ return enabled;
95
98
  }
96
99
  requireEnabled(operation) {
97
100
  requireFeatureGate(this.featureFlags, 'watcher-framework', operation, ['managed-watcher-services']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pellux/goodvibes-sdk",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/mgd34msu/goodvibes-sdk.git"
@@ -8,13 +8,13 @@
8
8
  "main": "./dist/index.js",
9
9
  "dependencies": {
10
10
  "@agentclientprotocol/sdk": "^0.16.1",
11
- "@anthropic-ai/bedrock-sdk": "^0.28.1",
11
+ "@anthropic-ai/bedrock-sdk": "^0.29.0",
12
12
  "@anthropic-ai/sdk": "^0.82.0",
13
- "@anthropic-ai/vertex-sdk": "^0.16.0",
14
13
  "@ast-grep/napi": "^0.42.0",
15
14
  "@aws/bedrock-token-generator": "^1.1.0",
16
- "bash-language-server": "^5.6.0",
15
+ "bash-language-server": "file:vendor/bash-language-server",
17
16
  "fuse.js": "^7.1.0",
17
+ "google-auth-library": "10.6.2",
18
18
  "graphql": "^16.13.2",
19
19
  "jszip": "^3.10.1",
20
20
  "node-edge-tts": "^1.2.10",
@@ -113,7 +113,7 @@
113
113
  "files": [
114
114
  "dist",
115
115
  "sbom.cdx.json",
116
- "scripts/postinstall-patch-minimatch.mjs"
116
+ "vendor/bash-language-server"
117
117
  ],
118
118
  "homepage": "https://github.com/mgd34msu/goodvibes-sdk",
119
119
  "keywords": [
@@ -146,9 +146,10 @@
146
146
  }
147
147
  },
148
148
  "overrides": {
149
+ "ajv": "8.18.0",
150
+ "fast-xml-parser": "5.7.1",
151
+ "google-auth-library": "10.6.2",
152
+ "lodash": "4.18.1",
149
153
  "minimatch": "^10.2.5"
150
- },
151
- "scripts": {
152
- "postinstall": "node scripts/postinstall-patch-minimatch.mjs"
153
154
  }
154
155
  }