@toolforge-js/sdk 0.8.7 → 0.8.8

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.
@@ -5152,7 +5152,7 @@ declare class Block {
5152
5152
  type: "number" | "currency" | "percentage";
5153
5153
  decimals: number;
5154
5154
  currency: string;
5155
- currencyDisplay: "symbol" | "code" | "name";
5155
+ currencyDisplay: "symbol" | "name" | "code";
5156
5156
  thousandsSeparator: string;
5157
5157
  decimalSeparator: string;
5158
5158
  showPercentageSymbol: boolean;
@@ -5189,7 +5189,7 @@ declare class Block {
5189
5189
  type: "number" | "currency" | "percentage";
5190
5190
  decimals: number;
5191
5191
  currency: string;
5192
- currencyDisplay: "symbol" | "code" | "name";
5192
+ currencyDisplay: "symbol" | "name" | "code";
5193
5193
  thousandsSeparator: string;
5194
5194
  decimalSeparator: string;
5195
5195
  showPercentageSymbol: boolean;
@@ -5258,7 +5258,7 @@ declare class Block {
5258
5258
  type: "number" | "currency" | "percentage";
5259
5259
  decimals: number;
5260
5260
  currency: string;
5261
- currencyDisplay: "symbol" | "code" | "name";
5261
+ currencyDisplay: "symbol" | "name" | "code";
5262
5262
  thousandsSeparator: string;
5263
5263
  decimalSeparator: string;
5264
5264
  showPercentageSymbol: boolean;
@@ -5293,7 +5293,7 @@ declare class Block {
5293
5293
  type: "number" | "currency" | "percentage";
5294
5294
  decimals: number;
5295
5295
  currency: string;
5296
- currencyDisplay: "symbol" | "code" | "name";
5296
+ currencyDisplay: "symbol" | "name" | "code";
5297
5297
  thousandsSeparator: string;
5298
5298
  decimalSeparator: string;
5299
5299
  showPercentageSymbol: boolean;
@@ -5313,7 +5313,7 @@ declare class Block {
5313
5313
  chartType: "progress-bar";
5314
5314
  value: number;
5315
5315
  max: number;
5316
- variant: "error" | "success" | "default" | "neutral" | "warning";
5316
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5317
5317
  title?: string | undefined;
5318
5318
  description?: string | undefined;
5319
5319
  label?: string | number | undefined;
@@ -5329,7 +5329,7 @@ declare class Block {
5329
5329
  value: number;
5330
5330
  max: number;
5331
5331
  radius: number;
5332
- variant: "error" | "success" | "default" | "neutral" | "warning";
5332
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5333
5333
  title?: string | undefined;
5334
5334
  description?: string | undefined;
5335
5335
  };
@@ -5393,7 +5393,7 @@ declare class Block {
5393
5393
  type: "number" | "currency" | "percentage";
5394
5394
  decimals: number;
5395
5395
  currency: string;
5396
- currencyDisplay: "symbol" | "code" | "name";
5396
+ currencyDisplay: "symbol" | "name" | "code";
5397
5397
  thousandsSeparator: string;
5398
5398
  decimalSeparator: string;
5399
5399
  showPercentageSymbol: boolean;
@@ -5414,7 +5414,7 @@ declare class Block {
5414
5414
  type: "number" | "currency" | "percentage";
5415
5415
  decimals: number;
5416
5416
  currency: string;
5417
- currencyDisplay: "symbol" | "code" | "name";
5417
+ currencyDisplay: "symbol" | "name" | "code";
5418
5418
  thousandsSeparator: string;
5419
5419
  decimalSeparator: string;
5420
5420
  showPercentageSymbol: boolean;
@@ -5459,7 +5459,7 @@ declare class Block {
5459
5459
  type: "number" | "currency" | "percentage";
5460
5460
  decimals: number;
5461
5461
  currency: string;
5462
- currencyDisplay: "symbol" | "code" | "name";
5462
+ currencyDisplay: "symbol" | "name" | "code";
5463
5463
  thousandsSeparator: string;
5464
5464
  decimalSeparator: string;
5465
5465
  showPercentageSymbol: boolean;
@@ -5484,7 +5484,7 @@ declare class Block {
5484
5484
  type: "number" | "currency" | "percentage";
5485
5485
  decimals: number;
5486
5486
  currency: string;
5487
- currencyDisplay: "symbol" | "code" | "name";
5487
+ currencyDisplay: "symbol" | "name" | "code";
5488
5488
  thousandsSeparator: string;
5489
5489
  decimalSeparator: string;
5490
5490
  showPercentageSymbol: boolean;
@@ -5494,7 +5494,7 @@ declare class Block {
5494
5494
  suffix?: string | undefined;
5495
5495
  } | undefined;
5496
5496
  change?: string | number | undefined;
5497
- changeType?: "positive" | "negative" | "neutral" | undefined;
5497
+ changeType?: "neutral" | "positive" | "negative" | undefined;
5498
5498
  chart?: {
5499
5499
  values: (number | {
5500
5500
  value: number;
@@ -5514,14 +5514,14 @@ declare class Block {
5514
5514
  value: number;
5515
5515
  max: number;
5516
5516
  chartType: "progress-bar";
5517
- variant: "error" | "success" | "default" | "neutral" | "warning";
5517
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5518
5518
  label?: string | number | undefined;
5519
5519
  } | {
5520
5520
  type: "chart";
5521
5521
  value: number;
5522
5522
  max: number;
5523
5523
  chartType: "progress-circle";
5524
- variant: "error" | "success" | "default" | "neutral" | "warning";
5524
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5525
5525
  radius: number;
5526
5526
  } | {
5527
5527
  type: "chart";
@@ -5564,7 +5564,7 @@ declare class Block {
5564
5564
  type: "default";
5565
5565
  } | {
5566
5566
  type: "badge";
5567
- variant: "error" | "success" | "default" | "neutral" | "warning";
5567
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5568
5568
  } | {
5569
5569
  type: "image";
5570
5570
  width: number;
@@ -5574,7 +5574,7 @@ declare class Block {
5574
5574
  type: "progress";
5575
5575
  chartType: "bar" | "circle";
5576
5576
  maxValue: number;
5577
- variant: "error" | "success" | "default" | "neutral" | "warning";
5577
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5578
5578
  } | {
5579
5579
  type: "link";
5580
5580
  target: "_blank" | "_self";
@@ -5585,7 +5585,7 @@ declare class Block {
5585
5585
  type: "number" | "currency" | "percentage";
5586
5586
  decimals: number;
5587
5587
  currency: string;
5588
- currencyDisplay: "symbol" | "code" | "name";
5588
+ currencyDisplay: "symbol" | "name" | "code";
5589
5589
  thousandsSeparator: string;
5590
5590
  decimalSeparator: string;
5591
5591
  showPercentageSymbol: boolean;
@@ -5650,7 +5650,7 @@ declare class Block {
5650
5650
  type: "number" | "currency" | "percentage";
5651
5651
  decimals: number;
5652
5652
  currency: string;
5653
- currencyDisplay: "symbol" | "code" | "name";
5653
+ currencyDisplay: "symbol" | "name" | "code";
5654
5654
  thousandsSeparator: string;
5655
5655
  decimalSeparator: string;
5656
5656
  showPercentageSymbol: boolean;
@@ -5660,7 +5660,7 @@ declare class Block {
5660
5660
  suffix?: string | undefined;
5661
5661
  } | undefined;
5662
5662
  change?: string | number | undefined;
5663
- changeType?: "positive" | "negative" | "neutral" | undefined;
5663
+ changeType?: "neutral" | "positive" | "negative" | undefined;
5664
5664
  chart?: {
5665
5665
  values: (number | {
5666
5666
  value: number;
@@ -5680,14 +5680,14 @@ declare class Block {
5680
5680
  value: number;
5681
5681
  max: number;
5682
5682
  chartType: "progress-bar";
5683
- variant: "error" | "success" | "default" | "neutral" | "warning";
5683
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5684
5684
  label?: string | number | undefined;
5685
5685
  } | {
5686
5686
  type: "chart";
5687
5687
  value: number;
5688
5688
  max: number;
5689
5689
  chartType: "progress-circle";
5690
- variant: "error" | "success" | "default" | "neutral" | "warning";
5690
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5691
5691
  radius: number;
5692
5692
  } | {
5693
5693
  type: "chart";
@@ -5732,7 +5732,7 @@ declare class Block {
5732
5732
  type: "number" | "currency" | "percentage";
5733
5733
  decimals: number;
5734
5734
  currency: string;
5735
- currencyDisplay: "symbol" | "code" | "name";
5735
+ currencyDisplay: "symbol" | "name" | "code";
5736
5736
  thousandsSeparator: string;
5737
5737
  decimalSeparator: string;
5738
5738
  showPercentageSymbol: boolean;
@@ -5765,7 +5765,7 @@ declare class Block {
5765
5765
  type: "number" | "currency" | "percentage";
5766
5766
  decimals: number;
5767
5767
  currency: string;
5768
- currencyDisplay: "symbol" | "code" | "name";
5768
+ currencyDisplay: "symbol" | "name" | "code";
5769
5769
  thousandsSeparator: string;
5770
5770
  decimalSeparator: string;
5771
5771
  showPercentageSymbol: boolean;
@@ -5795,7 +5795,7 @@ declare class Block {
5795
5795
  type: "number" | "currency" | "percentage";
5796
5796
  decimals: number;
5797
5797
  currency: string;
5798
- currencyDisplay: "symbol" | "code" | "name";
5798
+ currencyDisplay: "symbol" | "name" | "code";
5799
5799
  thousandsSeparator: string;
5800
5800
  decimalSeparator: string;
5801
5801
  showPercentageSymbol: boolean;
@@ -5816,7 +5816,7 @@ declare class Block {
5816
5816
  type: "number" | "currency" | "percentage";
5817
5817
  decimals: number;
5818
5818
  currency: string;
5819
- currencyDisplay: "symbol" | "code" | "name";
5819
+ currencyDisplay: "symbol" | "name" | "code";
5820
5820
  thousandsSeparator: string;
5821
5821
  decimalSeparator: string;
5822
5822
  showPercentageSymbol: boolean;
@@ -5876,7 +5876,7 @@ declare class Block {
5876
5876
  type: "number" | "currency" | "percentage";
5877
5877
  decimals: number;
5878
5878
  currency: string;
5879
- currencyDisplay: "symbol" | "code" | "name";
5879
+ currencyDisplay: "symbol" | "name" | "code";
5880
5880
  thousandsSeparator: string;
5881
5881
  decimalSeparator: string;
5882
5882
  showPercentageSymbol: boolean;
@@ -5907,7 +5907,7 @@ declare class Block {
5907
5907
  type: "number" | "currency" | "percentage";
5908
5908
  decimals: number;
5909
5909
  currency: string;
5910
- currencyDisplay: "symbol" | "code" | "name";
5910
+ currencyDisplay: "symbol" | "name" | "code";
5911
5911
  thousandsSeparator: string;
5912
5912
  decimalSeparator: string;
5913
5913
  showPercentageSymbol: boolean;
@@ -5921,7 +5921,7 @@ declare class Block {
5921
5921
  chartType: "progress-bar";
5922
5922
  value: number;
5923
5923
  max: number;
5924
- variant: "error" | "success" | "default" | "neutral" | "warning";
5924
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5925
5925
  title?: string | undefined;
5926
5926
  description?: string | undefined;
5927
5927
  label?: string | number | undefined;
@@ -5931,7 +5931,7 @@ declare class Block {
5931
5931
  value: number;
5932
5932
  max: number;
5933
5933
  radius: number;
5934
- variant: "error" | "success" | "default" | "neutral" | "warning";
5934
+ variant: "error" | "default" | "success" | "neutral" | "warning";
5935
5935
  title?: string | undefined;
5936
5936
  description?: string | undefined;
5937
5937
  } | {
@@ -5979,7 +5979,7 @@ declare class Block {
5979
5979
  type: "number" | "currency" | "percentage";
5980
5980
  decimals: number;
5981
5981
  currency: string;
5982
- currencyDisplay: "symbol" | "code" | "name";
5982
+ currencyDisplay: "symbol" | "name" | "code";
5983
5983
  thousandsSeparator: string;
5984
5984
  decimalSeparator: string;
5985
5985
  showPercentageSymbol: boolean;
@@ -6011,7 +6011,7 @@ declare class Block {
6011
6011
  type: "default";
6012
6012
  } | {
6013
6013
  type: "badge";
6014
- variant: "error" | "success" | "default" | "neutral" | "warning";
6014
+ variant: "error" | "default" | "success" | "neutral" | "warning";
6015
6015
  } | {
6016
6016
  type: "image";
6017
6017
  width: number;
@@ -6021,7 +6021,7 @@ declare class Block {
6021
6021
  type: "progress";
6022
6022
  chartType: "bar" | "circle";
6023
6023
  maxValue: number;
6024
- variant: "error" | "success" | "default" | "neutral" | "warning";
6024
+ variant: "error" | "default" | "success" | "neutral" | "warning";
6025
6025
  } | {
6026
6026
  type: "link";
6027
6027
  target: "_blank" | "_self";
@@ -6032,7 +6032,7 @@ declare class Block {
6032
6032
  type: "number" | "currency" | "percentage";
6033
6033
  decimals: number;
6034
6034
  currency: string;
6035
- currencyDisplay: "symbol" | "code" | "name";
6035
+ currencyDisplay: "symbol" | "name" | "code";
6036
6036
  thousandsSeparator: string;
6037
6037
  decimalSeparator: string;
6038
6038
  showPercentageSymbol: boolean;
@@ -6111,18 +6111,10 @@ declare class ForgeRunner extends EventEmitter {
6111
6111
  //#endregion
6112
6112
  //#region src/internal/websocket-client.d.ts
6113
6113
  type Options$3 = {
6114
- serverUrl: string;
6115
- runnerId: string;
6116
- maxAcknowledgementWaitMs?: number;
6117
- maxRetries?: number;
6118
- /** Initial delay (in ms) before retrying failed operations */
6119
- retryDelayMs?: number;
6120
- /** Maximum delay (in ms) for retrying failed operations */
6121
- maxRetryDelayMs?: number;
6122
- /** Jitter factor (0-1) to randomize retry delays */
6123
- retryJitterFactor?: number;
6124
- /** Backoff multiplier for increasing retry delays */
6125
- retryBackoffMultiplier?: number;
6114
+ apiKey: string;
6115
+ sdkServerUrl: string;
6116
+ /** Endpoint to refresh the short term token. If the apiKey is the format of tf_token--****, then ForgeRunner needs to refresh the token before expiration. */
6117
+ tokenProviderEndpoint?: string;
6126
6118
  };
6127
6119
  type Message = BaseMessage & Record<string, unknown>;
6128
6120
  declare class WebSocketClient extends EventEmitter {
@@ -6139,8 +6131,6 @@ type Options$2 = {
6139
6131
  title: string;
6140
6132
  /** Description of the loading operation */
6141
6133
  description?: string;
6142
- /** The session ID for the tool instance */
6143
- sessionId: string;
6144
6134
  /** The WebSocket client to use for loading operations */
6145
6135
  webSocketClient: WebSocketClient;
6146
6136
  /** Signal to abort the IO operations */
@@ -6163,8 +6153,6 @@ type Options$1 = {
6163
6153
  description?: string;
6164
6154
  /** The total number of items in the progress queue */
6165
6155
  itemsInQueue: number;
6166
- /** The session ID for the tool instance */
6167
- sessionId: string;
6168
6156
  /** The WebSocket client to use for loading operations */
6169
6157
  webSocketClient: WebSocketClient;
6170
6158
  signal: AbortSignal;
@@ -6192,10 +6180,6 @@ declare class ProgressLoader {
6192
6180
  //#region src/internal/io.d.ts
6193
6181
  type ZodAnyString = z$1.ZodString | z$1.ZodStringFormat;
6194
6182
  type Options = {
6195
- /** The session ID for the tool instance */
6196
- sessionId: string;
6197
- /** The ID of the tool-runner instance which spawned this tool */
6198
- runnerId: string;
6199
6183
  webSocketClient: WebSocketClient;
6200
6184
  signal: AbortSignal;
6201
6185
  /** The execution context for the IO operations */
@@ -6542,16 +6526,16 @@ declare class IO {
6542
6526
  //#endregion
6543
6527
  //#region src/internal/tool.d.ts
6544
6528
  type ToolMetadata = {
6545
- /** The session ID for the tool instance */
6546
- sessionId: string;
6547
- /** The ID of the tool-runner instance which spawned this tool */
6548
- runnerId: string;
6549
6529
  /** The name of the tool */
6550
6530
  toolName: string;
6551
6531
  /** The description of the tool */
6552
6532
  toolDescription?: string;
6553
6533
  /** The unique identifier for the tool */
6554
6534
  toolId: string;
6535
+ /** The unique indentifier for the tool session */
6536
+ sessionId: string;
6537
+ /** The unique identifier for the toolforge runner instance */
6538
+ runnerId: string;
6555
6539
  };
6556
6540
  //#endregion
6557
6541
  //#region src/components/tool.d.ts
@@ -1,4 +1,4 @@
1
- import { a as AGENT_TAG_NAME, i as AGENT_STEP_TAG_NAME, n as TOOL_TAG_NAME, t as TOOL_HANDLER_TAG_NAME } from "../tool-BHVNhWPh.js";
1
+ import { a as TOOL_TAG_NAME, i as TOOL_HANDLER_TAG_NAME, n as AGENT_TAG_NAME, t as AGENT_STEP_TAG_NAME } from "../agent-DzYymaXh.js";
2
2
 
3
3
  //#region src/components/tool.ts
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toolforge-js/sdk",
3
- "version": "0.8.7",
3
+ "version": "0.8.8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -29,6 +29,7 @@
29
29
  "picocolors": "1.1.1",
30
30
  "pino": "9.11.0",
31
31
  "pino-pretty": "13.1.1",
32
+ "pino-loki": "2.6.0",
32
33
  "tar": "7.5.2",
33
34
  "ts-pattern": "5.8.0",
34
35
  "zod": "4.3.6"