@costrict/cs 2.0.2 → 2.0.4

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/bundle/gemini.js CHANGED
@@ -91151,19 +91151,19 @@ var init_debugLogger = __esm({
91151
91151
  log(...args2) {
91152
91152
  this.writeToFile("LOG", args2);
91153
91153
  if (this.debugEnabled) {
91154
- console.log(...args2);
91154
+ console.debug(...args2);
91155
91155
  }
91156
91156
  }
91157
91157
  warn(...args2) {
91158
91158
  this.writeToFile("WARN", args2);
91159
91159
  if (this.debugEnabled) {
91160
- console.warn(...args2);
91160
+ console.debug(...args2);
91161
91161
  }
91162
91162
  }
91163
91163
  error(...args2) {
91164
91164
  this.writeToFile("ERROR", args2);
91165
91165
  if (this.debugEnabled) {
91166
- console.error(...args2);
91166
+ console.debug(...args2);
91167
91167
  }
91168
91168
  }
91169
91169
  debug(...args2) {
@@ -109319,7 +109319,9 @@ var init_tools = __esm({
109319
109319
  timeoutId = void 0;
109320
109320
  }
109321
109321
  abortSignal.removeEventListener("abort", abortHandler);
109322
- this.messageBus?.unsubscribe(MessageBusType.TOOL_CONFIRMATION_RESPONSE, responseHandler);
109322
+ if (this.messageBus && typeof this.messageBus.unsubscribe === "function") {
109323
+ this.messageBus.unsubscribe(MessageBusType.TOOL_CONFIRMATION_RESPONSE, responseHandler);
109324
+ }
109323
109325
  };
109324
109326
  const abortHandler = () => {
109325
109327
  cleanup();
@@ -109346,7 +109348,9 @@ var init_tools = __esm({
109346
109348
  cleanup();
109347
109349
  resolve29("ASK_USER");
109348
109350
  }, 3e4);
109349
- this.messageBus.subscribe(MessageBusType.TOOL_CONFIRMATION_RESPONSE, responseHandler);
109351
+ if (this.messageBus && typeof this.messageBus.subscribe === "function") {
109352
+ this.messageBus.subscribe(MessageBusType.TOOL_CONFIRMATION_RESPONSE, responseHandler);
109353
+ }
109350
109354
  const request3 = {
109351
109355
  type: MessageBusType.TOOL_CONFIRMATION_REQUEST,
109352
109356
  toolCall,
@@ -118583,7 +118587,7 @@ import { fileURLToPath as fileURLToPath4 } from "node:url";
118583
118587
  import path16 from "node:path";
118584
118588
  async function getVersion() {
118585
118589
  const pkgJson = await getPackageJson(__dirname3);
118586
- return "2.0.2";
118590
+ return "2.0.4";
118587
118591
  }
118588
118592
  var __filename2, __dirname3;
118589
118593
  var init_version2 = __esm({
@@ -173540,8 +173544,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
173540
173544
  var init_git_commit = __esm({
173541
173545
  "packages/core/dist/src/generated/git-commit.js"() {
173542
173546
  "use strict";
173543
- GIT_COMMIT_INFO = "5826adddd";
173544
- CLI_VERSION = "2.0.1";
173547
+ GIT_COMMIT_INFO = "a48888634";
173548
+ CLI_VERSION = "2.0.4";
173545
173549
  }
173546
173550
  });
173547
173551
 
@@ -261264,15 +261268,6 @@ var init_custom_llm = __esm({
261264
261268
  } catch (_e) {
261265
261269
  debugLogger.log("[CustomLLM] stream_options not supported, continuing without it");
261266
261270
  }
261267
- debugLogger.log("[CustomLLM] Sending stream request:", JSON.stringify({
261268
- model: requestParams.model,
261269
- messagesCount: messages.length,
261270
- messages,
261271
- toolsCount: tools.length,
261272
- includesTools: !!requestParams.tools,
261273
- hasStreamOptions: !!requestParams.stream_options,
261274
- allParams: Object.keys(requestParams)
261275
- }, null, 2));
261276
261271
  const stream2 = await this.model.chat.completions.create(requestParams);
261277
261272
  const map4 = /* @__PURE__ */ new Map();
261278
261273
  return async function* () {
@@ -262233,7 +262228,7 @@ var init_default2 = __esm({
262233
262228
  this.contentGeneratorConfig = contentGeneratorConfig;
262234
262229
  }
262235
262230
  buildHeaders() {
262236
- const version4 = "2.0.2";
262231
+ const version4 = "2.0.4";
262237
262232
  const userAgent = `CoStrict/${version4} (${process.platform}; ${process.arch})`;
262238
262233
  return {
262239
262234
  "User-Agent": userAgent
@@ -262267,9 +262262,13 @@ var init_costrict = __esm({
262267
262262
  "use strict";
262268
262263
  init_dist_node();
262269
262264
  init_default2();
262265
+ init_installationManager();
262270
262266
  CoStrictOpenAICompatibleProvider = class extends DefaultOpenAICompatibleProvider {
262267
+ clientId;
262271
262268
  constructor(contentGeneratorConfig, cliConfig) {
262272
262269
  super(contentGeneratorConfig, cliConfig);
262270
+ const installationManager2 = new InstallationManager();
262271
+ this.clientId = installationManager2.getInstallationId();
262273
262272
  }
262274
262273
  /**
262275
262274
  * Check if this is a CoStrict provider based on base URL
@@ -262280,18 +262279,26 @@ var init_costrict = __esm({
262280
262279
  }
262281
262280
  /**
262282
262281
  * Build headers with CoStrict-specific requirements
262282
+ * Note: zgsm-task-id is set dynamically to capture the current session ID
262283
+ * This ensures that if the session ID changes (e.g., via /clear command),
262284
+ * the header will use the updated value in subsequent requests
262283
262285
  */
262284
262286
  buildHeaders() {
262285
262287
  const baseHeaders = super.buildHeaders();
262286
- const version4 = "2.0.2";
262288
+ const version4 = "2.0.4";
262287
262289
  const requestId = v7_default();
262288
- return {
262290
+ const headers = {
262289
262291
  ...baseHeaders,
262290
262292
  "HTTP-Referer": "https://github.com/zgsm-ai/costrict-cli",
262291
262293
  "X-Title": "CoStrict CLI",
262292
262294
  "X-Costrict-Version": `costrict-cli-${version4}`,
262293
- "X-Request-ID": requestId
262295
+ "X-Request-ID": requestId,
262296
+ "zgsm-client-id": this.clientId,
262297
+ "zgsm-client-ide": "cli",
262298
+ // Capture current session ID - this will be called each time buildHeaders is invoked
262299
+ "zgsm-task-id": this.cliConfig.getSessionId()
262294
262300
  };
262301
+ return headers;
262295
262302
  }
262296
262303
  };
262297
262304
  }
@@ -262899,7 +262906,7 @@ var init_dashscope = __esm({
262899
262906
  return baseUrl === "https://dashscope.aliyuncs.com/compatible-mode/v1" || baseUrl === "https://dashscope-intl.aliyuncs.com/compatible-mode/v1";
262900
262907
  }
262901
262908
  buildHeaders() {
262902
- const version4 = "2.0.2";
262909
+ const version4 = "2.0.4";
262903
262910
  const userAgent = `CoStrict/${version4} (${process.platform}; ${process.arch})`;
262904
262911
  const { authType } = this.contentGeneratorConfig;
262905
262912
  return {
@@ -352217,10 +352224,23 @@ var init_gitService = __esm({
352217
352224
  debugLogger.debug(`checkIsRepo failed, will initialize repository: ${error40 instanceof Error ? error40.message : String(error40)}`);
352218
352225
  }
352219
352226
  if (!isRepoDefined) {
352220
- await repo.init(false, {
352221
- "--initial-branch": "main"
352222
- });
352227
+ try {
352228
+ await repo.init(false, {
352229
+ "--initial-branch": "main"
352230
+ });
352231
+ } catch (error40) {
352232
+ debugLogger.debug(`init with --initial-branch failed, using fallback: ${error40 instanceof Error ? error40.message : String(error40)}`);
352233
+ await repo.init(false);
352234
+ }
352223
352235
  await repo.commit("Initial commit", { "--allow-empty": null });
352236
+ try {
352237
+ const currentBranch = await repo.raw(["branch", "--show-current"]);
352238
+ if (currentBranch.trim() !== "main") {
352239
+ await repo.raw(["branch", "-M", "main"]);
352240
+ }
352241
+ } catch (error40) {
352242
+ debugLogger.debug(`Failed to rename branch to main: ${error40 instanceof Error ? error40.message : String(error40)}`);
352243
+ }
352224
352244
  }
352225
352245
  const userGitIgnorePath = path45.join(this.projectRoot, ".gitignore");
352226
352246
  const shadowGitIgnorePath = path45.join(repoDir, ".gitignore");
@@ -365916,6 +365936,7 @@ var init_modelCache = __esm({
365916
365936
  "packages/core/dist/src/services/modelCache.js"() {
365917
365937
  "use strict";
365918
365938
  init_storage();
365939
+ init_debugLogger();
365919
365940
  CACHE_VERSION2 = "1.0";
365920
365941
  ModelCache = class {
365921
365942
  /**
@@ -365929,20 +365950,20 @@ var init_modelCache = __esm({
365929
365950
  const content = await fs59.readFile(cachePath, "utf-8");
365930
365951
  const cached2 = JSON.parse(content);
365931
365952
  if (cached2.version !== CACHE_VERSION2) {
365932
- console.warn(`[ModelCache] Cache version mismatch for ${cacheKey}, ignoring`);
365953
+ debugLogger.warn(`[ModelCache] Cache version mismatch for ${cacheKey}, ignoring`);
365933
365954
  return null;
365934
365955
  }
365935
365956
  if (Date.now() >= cached2.expiresAt) {
365936
- console.warn(`[ModelCache] Cache expired for ${cacheKey}`);
365957
+ debugLogger.warn(`[ModelCache] Cache expired for ${cacheKey}`);
365937
365958
  return null;
365938
365959
  }
365939
- console.log(`[ModelCache] Cache hit for ${cacheKey}`);
365960
+ debugLogger.log(`[ModelCache] Cache hit for ${cacheKey}`);
365940
365961
  return cached2.models;
365941
365962
  } catch (error40) {
365942
365963
  if (error40 && typeof error40 === "object" && "code" in error40 && error40.code === "ENOENT") {
365943
365964
  return null;
365944
365965
  }
365945
- console.warn(`[ModelCache] Failed to read cache for ${cacheKey}:`, error40);
365966
+ debugLogger.warn(`[ModelCache] Failed to read cache for ${cacheKey}:`, error40);
365946
365967
  return null;
365947
365968
  }
365948
365969
  }
@@ -365965,9 +365986,9 @@ var init_modelCache = __esm({
365965
365986
  models
365966
365987
  };
365967
365988
  await fs59.writeFile(cachePath, JSON.stringify(cached2, null, 2), "utf-8");
365968
- console.log(`[ModelCache] Cache saved for ${cacheKey}`);
365989
+ debugLogger.log(`[ModelCache] Cache saved for ${cacheKey}`);
365969
365990
  } catch (error40) {
365970
- console.warn(`[ModelCache] Failed to save cache for ${cacheKey}:`, error40);
365991
+ debugLogger.warn(`[ModelCache] Failed to save cache for ${cacheKey}:`, error40);
365971
365992
  }
365972
365993
  }
365973
365994
  /**
@@ -365978,12 +365999,12 @@ var init_modelCache = __esm({
365978
365999
  try {
365979
366000
  const cachePath = Storage.getModelCachePath(cacheKey);
365980
366001
  await fs59.unlink(cachePath);
365981
- console.log(`[ModelCache] Cache cleared for ${cacheKey}`);
366002
+ debugLogger.log(`[ModelCache] Cache cleared for ${cacheKey}`);
365982
366003
  } catch (error40) {
365983
366004
  if (error40 && typeof error40 === "object" && "code" in error40 && error40.code === "ENOENT") {
365984
366005
  return;
365985
366006
  }
365986
- console.warn(`[ModelCache] Failed to clear cache for ${cacheKey}:`, error40);
366007
+ debugLogger.warn(`[ModelCache] Failed to clear cache for ${cacheKey}:`, error40);
365987
366008
  }
365988
366009
  }
365989
366010
  /**
@@ -366003,10 +366024,10 @@ var init_modelCache = __esm({
366003
366024
  const cached2 = JSON.parse(content);
366004
366025
  if (Date.now() >= cached2.expiresAt) {
366005
366026
  await fs59.unlink(filePath);
366006
- console.log(`[ModelCache] Removed expired cache: ${cached2.authType}`);
366027
+ debugLogger.log(`[ModelCache] Removed expired cache: ${cached2.authType}`);
366007
366028
  }
366008
366029
  } catch (error40) {
366009
- console.warn(`[ModelCache] Failed to process ${file2}:`, error40);
366030
+ debugLogger.warn(`[ModelCache] Failed to process ${file2}:`, error40);
366010
366031
  }
366011
366032
  }
366012
366033
  } catch (error40) {
@@ -366016,7 +366037,7 @@ var init_modelCache = __esm({
366016
366037
  throw error40;
366017
366038
  }
366018
366039
  } catch (error40) {
366019
- console.warn("[ModelCache] Failed to clear expired caches:", error40);
366040
+ debugLogger.warn("[ModelCache] Failed to clear expired caches:", error40);
366020
366041
  }
366021
366042
  }
366022
366043
  };
@@ -366329,7 +366350,7 @@ var init_costrictModelProvider = __esm({
366329
366350
  debugLogger.warn("[CoStrictModelProvider] Failed to get auth token:", error40);
366330
366351
  throw new Error(`Failed to get CoStrict auth token: ${error40 instanceof Error ? error40.message : String(error40)}`);
366331
366352
  }
366332
- const version4 = "2.0.2";
366353
+ const version4 = "2.0.4";
366333
366354
  const requestId = v7_default();
366334
366355
  const headers = {
366335
366356
  Authorization: `Bearer ${token2}`,
@@ -376337,7 +376358,11 @@ var init_config3 = __esm({
376337
376358
  this.getFileService();
376338
376359
  if (this.getCheckpointingEnabled()) {
376339
376360
  debugLogger.log("[Config.initialize] Getting GitService...");
376340
- await this.getGitService();
376361
+ try {
376362
+ await this.getGitService();
376363
+ } catch (error40) {
376364
+ debugLogger.warn("Failed to initialize GitService, checkpointing may not work properly:", error40);
376365
+ }
376341
376366
  }
376342
376367
  debugLogger.log("[Config.initialize] Creating PromptRegistry and ResourceRegistry...");
376343
376368
  this.promptRegistry = new PromptRegistry();
@@ -376345,7 +376370,11 @@ var init_config3 = __esm({
376345
376370
  debugLogger.log("[Config.initialize] Creating AgentRegistry...");
376346
376371
  this.agentRegistry = new AgentRegistry(this);
376347
376372
  debugLogger.log("[Config.initialize] Initializing AgentRegistry...");
376348
- await this.agentRegistry.initialize();
376373
+ try {
376374
+ await this.agentRegistry.initialize();
376375
+ } catch (error40) {
376376
+ debugLogger.warn("Failed to initialize AgentRegistry:", error40);
376377
+ }
376349
376378
  if (this.enableAgents) {
376350
376379
  const { subagentManager: subagentManager2 } = await Promise.resolve().then(() => (init_manager(), manager_exports));
376351
376380
  debugLogger.log("[Config.initialize] Initializing SubagentManager...");
@@ -376364,24 +376393,40 @@ var init_config3 = __esm({
376364
376393
  this.mcpClientManager = new McpClientManager(this.toolRegistry, this, this.eventEmitter);
376365
376394
  const initMcpHandle = startupProfiler.start("initialize_mcp_clients");
376366
376395
  debugLogger.log("[Config.initialize] Starting MCP servers and extensions...");
376367
- await Promise.all([
376368
- await this.mcpClientManager.startConfiguredMcpServers(),
376369
- await this.getExtensionLoader().start(this)
376370
- ]);
376396
+ try {
376397
+ await Promise.all([
376398
+ this.mcpClientManager.startConfiguredMcpServers().catch((error40) => {
376399
+ debugLogger.warn("Failed to start some MCP servers:", error40);
376400
+ }),
376401
+ this.getExtensionLoader().start(this).catch((error40) => {
376402
+ debugLogger.warn("Failed to start extensions:", error40);
376403
+ })
376404
+ ]);
376405
+ } catch (error40) {
376406
+ debugLogger.warn("Failed to start MCP servers and extensions:", error40);
376407
+ }
376371
376408
  initMcpHandle?.end();
376372
376409
  debugLogger.log("[Config.initialize] MCP and extensions started.");
376373
376410
  if (this.skillsSupport) {
376374
376411
  debugLogger.log("[Config.initialize] Discovering skills...");
376375
- await this.getSkillManager().discoverSkills(this.storage);
376376
- this.getSkillManager().setDisabledSkills(this.disabledSkills);
376377
- if (this.getSkillManager().getSkills().length > 0) {
376378
- this.getToolRegistry().registerTool(new ActivateSkillTool(this, this.messageBus));
376412
+ try {
376413
+ await this.getSkillManager().discoverSkills(this.storage);
376414
+ this.getSkillManager().setDisabledSkills(this.disabledSkills);
376415
+ if (this.getSkillManager().getSkills().length > 0) {
376416
+ this.getToolRegistry().registerTool(new ActivateSkillTool(this, this.messageBus));
376417
+ }
376418
+ } catch (error40) {
376419
+ debugLogger.warn("Failed to discover skills:", error40);
376379
376420
  }
376380
376421
  }
376381
376422
  if (this.enableHooks) {
376382
376423
  debugLogger.log("[Config.initialize] Initializing HookSystem...");
376383
376424
  this.hookSystem = new HookSystem(this);
376384
- await this.hookSystem.initialize();
376425
+ try {
376426
+ await this.hookSystem.initialize();
376427
+ } catch (error40) {
376428
+ debugLogger.warn("Failed to initialize HookSystem, hooks may not work properly:", error40);
376429
+ }
376385
376430
  }
376386
376431
  if (this.experimentalJitContext) {
376387
376432
  debugLogger.log("[Config.initialize] Creating ContextManager...");
@@ -461525,7 +461570,7 @@ var RetryMessage = ({
461525
461570
  };
461526
461571
 
461527
461572
  // packages/cli/src/generated/git-commit.ts
461528
- var GIT_COMMIT_INFO2 = "0a733cf89";
461573
+ var GIT_COMMIT_INFO2 = "065d8ea7c";
461529
461574
 
461530
461575
  // packages/cli/src/ui/components/AboutBox.tsx
461531
461576
  var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1);
@@ -470284,7 +470329,9 @@ function LoginDialog({
470284
470329
  onCancel();
470285
470330
  }
470286
470331
  },
470287
- { isActive: state !== "success" /* Success */ && state !== "failed" /* Failed */ }
470332
+ {
470333
+ isActive: state !== "success" /* Success */ && state !== "failed" /* Failed */ && state !== "cancelled" /* Cancelled */
470334
+ }
470288
470335
  );
470289
470336
  const getStateMessage = () => {
470290
470337
  switch (state) {
@@ -470444,7 +470491,7 @@ function LoginDialogContainer({
470444
470491
  errorMessage,
470445
470492
  pollingAttempt,
470446
470493
  maxAttempts: 120,
470447
- onCancel: state !== "success" /* Success */ && state !== "failed" /* Failed */ ? handleCancel : void 0
470494
+ onCancel: state !== "success" /* Success */ && state !== "failed" /* Failed */ && state !== "cancelled" /* Cancelled */ ? handleCancel : void 0
470448
470495
  }
470449
470496
  );
470450
470497
  }
@@ -472426,22 +472473,39 @@ var DialogManager = ({
472426
472473
  Date.now()
472427
472474
  );
472428
472475
  uiActions.setAuthState("unauthenticated" /* Unauthenticated */);
472476
+ uiActions.refreshStatic();
472429
472477
  } else {
472478
+ const msg = errorMessage || "Unknown error";
472479
+ const isCancelled = msg.toLowerCase().includes("cancelled") || msg.toLowerCase().includes("aborted");
472480
+ if (isCancelled) {
472481
+ addItem(
472482
+ {
472483
+ type: "info" /* INFO */,
472484
+ text: "\u2297 Login cancelled"
472485
+ },
472486
+ Date.now()
472487
+ );
472488
+ uiActions.onAuthError(null);
472489
+ uiActions.setAuthState("updating" /* Updating */);
472490
+ uiActions.refreshStatic();
472491
+ return;
472492
+ }
472430
472493
  addItem(
472431
472494
  {
472432
472495
  type: "error" /* ERROR */,
472433
472496
  text: [
472434
472497
  "\u2717 Login failed",
472435
472498
  "",
472436
- `Error: ${errorMessage || "Unknown error"}`,
472499
+ `Error: ${msg}`,
472437
472500
  "",
472438
472501
  "Please try again or select a different authentication method."
472439
472502
  ].join("\n")
472440
472503
  },
472441
472504
  Date.now()
472442
472505
  );
472443
- uiActions.onAuthError(errorMessage || "Login failed");
472506
+ uiActions.onAuthError(msg);
472444
472507
  uiActions.setAuthState("updating" /* Updating */);
472508
+ uiActions.refreshStatic();
472445
472509
  }
472446
472510
  }
472447
472511
  }
@@ -487592,13 +487656,18 @@ var costrictLoginCommand = {
487592
487656
  Date.now()
487593
487657
  );
487594
487658
  } else {
487659
+ const msg = errorMessage || "Unknown error";
487660
+ const isCancelled = msg.toLowerCase().includes("cancelled") || msg.toLowerCase().includes("aborted");
487595
487661
  context2.ui.addItem(
487596
- {
487662
+ isCancelled ? {
487663
+ type: "info" /* INFO */,
487664
+ text: "\u2297 Login cancelled"
487665
+ } : {
487597
487666
  type: "error" /* ERROR */,
487598
487667
  text: [
487599
487668
  "\u2717 Login failed",
487600
487669
  "",
487601
- `Error: ${errorMessage || "Unknown error"}`,
487670
+ `Error: ${msg}`,
487602
487671
  "",
487603
487672
  "Please try again or use the IDE plugin to log in.",
487604
487673
  "Credentials are shared via ~/.costrict/share/auth.json"
@@ -488588,7 +488657,10 @@ var useSlashCommandProcessor = (config2, settings, addItem, clearItems, loadHist
488588
488657
  extensionsUpdateState,
488589
488658
  dispatchExtensionStateUpdate: actions.dispatchExtensionStateUpdate,
488590
488659
  addConfirmUpdateExtensionRequest: actions.addConfirmUpdateExtensionRequest,
488591
- removeComponent: () => setCustomDialog(null)
488660
+ removeComponent: () => {
488661
+ setCustomDialog(null);
488662
+ refreshStatic();
488663
+ }
488592
488664
  },
488593
488665
  session: {
488594
488666
  stats: session.stats,
@@ -506398,6 +506470,15 @@ async function main() {
506398
506470
  const loadSettingsHandle = startupProfiler.start("load_settings");
506399
506471
  const settings = loadSettings();
506400
506472
  loadSettingsHandle?.end();
506473
+ const earlyConsolePatcher = new ConsolePatcher({
506474
+ stderr: true,
506475
+ debugMode: false,
506476
+ // Default to false to suppress debug logs
506477
+ onNewMessage: (msg) => {
506478
+ coreEvents.emitConsoleLog(msg.type, msg.content);
506479
+ }
506480
+ });
506481
+ earlyConsolePatcher.patch();
506401
506482
  const shellDetectionHandle = startupProfiler.start("shell_detection");
506402
506483
  const detectionMode = settings.merged.tools?.shell?.detectionMode ?? "current";
506403
506484
  setShellDetectionMode(detectionMode);
@@ -506430,6 +506511,7 @@ async function main() {
506430
506511
  process.exit(ExitCodes2.FATAL_INPUT_ERROR);
506431
506512
  }
506432
506513
  const isDebugMode2 = isDebugMode(argv);
506514
+ earlyConsolePatcher.cleanup();
506433
506515
  const consolePatcher = new ConsolePatcher({
506434
506516
  stderr: true,
506435
506517
  debugMode: isDebugMode2,
@@ -40162,19 +40162,19 @@ var DebugLogger = class {
40162
40162
  log(...args2) {
40163
40163
  this.writeToFile("LOG", args2);
40164
40164
  if (this.debugEnabled) {
40165
- console.log(...args2);
40165
+ console.debug(...args2);
40166
40166
  }
40167
40167
  }
40168
40168
  warn(...args2) {
40169
40169
  this.writeToFile("WARN", args2);
40170
40170
  if (this.debugEnabled) {
40171
- console.warn(...args2);
40171
+ console.debug(...args2);
40172
40172
  }
40173
40173
  }
40174
40174
  error(...args2) {
40175
40175
  this.writeToFile("ERROR", args2);
40176
40176
  if (this.debugEnabled) {
40177
- console.error(...args2);
40177
+ console.debug(...args2);
40178
40178
  }
40179
40179
  }
40180
40180
  debug(...args2) {
@@ -40912,19 +40912,19 @@ var DebugLogger = class {
40912
40912
  log(...args2) {
40913
40913
  this.writeToFile("LOG", args2);
40914
40914
  if (this.debugEnabled) {
40915
- console.log(...args2);
40915
+ console.debug(...args2);
40916
40916
  }
40917
40917
  }
40918
40918
  warn(...args2) {
40919
40919
  this.writeToFile("WARN", args2);
40920
40920
  if (this.debugEnabled) {
40921
- console.warn(...args2);
40921
+ console.debug(...args2);
40922
40922
  }
40923
40923
  }
40924
40924
  error(...args2) {
40925
40925
  this.writeToFile("ERROR", args2);
40926
40926
  if (this.debugEnabled) {
40927
- console.error(...args2);
40927
+ console.debug(...args2);
40928
40928
  }
40929
40929
  }
40930
40930
  debug(...args2) {
@@ -40136,19 +40136,19 @@ var DebugLogger = class {
40136
40136
  log(...args2) {
40137
40137
  this.writeToFile("LOG", args2);
40138
40138
  if (this.debugEnabled) {
40139
- console.log(...args2);
40139
+ console.debug(...args2);
40140
40140
  }
40141
40141
  }
40142
40142
  warn(...args2) {
40143
40143
  this.writeToFile("WARN", args2);
40144
40144
  if (this.debugEnabled) {
40145
- console.warn(...args2);
40145
+ console.debug(...args2);
40146
40146
  }
40147
40147
  }
40148
40148
  error(...args2) {
40149
40149
  this.writeToFile("ERROR", args2);
40150
40150
  if (this.debugEnabled) {
40151
- console.error(...args2);
40151
+ console.debug(...args2);
40152
40152
  }
40153
40153
  }
40154
40154
  debug(...args2) {
@@ -41994,19 +41994,19 @@ var DebugLogger = class {
41994
41994
  log(...args2) {
41995
41995
  this.writeToFile("LOG", args2);
41996
41996
  if (this.debugEnabled) {
41997
- console.log(...args2);
41997
+ console.debug(...args2);
41998
41998
  }
41999
41999
  }
42000
42000
  warn(...args2) {
42001
42001
  this.writeToFile("WARN", args2);
42002
42002
  if (this.debugEnabled) {
42003
- console.warn(...args2);
42003
+ console.debug(...args2);
42004
42004
  }
42005
42005
  }
42006
42006
  error(...args2) {
42007
42007
  this.writeToFile("ERROR", args2);
42008
42008
  if (this.debugEnabled) {
42009
- console.error(...args2);
42009
+ console.debug(...args2);
42010
42010
  }
42011
42011
  }
42012
42012
  debug(...args2) {
@@ -42542,19 +42542,19 @@ var DebugLogger = class {
42542
42542
  log(...args2) {
42543
42543
  this.writeToFile("LOG", args2);
42544
42544
  if (this.debugEnabled) {
42545
- console.log(...args2);
42545
+ console.debug(...args2);
42546
42546
  }
42547
42547
  }
42548
42548
  warn(...args2) {
42549
42549
  this.writeToFile("WARN", args2);
42550
42550
  if (this.debugEnabled) {
42551
- console.warn(...args2);
42551
+ console.debug(...args2);
42552
42552
  }
42553
42553
  }
42554
42554
  error(...args2) {
42555
42555
  this.writeToFile("ERROR", args2);
42556
42556
  if (this.debugEnabled) {
42557
- console.error(...args2);
42557
+ console.debug(...args2);
42558
42558
  }
42559
42559
  }
42560
42560
  debug(...args2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@costrict/cs",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },