@kortix/sdk 0.13.40 → 0.13.42
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 +40 -7
- package/dist/browser/session-sync/server-transcript-mirror.d.ts +7 -4
- package/dist/browser/session-sync/server-transcript-mirror.d.ts.map +1 -1
- package/dist/browser/session-sync/server-transcript-mirror.js +18 -4
- package/dist/browser/session-sync/server-transcript-mirror.js.map +1 -1
- package/dist/browser/stores/sandbox-connection-store.d.ts +1 -10
- package/dist/browser/stores/sandbox-connection-store.d.ts.map +1 -1
- package/dist/browser/stores/sandbox-connection-store.js +11 -1
- package/dist/browser/stores/sandbox-connection-store.js.map +1 -1
- package/dist/browser/stores/sync-store/reconcile-parts.d.ts +14 -0
- package/dist/browser/stores/sync-store/reconcile-parts.d.ts.map +1 -0
- package/dist/browser/stores/sync-store/reconcile-parts.js +55 -0
- package/dist/browser/stores/sync-store/reconcile-parts.js.map +1 -0
- package/dist/browser/stores/sync-store.d.ts.map +1 -1
- package/dist/browser/stores/sync-store.js +11 -92
- package/dist/browser/stores/sync-store.js.map +1 -1
- package/dist/core/agents/composer-agents.d.ts +73 -0
- package/dist/core/agents/composer-agents.d.ts.map +1 -0
- package/dist/core/agents/composer-agents.js +100 -0
- package/dist/core/agents/composer-agents.js.map +1 -0
- package/dist/core/cache/persisted-query-cache.d.ts.map +1 -1
- package/dist/core/cache/persisted-query-cache.js +9 -0
- package/dist/core/cache/persisted-query-cache.js.map +1 -1
- package/dist/core/client/kortix.d.ts +44 -3
- package/dist/core/client/kortix.d.ts.map +1 -1
- package/dist/core/client/kortix.js +22 -1
- package/dist/core/client/kortix.js.map +1 -1
- package/dist/core/models/bedrock-invokable.d.ts +58 -0
- package/dist/core/models/bedrock-invokable.d.ts.map +1 -0
- package/dist/core/models/bedrock-invokable.js +83 -0
- package/dist/core/models/bedrock-invokable.js.map +1 -0
- package/dist/core/models/composer-model.d.ts +51 -0
- package/dist/core/models/composer-model.d.ts.map +1 -0
- package/dist/core/models/composer-model.js +88 -0
- package/dist/core/models/composer-model.js.map +1 -0
- package/dist/core/models/model-flatten.d.ts +90 -0
- package/dist/core/models/model-flatten.d.ts.map +1 -0
- package/dist/core/models/model-flatten.js +88 -0
- package/dist/core/models/model-flatten.js.map +1 -0
- package/dist/core/models/model-key.d.ts +18 -0
- package/dist/core/models/model-key.d.ts.map +1 -0
- package/dist/core/models/model-key.js +16 -0
- package/dist/core/models/model-key.js.map +1 -0
- package/dist/core/models/model-lookup.d.ts +3 -0
- package/dist/core/models/model-lookup.d.ts.map +1 -0
- package/dist/core/models/model-lookup.js +4 -0
- package/dist/core/models/model-lookup.js.map +1 -0
- package/dist/core/models/model-visibility.d.ts +85 -0
- package/dist/core/models/model-visibility.d.ts.map +1 -0
- package/dist/core/models/model-visibility.js +215 -0
- package/dist/core/models/model-visibility.js.map +1 -0
- package/dist/core/models/provider-selection.d.ts +142 -0
- package/dist/core/models/provider-selection.d.ts.map +1 -0
- package/dist/core/models/provider-selection.js +472 -0
- package/dist/core/models/provider-selection.js.map +1 -0
- package/dist/core/rest/platform-client/host-boundary.d.ts +4 -0
- package/dist/core/rest/platform-client/host-boundary.d.ts.map +1 -1
- package/dist/core/rest/platform-client/host-boundary.js.map +1 -1
- package/dist/core/rest/projects-client/access.d.ts +6 -1
- package/dist/core/rest/projects-client/access.d.ts.map +1 -1
- package/dist/core/rest/projects-client/access.js +3 -1
- package/dist/core/rest/projects-client/access.js.map +1 -1
- package/dist/core/rest/projects-client/account-secret-resources.d.ts +7 -0
- package/dist/core/rest/projects-client/account-secret-resources.d.ts.map +1 -1
- package/dist/core/rest/projects-client/account-secret-resources.js.map +1 -1
- package/dist/core/rest/projects-client/agent-config.d.ts +4 -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/connectors.d.ts +58 -2
- package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
- package/dist/core/rest/projects-client/connectors.js +27 -3
- package/dist/core/rest/projects-client/connectors.js.map +1 -1
- package/dist/core/rest/projects-client/github.d.ts +25 -0
- package/dist/core/rest/projects-client/github.d.ts.map +1 -1
- package/dist/core/rest/projects-client/github.js +19 -0
- package/dist/core/rest/projects-client/github.js.map +1 -1
- package/dist/core/rest/projects-client/index.d.ts +2 -0
- package/dist/core/rest/projects-client/index.d.ts.map +1 -1
- package/dist/core/rest/projects-client/index.js +2 -0
- package/dist/core/rest/projects-client/index.js.map +1 -1
- package/dist/core/rest/projects-client/project-agents.d.ts +29 -0
- package/dist/core/rest/projects-client/project-agents.d.ts.map +1 -0
- package/dist/core/rest/projects-client/project-agents.js +41 -0
- package/dist/core/rest/projects-client/project-agents.js.map +1 -0
- package/dist/core/rest/projects-client/projects.d.ts +24 -4
- package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
- package/dist/core/rest/projects-client/projects.js +8 -3
- package/dist/core/rest/projects-client/projects.js.map +1 -1
- package/dist/core/rest/projects-client/review-items.d.ts +3 -0
- package/dist/core/rest/projects-client/review-items.d.ts.map +1 -1
- package/dist/core/rest/projects-client/review-items.js +1 -0
- package/dist/core/rest/projects-client/review-items.js.map +1 -1
- package/dist/core/rest/projects-client/session-reminders.d.ts +63 -0
- package/dist/core/rest/projects-client/session-reminders.d.ts.map +1 -0
- package/dist/core/rest/projects-client/session-reminders.js +29 -0
- package/dist/core/rest/projects-client/session-reminders.js.map +1 -0
- package/dist/core/rest/projects-client/sessions.d.ts +35 -0
- package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
- package/dist/core/rest/projects-client/sessions.js +14 -1
- package/dist/core/rest/projects-client/sessions.js.map +1 -1
- package/dist/core/rest/projects-client/setup-links.d.ts +2 -0
- package/dist/core/rest/projects-client/setup-links.d.ts.map +1 -1
- package/dist/core/rest/projects-client/setup-links.js.map +1 -1
- package/dist/core/rest/projects-client/tokens.d.ts +30 -0
- package/dist/core/rest/projects-client/tokens.d.ts.map +1 -1
- package/dist/core/rest/projects-client/tokens.js +11 -0
- package/dist/core/rest/projects-client/tokens.js.map +1 -1
- package/dist/core/runtime/kortix-master.d.ts +74 -5
- package/dist/core/runtime/kortix-master.d.ts.map +1 -1
- package/dist/core/runtime/kortix-master.js +78 -5
- package/dist/core/runtime/kortix-master.js.map +1 -1
- package/dist/core/session/connection.d.ts +22 -0
- package/dist/core/session/connection.d.ts.map +1 -1
- package/dist/core/session/connection.js +28 -0
- package/dist/core/session/connection.js.map +1 -1
- package/dist/core/session/status-vocabulary.d.ts +1 -1
- package/dist/core/session/status-vocabulary.js +1 -1
- package/dist/core/session/status-vocabulary.js.map +1 -1
- package/dist/core/session-sync/saved-copy-store.d.ts +5 -1
- package/dist/core/session-sync/saved-copy-store.d.ts.map +1 -1
- package/dist/core/session-sync/saved-copy-store.js +50 -2
- package/dist/core/session-sync/saved-copy-store.js.map +1 -1
- package/dist/core/session-sync/saved-transcript.d.ts +46 -2
- package/dist/core/session-sync/saved-transcript.d.ts.map +1 -1
- package/dist/core/session-sync/saved-transcript.js +40 -0
- package/dist/core/session-sync/saved-transcript.js.map +1 -1
- package/dist/core/session-sync/session-sync-controller.d.ts +2 -0
- package/dist/core/session-sync/session-sync-controller.d.ts.map +1 -1
- package/dist/core/session-sync/session-sync-controller.js +19 -2
- package/dist/core/session-sync/session-sync-controller.js.map +1 -1
- package/dist/core/stream/fetch-sse.d.ts +4 -0
- package/dist/core/stream/fetch-sse.d.ts.map +1 -1
- package/dist/core/stream/fetch-sse.js +4 -0
- package/dist/core/stream/fetch-sse.js.map +1 -1
- package/dist/core/stream/keepalive.d.ts +1 -1
- package/dist/core/stream/keepalive.js +1 -1
- package/dist/core/turns/errors.d.ts +6 -0
- package/dist/core/turns/errors.d.ts.map +1 -1
- package/dist/core/turns/errors.js +7 -1
- package/dist/core/turns/errors.js.map +1 -1
- package/dist/core/turns/parts.d.ts.map +1 -1
- package/dist/core/turns/parts.js +22 -129
- package/dist/core/turns/parts.js.map +1 -1
- package/dist/core/turns/tools/memory-helpers.d.ts +5 -0
- package/dist/core/turns/tools/memory-helpers.d.ts.map +1 -1
- package/dist/core/turns/tools/memory-helpers.js +9 -1
- package/dist/core/turns/tools/memory-helpers.js.map +1 -1
- package/dist/core/turns/tools/skill-helpers.d.ts +1 -1
- package/dist/core/turns/tools/skill-helpers.d.ts.map +1 -1
- package/dist/core/turns/tools/skill-helpers.js +7 -6
- package/dist/core/turns/tools/skill-helpers.js.map +1 -1
- package/dist/core/turns/tools/web-helpers.d.ts.map +1 -1
- package/dist/core/turns/tools/web-helpers.js +79 -139
- package/dist/core/turns/tools/web-helpers.js.map +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/kortix.esm.min.js +37 -37
- package/dist/kortix.global.js +37 -37
- package/dist/react/bedrock-invokable.d.ts +1 -57
- package/dist/react/bedrock-invokable.d.ts.map +1 -1
- package/dist/react/bedrock-invokable.js +2 -82
- package/dist/react/bedrock-invokable.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/model-flatten.d.ts +1 -89
- package/dist/react/model-flatten.d.ts.map +1 -1
- package/dist/react/model-flatten.js +2 -85
- package/dist/react/model-flatten.js.map +1 -1
- package/dist/react/model-lookup.d.ts +1 -2
- package/dist/react/model-lookup.d.ts.map +1 -1
- package/dist/react/model-lookup.js +2 -3
- package/dist/react/model-lookup.js.map +1 -1
- package/dist/react/provider-selection.d.ts +1 -107
- package/dist/react/provider-selection.d.ts.map +1 -1
- package/dist/react/provider-selection.js +2 -437
- package/dist/react/provider-selection.js.map +1 -1
- package/dist/react/query-keys.d.ts +19 -1
- package/dist/react/query-keys.d.ts.map +1 -1
- package/dist/react/query-keys.js +25 -54
- package/dist/react/query-keys.js.map +1 -1
- package/dist/react/runtime-actions.d.ts +7 -0
- package/dist/react/runtime-actions.d.ts.map +1 -1
- package/dist/react/runtime-actions.js +7 -0
- package/dist/react/runtime-actions.js.map +1 -1
- package/dist/react/session-cache-write.d.ts +1 -1
- package/dist/react/session-cache-write.d.ts.map +1 -1
- package/dist/react/session-cache-write.js +38 -4
- package/dist/react/session-cache-write.js.map +1 -1
- package/dist/react/sign-in-with-kortix.d.ts +1 -1
- package/dist/react/use-feature-flag.d.ts +3 -3
- package/dist/react/use-feature-flag.d.ts.map +1 -1
- package/dist/react/use-feature-flag.js +8 -4
- package/dist/react/use-feature-flag.js.map +1 -1
- package/dist/react/use-kortix-master.d.ts +81 -3
- package/dist/react/use-kortix-master.d.ts.map +1 -1
- package/dist/react/use-kortix-master.js +84 -3
- package/dist/react/use-kortix-master.js.map +1 -1
- package/dist/react/use-model-defaults.d.ts +2 -1
- package/dist/react/use-model-defaults.d.ts.map +1 -1
- package/dist/react/use-model-defaults.js +3 -7
- package/dist/react/use-model-defaults.js.map +1 -1
- package/dist/react/use-model-store.d.ts +3 -44
- package/dist/react/use-model-store.d.ts.map +1 -1
- package/dist/react/use-model-store.js +16 -182
- package/dist/react/use-model-store.js.map +1 -1
- package/dist/react/use-opencode-events/helpers.d.ts.map +1 -1
- package/dist/react/use-opencode-events/helpers.js +5 -0
- package/dist/react/use-opencode-events/helpers.js.map +1 -1
- package/dist/react/use-opencode-local.d.ts.map +1 -1
- package/dist/react/use-opencode-local.js +41 -110
- package/dist/react/use-opencode-local.js.map +1 -1
- package/dist/react/use-opencode-mcp.d.ts +6 -0
- package/dist/react/use-opencode-mcp.d.ts.map +1 -1
- package/dist/react/use-opencode-mcp.js +6 -0
- package/dist/react/use-opencode-mcp.js.map +1 -1
- package/dist/react/use-opencode-sessions/agents.d.ts +2 -7
- package/dist/react/use-opencode-sessions/agents.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/agents.js +4 -28
- package/dist/react/use-opencode-sessions/agents.js.map +1 -1
- package/dist/react/use-opencode-sessions/mcp.d.ts +1 -0
- package/dist/react/use-opencode-sessions/mcp.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/mcp.js +1 -0
- package/dist/react/use-opencode-sessions/mcp.js.map +1 -1
- package/dist/react/use-opencode-sessions/parts.d.ts +4 -0
- package/dist/react/use-opencode-sessions/parts.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/parts.js +4 -0
- package/dist/react/use-opencode-sessions/parts.js.map +1 -1
- package/dist/react/use-opencode-sessions/projects.d.ts +1 -0
- package/dist/react/use-opencode-sessions/projects.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/projects.js +1 -0
- package/dist/react/use-opencode-sessions/projects.js.map +1 -1
- package/dist/react/use-opencode-sessions/providers.d.ts +1 -1
- package/dist/react/use-opencode-sessions/providers.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/providers.js +4 -4
- package/dist/react/use-opencode-sessions/providers.js.map +1 -1
- package/dist/react/use-opencode-sessions/sessions.d.ts +1 -0
- package/dist/react/use-opencode-sessions/sessions.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/sessions.js +1 -0
- package/dist/react/use-opencode-sessions/sessions.js.map +1 -1
- package/dist/react/use-opencode-sessions/sharing.d.ts +2 -0
- package/dist/react/use-opencode-sessions/sharing.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/sharing.js +2 -0
- package/dist/react/use-opencode-sessions/sharing.js.map +1 -1
- package/dist/react/use-opencode-sessions/tools.d.ts +2 -0
- package/dist/react/use-opencode-sessions/tools.d.ts.map +1 -1
- package/dist/react/use-opencode-sessions/tools.js +2 -0
- package/dist/react/use-opencode-sessions/tools.js.map +1 -1
- package/dist/react/use-project-sessions.d.ts +221 -1
- package/dist/react/use-project-sessions.d.ts.map +1 -1
- package/dist/react/use-project-sessions.js +27 -1
- package/dist/react/use-project-sessions.js.map +1 -1
- package/dist/react/use-reminders.d.ts +465 -0
- package/dist/react/use-reminders.d.ts.map +1 -0
- package/dist/react/use-reminders.js +50 -0
- package/dist/react/use-reminders.js.map +1 -0
- package/dist/react/use-runtime-reconnect.d.ts +41 -8
- package/dist/react/use-runtime-reconnect.d.ts.map +1 -1
- package/dist/react/use-runtime-reconnect.js +93 -27
- package/dist/react/use-runtime-reconnect.js.map +1 -1
- package/dist/react/use-session-sync.d.ts +7 -0
- package/dist/react/use-session-sync.d.ts.map +1 -1
- package/dist/react/use-session-sync.js +25 -12
- package/dist/react/use-session-sync.js.map +1 -1
- package/dist/react/use-session-transcript-history.d.ts +2 -0
- package/dist/react/use-session-transcript-history.d.ts.map +1 -1
- package/dist/react/use-session-transcript-history.js +3 -0
- package/dist/react/use-session-transcript-history.js.map +1 -1
- package/dist/react/use-session.d.ts +25 -15
- package/dist/react/use-session.d.ts.map +1 -1
- package/dist/react/use-session.js +136 -21
- package/dist/react/use-session.js.map +1 -1
- package/dist/react/use-tunnel.d.ts +59 -7
- package/dist/react/use-tunnel.d.ts.map +1 -1
- package/dist/react/use-tunnel.js +82 -123
- package/dist/react/use-tunnel.js.map +1 -1
- package/dist/react/use-visible-agents.d.ts +5 -5
- package/dist/react/use-visible-agents.d.ts.map +1 -1
- package/dist/react/use-visible-agents.js +10 -28
- package/dist/react/use-visible-agents.js.map +1 -1
- package/package.json +2 -2
- package/dist/core/session-sync/durable-log.d.ts +0 -96
- package/dist/core/session-sync/durable-log.d.ts.map +0 -1
- package/dist/core/session-sync/durable-log.js +0 -94
- package/dist/core/session-sync/durable-log.js.map +0 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
/**
|
|
3
|
+
* DEPRECATED with the `./kortix-master` transport client: the sandbox daemon
|
|
4
|
+
* serves none of its routes, so every hook here ends in a 404.
|
|
5
|
+
*
|
|
3
6
|
* kortix-master React Query layer — the generic (host-agnostic) hooks over
|
|
4
7
|
* the `./kortix-master` transport client: query keys, caching/polling config,
|
|
5
8
|
* optimistic-update/invalidation wiring, and the pure normalization/derivation
|
|
@@ -49,6 +52,7 @@ export const credentialKeys = {
|
|
|
49
52
|
list: (pid) => ['kortix', 'credentials', pid ?? ''],
|
|
50
53
|
events: (pid, name) => ['kortix', 'credentials', pid, name, 'events'],
|
|
51
54
|
};
|
|
55
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
52
56
|
export function useCredentials(projectId) {
|
|
53
57
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
54
58
|
return useQuery({
|
|
@@ -60,6 +64,7 @@ export function useCredentials(projectId) {
|
|
|
60
64
|
placeholderData: keepPreviousData,
|
|
61
65
|
});
|
|
62
66
|
}
|
|
67
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
63
68
|
export function useCredentialEvents(projectId, name) {
|
|
64
69
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
65
70
|
return useQuery({
|
|
@@ -69,6 +74,7 @@ export function useCredentialEvents(projectId, name) {
|
|
|
69
74
|
refetchInterval: 10_000,
|
|
70
75
|
});
|
|
71
76
|
}
|
|
77
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
72
78
|
export function useUpsertCredential() {
|
|
73
79
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
74
80
|
const qc = useQueryClient();
|
|
@@ -79,7 +85,11 @@ export function useUpsertCredential() {
|
|
|
79
85
|
},
|
|
80
86
|
});
|
|
81
87
|
}
|
|
82
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Reveal returns the decrypted value. Each call is audit-logged as a read.
|
|
90
|
+
*
|
|
91
|
+
* @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major.
|
|
92
|
+
*/
|
|
83
93
|
export function useRevealCredential() {
|
|
84
94
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
85
95
|
const qc = useQueryClient();
|
|
@@ -92,6 +102,7 @@ export function useRevealCredential() {
|
|
|
92
102
|
},
|
|
93
103
|
});
|
|
94
104
|
}
|
|
105
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
95
106
|
export function useDeleteCredential() {
|
|
96
107
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
97
108
|
const qc = useQueryClient();
|
|
@@ -109,6 +120,7 @@ export const kortixKeys = {
|
|
|
109
120
|
projects: () => ['kortix', 'projects'],
|
|
110
121
|
project: (id) => ['kortix', 'projects', id],
|
|
111
122
|
};
|
|
123
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
112
124
|
export function useKortixProjects(identity, _args, options = {}) {
|
|
113
125
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
114
126
|
return useQuery({
|
|
@@ -122,6 +134,7 @@ export function useKortixProjects(identity, _args, options = {}) {
|
|
|
122
134
|
retryDelay: (attempt) => Math.min(1000 * 2 ** attempt, 10000),
|
|
123
135
|
});
|
|
124
136
|
}
|
|
137
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
125
138
|
export function useKortixProject(identity, id) {
|
|
126
139
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
127
140
|
return useQuery({
|
|
@@ -136,6 +149,7 @@ export function useKortixProject(identity, id) {
|
|
|
136
149
|
placeholderData: keepPreviousData,
|
|
137
150
|
});
|
|
138
151
|
}
|
|
152
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
139
153
|
export function useKortixProjectForSession(identity, sessionId, options = {}) {
|
|
140
154
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
141
155
|
return useQuery({
|
|
@@ -157,6 +171,8 @@ export function useKortixProjectForSession(identity, sessionId, options = {}) {
|
|
|
157
171
|
/**
|
|
158
172
|
* Fetch sessions linked to a specific project.
|
|
159
173
|
* Returns OpenCode session objects enriched with title, time, etc.
|
|
174
|
+
*
|
|
175
|
+
* @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major.
|
|
160
176
|
*/
|
|
161
177
|
export function useKortixProjectSessions(identity, projectId, options = {}) {
|
|
162
178
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -174,6 +190,7 @@ export function useKortixProjectSessions(identity, projectId, options = {}) {
|
|
|
174
190
|
placeholderData: keepPreviousData,
|
|
175
191
|
});
|
|
176
192
|
}
|
|
193
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
177
194
|
export function useDeleteProject() {
|
|
178
195
|
const qc = useQueryClient();
|
|
179
196
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -184,6 +201,7 @@ export function useDeleteProject() {
|
|
|
184
201
|
},
|
|
185
202
|
});
|
|
186
203
|
}
|
|
204
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
187
205
|
export function usePatchProject() {
|
|
188
206
|
const qc = useQueryClient();
|
|
189
207
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -209,7 +227,10 @@ const VALID_STATUSES = [
|
|
|
209
227
|
/** Pure — the daemon's `status` isn't schema-validated, so this normalizes
|
|
210
228
|
* raw rows (defaulting an unrecognized status to `'todo'`) before trusting
|
|
211
229
|
* `KortixTask['status']`. `raw` is genuinely unvalidated wire data — duck-type
|
|
212
|
-
* via `unknown` rather than assume the shape. Exported for direct unit testing.
|
|
230
|
+
* via `unknown` rather than assume the shape. Exported for direct unit testing.
|
|
231
|
+
*
|
|
232
|
+
* @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major.
|
|
233
|
+
*/
|
|
213
234
|
export function normalizeTask(raw) {
|
|
214
235
|
const r = (raw && typeof raw === 'object' ? raw : {});
|
|
215
236
|
const status = VALID_STATUSES.includes(r.status)
|
|
@@ -234,6 +255,7 @@ export function normalizeTask(raw) {
|
|
|
234
255
|
updated_at: r.updated_at,
|
|
235
256
|
};
|
|
236
257
|
}
|
|
258
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
237
259
|
export function useKortixTasks(projectId, status, options = {}) {
|
|
238
260
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
239
261
|
return useQuery({
|
|
@@ -248,6 +270,7 @@ export function useKortixTasks(projectId, status, options = {}) {
|
|
|
248
270
|
placeholderData: keepPreviousData,
|
|
249
271
|
});
|
|
250
272
|
}
|
|
273
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
251
274
|
export function useKortixTask(id, options = {}) {
|
|
252
275
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
253
276
|
return useQuery({
|
|
@@ -262,6 +285,7 @@ export function useKortixTask(id, options = {}) {
|
|
|
262
285
|
placeholderData: keepPreviousData,
|
|
263
286
|
});
|
|
264
287
|
}
|
|
288
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
265
289
|
export function useKortixTaskEvents(id, options = {}) {
|
|
266
290
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
267
291
|
return useQuery({
|
|
@@ -276,6 +300,7 @@ export function useKortixTaskEvents(id, options = {}) {
|
|
|
276
300
|
placeholderData: keepPreviousData,
|
|
277
301
|
});
|
|
278
302
|
}
|
|
303
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
279
304
|
export function useKortixTaskStatus(id, options = {}) {
|
|
280
305
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
281
306
|
return useQuery({
|
|
@@ -289,6 +314,7 @@ export function useKortixTaskStatus(id, options = {}) {
|
|
|
289
314
|
placeholderData: keepPreviousData,
|
|
290
315
|
});
|
|
291
316
|
}
|
|
317
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
292
318
|
export function useCreateKortixTask() {
|
|
293
319
|
const qc = useQueryClient();
|
|
294
320
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -299,6 +325,7 @@ export function useCreateKortixTask() {
|
|
|
299
325
|
},
|
|
300
326
|
});
|
|
301
327
|
}
|
|
328
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
302
329
|
export function useUpdateKortixTask() {
|
|
303
330
|
const qc = useQueryClient();
|
|
304
331
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -309,6 +336,7 @@ export function useUpdateKortixTask() {
|
|
|
309
336
|
},
|
|
310
337
|
});
|
|
311
338
|
}
|
|
339
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
312
340
|
export function useStartKortixTask() {
|
|
313
341
|
const qc = useQueryClient();
|
|
314
342
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -324,6 +352,7 @@ export function useStartKortixTask() {
|
|
|
324
352
|
},
|
|
325
353
|
});
|
|
326
354
|
}
|
|
355
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
327
356
|
export function useApproveKortixTask() {
|
|
328
357
|
const qc = useQueryClient();
|
|
329
358
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -334,6 +363,7 @@ export function useApproveKortixTask() {
|
|
|
334
363
|
},
|
|
335
364
|
});
|
|
336
365
|
}
|
|
366
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
337
367
|
export function useDeleteKortixTask() {
|
|
338
368
|
const qc = useQueryClient();
|
|
339
369
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -357,6 +387,7 @@ export const ticketKeys = {
|
|
|
357
387
|
templates: (pid) => ['kortix', 'templates', pid],
|
|
358
388
|
agents: (pid) => ['kortix', 'agents', pid],
|
|
359
389
|
};
|
|
390
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
360
391
|
export function useTickets(projectId, opts) {
|
|
361
392
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
362
393
|
return useQuery({
|
|
@@ -368,6 +399,7 @@ export function useTickets(projectId, opts) {
|
|
|
368
399
|
placeholderData: keepPreviousData,
|
|
369
400
|
});
|
|
370
401
|
}
|
|
402
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
371
403
|
export function useTicket(id, opts) {
|
|
372
404
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
373
405
|
return useQuery({
|
|
@@ -379,6 +411,7 @@ export function useTicket(id, opts) {
|
|
|
379
411
|
placeholderData: keepPreviousData,
|
|
380
412
|
});
|
|
381
413
|
}
|
|
414
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
382
415
|
export function useTicketEvents(id, opts) {
|
|
383
416
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
384
417
|
return useQuery({
|
|
@@ -390,6 +423,7 @@ export function useTicketEvents(id, opts) {
|
|
|
390
423
|
placeholderData: keepPreviousData,
|
|
391
424
|
});
|
|
392
425
|
}
|
|
426
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
393
427
|
export function useCreateTicket(identity) {
|
|
394
428
|
const qc = useQueryClient();
|
|
395
429
|
const handle = identity.handle;
|
|
@@ -407,6 +441,7 @@ export function useCreateTicket(identity) {
|
|
|
407
441
|
},
|
|
408
442
|
});
|
|
409
443
|
}
|
|
444
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
410
445
|
export function useUpdateTicket(identity) {
|
|
411
446
|
const qc = useQueryClient();
|
|
412
447
|
const handle = identity.handle;
|
|
@@ -420,6 +455,7 @@ export function useUpdateTicket(identity) {
|
|
|
420
455
|
},
|
|
421
456
|
});
|
|
422
457
|
}
|
|
458
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
423
459
|
export function useUpdateTicketStatus(identity) {
|
|
424
460
|
const qc = useQueryClient();
|
|
425
461
|
const handle = identity.handle;
|
|
@@ -433,6 +469,7 @@ export function useUpdateTicketStatus(identity) {
|
|
|
433
469
|
},
|
|
434
470
|
});
|
|
435
471
|
}
|
|
472
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
436
473
|
export function useAssignTicket(identity) {
|
|
437
474
|
const qc = useQueryClient();
|
|
438
475
|
const handle = identity.handle;
|
|
@@ -446,6 +483,7 @@ export function useAssignTicket(identity) {
|
|
|
446
483
|
},
|
|
447
484
|
});
|
|
448
485
|
}
|
|
486
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
449
487
|
export function useUnassignTicket(identity) {
|
|
450
488
|
const qc = useQueryClient();
|
|
451
489
|
const handle = identity.handle;
|
|
@@ -459,6 +497,7 @@ export function useUnassignTicket(identity) {
|
|
|
459
497
|
},
|
|
460
498
|
});
|
|
461
499
|
}
|
|
500
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
462
501
|
export function useCommentTicket(identity) {
|
|
463
502
|
const qc = useQueryClient();
|
|
464
503
|
const handle = identity.handle;
|
|
@@ -471,6 +510,7 @@ export function useCommentTicket(identity) {
|
|
|
471
510
|
},
|
|
472
511
|
});
|
|
473
512
|
}
|
|
513
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
474
514
|
export function useDeleteTicket() {
|
|
475
515
|
const qc = useQueryClient();
|
|
476
516
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -480,6 +520,7 @@ export function useDeleteTicket() {
|
|
|
480
520
|
});
|
|
481
521
|
}
|
|
482
522
|
// ── Columns ──────────────────────────────────────────────────────────────────
|
|
523
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
483
524
|
export function useColumns(projectId) {
|
|
484
525
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
485
526
|
return useQuery({
|
|
@@ -489,6 +530,7 @@ export function useColumns(projectId) {
|
|
|
489
530
|
staleTime: 30_000,
|
|
490
531
|
});
|
|
491
532
|
}
|
|
533
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
492
534
|
export function useReplaceColumns() {
|
|
493
535
|
const qc = useQueryClient();
|
|
494
536
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -501,6 +543,7 @@ export function useReplaceColumns() {
|
|
|
501
543
|
});
|
|
502
544
|
}
|
|
503
545
|
// ── Fields ───────────────────────────────────────────────────────────────────
|
|
546
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
504
547
|
export function useFields(projectId) {
|
|
505
548
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
506
549
|
return useQuery({
|
|
@@ -510,6 +553,7 @@ export function useFields(projectId) {
|
|
|
510
553
|
staleTime: 30_000,
|
|
511
554
|
});
|
|
512
555
|
}
|
|
556
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
513
557
|
export function useReplaceFields() {
|
|
514
558
|
const qc = useQueryClient();
|
|
515
559
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -519,6 +563,7 @@ export function useReplaceFields() {
|
|
|
519
563
|
});
|
|
520
564
|
}
|
|
521
565
|
// ── Templates ────────────────────────────────────────────────────────────────
|
|
566
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
522
567
|
export function useTemplates(projectId) {
|
|
523
568
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
524
569
|
return useQuery({
|
|
@@ -528,6 +573,7 @@ export function useTemplates(projectId) {
|
|
|
528
573
|
staleTime: 30_000,
|
|
529
574
|
});
|
|
530
575
|
}
|
|
576
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
531
577
|
export function useReplaceTemplates() {
|
|
532
578
|
const qc = useQueryClient();
|
|
533
579
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -541,6 +587,8 @@ export function useReplaceTemplates() {
|
|
|
541
587
|
* Ensure (create-if-missing) a project-level session bound to the Project
|
|
542
588
|
* Manager agent. Idempotent on the backend — first call creates + binds,
|
|
543
589
|
* subsequent calls return the existing session id so the thread continues.
|
|
590
|
+
*
|
|
591
|
+
* @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major.
|
|
544
592
|
*/
|
|
545
593
|
export function useEnsurePmSession() {
|
|
546
594
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -549,6 +597,7 @@ export function useEnsurePmSession() {
|
|
|
549
597
|
});
|
|
550
598
|
}
|
|
551
599
|
// ── Agents (team) ────────────────────────────────────────────────────────────
|
|
600
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
552
601
|
export function useProjectAgents(projectId) {
|
|
553
602
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
554
603
|
return useQuery({
|
|
@@ -558,6 +607,7 @@ export function useProjectAgents(projectId) {
|
|
|
558
607
|
staleTime: 30_000,
|
|
559
608
|
});
|
|
560
609
|
}
|
|
610
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
561
611
|
export function useCreateProjectAgent() {
|
|
562
612
|
const qc = useQueryClient();
|
|
563
613
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -568,6 +618,7 @@ export function useCreateProjectAgent() {
|
|
|
568
618
|
onSuccess: (_d, vars) => { qc.invalidateQueries({ queryKey: ticketKeys.agents(vars.projectId) }); },
|
|
569
619
|
});
|
|
570
620
|
}
|
|
621
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
571
622
|
export function useUpdateProjectAgent() {
|
|
572
623
|
const qc = useQueryClient();
|
|
573
624
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -576,6 +627,7 @@ export function useUpdateProjectAgent() {
|
|
|
576
627
|
onSuccess: (_d, vars) => { qc.invalidateQueries({ queryKey: ticketKeys.agents(vars.projectId) }); },
|
|
577
628
|
});
|
|
578
629
|
}
|
|
630
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
579
631
|
export function useDeleteProjectAgent() {
|
|
580
632
|
const qc = useQueryClient();
|
|
581
633
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
@@ -584,6 +636,7 @@ export function useDeleteProjectAgent() {
|
|
|
584
636
|
onSuccess: (_d, vars) => { qc.invalidateQueries({ queryKey: ticketKeys.agents(vars.projectId) }); },
|
|
585
637
|
});
|
|
586
638
|
}
|
|
639
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
587
640
|
export function useAgentPersona(projectId, slug, opts) {
|
|
588
641
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
589
642
|
return useQuery({
|
|
@@ -593,6 +646,7 @@ export function useAgentPersona(projectId, slug, opts) {
|
|
|
593
646
|
});
|
|
594
647
|
}
|
|
595
648
|
// ── Project activity / notifications ─────────────────────────────────────────
|
|
649
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
596
650
|
export function useProjectActivity(projectId, opts) {
|
|
597
651
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
598
652
|
return useQuery({
|
|
@@ -616,6 +670,8 @@ export function useProjectActivity(projectId, opts) {
|
|
|
616
670
|
*
|
|
617
671
|
* Pure — takes `handle` as an explicit parameter rather than reading it from
|
|
618
672
|
* an auth hook. Exported for direct unit testing.
|
|
673
|
+
*
|
|
674
|
+
* @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major.
|
|
619
675
|
*/
|
|
620
676
|
export function computeUnread(events, handle, sinceIso) {
|
|
621
677
|
const byTicket = new Map();
|
|
@@ -659,6 +715,8 @@ export function computeUnread(events, handle, sinceIso) {
|
|
|
659
715
|
* titles, relative times, and the comment body that caused a mention.
|
|
660
716
|
*
|
|
661
717
|
* Pure — same `handle`-as-parameter shape as {@link computeUnread}.
|
|
718
|
+
*
|
|
719
|
+
* @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major.
|
|
662
720
|
*/
|
|
663
721
|
export function computeNotifications(events, handle, sinceIso) {
|
|
664
722
|
if (!events)
|
|
@@ -688,6 +746,7 @@ export function computeNotifications(events, handle, sinceIso) {
|
|
|
688
746
|
}
|
|
689
747
|
const LAST_SEEN_KEY = (projectId, handle) => `kortix:activity-last-seen:${projectId}:${handle}`;
|
|
690
748
|
export const LAST_SEEN_EVENT = 'kortix:last-seen-changed';
|
|
749
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
691
750
|
export function readLastSeen(projectId, handle) {
|
|
692
751
|
if (typeof window === 'undefined')
|
|
693
752
|
return null;
|
|
@@ -698,6 +757,7 @@ export function readLastSeen(projectId, handle) {
|
|
|
698
757
|
return null;
|
|
699
758
|
}
|
|
700
759
|
}
|
|
760
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
701
761
|
export function writeLastSeen(projectId, handle, iso) {
|
|
702
762
|
if (typeof window === 'undefined')
|
|
703
763
|
return;
|
|
@@ -710,6 +770,7 @@ export function writeLastSeen(projectId, handle, iso) {
|
|
|
710
770
|
catch { }
|
|
711
771
|
}
|
|
712
772
|
// ── Helpers ──────────────────────────────────────────────────────────────────
|
|
773
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
713
774
|
export function safeParseJsonArray(s) {
|
|
714
775
|
if (!s)
|
|
715
776
|
return [];
|
|
@@ -721,6 +782,7 @@ export function safeParseJsonArray(s) {
|
|
|
721
782
|
return [];
|
|
722
783
|
}
|
|
723
784
|
}
|
|
785
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
724
786
|
export function parseCustomFields(json) {
|
|
725
787
|
if (!json)
|
|
726
788
|
return {};
|
|
@@ -740,6 +802,7 @@ export const milestoneKeys = {
|
|
|
740
802
|
detail: (pid, ref) => ['kortix', 'milestone', pid, ref],
|
|
741
803
|
events: (pid, ref) => ['kortix', 'milestone', pid, ref, 'events'],
|
|
742
804
|
};
|
|
805
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
743
806
|
export function useMilestones(projectId, statusFilter = 'all') {
|
|
744
807
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
745
808
|
return useQuery({
|
|
@@ -751,6 +814,7 @@ export function useMilestones(projectId, statusFilter = 'all') {
|
|
|
751
814
|
placeholderData: keepPreviousData,
|
|
752
815
|
});
|
|
753
816
|
}
|
|
817
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
754
818
|
export function useMilestone(projectId, ref) {
|
|
755
819
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
756
820
|
return useQuery({
|
|
@@ -762,6 +826,7 @@ export function useMilestone(projectId, ref) {
|
|
|
762
826
|
placeholderData: keepPreviousData,
|
|
763
827
|
});
|
|
764
828
|
}
|
|
829
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
765
830
|
export function useMilestoneEvents(projectId, ref) {
|
|
766
831
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
767
832
|
return useQuery({
|
|
@@ -772,6 +837,7 @@ export function useMilestoneEvents(projectId, ref) {
|
|
|
772
837
|
placeholderData: keepPreviousData,
|
|
773
838
|
});
|
|
774
839
|
}
|
|
840
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
775
841
|
export function useCreateMilestone() {
|
|
776
842
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
777
843
|
const qc = useQueryClient();
|
|
@@ -782,6 +848,7 @@ export function useCreateMilestone() {
|
|
|
782
848
|
},
|
|
783
849
|
});
|
|
784
850
|
}
|
|
851
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
785
852
|
export function useUpdateMilestone() {
|
|
786
853
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
787
854
|
const qc = useQueryClient();
|
|
@@ -793,6 +860,7 @@ export function useUpdateMilestone() {
|
|
|
793
860
|
},
|
|
794
861
|
});
|
|
795
862
|
}
|
|
863
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
796
864
|
export function useCloseMilestone() {
|
|
797
865
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
798
866
|
const qc = useQueryClient();
|
|
@@ -804,6 +872,7 @@ export function useCloseMilestone() {
|
|
|
804
872
|
},
|
|
805
873
|
});
|
|
806
874
|
}
|
|
875
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
807
876
|
export function useReopenMilestone() {
|
|
808
877
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
809
878
|
const qc = useQueryClient();
|
|
@@ -815,6 +884,7 @@ export function useReopenMilestone() {
|
|
|
815
884
|
},
|
|
816
885
|
});
|
|
817
886
|
}
|
|
887
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
818
888
|
export function useDeleteMilestone() {
|
|
819
889
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
820
890
|
const qc = useQueryClient();
|
|
@@ -825,7 +895,11 @@ export function useDeleteMilestone() {
|
|
|
825
895
|
},
|
|
826
896
|
});
|
|
827
897
|
}
|
|
828
|
-
/**
|
|
898
|
+
/**
|
|
899
|
+
* Link or unlink a ticket's milestone. Goes through PATCH /kortix/tickets/:id.
|
|
900
|
+
*
|
|
901
|
+
* @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major.
|
|
902
|
+
*/
|
|
829
903
|
export function useSetTicketMilestone() {
|
|
830
904
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
831
905
|
const qc = useQueryClient();
|
|
@@ -850,6 +924,7 @@ export const serviceKeys = {
|
|
|
850
924
|
logs: (serverUrl, serviceId) => ['sandbox-services', serverUrl, 'logs', serviceId],
|
|
851
925
|
templates: (serverUrl) => ['sandbox-services', serverUrl, 'templates'],
|
|
852
926
|
};
|
|
927
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
853
928
|
export function useSandboxServices(identity, options) {
|
|
854
929
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
855
930
|
const includeAll = options?.includeAll ?? false;
|
|
@@ -868,6 +943,7 @@ export function useSandboxServices(identity, options) {
|
|
|
868
943
|
refetchOnWindowFocus: true,
|
|
869
944
|
});
|
|
870
945
|
}
|
|
946
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
871
947
|
export function useSandboxServiceTemplates(identity, options) {
|
|
872
948
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
873
949
|
return useQuery({
|
|
@@ -882,6 +958,7 @@ export function useSandboxServiceTemplates(identity, options) {
|
|
|
882
958
|
gcTime: 5 * 60_000,
|
|
883
959
|
});
|
|
884
960
|
}
|
|
961
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
885
962
|
export function useSandboxServiceLogs(identity, serviceId, options) {
|
|
886
963
|
const serverUrl = useServerStore((s) => s.getActiveServerUrl());
|
|
887
964
|
return useQuery({
|
|
@@ -900,6 +977,7 @@ export function useSandboxServiceLogs(identity, serviceId, options) {
|
|
|
900
977
|
refetchIntervalInBackground: false,
|
|
901
978
|
});
|
|
902
979
|
}
|
|
980
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
903
981
|
export function useSandboxServiceAction() {
|
|
904
982
|
const queryClient = useQueryClient();
|
|
905
983
|
return useMutation({
|
|
@@ -918,6 +996,7 @@ export function useSandboxServiceAction() {
|
|
|
918
996
|
},
|
|
919
997
|
});
|
|
920
998
|
}
|
|
999
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
921
1000
|
export function useSandboxServiceReconcile() {
|
|
922
1001
|
const queryClient = useQueryClient();
|
|
923
1002
|
return useMutation({
|
|
@@ -932,6 +1011,7 @@ export function useSandboxServiceReconcile() {
|
|
|
932
1011
|
},
|
|
933
1012
|
});
|
|
934
1013
|
}
|
|
1014
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
935
1015
|
export function useRegisterSandboxService() {
|
|
936
1016
|
const queryClient = useQueryClient();
|
|
937
1017
|
return useMutation({
|
|
@@ -950,6 +1030,7 @@ export function useRegisterSandboxService() {
|
|
|
950
1030
|
// backing `POST /kortix/services/system/reload`) — reused directly rather
|
|
951
1031
|
// than duplicated here. It resolves the active runtime URL itself (the same
|
|
952
1032
|
// zustand state `getActiveServerUrl()` above reads).
|
|
1033
|
+
/** @deprecated Part of the kortix-master client. The sandbox daemon serves none of its routes: every call answers 404. Removed in the next major. */
|
|
953
1034
|
export function useSandboxRuntimeReload() {
|
|
954
1035
|
return useMutation({
|
|
955
1036
|
mutationFn: ({ mode }) => systemReload(mode),
|