@remixhq/core 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +61 -1
- package/dist/api.js +1 -1
- package/dist/{chunk-BNY4BVH6.js → chunk-CQXJZ5EP.js} +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -350,6 +350,61 @@ type RunAppRuntimeTargetPayload = {
|
|
|
350
350
|
forceRestart?: boolean;
|
|
351
351
|
environment?: string;
|
|
352
352
|
};
|
|
353
|
+
type AppPreviewQuery = {
|
|
354
|
+
environment?: string;
|
|
355
|
+
autostart?: boolean;
|
|
356
|
+
probe?: "metadata" | "full";
|
|
357
|
+
};
|
|
358
|
+
type AppPreviewProcessStatus = "running" | "starting" | "stopped" | "exited";
|
|
359
|
+
type AppPreviewExpectedKind = "url" | "qr" | "api" | "logs";
|
|
360
|
+
type AppPreviewResponse = {
|
|
361
|
+
kind: "url";
|
|
362
|
+
appId: string;
|
|
363
|
+
environment: string;
|
|
364
|
+
targetId: string;
|
|
365
|
+
targetKind: string;
|
|
366
|
+
previewUrl: string;
|
|
367
|
+
status: AppPreviewProcessStatus;
|
|
368
|
+
} | {
|
|
369
|
+
kind: "api";
|
|
370
|
+
appId: string;
|
|
371
|
+
environment: string;
|
|
372
|
+
targetId: string;
|
|
373
|
+
targetKind: string;
|
|
374
|
+
baseUrl: string;
|
|
375
|
+
status: AppPreviewProcessStatus;
|
|
376
|
+
} | {
|
|
377
|
+
kind: "qr";
|
|
378
|
+
appId: string;
|
|
379
|
+
environment: string;
|
|
380
|
+
targetId: string;
|
|
381
|
+
targetKind: string;
|
|
382
|
+
qrPayload: string;
|
|
383
|
+
tunnelUrl: string | null;
|
|
384
|
+
status: AppPreviewProcessStatus;
|
|
385
|
+
} | {
|
|
386
|
+
kind: "logs";
|
|
387
|
+
appId: string;
|
|
388
|
+
environment: string;
|
|
389
|
+
targetId: string;
|
|
390
|
+
targetKind: string;
|
|
391
|
+
logsTail: string;
|
|
392
|
+
status: AppPreviewProcessStatus;
|
|
393
|
+
} | {
|
|
394
|
+
kind: "pending";
|
|
395
|
+
appId: string;
|
|
396
|
+
environment: string;
|
|
397
|
+
targetId: string;
|
|
398
|
+
targetKind: string;
|
|
399
|
+
expectedKind: AppPreviewExpectedKind;
|
|
400
|
+
status: AppPreviewProcessStatus;
|
|
401
|
+
autostarted: boolean;
|
|
402
|
+
} | {
|
|
403
|
+
kind: "none";
|
|
404
|
+
appId: string;
|
|
405
|
+
environment: string;
|
|
406
|
+
reason: "no-dev-target" | "not-a-runnable-app" | "no-sandbox";
|
|
407
|
+
};
|
|
353
408
|
type RunAppSandboxCommandPayload = {
|
|
354
409
|
command: string;
|
|
355
410
|
cwd?: string;
|
|
@@ -623,6 +678,7 @@ type ApiClient = {
|
|
|
623
678
|
stopAppRuntimeTarget(appId: string, targetId: string, payload?: {
|
|
624
679
|
environment?: string;
|
|
625
680
|
}): Promise<Json>;
|
|
681
|
+
getAppPreview(appId: string, params?: AppPreviewQuery): Promise<Json>;
|
|
626
682
|
runAppSandboxCommand(appId: string, payload: RunAppSandboxCommandPayload): Promise<Json>;
|
|
627
683
|
listAppSandboxCommandHistory(appId: string, params?: {
|
|
628
684
|
limit?: number;
|
|
@@ -705,6 +761,10 @@ type ApiClient = {
|
|
|
705
761
|
}): Promise<Json>;
|
|
706
762
|
getApp(appId: string): Promise<Json>;
|
|
707
763
|
openApp(appId: string, payload?: OpenAppPayload): Promise<Json>;
|
|
764
|
+
updateAppStatus(appId: string, payload: {
|
|
765
|
+
status: "archived" | "ready";
|
|
766
|
+
cascadeBranchLanes?: boolean;
|
|
767
|
+
}): Promise<Json>;
|
|
708
768
|
getAppContext(appId: string): Promise<Json>;
|
|
709
769
|
getAppOverview(appId: string): Promise<Json>;
|
|
710
770
|
listAppTimeline(appId: string, params?: {
|
|
@@ -1059,4 +1119,4 @@ declare function createApiClient(config: CoreConfig, opts?: {
|
|
|
1059
1119
|
defaultRequestTimeoutMs?: number;
|
|
1060
1120
|
}): ApiClient;
|
|
1061
1121
|
|
|
1062
|
-
export { type AgentMemoryItem, type AgentMemoryKind, type AgentMemorySearchItem, type AgentMemorySearchResponse, type AgentMemorySummary, type AgentMemoryTimelineResponse, type ApiClient, type AppContext, type AppContextAccessPath, type AppProfileInput, type AppReconcileResponse, type AppSandboxCommandRun, type Bundle, type BundlePlatform, type BundleStatus, type ChangeStepDiffResponse, type DetectProjectRuntimeTargetsPayload, type HistoricalTurnRecord, type HistoryImportCaptureSource, type HistoryImportProvider, type HistoryImportRecordMetadata, type HistoryImportWorkspaceMetadata, type ImportHistoryRecordOutcome, type ImportHistoryRequest, type ImportHistoryResponse, type ImportProjectRuntimeEnvPayload, type InitiateBundleRequest, type InvitationRecord, type MergeRequest, type MergeRequestReview, type MergeRequestStatus, type ProjectRuntimeEnvMetadata, type ProjectRuntimeEnvScope, type ProjectRuntimeTargetMetadata, type ProjectRuntimeTargetScope, type ProjectTrigger, type ProjectTriggerPayload, type ProjectTriggerScope, type ProjectTriggerStep, type ProjectTriggerStepPayload, type ReconcilePreflightResponse, type ResolveProjectRuntimeEnvForLocalPullResponse, type RunAppRuntimeTargetPayload, type RunAppSandboxCommandPayload, type RunAppTriggerEventPayload, type RunAppTriggerPayload, type RuntimeCommandKind, type RuntimeTargetKind, type SetProjectRuntimeEnvPayload, type SetProjectRuntimeTargetPayload, type SyncLocalResponse, type SyncUpstreamResponse, type TriggerEventMetadata, type TriggerEventSource, type TriggerIntegrationStatus, type TriggerMode, type TriggerRun, type TriggerStepRun, type TriggerStepType, type UpdateProjectTriggerPayload, createApiClient };
|
|
1122
|
+
export { type AgentMemoryItem, type AgentMemoryKind, type AgentMemorySearchItem, type AgentMemorySearchResponse, type AgentMemorySummary, type AgentMemoryTimelineResponse, type ApiClient, type AppContext, type AppContextAccessPath, type AppPreviewExpectedKind, type AppPreviewProcessStatus, type AppPreviewQuery, type AppPreviewResponse, type AppProfileInput, type AppReconcileResponse, type AppSandboxCommandRun, type Bundle, type BundlePlatform, type BundleStatus, type ChangeStepDiffResponse, type DetectProjectRuntimeTargetsPayload, type HistoricalTurnRecord, type HistoryImportCaptureSource, type HistoryImportProvider, type HistoryImportRecordMetadata, type HistoryImportWorkspaceMetadata, type ImportHistoryRecordOutcome, type ImportHistoryRequest, type ImportHistoryResponse, type ImportProjectRuntimeEnvPayload, type InitiateBundleRequest, type InvitationRecord, type MergeRequest, type MergeRequestReview, type MergeRequestStatus, type ProjectRuntimeEnvMetadata, type ProjectRuntimeEnvScope, type ProjectRuntimeTargetMetadata, type ProjectRuntimeTargetScope, type ProjectTrigger, type ProjectTriggerPayload, type ProjectTriggerScope, type ProjectTriggerStep, type ProjectTriggerStepPayload, type ReconcilePreflightResponse, type ResolveProjectRuntimeEnvForLocalPullResponse, type RunAppRuntimeTargetPayload, type RunAppSandboxCommandPayload, type RunAppTriggerEventPayload, type RunAppTriggerPayload, type RuntimeCommandKind, type RuntimeTargetKind, type SetProjectRuntimeEnvPayload, type SetProjectRuntimeTargetPayload, type SyncLocalResponse, type SyncUpstreamResponse, type TriggerEventMetadata, type TriggerEventSource, type TriggerIntegrationStatus, type TriggerMode, type TriggerRun, type TriggerStepRun, type TriggerStepType, type UpdateProjectTriggerPayload, createApiClient };
|
package/dist/api.js
CHANGED
|
@@ -200,6 +200,14 @@ function createApiClient(config, opts) {
|
|
|
200
200
|
method: "POST",
|
|
201
201
|
body: JSON.stringify(payload ?? {})
|
|
202
202
|
}),
|
|
203
|
+
getAppPreview: (appId, params) => {
|
|
204
|
+
const qs = new URLSearchParams();
|
|
205
|
+
if (params?.environment) qs.set("environment", params.environment);
|
|
206
|
+
if (params?.autostart !== void 0) qs.set("autostart", params.autostart ? "true" : "false");
|
|
207
|
+
if (params?.probe) qs.set("probe", params.probe);
|
|
208
|
+
const suffix = qs.toString() ? `?${qs.toString()}` : "";
|
|
209
|
+
return request(`/v1/apps/${encodeURIComponent(appId)}/preview${suffix}`, { method: "GET" });
|
|
210
|
+
},
|
|
203
211
|
runAppSandboxCommand: (appId, payload) => request(`/v1/apps/${encodeURIComponent(appId)}/sandbox/commands/run`, {
|
|
204
212
|
method: "POST",
|
|
205
213
|
body: JSON.stringify(payload)
|
|
@@ -290,6 +298,10 @@ function createApiClient(config, opts) {
|
|
|
290
298
|
return request(`/v1/apps${suffix}`, { method: "GET" });
|
|
291
299
|
},
|
|
292
300
|
getApp: (appId) => request(`/v1/apps/${encodeURIComponent(appId)}`, { method: "GET" }),
|
|
301
|
+
updateAppStatus: (appId, payload) => request(`/v1/apps/${encodeURIComponent(appId)}/status`, {
|
|
302
|
+
method: "PATCH",
|
|
303
|
+
body: JSON.stringify(payload)
|
|
304
|
+
}),
|
|
293
305
|
openApp: (appId, payload) => request(`/v1/apps/${encodeURIComponent(appId)}/open`, { method: "POST", body: JSON.stringify(payload ?? {}) }),
|
|
294
306
|
getAppContext: (appId) => request(`/v1/apps/${encodeURIComponent(appId)}/context`, { method: "GET" }),
|
|
295
307
|
getAppOverview: (appId) => request(`/v1/apps/${encodeURIComponent(appId)}/overview`, { method: "GET" }),
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { CliError, REMIX_ERROR_CODES, CliError as RemixError, RemixErrorCode } f
|
|
|
2
2
|
export { CoreConfig, ResolveConfigOptions, configSchema, resolveConfig } from './config.js';
|
|
3
3
|
export { S as SessionStore, a as StoredSession, c as createStoredSessionTokenProvider, s as shouldRefreshSoon, b as storedSessionSchema } from './tokenProvider-BWTusyj4.js';
|
|
4
4
|
export { createLocalSessionStore, createSupabaseAuthHelpers } from './auth.js';
|
|
5
|
-
export { AgentMemoryItem, AgentMemoryKind, AgentMemorySearchItem, AgentMemorySearchResponse, AgentMemorySummary, AgentMemoryTimelineResponse, ApiClient, AppContext, AppContextAccessPath, AppReconcileResponse, AppSandboxCommandRun, Bundle, BundlePlatform, BundleStatus, ChangeStepDiffResponse, DetectProjectRuntimeTargetsPayload, ImportProjectRuntimeEnvPayload, InitiateBundleRequest, InvitationRecord, MergeRequest, MergeRequestReview, MergeRequestStatus, ProjectRuntimeEnvMetadata, ProjectRuntimeEnvScope, ProjectRuntimeTargetMetadata, ProjectRuntimeTargetScope, ProjectTrigger, ProjectTriggerPayload, ProjectTriggerScope, ProjectTriggerStep, ProjectTriggerStepPayload, ReconcilePreflightResponse, ResolveProjectRuntimeEnvForLocalPullResponse, RunAppRuntimeTargetPayload, RunAppSandboxCommandPayload, RunAppTriggerEventPayload, RunAppTriggerPayload, RuntimeCommandKind, RuntimeTargetKind, SetProjectRuntimeEnvPayload, SetProjectRuntimeTargetPayload, SyncLocalResponse, SyncUpstreamResponse, TriggerEventMetadata, TriggerEventSource, TriggerIntegrationStatus, TriggerMode, TriggerRun, TriggerStepRun, TriggerStepType, UpdateProjectTriggerPayload, createApiClient } from './api.js';
|
|
5
|
+
export { AgentMemoryItem, AgentMemoryKind, AgentMemorySearchItem, AgentMemorySearchResponse, AgentMemorySummary, AgentMemoryTimelineResponse, ApiClient, AppContext, AppContextAccessPath, AppPreviewExpectedKind, AppPreviewProcessStatus, AppPreviewQuery, AppPreviewResponse, AppReconcileResponse, AppSandboxCommandRun, Bundle, BundlePlatform, BundleStatus, ChangeStepDiffResponse, DetectProjectRuntimeTargetsPayload, ImportProjectRuntimeEnvPayload, InitiateBundleRequest, InvitationRecord, MergeRequest, MergeRequestReview, MergeRequestStatus, ProjectRuntimeEnvMetadata, ProjectRuntimeEnvScope, ProjectRuntimeTargetMetadata, ProjectRuntimeTargetScope, ProjectTrigger, ProjectTriggerPayload, ProjectTriggerScope, ProjectTriggerStep, ProjectTriggerStepPayload, ReconcilePreflightResponse, ResolveProjectRuntimeEnvForLocalPullResponse, RunAppRuntimeTargetPayload, RunAppSandboxCommandPayload, RunAppTriggerEventPayload, RunAppTriggerPayload, RuntimeCommandKind, RuntimeTargetKind, SetProjectRuntimeEnvPayload, SetProjectRuntimeTargetPayload, SyncLocalResponse, SyncUpstreamResponse, TriggerEventMetadata, TriggerEventSource, TriggerIntegrationStatus, TriggerMode, TriggerRun, TriggerStepRun, TriggerStepType, UpdateProjectTriggerPayload, createApiClient } from './api.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import './contracts-S3cbsIUV.js';
|
package/dist/index.js
CHANGED