@remixhq/core 0.1.24 → 0.1.26

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CoreConfig } from './config.js';
2
2
  import { T as TokenProvider } from './tokenProvider-BWTusyj4.js';
3
- import { T as TurnUsage } from './contracts-S3cbsIUV.js';
3
+ import { T as TurnUsage } from './contracts-BV67NVwV.js';
4
4
  import 'zod';
5
5
 
6
6
  type HistoryImportProvider = "claude_code" | "cursor";
@@ -297,11 +297,18 @@ type ProjectRuntimeEnvMetadata = {
297
297
  updatedAt: string;
298
298
  version: number;
299
299
  };
300
- type SetProjectRuntimeEnvPayload = ProjectRuntimeEnvScope & {
300
+ type CascadeToFamilyPayload = {
301
+ cascadeToFamily: true;
302
+ appId: string;
303
+ } | {
304
+ cascadeToFamily?: false | undefined;
305
+ appId?: string;
306
+ };
307
+ type SetProjectRuntimeEnvPayload = ProjectRuntimeEnvScope & CascadeToFamilyPayload & {
301
308
  value: string;
302
309
  inheritancePolicy?: "project_family" | "none";
303
310
  };
304
- type ImportProjectRuntimeEnvPayload = ProjectRuntimeEnvScope & {
311
+ type ImportProjectRuntimeEnvPayload = ProjectRuntimeEnvScope & CascadeToFamilyPayload & {
305
312
  content?: string;
306
313
  entries?: Record<string, string>;
307
314
  inheritancePolicy?: "project_family" | "none";
@@ -310,7 +317,7 @@ type ResolveProjectRuntimeEnvForLocalPullResponse = {
310
317
  content: string;
311
318
  names: string[];
312
319
  };
313
- type RuntimeTargetKind = "web" | "cli" | "mobile" | "test" | "worker";
320
+ type RuntimeTargetKind = "web" | "api" | "cli" | "mobile" | "desktop" | "test" | "worker";
314
321
  type RuntimeCommandKind = "install" | "dev" | "build" | "preview" | "test" | "custom";
315
322
  type ProjectRuntimeTargetScope = {
316
323
  repoFingerprint: string;
@@ -330,7 +337,7 @@ type ProjectRuntimeTargetMetadata = ProjectRuntimeTargetScope & {
330
337
  enabled: boolean;
331
338
  version?: number;
332
339
  };
333
- type SetProjectRuntimeTargetPayload = ProjectRuntimeTargetScope & {
340
+ type SetProjectRuntimeTargetPayload = ProjectRuntimeTargetScope & CascadeToFamilyPayload & {
334
341
  targetKind: RuntimeTargetKind;
335
342
  commandKind: RuntimeCommandKind;
336
343
  command: string;
@@ -340,16 +347,82 @@ type SetProjectRuntimeTargetPayload = ProjectRuntimeTargetScope & {
340
347
  inheritancePolicy?: "project_family" | "none";
341
348
  enabled?: boolean;
342
349
  };
343
- type DetectProjectRuntimeTargetsPayload = Partial<ProjectRuntimeTargetScope> & {
350
+ type DetectRuntimeTargetCascadePayload = {
351
+ apply: true;
352
+ cascadeToFamily: true;
353
+ appId: string;
354
+ } | {
355
+ apply?: false | undefined;
356
+ cascadeToFamily?: boolean;
344
357
  appId?: string;
345
- files?: Record<string, string | null>;
358
+ } | {
346
359
  apply?: boolean;
360
+ cascadeToFamily?: false | undefined;
361
+ appId?: string;
362
+ };
363
+ type DetectProjectRuntimeTargetsPayload = Partial<ProjectRuntimeTargetScope> & DetectRuntimeTargetCascadePayload & {
364
+ files?: Record<string, string | null>;
347
365
  };
348
366
  type RunAppRuntimeTargetPayload = {
349
367
  forceInstall?: boolean;
350
368
  forceRestart?: boolean;
351
369
  environment?: string;
352
370
  };
371
+ type AppPreviewQuery = {
372
+ environment?: string;
373
+ autostart?: boolean;
374
+ probe?: "metadata" | "full";
375
+ };
376
+ type AppPreviewProcessStatus = "running" | "starting" | "stopped" | "exited";
377
+ type AppPreviewExpectedKind = "url" | "qr" | "api" | "logs";
378
+ type AppPreviewResponse = {
379
+ kind: "url";
380
+ appId: string;
381
+ environment: string;
382
+ targetId: string;
383
+ targetKind: string;
384
+ previewUrl: string;
385
+ status: AppPreviewProcessStatus;
386
+ } | {
387
+ kind: "api";
388
+ appId: string;
389
+ environment: string;
390
+ targetId: string;
391
+ targetKind: string;
392
+ baseUrl: string;
393
+ status: AppPreviewProcessStatus;
394
+ } | {
395
+ kind: "qr";
396
+ appId: string;
397
+ environment: string;
398
+ targetId: string;
399
+ targetKind: string;
400
+ qrPayload: string;
401
+ tunnelUrl: string | null;
402
+ status: AppPreviewProcessStatus;
403
+ } | {
404
+ kind: "logs";
405
+ appId: string;
406
+ environment: string;
407
+ targetId: string;
408
+ targetKind: string;
409
+ logsTail: string;
410
+ status: AppPreviewProcessStatus;
411
+ } | {
412
+ kind: "pending";
413
+ appId: string;
414
+ environment: string;
415
+ targetId: string;
416
+ targetKind: string;
417
+ expectedKind: AppPreviewExpectedKind;
418
+ status: AppPreviewProcessStatus;
419
+ autostarted: boolean;
420
+ } | {
421
+ kind: "none";
422
+ appId: string;
423
+ environment: string;
424
+ reason: "no-dev-target" | "not-a-runnable-app" | "no-sandbox";
425
+ };
353
426
  type RunAppSandboxCommandPayload = {
354
427
  command: string;
355
428
  cwd?: string;
@@ -623,6 +696,7 @@ type ApiClient = {
623
696
  stopAppRuntimeTarget(appId: string, targetId: string, payload?: {
624
697
  environment?: string;
625
698
  }): Promise<Json>;
699
+ getAppPreview(appId: string, params?: AppPreviewQuery): Promise<Json>;
626
700
  runAppSandboxCommand(appId: string, payload: RunAppSandboxCommandPayload): Promise<Json>;
627
701
  listAppSandboxCommandHistory(appId: string, params?: {
628
702
  limit?: number;
@@ -654,6 +728,8 @@ type ApiClient = {
654
728
  remoteUrl?: string;
655
729
  defaultBranch?: string;
656
730
  branchName: string;
731
+ currentAppId?: string;
732
+ upstreamAppId?: string;
657
733
  }): Promise<Json>;
658
734
  ensureProjectLaneBinding(payload: {
659
735
  projectId?: string;
@@ -661,6 +737,8 @@ type ApiClient = {
661
737
  remoteUrl?: string;
662
738
  defaultBranch?: string;
663
739
  branchName: string;
740
+ currentAppId?: string;
741
+ upstreamAppId?: string;
664
742
  seedAppId?: string;
665
743
  seedHeadCommitHash?: string;
666
744
  }): Promise<Json>;
@@ -700,11 +778,16 @@ type ApiClient = {
700
778
  accessScope?: "all_readable" | "explicit_member";
701
779
  createdBy?: "me" | string;
702
780
  forked?: "only" | "exclude" | "all";
781
+ status?: "active" | "archived" | "all";
703
782
  limit?: number;
704
783
  offset?: number;
705
784
  }): Promise<Json>;
706
785
  getApp(appId: string): Promise<Json>;
707
786
  openApp(appId: string, payload?: OpenAppPayload): Promise<Json>;
787
+ updateAppStatus(appId: string, payload: {
788
+ status: "archived" | "ready";
789
+ cascadeBranchLanes?: boolean;
790
+ }): Promise<Json>;
708
791
  getAppContext(appId: string): Promise<Json>;
709
792
  getAppOverview(appId: string): Promise<Json>;
710
793
  listAppTimeline(appId: string, params?: {
@@ -978,6 +1061,9 @@ type ApiClient = {
978
1061
  acceptInvitation(payload: {
979
1062
  token: string;
980
1063
  }): Promise<Json>;
1064
+ listMyInvitations(): Promise<Json>;
1065
+ acceptMyInvitation(scope: "organization" | "project" | "app", inviteId: string): Promise<Json>;
1066
+ declineMyInvitation(scope: "organization" | "project" | "app", inviteId: string): Promise<Json>;
981
1067
  syncUpstreamApp(appId: string): Promise<Json>;
982
1068
  preflightAppReconcile(appId: string, payload: {
983
1069
  localHeadCommitHash: string;
@@ -1059,4 +1145,4 @@ declare function createApiClient(config: CoreConfig, opts?: {
1059
1145
  defaultRequestTimeoutMs?: number;
1060
1146
  }): ApiClient;
1061
1147
 
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 };
1148
+ 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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-BNY4BVH6.js";
3
+ } from "./chunk-DOMO3LNV.js";
4
4
  import "./chunk-7XJGOKEO.js";
5
5
  export {
6
6
  createApiClient
package/dist/binding.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  readCollabBinding,
4
4
  readCollabBindingState,
5
5
  writeCollabBinding
6
- } from "./chunk-P4XIICU3.js";
7
- import "./chunk-S4ECO35X.js";
6
+ } from "./chunk-GNW6FA4J.js";
7
+ import "./chunk-FA6PTZQI.js";
8
8
  import "./chunk-GC2MOT3U.js";
9
9
  import "./chunk-7XJGOKEO.js";
10
10
  export {