@openfairygui/backend 0.5.0-alpha.4 → 0.6.0
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 +3 -3
- package/dist/docs.cjs +190 -611
- package/dist/docs.d.cts +9 -27
- package/dist/docs.d.mts +9 -27
- package/dist/docs.mjs +190 -611
- package/dist/index.cjs +445 -635
- package/dist/index.d.cts +46 -160
- package/dist/index.d.mts +46 -160
- package/dist/index.mjs +445 -636
- package/dist/node.cjs +476 -664
- package/dist/node.d.cts +20 -94
- package/dist/node.d.mts +20 -94
- package/dist/node.mjs +476 -664
- package/package.json +3 -3
- package/src/contracts.ts +2 -2
- package/src/diagnostics.ts +4 -5
- package/src/generated/contracts.ts +208 -837
- package/src/generated/docs.ts +3 -3
- package/src/index.ts +2 -13
- package/src/node.ts +36 -30
- package/src/runtime/capabilities.ts +2 -12
- package/src/runtime/contracts.ts +33 -107
- package/src/runtime.ts +22 -57
- package/src/services/authoring-service.ts +9 -572
- package/src/services/cache-service.ts +32 -10
- package/src/services/context.ts +27 -14
- package/src/services/event-service.ts +10 -8
- package/src/services/persistence-service.ts +550 -0
- package/src/services/read-service.ts +18 -18
- package/src/services/runtime-service.ts +27 -36
- package/src/services/session-operation-queue.ts +21 -0
- package/src/services/session-project-writer.ts +3 -1
- package/src/services/session-registry.ts +70 -0
- package/src/services/session-utils.ts +4 -4
- package/src/services/job-service.ts +0 -238
package/dist/index.d.mts
CHANGED
|
@@ -14,7 +14,7 @@ interface PathPolicyViolationError {
|
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/runtime/capabilities.d.ts
|
|
17
|
-
declare const BACKEND_METHODS: readonly ["getCapabilities", "openSession", "openProjectSession", "getSession", "getProjectOutline", "queryEntity", "readSessionState", "readResourceBytes", "validateSession", "preflightTransaction", "applyTransaction", "saveSession", "materializeSession", "closeSession", "getEvents", "
|
|
17
|
+
declare const BACKEND_METHODS: readonly ["getCapabilities", "openSession", "openProjectSession", "getSession", "getProjectOutline", "queryEntity", "readSessionState", "readResourceBytes", "validateSession", "preflightTransaction", "applyTransaction", "saveSession", "materializeSession", "closeSession", "getEvents", "getCacheSnapshot", "refreshCache"];
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/runtime/contracts.d.ts
|
|
20
20
|
type BackendMethodName = keyof BackendRuntime;
|
|
@@ -158,6 +158,15 @@ interface BackendFileStat {
|
|
|
158
158
|
isFile(): boolean;
|
|
159
159
|
isDirectory(): boolean;
|
|
160
160
|
}
|
|
161
|
+
/** A failed staged write with an explicit outcome for the original project. */
|
|
162
|
+
declare class ProjectWriteTransactionError extends Error {
|
|
163
|
+
readonly diskMayBePartiallyUpdated: boolean;
|
|
164
|
+
readonly recoveryPaths: string[];
|
|
165
|
+
readonly code = "project_write_transaction_failed";
|
|
166
|
+
/** Recognizes the same contract across separately bundled Node/root or ESM/CJS entries. */
|
|
167
|
+
static is(error: unknown): error is ProjectWriteTransactionError;
|
|
168
|
+
constructor(cause: unknown, diskMayBePartiallyUpdated: boolean, recoveryPaths?: string[]);
|
|
169
|
+
}
|
|
161
170
|
interface BackendFileSystem {
|
|
162
171
|
stat(filePath: string): Promise<BackendFileStat>;
|
|
163
172
|
readdir(dirPath: string): Promise<string[]>;
|
|
@@ -173,7 +182,7 @@ interface BackendFileSystem {
|
|
|
173
182
|
validateProjectRoot?(projectRoot: string): Promise<void>;
|
|
174
183
|
/** Optional host-specific lock location. Node keeps it beside the project so directory swaps do not move it. */
|
|
175
184
|
getSessionLockPath?(canonicalProjectPath: string): string;
|
|
176
|
-
/**
|
|
185
|
+
/** Stages project writes. On failure, throw ProjectWriteTransactionError to report rollback and recovery paths. */
|
|
177
186
|
runProjectWriteTransaction?(projectRoot: string, write: (stagedFileSystem: BackendFileSystem) => Promise<void>): Promise<void>;
|
|
178
187
|
acquireSessionLock(lockPath: string): Promise<BackendSessionLock>;
|
|
179
188
|
unlink(filePath: string): Promise<void>;
|
|
@@ -304,17 +313,10 @@ interface BackendCapabilities {
|
|
|
304
313
|
retentionLimit: 1000;
|
|
305
314
|
sequenceScope: 'runtime';
|
|
306
315
|
};
|
|
307
|
-
jobs: {
|
|
308
|
-
inMemory: true;
|
|
309
|
-
cooperativeCancel: true;
|
|
310
|
-
persistent: false;
|
|
311
|
-
supportedKinds: readonly ['cache.refresh'];
|
|
312
|
-
artifactJobs: false;
|
|
313
|
-
completedRetentionLimit: 100;
|
|
314
|
-
};
|
|
315
316
|
cache: {
|
|
316
317
|
derivedReadOnly: true;
|
|
317
|
-
keyedBy: '
|
|
318
|
+
keyedBy: 'sessionId';
|
|
319
|
+
refreshMode: 'synchronous';
|
|
318
320
|
sourceOfTruth: false;
|
|
319
321
|
refreshMethod: 'refreshCache';
|
|
320
322
|
};
|
|
@@ -399,6 +401,12 @@ interface SessionNotFoundError {
|
|
|
399
401
|
message: string;
|
|
400
402
|
sessionId: string;
|
|
401
403
|
}
|
|
404
|
+
interface SessionCloseFailedError {
|
|
405
|
+
code: 'session_close_failed';
|
|
406
|
+
message: string;
|
|
407
|
+
sessionId: string;
|
|
408
|
+
lockFilePath: string;
|
|
409
|
+
}
|
|
402
410
|
interface SessionStaleWriteError {
|
|
403
411
|
code: 'stale_write';
|
|
404
412
|
message: string;
|
|
@@ -438,6 +446,7 @@ interface SavePartialFailureError {
|
|
|
438
446
|
committedPaths: string[];
|
|
439
447
|
failedPaths: string[];
|
|
440
448
|
diskMayBePartiallyUpdated: boolean;
|
|
449
|
+
recoveryPaths?: string[];
|
|
441
450
|
}
|
|
442
451
|
interface UamFidelityUnsupportedError {
|
|
443
452
|
code: 'uam_fidelity_unsupported';
|
|
@@ -465,8 +474,9 @@ interface MaterializeWriteFailedError {
|
|
|
465
474
|
skippedPaths: string[];
|
|
466
475
|
diagnostics: BackendDiagnostic[];
|
|
467
476
|
diskMayBePartiallyUpdated: boolean;
|
|
477
|
+
recoveryPaths?: string[];
|
|
468
478
|
}
|
|
469
|
-
type BackendEventKind = 'session.opened' | 'transaction.applied' | 'transaction.rejected' | 'save.started' | 'save.completed' | 'save.failed' | 'session.closeRequested' | 'session.closed' | 'cache.invalidated' | 'cache.updated'
|
|
479
|
+
type BackendEventKind = 'session.opened' | 'transaction.applied' | 'transaction.rejected' | 'save.started' | 'save.completed' | 'save.failed' | 'session.closeRequested' | 'session.closed' | 'cache.invalidated' | 'cache.updated';
|
|
470
480
|
interface BackendEvent {
|
|
471
481
|
sequence: number;
|
|
472
482
|
kind: BackendEventKind;
|
|
@@ -475,7 +485,6 @@ interface BackendEvent {
|
|
|
475
485
|
canonicalPathKey?: string;
|
|
476
486
|
revision?: number;
|
|
477
487
|
cacheRevision?: number;
|
|
478
|
-
jobId?: string;
|
|
479
488
|
diagnostics: BackendDiagnostic[];
|
|
480
489
|
payload?: unknown;
|
|
481
490
|
}
|
|
@@ -496,73 +505,6 @@ interface EventCursorInvalidError {
|
|
|
496
505
|
sessionId: string;
|
|
497
506
|
after: string;
|
|
498
507
|
}
|
|
499
|
-
type BackendJobStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
500
|
-
type BackendJobKind = 'cache.refresh';
|
|
501
|
-
type BackendJobListStatusFilter = BackendJobStatus | 'active' | 'terminal';
|
|
502
|
-
interface BackendJobProgress {
|
|
503
|
-
completed: number;
|
|
504
|
-
total?: number;
|
|
505
|
-
message?: string;
|
|
506
|
-
}
|
|
507
|
-
interface BackendJobSnapshot {
|
|
508
|
-
jobId: string;
|
|
509
|
-
kind: BackendJobKind;
|
|
510
|
-
status: BackendJobStatus;
|
|
511
|
-
createdAt: string;
|
|
512
|
-
startedAt?: string;
|
|
513
|
-
finishedAt?: string;
|
|
514
|
-
sessionId?: string;
|
|
515
|
-
canonicalPathKey?: string;
|
|
516
|
-
revision?: number;
|
|
517
|
-
cacheRevision?: number;
|
|
518
|
-
diagnostics: BackendDiagnostic[];
|
|
519
|
-
progress?: BackendJobProgress;
|
|
520
|
-
result?: unknown;
|
|
521
|
-
error?: BackendError;
|
|
522
|
-
}
|
|
523
|
-
interface BackendJobListSnapshot {
|
|
524
|
-
jobs: BackendJobSnapshot[];
|
|
525
|
-
}
|
|
526
|
-
interface GetJobInput {
|
|
527
|
-
sessionId: string;
|
|
528
|
-
jobId: string;
|
|
529
|
-
}
|
|
530
|
-
interface ListJobsInput {
|
|
531
|
-
sessionId: string;
|
|
532
|
-
status?: BackendJobListStatusFilter;
|
|
533
|
-
kind?: BackendJobKind;
|
|
534
|
-
limit?: number;
|
|
535
|
-
}
|
|
536
|
-
interface CancelJobInput {
|
|
537
|
-
sessionId: string;
|
|
538
|
-
jobId: string;
|
|
539
|
-
}
|
|
540
|
-
interface BackendJobNotFoundError {
|
|
541
|
-
code: 'job_not_found';
|
|
542
|
-
message: string;
|
|
543
|
-
sessionId: string;
|
|
544
|
-
jobId: string;
|
|
545
|
-
}
|
|
546
|
-
interface BackendJobNotCancellableError {
|
|
547
|
-
code: 'job_not_cancellable';
|
|
548
|
-
message: string;
|
|
549
|
-
sessionId: string;
|
|
550
|
-
jobId: string;
|
|
551
|
-
status: 'completed' | 'failed' | 'cancelled';
|
|
552
|
-
}
|
|
553
|
-
interface BackendJobCancelledError {
|
|
554
|
-
code: 'job_cancelled';
|
|
555
|
-
message: string;
|
|
556
|
-
sessionId: string;
|
|
557
|
-
jobId: string;
|
|
558
|
-
}
|
|
559
|
-
interface CacheRefreshFailedError {
|
|
560
|
-
code: 'cache_refresh_failed';
|
|
561
|
-
message: string;
|
|
562
|
-
sessionId: string;
|
|
563
|
-
jobId: string;
|
|
564
|
-
causeCode?: string;
|
|
565
|
-
}
|
|
566
508
|
interface BackendCapabilityUnavailableError {
|
|
567
509
|
code: 'capability_unavailable';
|
|
568
510
|
message: string;
|
|
@@ -571,7 +513,6 @@ interface BackendCapabilityUnavailableError {
|
|
|
571
513
|
requiredHost?: 'node';
|
|
572
514
|
bridgeBoundary?: 'external-bridge';
|
|
573
515
|
}
|
|
574
|
-
type BackendJobErrors = BackendJobNotFoundError | BackendJobNotCancellableError | BackendJobCancelledError | CacheRefreshFailedError;
|
|
575
516
|
interface BackendCacheSnapshot {
|
|
576
517
|
cacheRevision: number;
|
|
577
518
|
entries: BackendCacheEntry[];
|
|
@@ -597,7 +538,7 @@ interface RefreshCacheInput {
|
|
|
597
538
|
sessionId: string;
|
|
598
539
|
reason?: 'manual' | 'session_open' | 'after_save';
|
|
599
540
|
}
|
|
600
|
-
type BackendError = SessionNotFoundError | TransactionPreviewError | EntityQueryError | SessionReadError | SessionStaleReadError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError |
|
|
541
|
+
type BackendError = SessionNotFoundError | SessionCloseFailedError | TransactionPreviewError | EntityQueryError | SessionReadError | SessionStaleReadError | SessionIdConflictError | SessionStaleWriteError | InProcessLockConflictError | AdvisoryLockConflictError | SavePartialFailureError | UamFidelityUnsupportedError | MaterializeValidationFailedError | MaterializeWriteFailedError | PathPolicyViolationError | EventCursorInvalidError | BackendCapabilityUnavailableError | ProjectRootNotAllowedError | ProjectOpenFailedError | ApplyUamTransactionAppError;
|
|
601
542
|
interface ProjectRootNotAllowedError {
|
|
602
543
|
code: 'project_root_not_allowed';
|
|
603
544
|
message: string;
|
|
@@ -700,18 +641,14 @@ declare class BackendRuntime {
|
|
|
700
641
|
private readonly fileSystem?;
|
|
701
642
|
private readonly capabilities;
|
|
702
643
|
private readonly sessions;
|
|
703
|
-
private readonly
|
|
704
|
-
private readonly eventsBySession;
|
|
705
|
-
private readonly jobsBySession;
|
|
706
|
-
private readonly cacheBySession;
|
|
707
|
-
private eventSequence;
|
|
644
|
+
private readonly sessionOperations;
|
|
708
645
|
private readonly context;
|
|
709
646
|
private readonly readService;
|
|
710
647
|
private readonly runtimeService;
|
|
711
648
|
private readonly authoringService;
|
|
649
|
+
private readonly persistenceService;
|
|
712
650
|
private readonly cacheService;
|
|
713
651
|
private readonly eventService;
|
|
714
|
-
private readonly jobService;
|
|
715
652
|
constructor(options?: BackendRuntimeOptions);
|
|
716
653
|
getCapabilities(): BackendSuccess<BackendCapabilities>;
|
|
717
654
|
openSession(input: {
|
|
@@ -735,18 +672,15 @@ declare class BackendRuntime {
|
|
|
735
672
|
}): Promise<BackendResult<{
|
|
736
673
|
sessionId: string;
|
|
737
674
|
closed: true;
|
|
738
|
-
}, SessionNotFoundError>>;
|
|
675
|
+
}, SessionNotFoundError | SessionCloseFailedError>>;
|
|
739
676
|
getEvents(input: GetEventsInput): BackendResult<GetEventsSnapshot, SessionNotFoundError | EventCursorInvalidError>;
|
|
740
|
-
getJob(input: GetJobInput): BackendResult<BackendJobSnapshot, SessionNotFoundError | BackendJobNotFoundError>;
|
|
741
|
-
listJobs(input: ListJobsInput): BackendResult<BackendJobListSnapshot, SessionNotFoundError>;
|
|
742
|
-
cancelJob(input: CancelJobInput): BackendResult<BackendJobSnapshot, SessionNotFoundError | BackendJobNotFoundError | BackendJobNotCancellableError>;
|
|
743
677
|
getCacheSnapshot(input: GetCacheSnapshotInput): BackendResult<BackendCacheSnapshot, SessionNotFoundError>;
|
|
744
|
-
refreshCache(input: RefreshCacheInput): BackendResult<
|
|
678
|
+
refreshCache(input: RefreshCacheInput): BackendResult<BackendCacheSnapshot, SessionNotFoundError>;
|
|
745
679
|
}
|
|
746
680
|
//#endregion
|
|
747
681
|
//#region src/contracts.d.ts
|
|
748
|
-
declare const BACKEND_CONTRACT_VERSION: "
|
|
749
|
-
declare const BACKEND_CAPABILITY_SCHEMA_VERSION:
|
|
682
|
+
declare const BACKEND_CONTRACT_VERSION: "3.0.0";
|
|
683
|
+
declare const BACKEND_CAPABILITY_SCHEMA_VERSION: 12;
|
|
750
684
|
declare const BACKEND_COMPATIBILITY_POLICY: {
|
|
751
685
|
readonly incompatibleChange: "requires contractVersion bump";
|
|
752
686
|
readonly capabilitySchemaChange: "requires capabilitySchemaVersion bump";
|
|
@@ -856,6 +790,14 @@ declare function getBackendDiagnosticCatalog(): ({
|
|
|
856
790
|
readonly kind: "host-action";
|
|
857
791
|
readonly message: "Ask the host to confirm the runtime and project, recover any unsaved state, then explicitly open a new session if appropriate. Session IDs are runtime-local. Read its new revision and replan; never reuse an expired session or assume disk contains unsaved changes.";
|
|
858
792
|
};
|
|
793
|
+
} | {
|
|
794
|
+
docsUri: string;
|
|
795
|
+
code: "session_close_failed";
|
|
796
|
+
owners: readonly ["backend"];
|
|
797
|
+
remediation: {
|
|
798
|
+
readonly kind: "host-action";
|
|
799
|
+
readonly message: "The session and lock ownership remain registered. Inspect the reported lock release failure, correct the storage problem, then retry closeSession with the same session ID. Do not remove the lock file or open a replacement session to bypass the owner.";
|
|
800
|
+
};
|
|
859
801
|
} | {
|
|
860
802
|
docsUri: string;
|
|
861
803
|
code: "path_policy_violation";
|
|
@@ -1608,38 +1550,6 @@ declare function getBackendDiagnosticCatalog(): ({
|
|
|
1608
1550
|
readonly kind: "host-action";
|
|
1609
1551
|
readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
|
|
1610
1552
|
};
|
|
1611
|
-
} | {
|
|
1612
|
-
docsUri: string;
|
|
1613
|
-
code: "cache_refresh_failed";
|
|
1614
|
-
owners: readonly ["backend"];
|
|
1615
|
-
remediation: {
|
|
1616
|
-
readonly kind: "host-action";
|
|
1617
|
-
readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
|
|
1618
|
-
};
|
|
1619
|
-
} | {
|
|
1620
|
-
docsUri: string;
|
|
1621
|
-
code: "job_not_found";
|
|
1622
|
-
owners: readonly ["backend"];
|
|
1623
|
-
remediation: {
|
|
1624
|
-
readonly kind: "host-action";
|
|
1625
|
-
readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
|
|
1626
|
-
};
|
|
1627
|
-
} | {
|
|
1628
|
-
docsUri: string;
|
|
1629
|
-
code: "job_not_cancellable";
|
|
1630
|
-
owners: readonly ["backend"];
|
|
1631
|
-
remediation: {
|
|
1632
|
-
readonly kind: "host-action";
|
|
1633
|
-
readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
|
|
1634
|
-
};
|
|
1635
|
-
} | {
|
|
1636
|
-
docsUri: string;
|
|
1637
|
-
code: "job_cancelled";
|
|
1638
|
-
owners: readonly ["backend"];
|
|
1639
|
-
remediation: {
|
|
1640
|
-
readonly kind: "host-action";
|
|
1641
|
-
readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
|
|
1642
|
-
};
|
|
1643
1553
|
})[];
|
|
1644
1554
|
declare function getBackendDiagnosticGuide(code: string): {
|
|
1645
1555
|
docsUri: string;
|
|
@@ -1689,6 +1599,14 @@ declare function getBackendDiagnosticGuide(code: string): {
|
|
|
1689
1599
|
readonly kind: "host-action";
|
|
1690
1600
|
readonly message: "Ask the host to confirm the runtime and project, recover any unsaved state, then explicitly open a new session if appropriate. Session IDs are runtime-local. Read its new revision and replan; never reuse an expired session or assume disk contains unsaved changes.";
|
|
1691
1601
|
};
|
|
1602
|
+
} | {
|
|
1603
|
+
docsUri: string;
|
|
1604
|
+
code: "session_close_failed";
|
|
1605
|
+
owners: readonly ["backend"];
|
|
1606
|
+
remediation: {
|
|
1607
|
+
readonly kind: "host-action";
|
|
1608
|
+
readonly message: "The session and lock ownership remain registered. Inspect the reported lock release failure, correct the storage problem, then retry closeSession with the same session ID. Do not remove the lock file or open a replacement session to bypass the owner.";
|
|
1609
|
+
};
|
|
1692
1610
|
} | {
|
|
1693
1611
|
docsUri: string;
|
|
1694
1612
|
code: "path_policy_violation";
|
|
@@ -2441,38 +2359,6 @@ declare function getBackendDiagnosticGuide(code: string): {
|
|
|
2441
2359
|
readonly kind: "host-action";
|
|
2442
2360
|
readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
|
|
2443
2361
|
};
|
|
2444
|
-
} | {
|
|
2445
|
-
docsUri: string;
|
|
2446
|
-
code: "cache_refresh_failed";
|
|
2447
|
-
owners: readonly ["backend"];
|
|
2448
|
-
remediation: {
|
|
2449
|
-
readonly kind: "host-action";
|
|
2450
|
-
readonly message: "Inspect the execution/cache failure and current session/revision. Preserve sources and unsaved work and report the cause to the host. Replan after resolution; failed execution or cache work is not a completed edit.";
|
|
2451
|
-
};
|
|
2452
|
-
} | {
|
|
2453
|
-
docsUri: string;
|
|
2454
|
-
code: "job_not_found";
|
|
2455
|
-
owners: readonly ["backend"];
|
|
2456
|
-
remediation: {
|
|
2457
|
-
readonly kind: "host-action";
|
|
2458
|
-
readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
|
|
2459
|
-
};
|
|
2460
|
-
} | {
|
|
2461
|
-
docsUri: string;
|
|
2462
|
-
code: "job_not_cancellable";
|
|
2463
|
-
owners: readonly ["backend"];
|
|
2464
|
-
remediation: {
|
|
2465
|
-
readonly kind: "host-action";
|
|
2466
|
-
readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
|
|
2467
|
-
};
|
|
2468
|
-
} | {
|
|
2469
|
-
docsUri: string;
|
|
2470
|
-
code: "job_cancelled";
|
|
2471
|
-
owners: readonly ["backend"];
|
|
2472
|
-
remediation: {
|
|
2473
|
-
readonly kind: "host-action";
|
|
2474
|
-
readonly message: "Inspect the job ID and status with getJob/listJobs. Do not fabricate, restart or force-cancel a missing, terminal or non-cancellable job. Ask the host before scheduling new work; cancellation is not success.";
|
|
2475
|
-
};
|
|
2476
2362
|
};
|
|
2477
2363
|
//#endregion
|
|
2478
2364
|
//#region src/storage.d.ts
|
|
@@ -2510,4 +2396,4 @@ interface BackendAsyncStorageAdapter {
|
|
|
2510
2396
|
type BackendStorageFileSystem = BackendFileSystem & FileSystem;
|
|
2511
2397
|
declare function createBackendStorageFileSystem(storage: BackendAsyncStorageAdapter): BackendStorageFileSystem;
|
|
2512
2398
|
//#endregion
|
|
2513
|
-
export { type AdvisoryLockConflictError, type ApplySessionTransactionInput, BACKEND_CAPABILITY_SCHEMA_VERSION, BACKEND_COMPATIBILITY_POLICY, BACKEND_CONTRACT_VERSION, BACKEND_DIAGNOSTICS_URI, BACKEND_DIAGNOSTIC_TEMPLATE, BACKEND_ENTITY_QUERY_LIMITS, BACKEND_SESSION_READ_LIMITS, BACKEND_TRANSACTION_PREVIEW_LIMITS, type BackendArtifactBridgeCapability, type BackendAsyncStorageAdapter, type BackendCacheEntry, type BackendCacheSnapshot, type BackendCapabilities, type BackendCapabilityManifest, type BackendCapabilityUnavailableError, type BackendComponentSnapshot, type BackendDiagnostic, type BackendDiagnosticCode, type BackendDiagnosticGuide, type BackendDiagnosticOwner, type BackendDiagnosticRemediation, type BackendEntitySnapshot, type BackendEntityTarget, type BackendError, type BackendEvent, type BackendEventKind, type BackendFailure, type BackendFileStat, type BackendFileSystem, type BackendHostAdapter, type
|
|
2399
|
+
export { type AdvisoryLockConflictError, type ApplySessionTransactionInput, BACKEND_CAPABILITY_SCHEMA_VERSION, BACKEND_COMPATIBILITY_POLICY, BACKEND_CONTRACT_VERSION, BACKEND_DIAGNOSTICS_URI, BACKEND_DIAGNOSTIC_TEMPLATE, BACKEND_ENTITY_QUERY_LIMITS, BACKEND_SESSION_READ_LIMITS, BACKEND_TRANSACTION_PREVIEW_LIMITS, type BackendArtifactBridgeCapability, type BackendAsyncStorageAdapter, type BackendCacheEntry, type BackendCacheSnapshot, type BackendCapabilities, type BackendCapabilityManifest, type BackendCapabilityUnavailableError, type BackendComponentSnapshot, type BackendDiagnostic, type BackendDiagnosticCode, type BackendDiagnosticGuide, type BackendDiagnosticOwner, type BackendDiagnosticRemediation, type BackendEntitySnapshot, type BackendEntityTarget, type BackendError, type BackendEvent, type BackendEventKind, type BackendFailure, type BackendFileStat, type BackendFileSystem, type BackendHostAdapter, type BackendMessage, type BackendMethodName, type BackendPackageSnapshot, type BackendProjectOutline, type BackendProjectOutlinePackage, type BackendProjectOutlineResource, type BackendProjectSessionStorage, type BackendProjectSnapshot, type BackendResourceBytesSnapshot, type BackendResourceSnapshot, type BackendResponseMeta, type BackendResult, BackendRuntime, type BackendRuntimeOptions, type BackendSessionLock, type BackendSessionPackageModel, type BackendSessionProjectModel, type BackendSessionResourceModel, type BackendSessionSnapshot, type BackendSessionStateSnapshot, type BackendStage, type BackendStorageFileSystem, type BackendStorageStatLike, type BackendSuccess, type BackendTransactionEntityChange, type BackendTransactionPreview, type EntityQueryError, type EventCursorInvalidError, type GetCacheSnapshotInput, type GetEventsInput, type GetEventsSnapshot, type GetProjectOutlineInput, type InProcessLockConflictError, type MaterializeSessionInput, type MaterializeSessionSnapshot, type MaterializeValidationFailedError, type MaterializeWriteFailedError, type OpenProjectSessionInput, type ProjectOpenFailedError, type ProjectRootNotAllowedError, ProjectWriteTransactionError, type QueryEntityInput, type ReadResourceBytesInput, type ReadSessionStateInput, type RefreshCacheInput, type SavePartialFailureError, type SaveSessionInput, type SessionCloseFailedError, type SessionIdConflictError, type SessionNotFoundError, type SessionReadError, type SessionStaleReadError, type SessionStaleWriteError, type TransactionPreviewError, type UamFidelityUnsupportedError, type ValidateSessionInput, createBackendStorageFileSystem, getBackendDiagnosticCatalog, getBackendDiagnosticGuide };
|