@runtypelabs/sdk 6.3.1 → 6.3.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.
package/dist/index.cjs CHANGED
@@ -6362,7 +6362,7 @@ var Runtype = class {
6362
6362
 
6363
6363
  // src/version.ts
6364
6364
  var FALLBACK_VERSION = "0.0.0";
6365
- var SDK_VERSION = "6.3.1".length > 0 ? "6.3.1" : FALLBACK_VERSION;
6365
+ var SDK_VERSION = "6.3.2".length > 0 ? "6.3.2" : FALLBACK_VERSION;
6366
6366
  var RUNTYPE_CLIENT_KIND = "sdk";
6367
6367
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6368
6368
 
@@ -11498,8 +11498,13 @@ var _AgentsEndpoint = class _AgentsEndpoint {
11498
11498
  );
11499
11499
  }
11500
11500
  /**
11501
- * Client-side fallback for detecting task completion in agent output.
11502
- * Mirrors the API's detectAutoComplete() for non-loop agents that return 'end_turn'.
11501
+ * Client-side stop-phrase detection for Marathon session orchestration.
11502
+ *
11503
+ * This is now the ONLY stop-phrase heuristic in the platform: the server-side
11504
+ * agent loop terminates on natural yield (the model's own stop reason) and no
11505
+ * longer inspects output text. Marathon keeps its own copy because it drives a
11506
+ * client-side milestone protocol in which the phrase is a documented contract
11507
+ * the agent is told to emit, not a guess about whether a turn ended.
11503
11508
  */
11504
11509
  detectTaskCompletion(output) {
11505
11510
  const upper = output.toUpperCase();
package/dist/index.d.cts CHANGED
@@ -52455,8 +52455,13 @@ declare class AgentsEndpoint {
52455
52455
  /** Stop phrases that indicate the agent considers its task complete. */
52456
52456
  private static readonly STOP_PHRASES;
52457
52457
  /**
52458
- * Client-side fallback for detecting task completion in agent output.
52459
- * Mirrors the API's detectAutoComplete() for non-loop agents that return 'end_turn'.
52458
+ * Client-side stop-phrase detection for Marathon session orchestration.
52459
+ *
52460
+ * This is now the ONLY stop-phrase heuristic in the platform: the server-side
52461
+ * agent loop terminates on natural yield (the model's own stop reason) and no
52462
+ * longer inspects output text. Marathon keeps its own copy because it drives a
52463
+ * client-side milestone protocol in which the phrase is a documented contract
52464
+ * the agent is told to emit, not a guess about whether a turn ended.
52460
52465
  */
52461
52466
  private detectTaskCompletion;
52462
52467
  private resolveReservedOutputTokens;
package/dist/index.d.ts CHANGED
@@ -52455,8 +52455,13 @@ declare class AgentsEndpoint {
52455
52455
  /** Stop phrases that indicate the agent considers its task complete. */
52456
52456
  private static readonly STOP_PHRASES;
52457
52457
  /**
52458
- * Client-side fallback for detecting task completion in agent output.
52459
- * Mirrors the API's detectAutoComplete() for non-loop agents that return 'end_turn'.
52458
+ * Client-side stop-phrase detection for Marathon session orchestration.
52459
+ *
52460
+ * This is now the ONLY stop-phrase heuristic in the platform: the server-side
52461
+ * agent loop terminates on natural yield (the model's own stop reason) and no
52462
+ * longer inspects output text. Marathon keeps its own copy because it drives a
52463
+ * client-side milestone protocol in which the phrase is a documented contract
52464
+ * the agent is told to emit, not a guess about whether a turn ended.
52460
52465
  */
52461
52466
  private detectTaskCompletion;
52462
52467
  private resolveReservedOutputTokens;
package/dist/index.mjs CHANGED
@@ -6175,7 +6175,7 @@ var Runtype = class {
6175
6175
 
6176
6176
  // src/version.ts
6177
6177
  var FALLBACK_VERSION = "0.0.0";
6178
- var SDK_VERSION = "6.3.1".length > 0 ? "6.3.1" : FALLBACK_VERSION;
6178
+ var SDK_VERSION = "6.3.2".length > 0 ? "6.3.2" : FALLBACK_VERSION;
6179
6179
  var RUNTYPE_CLIENT_KIND = "sdk";
6180
6180
  var SDK_USER_AGENT = `runtype-sdk/${SDK_VERSION} (typescript)`;
6181
6181
 
@@ -11311,8 +11311,13 @@ var _AgentsEndpoint = class _AgentsEndpoint {
11311
11311
  );
11312
11312
  }
11313
11313
  /**
11314
- * Client-side fallback for detecting task completion in agent output.
11315
- * Mirrors the API's detectAutoComplete() for non-loop agents that return 'end_turn'.
11314
+ * Client-side stop-phrase detection for Marathon session orchestration.
11315
+ *
11316
+ * This is now the ONLY stop-phrase heuristic in the platform: the server-side
11317
+ * agent loop terminates on natural yield (the model's own stop reason) and no
11318
+ * longer inspects output text. Marathon keeps its own copy because it drives a
11319
+ * client-side milestone protocol in which the phrase is a documented contract
11320
+ * the agent is told to emit, not a guess about whether a turn ended.
11316
11321
  */
11317
11322
  detectTaskCompletion(output) {
11318
11323
  const upper = output.toUpperCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/sdk",
3
- "version": "6.3.1",
3
+ "version": "6.3.2",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
6
6
  "main": "dist/index.cjs",