@runtypelabs/sdk 6.3.1 → 6.3.3
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 +14 -6
- package/dist/index.d.cts +20 -7
- package/dist/index.d.ts +20 -7
- package/dist/index.mjs +14 -6
- package/package.json +1 -1
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.
|
|
6365
|
+
var SDK_VERSION = "6.3.3".length > 0 ? "6.3.3" : 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
|
|
11502
|
-
*
|
|
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();
|
|
@@ -12721,9 +12726,12 @@ var IntegrationsEndpoint = class {
|
|
|
12721
12726
|
return this.client.post("/oauth/slack/start", data);
|
|
12722
12727
|
}
|
|
12723
12728
|
/**
|
|
12724
|
-
* Generate the Slack app manifest
|
|
12725
|
-
*
|
|
12726
|
-
* is always valid for Slack (relative proxy paths never
|
|
12729
|
+
* Generate the Slack app manifest for a surface, plus a link to Slack's
|
|
12730
|
+
* app-creation page. The manifest carries absolute API URLs derived
|
|
12731
|
+
* server-side, so it is always valid for Slack (relative proxy paths never
|
|
12732
|
+
* leak in). Slack's create-app modal ignores a manifest passed in the URL, so
|
|
12733
|
+
* `manifestJson` is pasted into its "From a manifest" option rather than
|
|
12734
|
+
* embedded in `createAppUrl`.
|
|
12727
12735
|
*/
|
|
12728
12736
|
async generateSlackManifest(data) {
|
|
12729
12737
|
return this.client.post("/integrations/slack/manifest", data);
|
package/dist/index.d.cts
CHANGED
|
@@ -17080,7 +17080,7 @@ interface paths {
|
|
|
17080
17080
|
put?: never;
|
|
17081
17081
|
/**
|
|
17082
17082
|
* Generate Slack app manifest
|
|
17083
|
-
* @description Generate the Slack app manifest
|
|
17083
|
+
* @description Generate the Slack app manifest for a surface, with absolute API URLs (events webhook, interactivity webhook, and OAuth redirect), plus a link to Slack's app-creation page. Paste the manifest into Slack's From a manifest option; Slack no longer accepts a manifest embedded in the URL. The redirect URL matches the OAuth start route byte-for-byte.
|
|
17084
17084
|
*/
|
|
17085
17085
|
post: {
|
|
17086
17086
|
parameters: {
|
|
@@ -45941,7 +45941,12 @@ interface SlackManifestRequest {
|
|
|
45941
45941
|
interface SlackManifestResponse {
|
|
45942
45942
|
/** Slack app manifest as a JSON string (snake_case, per Slack's schema). */
|
|
45943
45943
|
manifestJson: string;
|
|
45944
|
-
/**
|
|
45944
|
+
/**
|
|
45945
|
+
* Link to Slack's app-creation page (`https://api.slack.com/apps?new_app=1`).
|
|
45946
|
+
* The manifest is NOT embedded — Slack's create-app modal ignores the
|
|
45947
|
+
* `manifest_json` URL parameter, so paste `manifestJson` into the
|
|
45948
|
+
* "From a manifest" option instead.
|
|
45949
|
+
*/
|
|
45945
45950
|
createAppUrl: string;
|
|
45946
45951
|
eventsWebhookUrl: string;
|
|
45947
45952
|
interactivityWebhookUrl?: string;
|
|
@@ -52455,8 +52460,13 @@ declare class AgentsEndpoint {
|
|
|
52455
52460
|
/** Stop phrases that indicate the agent considers its task complete. */
|
|
52456
52461
|
private static readonly STOP_PHRASES;
|
|
52457
52462
|
/**
|
|
52458
|
-
* Client-side
|
|
52459
|
-
*
|
|
52463
|
+
* Client-side stop-phrase detection for Marathon session orchestration.
|
|
52464
|
+
*
|
|
52465
|
+
* This is now the ONLY stop-phrase heuristic in the platform: the server-side
|
|
52466
|
+
* agent loop terminates on natural yield (the model's own stop reason) and no
|
|
52467
|
+
* longer inspects output text. Marathon keeps its own copy because it drives a
|
|
52468
|
+
* client-side milestone protocol in which the phrase is a documented contract
|
|
52469
|
+
* the agent is told to emit, not a guess about whether a turn ended.
|
|
52460
52470
|
*/
|
|
52461
52471
|
private detectTaskCompletion;
|
|
52462
52472
|
private resolveReservedOutputTokens;
|
|
@@ -52803,9 +52813,12 @@ declare class IntegrationsEndpoint {
|
|
|
52803
52813
|
*/
|
|
52804
52814
|
startSlackOAuth(data: SlackOAuthStartRequest): Promise<SlackOAuthStartResponse>;
|
|
52805
52815
|
/**
|
|
52806
|
-
* Generate the Slack app manifest
|
|
52807
|
-
*
|
|
52808
|
-
* is always valid for Slack (relative proxy paths never
|
|
52816
|
+
* Generate the Slack app manifest for a surface, plus a link to Slack's
|
|
52817
|
+
* app-creation page. The manifest carries absolute API URLs derived
|
|
52818
|
+
* server-side, so it is always valid for Slack (relative proxy paths never
|
|
52819
|
+
* leak in). Slack's create-app modal ignores a manifest passed in the URL, so
|
|
52820
|
+
* `manifestJson` is pasted into its "From a manifest" option rather than
|
|
52821
|
+
* embedded in `createAppUrl`.
|
|
52809
52822
|
*/
|
|
52810
52823
|
generateSlackManifest(data: SlackManifestRequest): Promise<SlackManifestResponse>;
|
|
52811
52824
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -17080,7 +17080,7 @@ interface paths {
|
|
|
17080
17080
|
put?: never;
|
|
17081
17081
|
/**
|
|
17082
17082
|
* Generate Slack app manifest
|
|
17083
|
-
* @description Generate the Slack app manifest
|
|
17083
|
+
* @description Generate the Slack app manifest for a surface, with absolute API URLs (events webhook, interactivity webhook, and OAuth redirect), plus a link to Slack's app-creation page. Paste the manifest into Slack's From a manifest option; Slack no longer accepts a manifest embedded in the URL. The redirect URL matches the OAuth start route byte-for-byte.
|
|
17084
17084
|
*/
|
|
17085
17085
|
post: {
|
|
17086
17086
|
parameters: {
|
|
@@ -45941,7 +45941,12 @@ interface SlackManifestRequest {
|
|
|
45941
45941
|
interface SlackManifestResponse {
|
|
45942
45942
|
/** Slack app manifest as a JSON string (snake_case, per Slack's schema). */
|
|
45943
45943
|
manifestJson: string;
|
|
45944
|
-
/**
|
|
45944
|
+
/**
|
|
45945
|
+
* Link to Slack's app-creation page (`https://api.slack.com/apps?new_app=1`).
|
|
45946
|
+
* The manifest is NOT embedded — Slack's create-app modal ignores the
|
|
45947
|
+
* `manifest_json` URL parameter, so paste `manifestJson` into the
|
|
45948
|
+
* "From a manifest" option instead.
|
|
45949
|
+
*/
|
|
45945
45950
|
createAppUrl: string;
|
|
45946
45951
|
eventsWebhookUrl: string;
|
|
45947
45952
|
interactivityWebhookUrl?: string;
|
|
@@ -52455,8 +52460,13 @@ declare class AgentsEndpoint {
|
|
|
52455
52460
|
/** Stop phrases that indicate the agent considers its task complete. */
|
|
52456
52461
|
private static readonly STOP_PHRASES;
|
|
52457
52462
|
/**
|
|
52458
|
-
* Client-side
|
|
52459
|
-
*
|
|
52463
|
+
* Client-side stop-phrase detection for Marathon session orchestration.
|
|
52464
|
+
*
|
|
52465
|
+
* This is now the ONLY stop-phrase heuristic in the platform: the server-side
|
|
52466
|
+
* agent loop terminates on natural yield (the model's own stop reason) and no
|
|
52467
|
+
* longer inspects output text. Marathon keeps its own copy because it drives a
|
|
52468
|
+
* client-side milestone protocol in which the phrase is a documented contract
|
|
52469
|
+
* the agent is told to emit, not a guess about whether a turn ended.
|
|
52460
52470
|
*/
|
|
52461
52471
|
private detectTaskCompletion;
|
|
52462
52472
|
private resolveReservedOutputTokens;
|
|
@@ -52803,9 +52813,12 @@ declare class IntegrationsEndpoint {
|
|
|
52803
52813
|
*/
|
|
52804
52814
|
startSlackOAuth(data: SlackOAuthStartRequest): Promise<SlackOAuthStartResponse>;
|
|
52805
52815
|
/**
|
|
52806
|
-
* Generate the Slack app manifest
|
|
52807
|
-
*
|
|
52808
|
-
* is always valid for Slack (relative proxy paths never
|
|
52816
|
+
* Generate the Slack app manifest for a surface, plus a link to Slack's
|
|
52817
|
+
* app-creation page. The manifest carries absolute API URLs derived
|
|
52818
|
+
* server-side, so it is always valid for Slack (relative proxy paths never
|
|
52819
|
+
* leak in). Slack's create-app modal ignores a manifest passed in the URL, so
|
|
52820
|
+
* `manifestJson` is pasted into its "From a manifest" option rather than
|
|
52821
|
+
* embedded in `createAppUrl`.
|
|
52809
52822
|
*/
|
|
52810
52823
|
generateSlackManifest(data: SlackManifestRequest): Promise<SlackManifestResponse>;
|
|
52811
52824
|
}
|
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.
|
|
6178
|
+
var SDK_VERSION = "6.3.3".length > 0 ? "6.3.3" : 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
|
|
11315
|
-
*
|
|
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();
|
|
@@ -12534,9 +12539,12 @@ var IntegrationsEndpoint = class {
|
|
|
12534
12539
|
return this.client.post("/oauth/slack/start", data);
|
|
12535
12540
|
}
|
|
12536
12541
|
/**
|
|
12537
|
-
* Generate the Slack app manifest
|
|
12538
|
-
*
|
|
12539
|
-
* is always valid for Slack (relative proxy paths never
|
|
12542
|
+
* Generate the Slack app manifest for a surface, plus a link to Slack's
|
|
12543
|
+
* app-creation page. The manifest carries absolute API URLs derived
|
|
12544
|
+
* server-side, so it is always valid for Slack (relative proxy paths never
|
|
12545
|
+
* leak in). Slack's create-app modal ignores a manifest passed in the URL, so
|
|
12546
|
+
* `manifestJson` is pasted into its "From a manifest" option rather than
|
|
12547
|
+
* embedded in `createAppUrl`.
|
|
12540
12548
|
*/
|
|
12541
12549
|
async generateSlackManifest(data) {
|
|
12542
12550
|
return this.client.post("/integrations/slack/manifest", data);
|
package/package.json
CHANGED