@kortix/sdk 0.13.46 → 0.13.47
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 +18 -13
- package/dist/browser/session-sync/server-transcript-mirror.d.ts +1 -1
- package/dist/browser/session-sync/server-transcript-mirror.d.ts.map +1 -1
- package/dist/browser/session-sync/session-sync-registry.d.ts +1 -1
- package/dist/browser/session-sync/session-sync-registry.d.ts.map +1 -1
- package/dist/browser/stores/opencode-pending-store.d.ts +1 -1
- package/dist/browser/stores/opencode-pending-store.d.ts.map +1 -1
- package/dist/browser/stores/sync-store/reconcile-parts.d.ts +1 -1
- package/dist/browser/stores/sync-store/reconcile-parts.d.ts.map +1 -1
- package/dist/browser/stores/sync-store/types.d.ts +1 -1
- package/dist/browser/stores/sync-store/types.d.ts.map +1 -1
- package/dist/browser/stores/sync-store.d.ts +1 -1
- package/dist/browser/stores/sync-store.d.ts.map +1 -1
- package/dist/core/agents/composer-agents.d.ts +1 -1
- package/dist/core/agents/composer-agents.d.ts.map +1 -1
- package/dist/core/client/kortix.d.ts +117 -59
- package/dist/core/client/kortix.d.ts.map +1 -1
- package/dist/core/client/kortix.js +59 -14
- package/dist/core/client/kortix.js.map +1 -1
- package/dist/core/models/composer-model.d.ts +1 -1
- package/dist/core/models/composer-model.d.ts.map +1 -1
- package/dist/core/models/model-flatten.d.ts +8 -1
- package/dist/core/models/model-flatten.d.ts.map +1 -1
- package/dist/core/models/model-flatten.js +2 -0
- package/dist/core/models/model-flatten.js.map +1 -1
- package/dist/core/models/model-key.d.ts +11 -0
- package/dist/core/models/model-key.d.ts.map +1 -1
- package/dist/core/models/model-key.js +20 -0
- package/dist/core/models/model-key.js.map +1 -1
- package/dist/core/models/provider-selection.d.ts +1 -1
- package/dist/core/models/provider-selection.d.ts.map +1 -1
- package/dist/core/rest/platform-client/host-boundary.d.ts +14 -19
- package/dist/core/rest/platform-client/host-boundary.d.ts.map +1 -1
- package/dist/core/rest/platform-client/host-boundary.js +7 -38
- package/dist/core/rest/platform-client/host-boundary.js.map +1 -1
- package/dist/core/rest/projects-client/agent-config.d.ts +8 -0
- package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
- package/dist/core/rest/projects-client/agent-config.js.map +1 -1
- package/dist/core/rest/projects-client/audit-filter.d.ts +6 -0
- package/dist/core/rest/projects-client/audit-filter.d.ts.map +1 -0
- package/dist/core/rest/projects-client/audit-filter.js +11 -0
- package/dist/core/rest/projects-client/audit-filter.js.map +1 -0
- package/dist/core/rest/projects-client/audit.d.ts +2 -18
- package/dist/core/rest/projects-client/audit.d.ts.map +1 -1
- package/dist/core/rest/projects-client/audit.js +30 -108
- package/dist/core/rest/projects-client/audit.js.map +1 -1
- package/dist/core/rest/projects-client/connectors.d.ts +4 -3
- package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
- package/dist/core/rest/projects-client/connectors.js.map +1 -1
- package/dist/core/rest/projects-client/iam-roles.d.ts +5 -0
- package/dist/core/rest/projects-client/iam-roles.d.ts.map +1 -1
- package/dist/core/rest/projects-client/iam-roles.js +9 -0
- package/dist/core/rest/projects-client/iam-roles.js.map +1 -1
- package/dist/core/rest/projects-client/projects.d.ts +8 -5
- package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
- package/dist/core/rest/projects-client/projects.js +0 -1
- package/dist/core/rest/projects-client/projects.js.map +1 -1
- package/dist/core/rest/projects-client/secrets.d.ts +17 -8
- package/dist/core/rest/projects-client/secrets.d.ts.map +1 -1
- package/dist/core/rest/projects-client/secrets.js.map +1 -1
- package/dist/core/rest/projects-client/sessions.d.ts +4 -1
- package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/sessions.js.map +1 -1
- package/dist/core/rest/projects-client/triggers.d.ts +12 -0
- package/dist/core/rest/projects-client/triggers.d.ts.map +1 -1
- package/dist/core/rest/projects-client/triggers.js.map +1 -1
- package/dist/core/runtime/client.d.ts +12 -11
- package/dist/core/runtime/client.d.ts.map +1 -1
- package/dist/core/runtime/client.js +9 -4
- package/dist/core/runtime/client.js.map +1 -1
- package/dist/core/runtime/runtime-rest-client.d.ts +436 -0
- package/dist/core/runtime/runtime-rest-client.d.ts.map +1 -0
- package/dist/core/runtime/runtime-rest-client.js +291 -0
- package/dist/core/runtime/runtime-rest-client.js.map +1 -0
- package/dist/core/runtime/runtime-types.d.ts +1174 -0
- package/dist/core/runtime/runtime-types.d.ts.map +1 -0
- package/dist/core/runtime/runtime-types.js +2 -0
- package/dist/core/runtime/runtime-types.js.map +1 -0
- package/dist/core/runtime/transcript-types.d.ts +564 -0
- package/dist/core/runtime/transcript-types.d.ts.map +1 -0
- package/dist/core/runtime/transcript-types.js +57 -0
- package/dist/core/runtime/transcript-types.js.map +1 -0
- package/dist/core/session/health.d.ts +2 -1
- package/dist/core/session/health.d.ts.map +1 -1
- package/dist/core/session/health.js.map +1 -1
- package/dist/core/session/index.d.ts +2 -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/runtime-sessions.d.ts +26 -0
- package/dist/core/session/runtime-sessions.d.ts.map +1 -0
- package/dist/core/session/runtime-sessions.js +39 -0
- package/dist/core/session/runtime-sessions.js.map +1 -0
- package/dist/core/session/runtime-verbs.d.ts +55 -0
- package/dist/core/session/runtime-verbs.d.ts.map +1 -0
- package/dist/core/session/runtime-verbs.js +124 -0
- package/dist/core/session/runtime-verbs.js.map +1 -0
- package/dist/core/session/wire-message-id.d.ts +55 -12
- package/dist/core/session/wire-message-id.d.ts.map +1 -1
- package/dist/core/session/wire-message-id.js +62 -12
- package/dist/core/session/wire-message-id.js.map +1 -1
- package/dist/core/session-sync/session-sync-controller.d.ts +1 -1
- package/dist/core/session-sync/session-sync-controller.d.ts.map +1 -1
- package/dist/core/stream/event-stream.d.ts +10 -5
- package/dist/core/stream/event-stream.d.ts.map +1 -1
- package/dist/core/stream/event-stream.js +5 -1
- package/dist/core/stream/event-stream.js.map +1 -1
- package/dist/core/turns/classify.d.ts +31 -2
- package/dist/core/turns/classify.d.ts.map +1 -1
- package/dist/core/turns/classify.js +94 -0
- package/dist/core/turns/classify.js.map +1 -1
- package/dist/core/turns/index.d.ts +1 -0
- package/dist/core/turns/index.d.ts.map +1 -1
- package/dist/core/turns/index.js +1 -0
- package/dist/core/turns/index.js.map +1 -1
- package/dist/core/turns/parts.d.ts +2 -1
- package/dist/core/turns/parts.d.ts.map +1 -1
- package/dist/core/turns/parts.js +53 -49
- package/dist/core/turns/parts.js.map +1 -1
- package/dist/core/turns/segments/narration.d.ts.map +1 -1
- package/dist/core/turns/segments/narration.js +40 -130
- package/dist/core/turns/segments/narration.js.map +1 -1
- package/dist/core/turns/tool-kind.d.ts +15 -0
- package/dist/core/turns/tool-kind.d.ts.map +1 -0
- package/dist/core/turns/tool-kind.js +115 -0
- package/dist/core/turns/tool-kind.js.map +1 -0
- package/dist/core/turns/tool-registry.d.ts +6 -7
- package/dist/core/turns/tool-registry.d.ts.map +1 -1
- package/dist/core/turns/tool-registry.js +78 -73
- package/dist/core/turns/tool-registry.js.map +1 -1
- package/dist/core/turns/tools/tool-meta.d.ts +1 -0
- package/dist/core/turns/tools/tool-meta.d.ts.map +1 -1
- package/dist/core/turns/tools/tool-meta.js +7 -6
- package/dist/core/turns/tools/tool-meta.js.map +1 -1
- package/dist/core/turns/view-model.d.ts.map +1 -1
- package/dist/core/turns/view-model.js +19 -12
- package/dist/core/turns/view-model.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/kortix.esm.min.js +42 -41
- package/dist/kortix.global.js +42 -41
- package/dist/node/app-viewer.js +1 -1
- package/dist/node/app-viewer.js.map +1 -1
- package/dist/node/auth.js +1 -1
- package/dist/node/auth.js.map +1 -1
- package/dist/node/scoped-client.d.ts +20 -0
- package/dist/node/scoped-client.d.ts.map +1 -0
- package/dist/node/scoped-client.js +170 -0
- package/dist/node/scoped-client.js.map +1 -0
- package/dist/node/server.d.ts +2 -21
- package/dist/node/server.d.ts.map +1 -1
- package/dist/node/server.js +2 -170
- package/dist/node/server.js.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/sign-in-with-kortix.d.ts +8 -8
- package/dist/react/use-feature-flag.d.ts +2 -2
- package/dist/react/use-feature-flag.d.ts.map +1 -1
- package/dist/react/use-feature-flag.js +3 -2
- package/dist/react/use-feature-flag.js.map +1 -1
- package/dist/react/use-kortix-master.d.ts +1 -1
- package/dist/react/use-opencode-config.d.ts +7 -1
- package/dist/react/use-opencode-config.d.ts.map +1 -1
- package/dist/react/use-opencode-config.js +9 -1
- package/dist/react/use-opencode-config.js.map +1 -1
- package/dist/react/use-opencode-events/diagnostics.d.ts +1 -1
- package/dist/react/use-opencode-events/diagnostics.d.ts.map +1 -1
- package/dist/react/use-opencode-events/handle-event.d.ts +4 -6
- package/dist/react/use-opencode-events/handle-event.d.ts.map +1 -1
- package/dist/react/use-opencode-events/handle-event.js +43 -594
- package/dist/react/use-opencode-events/handle-event.js.map +1 -1
- package/dist/react/use-opencode-events/handle-interaction-event.d.ts +4 -0
- package/dist/react/use-opencode-events/handle-interaction-event.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handle-interaction-event.js +42 -0
- package/dist/react/use-opencode-events/handle-interaction-event.js.map +1 -0
- package/dist/react/use-opencode-events/handle-message-event.d.ts +4 -0
- package/dist/react/use-opencode-events/handle-message-event.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handle-message-event.js +33 -0
- package/dist/react/use-opencode-events/handle-message-event.js.map +1 -0
- package/dist/react/use-opencode-events/handle-session-event.d.ts +5 -0
- package/dist/react/use-opencode-events/handle-session-event.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handle-session-event.js +243 -0
- package/dist/react/use-opencode-events/handle-session-event.js.map +1 -0
- package/dist/react/use-opencode-events/handle-workspace-event.d.ts +4 -0
- package/dist/react/use-opencode-events/handle-workspace-event.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handle-workspace-event.js +113 -0
- package/dist/react/use-opencode-events/handle-workspace-event.js.map +1 -0
- package/dist/react/use-opencode-events/handler-context.d.ts +29 -0
- package/dist/react/use-opencode-events/handler-context.d.ts.map +1 -0
- package/dist/react/use-opencode-events/handler-context.js +2 -0
- package/dist/react/use-opencode-events/handler-context.js.map +1 -0
- package/dist/react/use-opencode-events/hydrate-core.d.ts +23 -0
- package/dist/react/use-opencode-events/hydrate-core.d.ts.map +1 -0
- package/dist/react/use-opencode-events/hydrate-core.js +126 -0
- package/dist/react/use-opencode-events/hydrate-core.js.map +1 -0
- package/dist/react/use-opencode-events/index.d.ts.map +1 -1
- package/dist/react/use-opencode-events/index.js +25 -143
- package/dist/react/use-opencode-events/index.js.map +1 -1
- package/dist/react/use-opencode-events/use-event-stream-refs.d.ts +1 -1
- package/dist/react/use-opencode-events/use-event-stream-refs.d.ts.map +1 -1
- package/dist/react/use-opencode-local.d.ts +1 -1
- package/dist/react/use-opencode-local.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/agents.d.ts +1 -1
- package/dist/react/use-opencode-sessions/agents.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/commands.d.ts +4 -1
- package/dist/react/use-opencode-sessions/commands.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/commands.js +6 -1
- package/dist/react/use-opencode-sessions/commands.js.map +1 -1
- package/dist/react/use-opencode-sessions/keys.d.ts +1 -1
- package/dist/react/use-opencode-sessions/keys.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/mcp.d.ts +1 -1
- package/dist/react/use-opencode-sessions/mcp.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/messages.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/messages.js +8 -2
- package/dist/react/use-opencode-sessions/messages.js.map +1 -1
- package/dist/react/use-opencode-sessions/parts.d.ts +2 -2
- package/dist/react/use-opencode-sessions/parts.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/projects.d.ts +1 -1
- package/dist/react/use-opencode-sessions/projects.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/providers.d.ts +1 -1
- package/dist/react/use-opencode-sessions/sessions.d.ts +3 -3
- package/dist/react/use-opencode-sessions/sessions.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/sharing.d.ts +1 -1
- package/dist/react/use-opencode-sessions/sharing.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/vcs.d.ts +1 -1
- package/dist/react/use-opencode-sessions/vcs.d.ts.map +1 -1
- package/dist/react/use-project-gateway.d.ts +28 -0
- package/dist/react/use-project-gateway.d.ts.map +1 -0
- package/dist/react/use-project-gateway.js +120 -0
- package/dist/react/use-project-gateway.js.map +1 -0
- package/dist/react/use-project-secrets.d.ts +6 -6
- package/dist/react/use-session-sync.d.ts +4 -5
- package/dist/react/use-session-sync.d.ts.map +1 -1
- package/dist/react/use-session-working.d.ts +1 -1
- package/dist/react/use-session-working.d.ts.map +1 -1
- package/dist/react/use-session.d.ts +18 -8
- package/dist/react/use-session.d.ts.map +1 -1
- package/dist/react/use-session.js +56 -11
- package/dist/react/use-session.js.map +1 -1
- package/dist/react/use-teams-installations.d.ts +14 -0
- package/dist/react/use-teams-installations.d.ts.map +1 -1
- package/dist/react/use-teams-installations.js.map +1 -1
- package/dist/react/use-visible-agents.d.ts +1 -1
- package/dist/react/use-visible-agents.d.ts.map +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transcript.d.ts.map +1 -1
- package/dist/workspace-search/client.d.ts +20 -0
- package/dist/workspace-search/client.d.ts.map +1 -0
- package/dist/workspace-search/client.js +235 -0
- package/dist/workspace-search/client.js.map +1 -0
- package/dist/workspace-search/core.d.ts.map +1 -1
- package/dist/workspace-search/core.js +9 -2
- package/dist/workspace-search/core.js.map +1 -1
- package/dist/workspace-search/index.d.ts +3 -0
- package/dist/workspace-search/index.d.ts.map +1 -0
- package/dist/workspace-search/index.js +3 -0
- package/dist/workspace-search/index.js.map +1 -0
- package/package.json +7 -5
- package/dist/core/runtime/opencode-v2-event-aliases.d.ts +0 -184
- package/dist/core/runtime/opencode-v2-event-aliases.d.ts.map +0 -1
- package/dist/core/runtime/opencode-v2-event-aliases.js +0 -2
- package/dist/core/runtime/opencode-v2-event-aliases.js.map +0 -1
|
@@ -56,26 +56,27 @@ export interface SignInWithKortixProps extends Omit<AnchorHTMLAttributes<HTMLAnc
|
|
|
56
56
|
/** An anchor that starts "Sign in with Kortix". Style it like any link or button. */
|
|
57
57
|
export declare function SignInWithKortix({ basePath, returnTo, children, ...rest }: SignInWithKortixProps): import("react").DetailedReactHTMLElement<{
|
|
58
58
|
href: string;
|
|
59
|
+
resource?: string | undefined | undefined;
|
|
60
|
+
type?: string | undefined | undefined;
|
|
61
|
+
hidden?: boolean | undefined | undefined;
|
|
62
|
+
color?: string | undefined | undefined;
|
|
63
|
+
title?: string | undefined | undefined;
|
|
64
|
+
part?: string | undefined | undefined;
|
|
59
65
|
style?: import("react").CSSProperties | undefined;
|
|
60
66
|
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
61
|
-
title?: string | undefined | undefined;
|
|
62
67
|
id?: string | undefined | undefined;
|
|
63
|
-
type?: string | undefined | undefined;
|
|
64
|
-
resource?: string | undefined | undefined;
|
|
65
68
|
content?: string | undefined | undefined;
|
|
66
69
|
role?: import("react").AriaRole | undefined;
|
|
67
|
-
|
|
70
|
+
media?: string | undefined | undefined;
|
|
68
71
|
prefix?: string | undefined | undefined;
|
|
69
72
|
lang?: string | undefined | undefined;
|
|
70
|
-
part?: string | undefined | undefined;
|
|
71
73
|
results?: number | undefined | undefined;
|
|
72
|
-
hidden?: boolean | undefined | undefined;
|
|
73
74
|
dir?: string | undefined | undefined;
|
|
75
|
+
security?: string | undefined | undefined;
|
|
74
76
|
onError?: import("react").ReactEventHandler<HTMLAnchorElement> | undefined;
|
|
75
77
|
slot?: string | undefined | undefined;
|
|
76
78
|
download?: any;
|
|
77
79
|
hrefLang?: string | undefined | undefined;
|
|
78
|
-
media?: string | undefined | undefined;
|
|
79
80
|
ping?: string | undefined | undefined;
|
|
80
81
|
target?: import("react").HTMLAttributeAnchorTarget | undefined;
|
|
81
82
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -105,7 +106,6 @@ export declare function SignInWithKortix({ basePath, returnTo, children, ...rest
|
|
|
105
106
|
vocab?: string | undefined | undefined;
|
|
106
107
|
autoCorrect?: string | undefined | undefined;
|
|
107
108
|
autoSave?: string | undefined | undefined;
|
|
108
|
-
color?: string | undefined | undefined;
|
|
109
109
|
itemProp?: string | undefined | undefined;
|
|
110
110
|
itemScope?: boolean | undefined | undefined;
|
|
111
111
|
itemType?: string | undefined | undefined;
|
|
@@ -20,8 +20,8 @@ export interface FeatureFlagState {
|
|
|
20
20
|
* A disabled feature's surface must be invisible, not merely inert.
|
|
21
21
|
*
|
|
22
22
|
* The one exception is a graduated key (`review_center`, `agent_tunnel`,
|
|
23
|
-
* `session_transcript_history`): it reports `enabled: true` for every
|
|
24
|
-
* because the feature no longer has an off state.
|
|
23
|
+
* `session_transcript_history`, `teams`): it reports `enabled: true` for every
|
|
24
|
+
* project, because the feature no longer has an off state.
|
|
25
25
|
*/
|
|
26
26
|
export declare function useFeatureFlag(projectId: string | null | undefined, key: FeatureFlagKey): FeatureFlagState;
|
|
27
27
|
//# sourceMappingURL=use-feature-flag.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-feature-flag.d.ts","sourceRoot":"","sources":["../../src/react/use-feature-flag.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"use-feature-flag.d.ts","sourceRoot":"","sources":["../../src/react/use-feature-flag.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAiBnE,iEAAiE;AACjE,MAAM,WAAW,gBAAgB;IAC/B,yEAAyE;IACzE,OAAO,EAAE,OAAO,CAAC;IACjB,uEAAuE;IACvE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,GAAG,EAAE,cAAc,GAClB,gBAAgB,CAclB"}
|
|
@@ -13,6 +13,7 @@ const GRADUATED_FEATURE_FLAG_KEYS = new Set([
|
|
|
13
13
|
'review_center',
|
|
14
14
|
'agent_tunnel',
|
|
15
15
|
'session_transcript_history',
|
|
16
|
+
'teams',
|
|
16
17
|
]);
|
|
17
18
|
/**
|
|
18
19
|
* The ONE client-side gate for a per-project feature flag.
|
|
@@ -28,8 +29,8 @@ const GRADUATED_FEATURE_FLAG_KEYS = new Set([
|
|
|
28
29
|
* A disabled feature's surface must be invisible, not merely inert.
|
|
29
30
|
*
|
|
30
31
|
* The one exception is a graduated key (`review_center`, `agent_tunnel`,
|
|
31
|
-
* `session_transcript_history`): it reports `enabled: true` for every
|
|
32
|
-
* because the feature no longer has an off state.
|
|
32
|
+
* `session_transcript_history`, `teams`): it reports `enabled: true` for every
|
|
33
|
+
* project, because the feature no longer has an off state.
|
|
33
34
|
*/
|
|
34
35
|
export function useFeatureFlag(projectId, key) {
|
|
35
36
|
const query = useQuery({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-feature-flag.js","sourceRoot":"","sources":["../../src/react/use-feature-flag.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC;;;;;GAKG;AACH,MAAM,2BAA2B,GAAgC,IAAI,GAAG,CAAC;IACvE,eAAe;IACf,cAAc;IACd,4BAA4B;
|
|
1
|
+
{"version":3,"file":"use-feature-flag.js","sourceRoot":"","sources":["../../src/react/use-feature-flag.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC;;;;;GAKG;AACH,MAAM,2BAA2B,GAAgC,IAAI,GAAG,CAAC;IACvE,eAAe;IACf,cAAc;IACd,4BAA4B;IAC5B,OAAO;CACR,CAAC,CAAC;AAUH;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,cAAc,CAC5B,SAAoC,EACpC,GAAmB;IAEnB,MAAM,KAAK,GAAG,QAAQ,CAAC;QACrB,QAAQ,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAAC;QAC5C,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,SAAmB,CAAC;QACpD,OAAO,EAAE,CAAC,CAAC,SAAS;QACpB,GAAG,QAAQ,CAAC,QAAQ,CAAC;QACrB,oBAAoB,EAAE,KAAK;KAC5B,CAAC,CAAC;IAEH,OAAO;QACL,OAAO,EACL,2BAA2B,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI;QAC3F,SAAS,EAAE,KAAK,CAAC,SAAS;KAC3B,CAAC;AACJ,CAAC"}
|
|
@@ -364,7 +364,7 @@ export declare function safeParseJsonArray(s: string | null | undefined): string
|
|
|
364
364
|
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
365
365
|
export declare function parseCustomFields(json: string | null | undefined): Record<string, unknown>;
|
|
366
366
|
export declare const milestoneKeys: {
|
|
367
|
-
list: (pid?: string, status?: "open" | "closed" | "all") => readonly ["kortix", "milestones", string, "
|
|
367
|
+
list: (pid?: string, status?: "open" | "closed" | "all") => readonly ["kortix", "milestones", string, "all" | "open" | "closed"];
|
|
368
368
|
detail: (pid: string, ref: string) => readonly ["kortix", "milestone", string, string];
|
|
369
369
|
events: (pid: string, ref: string) => readonly ["kortix", "milestone", string, string, "events"];
|
|
370
370
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import type { Config } from '
|
|
1
|
+
import type { Config } from '../core/runtime/runtime-types.js';
|
|
2
2
|
export type { Config };
|
|
3
3
|
export declare const configKeys: {
|
|
4
4
|
all: readonly ["opencode", "config"];
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* The runtime's own config document (`/global/config`). Only a runtime that
|
|
8
|
+
* serves `session.config` (OpenCode) has one; on any other the query stays
|
|
9
|
+
* off and `data` is undefined. Agents and models come from the project
|
|
10
|
+
* (`/detail`, `/model-picker`), not from here.
|
|
11
|
+
*/
|
|
6
12
|
export declare function useRuntimeConfig(): import("@tanstack/react-query").UseQueryResult<Config, Error>;
|
|
7
13
|
export declare function useUpdateRuntimeConfig(): import("@tanstack/react-query").UseMutationResult<Config, Error, Partial<Config>, {
|
|
8
14
|
previous: Config | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-opencode-config.d.ts","sourceRoot":"","sources":["../../src/react/use-opencode-config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use-opencode-config.d.ts","sourceRoot":"","sources":["../../src/react/use-opencode-config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAI5D,YAAY,EAAE,MAAM,EAAE,CAAC;AAEvB,eAAO,MAAM,UAAU;;CAEtB,CAAC;AAgBF;;;;;GAKG;AACH,wBAAgB,gBAAgB,kEAc/B;AAED,wBAAgB,sBAAsB;;GAsCrC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAGD,4EAA4E;AAC5E,eAAO,MAAM,iBAAiB,yBAAmB,CAAC;AAClD,kFAAkF;AAClF,eAAO,MAAM,uBAAuB,+BAAyB,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
3
3
|
import { getClient } from '../core/runtime/client.js';
|
|
4
4
|
import { useRuntimeReady } from './use-opencode-sessions/keys.js';
|
|
5
|
+
import { useRuntimeSupports } from './use-runtime-supports.js';
|
|
5
6
|
export const configKeys = {
|
|
6
7
|
all: ['opencode', 'config'],
|
|
7
8
|
};
|
|
@@ -17,8 +18,15 @@ function unwrap(result) {
|
|
|
17
18
|
}
|
|
18
19
|
return result.data;
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The runtime's own config document (`/global/config`). Only a runtime that
|
|
23
|
+
* serves `session.config` (OpenCode) has one; on any other the query stays
|
|
24
|
+
* off and `data` is undefined. Agents and models come from the project
|
|
25
|
+
* (`/detail`, `/model-picker`), not from here.
|
|
26
|
+
*/
|
|
20
27
|
export function useRuntimeConfig() {
|
|
21
28
|
const runtimeReady = useRuntimeReady();
|
|
29
|
+
const supported = useRuntimeSupports('session.config');
|
|
22
30
|
return useQuery({
|
|
23
31
|
queryKey: configKeys.all,
|
|
24
32
|
queryFn: async () => {
|
|
@@ -26,7 +34,7 @@ export function useRuntimeConfig() {
|
|
|
26
34
|
const result = await client.global.config.get();
|
|
27
35
|
return unwrap(result);
|
|
28
36
|
},
|
|
29
|
-
enabled: runtimeReady,
|
|
37
|
+
enabled: runtimeReady && supported,
|
|
30
38
|
staleTime: Infinity,
|
|
31
39
|
gcTime: 10 * 60 * 1000,
|
|
32
40
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-opencode-config.js","sourceRoot":"","sources":["../../src/react/use-opencode-config.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"use-opencode-config.js","sourceRoot":"","sources":["../../src/react/use-opencode-config.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAI5D,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAU;CACrC,CAAC;AAEF,SAAS,MAAM,CAAI,MAAqC;IACtD,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,sEAAsE;QACtE,wDAAwD;QACxD,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC;QACzB,MAAM,MAAM,GAAG,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAE,GAA+B,CAAC,CAAC,CAAC,SAAS,CAAC;QAC7F,MAAM,OAAO,GACX,MAAM,EAAE,IAAI,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAE,MAAM,CAAC,IAAgC,CAAC,CAAC,CAAC,SAAS,C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1
|
-
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../../src/react/use-opencode-events/diagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../../src/react/use-opencode-events/diagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAExD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,IAAI,EACV,wBAAwB,EAAE,SAAS,CAAC,wBAAwB,CAAC,GAC5D,IAAI,CAmDN"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import type { Event as OpenCodeSdkEvent, PermissionRequest, QuestionRequest } from '../../core/runtime/runtime-types.js';
|
|
2
|
+
import type { QueryClient } from '@tanstack/react-query';
|
|
3
3
|
import type { RefObject } from 'react';
|
|
4
|
-
import { getClient } from '../../core/runtime/client.js';
|
|
5
|
-
import {
|
|
4
|
+
import type { getClient } from '../../core/runtime/client.js';
|
|
5
|
+
import type { SessionSyncReason } from '../../core/session-sync/session-sync-controller.js';
|
|
6
6
|
import type { NormalizeDiagnosticPaths, RuntimeEvent } from './types.js';
|
|
7
|
-
/** See `createEventHandler`'s `userPartsGraceMs`. */
|
|
8
7
|
export declare const USER_PARTS_GRACE_MS = 1500;
|
|
9
|
-
/** Builds the SSE event handler; all closure dependencies are injected. */
|
|
10
8
|
export declare function createEventHandler(deps: {
|
|
11
9
|
queryClient: QueryClient;
|
|
12
10
|
client: ReturnType<typeof getClient>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-event.d.ts","sourceRoot":"","sources":["../../../src/react/use-opencode-events/handle-event.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"handle-event.d.ts","sourceRoot":"","sources":["../../../src/react/use-opencode-events/handle-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,IAAI,gBAAgB,EACzB,iBAAiB,EACjB,eAAe,EAChB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AASzF,OAAO,KAAK,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACtE,eAAO,MAAM,mBAAmB,OAAQ,CAAC;AACzC,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;IACrC,cAAc,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,aAAa,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,WAAW,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,wBAAwB,EAAE,SAAS,CAAC,wBAAwB,CAAC,CAAC;IAC9D,yBAAyB,EAAE,SAAS,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAA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