@kortix/sdk 0.12.4 → 0.12.5
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/README.md +58 -15
- package/dist/browser/session-sync/session-transcript-cache.d.ts +17 -0
- package/dist/browser/session-sync/session-transcript-cache.d.ts.map +1 -1
- package/dist/browser/session-sync/session-transcript-cache.js +14 -2
- package/dist/browser/session-sync/session-transcript-cache.js.map +1 -1
- package/dist/browser/stores/sync-store.d.ts +86 -2
- package/dist/browser/stores/sync-store.d.ts.map +1 -1
- package/dist/browser/stores/sync-store.js +386 -33
- package/dist/browser/stores/sync-store.js.map +1 -1
- package/dist/core/client/kortix.d.ts +57 -54
- package/dist/core/client/kortix.d.ts.map +1 -1
- package/dist/core/client/kortix.js +40 -21
- package/dist/core/client/kortix.js.map +1 -1
- package/dist/core/http/api-client.d.ts +19 -1
- package/dist/core/http/api-client.d.ts.map +1 -1
- package/dist/core/http/api-client.js +39 -6
- package/dist/core/http/api-client.js.map +1 -1
- package/dist/core/http/auth.d.ts.map +1 -1
- package/dist/core/http/auth.js +6 -4
- package/dist/core/http/auth.js.map +1 -1
- package/dist/core/http/config.d.ts +4 -0
- package/dist/core/http/config.d.ts.map +1 -1
- package/dist/core/http/config.js.map +1 -1
- package/dist/core/rest/platform-client/host-boundary.js +2 -2
- package/dist/core/rest/platform-client/host-boundary.js.map +1 -1
- package/dist/core/rest/projects-client/access.d.ts +1 -1
- package/dist/core/rest/projects-client/agent-config.d.ts +1 -1
- package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
- package/dist/core/rest/projects-client/audit.js +1 -1
- package/dist/core/rest/projects-client/audit.js.map +1 -1
- package/dist/core/rest/projects-client/billing.d.ts +7 -0
- package/dist/core/rest/projects-client/billing.d.ts.map +1 -1
- package/dist/core/rest/projects-client/billing.js.map +1 -1
- package/dist/core/rest/projects-client/channels.d.ts +7 -6
- package/dist/core/rest/projects-client/channels.d.ts.map +1 -1
- package/dist/core/rest/projects-client/channels.js +12 -2
- package/dist/core/rest/projects-client/channels.js.map +1 -1
- package/dist/core/rest/projects-client/connectors.d.ts +128 -98
- package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
- package/dist/core/rest/projects-client/connectors.js +199 -119
- package/dist/core/rest/projects-client/connectors.js.map +1 -1
- package/dist/core/rest/projects-client/files.d.ts.map +1 -1
- package/dist/core/rest/projects-client/files.js +7 -1
- package/dist/core/rest/projects-client/files.js.map +1 -1
- package/dist/core/rest/projects-client/policies.js +3 -3
- package/dist/core/rest/projects-client/policies.js.map +1 -1
- package/dist/core/rest/projects-client/projects.d.ts +46 -0
- package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
- package/dist/core/rest/projects-client/projects.js +12 -0
- package/dist/core/rest/projects-client/projects.js.map +1 -1
- package/dist/core/rest/projects-client/secrets.d.ts +55 -3
- package/dist/core/rest/projects-client/secrets.d.ts.map +1 -1
- package/dist/core/rest/projects-client/secrets.js +14 -4
- package/dist/core/rest/projects-client/secrets.js.map +1 -1
- package/dist/core/rest/projects-client/sessions.d.ts +8 -16
- package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/sessions.js +1 -1
- package/dist/core/rest/projects-client/sessions.js.map +1 -1
- package/dist/core/session/index.d.ts +1 -0
- package/dist/core/session/index.d.ts.map +1 -1
- package/dist/core/session/index.js +1 -0
- package/dist/core/session/index.js.map +1 -1
- package/dist/core/session/preview-probe.d.ts +76 -0
- package/dist/core/session/preview-probe.d.ts.map +1 -0
- package/dist/core/session/preview-probe.js +97 -0
- package/dist/core/session/preview-probe.js.map +1 -0
- package/dist/core/turns/classify.js +1 -1
- package/dist/core/turns/errors.js +1 -1
- package/dist/core/turns/errors.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/kortix.esm.min.js +19 -19
- package/dist/kortix.global.js +19 -19
- package/dist/platform/auth-core.d.ts +2 -1
- package/dist/platform/auth-core.d.ts.map +1 -1
- package/dist/platform/auth-core.js +10 -1
- package/dist/platform/auth-core.js.map +1 -1
- package/dist/react/use-opencode-sessions/messages.d.ts +19 -3
- package/dist/react/use-opencode-sessions/messages.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/messages.js +28 -55
- package/dist/react/use-opencode-sessions/messages.js.map +1 -1
- package/dist/react/use-project-secrets.d.ts +24 -0
- package/dist/react/use-project-secrets.d.ts.map +1 -1
- package/dist/react/use-session-sync.d.ts +1 -2
- package/dist/react/use-session-sync.d.ts.map +1 -1
- package/dist/react/use-session-sync.js +17 -40
- package/dist/react/use-session-sync.js.map +1 -1
- package/dist/react/use-session.d.ts.map +1 -1
- package/dist/react/use-session.js +18 -16
- package/dist/react/use-session.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Is anything actually listening on a session's proxied port?
|
|
3
|
+
*
|
|
4
|
+
* An `<iframe>` cannot answer that. It fires `onLoad` when a document renders
|
|
5
|
+
* and `onError` almost never, so a host that watches only the frame has exactly
|
|
6
|
+
* one signal — silence — and silence covers two opposite states: a dev server
|
|
7
|
+
* still compiling its first route (30-60s is normal) and a port with nothing
|
|
8
|
+
* behind it. Every host that guessed between them from a stopwatch guessed
|
|
9
|
+
* wrong on cold starts.
|
|
10
|
+
*
|
|
11
|
+
* This asks the proxy instead. The preview proxy answers `502/503/504` ITSELF
|
|
12
|
+
* when it cannot open a connection to the port, so a negative verdict comes
|
|
13
|
+
* back fast and does not depend on the app being quick. A positive verdict is
|
|
14
|
+
* only ever as fast as the app.
|
|
15
|
+
*
|
|
16
|
+
* Deliberately NOT `authenticatedFetch`: the preview proxy authenticates a
|
|
17
|
+
* browser with the `__preview_session` cookie, and an `Authorization` header
|
|
18
|
+
* would make this a non-simple cross-origin request and cost a CORS preflight
|
|
19
|
+
* on every probe. Same auth path the iframe itself uses.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Default ceiling on a single probe, ms.
|
|
23
|
+
*
|
|
24
|
+
* The proxy's "nothing is listening" answer needs no upstream connection and
|
|
25
|
+
* comes back in well under a second, so this bound never delays a real verdict.
|
|
26
|
+
* It exists for the opposite case: an app that accepted the connection and then
|
|
27
|
+
* stalled — which is itself already weak evidence the port is up, and holding
|
|
28
|
+
* the socket open longer cannot change that.
|
|
29
|
+
*
|
|
30
|
+
* Deliberately SHORT. A caller decides a port is dead from repeated misses
|
|
31
|
+
* inside some window of its own, and a probe whose ceiling approaches that
|
|
32
|
+
* window can consume the caller's entire sampling budget in ONE stalled
|
|
33
|
+
* sample. Three seconds leaves room for several samples inside any window
|
|
34
|
+
* worth having. A probe that outruns it resolves `unknown` and can never
|
|
35
|
+
* itself declare a port dead.
|
|
36
|
+
*/
|
|
37
|
+
export const PREVIEW_PROBE_TIMEOUT_MS = 3_000;
|
|
38
|
+
/**
|
|
39
|
+
* The status-to-verdict rule, pure so it can be reasoned about without a
|
|
40
|
+
* network:
|
|
41
|
+
*
|
|
42
|
+
* - `502/503/504` — the proxy could not reach the port. This is the only
|
|
43
|
+
* family that means "nothing is listening" (mirrors
|
|
44
|
+
* `isImmediateOfflineStatus`, which applies the same rule to the runtime's
|
|
45
|
+
* own health probe).
|
|
46
|
+
* - `401/403` — the preview proxy's auth gate, i.e. OUR cookie, not the app.
|
|
47
|
+
* Reading these as failure would blame a user's app for our expired session.
|
|
48
|
+
* - any other real HTTP status — a server accepted the connection and replied.
|
|
49
|
+
* A 404 or a 500 is the app answering, which is exactly what "the port is up"
|
|
50
|
+
* means.
|
|
51
|
+
* - anything outside the HTTP range (`0` from an unreadable/opaque response, or
|
|
52
|
+
* a nonsense number) — no answer to classify.
|
|
53
|
+
*/
|
|
54
|
+
export function classifyPreviewProbeStatus(status) {
|
|
55
|
+
if (!Number.isFinite(status) || status < 100 || status > 599)
|
|
56
|
+
return 'unknown';
|
|
57
|
+
if (status === 502 || status === 503 || status === 504)
|
|
58
|
+
return 'unreachable';
|
|
59
|
+
if (status === 401 || status === 403)
|
|
60
|
+
return 'unknown';
|
|
61
|
+
return 'reachable';
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Probe one preview URL. Never throws and never rejects — every failure mode
|
|
65
|
+
* collapses into `unknown`, so a caller's error handling is the same shape as
|
|
66
|
+
* its "still waiting" handling.
|
|
67
|
+
*
|
|
68
|
+
* `HEAD` rather than `GET`: it is safe and idempotent, it carries no body, and
|
|
69
|
+
* a server that refuses it (`405`, `501`) has still proved it is listening.
|
|
70
|
+
*/
|
|
71
|
+
export async function probePreviewPort(previewUrl, options) {
|
|
72
|
+
if (!previewUrl)
|
|
73
|
+
return 'unknown';
|
|
74
|
+
if (options?.signal?.aborted)
|
|
75
|
+
return 'unknown';
|
|
76
|
+
const controller = new AbortController();
|
|
77
|
+
const abort = () => controller.abort();
|
|
78
|
+
options?.signal?.addEventListener('abort', abort);
|
|
79
|
+
const timer = setTimeout(abort, options?.timeoutMs ?? PREVIEW_PROBE_TIMEOUT_MS);
|
|
80
|
+
try {
|
|
81
|
+
const res = await fetch(previewUrl, {
|
|
82
|
+
method: 'HEAD',
|
|
83
|
+
credentials: 'include',
|
|
84
|
+
cache: 'no-store',
|
|
85
|
+
signal: controller.signal,
|
|
86
|
+
});
|
|
87
|
+
return classifyPreviewProbeStatus(res.status);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return 'unknown';
|
|
91
|
+
}
|
|
92
|
+
finally {
|
|
93
|
+
clearTimeout(timer);
|
|
94
|
+
options?.signal?.removeEventListener('abort', abort);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=preview-probe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-probe.js","sourceRoot":"","sources":["../../../src/core/session/preview-probe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAYH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG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YAAS,CAAC;QACT,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,OAAO,EAAE,MAAM,EAAE,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;AACH,CAAC"}
|
|
@@ -53,7 +53,7 @@ function parseToolOutput(rawOutput) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* Detect the "completed but actually failed" shape router/
|
|
56
|
+
* Detect the "completed but actually failed" shape router/connector tools
|
|
57
57
|
* (web_search, image_search, connector calls) commonly return: the wire's
|
|
58
58
|
* `state.status` says `completed`, but the JSON output body itself carries
|
|
59
59
|
* `success: false` or a top-level `error`. Without this, a real prod failure
|
|
@@ -29,7 +29,7 @@ export function unwrapError(raw) {
|
|
|
29
29
|
return extractErrorFromObject(parsed) || str;
|
|
30
30
|
}
|
|
31
31
|
catch {
|
|
32
|
-
// Not directly parseable as JSON — router/
|
|
32
|
+
// Not directly parseable as JSON — router/connector errors commonly wrap
|
|
33
33
|
// a JSON body inside a plain-text prefix, e.g. router tool credit
|
|
34
34
|
// failures: `Error: 402 Error: {"error":true,"message":"Insufficient
|
|
35
35
|
// credits","status":402}`. Extract the outermost {...} substring (if
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/core/turns/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,IAAI,CAAC,GAAG;QAAE,OAAO,mBAAmB,CAAC;IAErC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5B,yBAAyB;QACzB,IAAI,GAAG,GAAG,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QAEzD,6CAA6C;QAC7C,IAAI,CAAC;YACH,MAAM,MAA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,CAAC,IAAI,CAAC;QAC1D,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,SAAS,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAAC;YACxD,IAAI,SAAS;gBAAE,OAAO,SAAS,CAAC;QAClC,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -117,7 +117,7 @@ export { stripTrailingSlashes } from './platform/strings.js';
|
|
|
117
117
|
* `ToolView`'s new `outputParsed`/`outputText` fields and its embedded-
|
|
118
118
|
* failure detection (a `state.status: "completed"` tool part whose JSON
|
|
119
119
|
* output body carries `success: false` or a top-level `error` — the shape
|
|
120
|
-
* router/
|
|
120
|
+
* router/connector tools like `web_search` commonly return on failure — now
|
|
121
121
|
* classifies as `status: 'error'` instead of rendering as a success with raw
|
|
122
122
|
* JSON inside). Also available from `@kortix/sdk/turns`.
|
|
123
123
|
*/
|
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ export { stripTrailingSlashes } from './platform/strings.js';
|
|
|
91
91
|
* `ToolView`'s new `outputParsed`/`outputText` fields and its embedded-
|
|
92
92
|
* failure detection (a `state.status: "completed"` tool part whose JSON
|
|
93
93
|
* output body carries `success: false` or a top-level `error` — the shape
|
|
94
|
-
* router/
|
|
94
|
+
* router/connector tools like `web_search` commonly return on failure — now
|
|
95
95
|
* classifies as `status: 'error'` instead of rendering as a success with raw
|
|
96
96
|
* JSON inside). Also available from `@kortix/sdk/turns`.
|
|
97
97
|
*/
|