ignotum 0.0.13 → 0.0.14
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/cli/bin.mjs +369 -55
- package/dist/cli/bin.mjs.map +1 -1
- package/dist/runtime/client.d.ts +3 -3
- package/dist/runtime/client.js +24 -4
- package/dist/runtime/client.js.map +1 -1
- package/dist/runtime/descriptor-DCCz5AHd-_nhlnu8U.js +298 -0
- package/dist/runtime/descriptor-DCCz5AHd-_nhlnu8U.js.map +1 -0
- package/dist/runtime/id-E7JKqQ9r.d.ts +1 -0
- package/dist/runtime/index-DWU-7TIh.d.ts +185 -0
- package/dist/runtime/internal/host.d.ts +23 -5
- package/dist/runtime/internal/host.js +24 -4
- package/dist/runtime/internal/host.js.map +1 -1
- package/dist/runtime/internal/server.d.ts +1 -1
- package/dist/runtime/internal/server.js +1 -1
- package/dist/runtime/internal/types.d.ts +2 -1
- package/dist/runtime/internal/types.js +1 -1
- package/dist/runtime/{pagination-DnKg3dkI-r5ZUxBBx.d.ts → pagination-CpYCaRYD-C2Rpp4Cw.d.ts} +14 -4
- package/dist/runtime/pagination-E7JKqQ9r.d.ts +1 -0
- package/dist/runtime/{schema-1Zs03-iS.js → schema-DqogEydG.js} +38 -11
- package/dist/runtime/schema-DqogEydG.js.map +1 -0
- package/dist/runtime/server.d.ts +4 -3
- package/dist/runtime/server.js +1 -1
- package/dist/runtime/types-C1iDP2Yf-BnkfBOQf.d.ts +224 -0
- package/package.json +2 -2
- package/src/cli/agent-files.ts +4 -0
- package/src/cli/build/server.ts +35 -6
- package/src/cli/command.ts +25 -2
- package/src/cli/deploy.ts +34 -11
- package/src/client/sync.ts +1 -1
- package/src/dev-runtime/database.ts +77 -2
- package/src/dev-runtime/id.ts +19 -4
- package/src/dev-runtime/migrations.ts +9 -0
- package/src/internal/host.ts +1 -1
- package/dist/runtime/descriptor-Cyo9FP9n-C0SRVXNW.js +0 -154
- package/dist/runtime/descriptor-Cyo9FP9n-C0SRVXNW.js.map +0 -1
- package/dist/runtime/id-Dz0apuB3.d.ts +0 -1
- package/dist/runtime/index-D54flWtH.d.ts +0 -402
- package/dist/runtime/pagination-Dz0apuB3.d.ts +0 -1
- package/dist/runtime/schema-1Zs03-iS.js.map +0 -1
package/dist/runtime/client.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as InternalServerError, g as FileValue, h as FileMimeType, i as ErrorValue, l as SettledResult, m as FileMetadata, o as Match, p as FileFormat, s as QueryResult$1 } from "./id-BzFHf3Wo-DGPCjgrf.js";
|
|
2
2
|
import "./result-DKAA4gpS.js";
|
|
3
3
|
import "./sync-Bs8J3fIr.js";
|
|
4
|
-
import { d as User, f as UserId, l as ProfileField, n as PaginationPage, t as PaginationOptions, u as SessionOutcome } from "./pagination-
|
|
5
|
-
import "./id-
|
|
4
|
+
import { d as User, f as UserId, l as ProfileField, n as PaginationPage, t as PaginationOptions, u as SessionOutcome } from "./pagination-CpYCaRYD-C2Rpp4Cw.js";
|
|
5
|
+
import "./id-E7JKqQ9r.js";
|
|
6
6
|
import { n as FunctionReference } from "./api-Cv3hMbzo.js";
|
|
7
|
-
import "./pagination-
|
|
7
|
+
import "./pagination-E7JKqQ9r.js";
|
|
8
8
|
import { Context as Context$1, Effect, Layer, Schema } from "effect";
|
|
9
9
|
import { Dispatch, Reducer, StateUpdater, useCallback, useContext, useDebugValue, useEffect, useErrorBoundary, useId as useElementId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState } from "preact/hooks";
|
|
10
10
|
import { AnyComponent, Attributes, ClassAttributes, Component, ComponentChild, ComponentChildren, ComponentClass, ComponentConstructor, ComponentFactory, ComponentProps, ComponentType, ComponentType as ComponentType$1, Consumer, Context, ContextType, ErrorInfo, Fragment, FunctionComponent, FunctionalComponent, JSX, Key, PreactConsumer, PreactContext, PreactDOMAttributes, PreactProvider, Provider, Ref, RefCallback, RefObject, RenderableProps, TargetedAnimationEvent, TargetedClipboardEvent, TargetedCommandEvent, TargetedCompositionEvent, TargetedDragEvent, TargetedEvent, TargetedFocusEvent, TargetedInputEvent, TargetedKeyboardEvent, TargetedMouseEvent, TargetedPictureInPictureEvent, TargetedPointerEvent, TargetedSnapEvent, TargetedSubmitEvent, TargetedToggleEvent, TargetedTouchEvent, TargetedTransitionEvent, TargetedUIEvent, TargetedWheelEvent, VNode, cloneElement, createContext, createElement, createRef, h, isValidElement, toChildArray } from "preact";
|
package/dist/runtime/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as RuntimeFileMetadata, B as makeFileValue, D as encodeTransportObject, E as decodeTransportValue, F as fileIdOf, G as IdAlphabet, H as AppId, I as fileLimits, J as SessionEpoch, K as InvocationId, L as fileMimeTypes, N as fileFormats, P as fileGrantUrlOf, R as grantFileValue, U as DeploymentId, W as GeneratedId, X as TableId, Y as SubscriptionId, _ as Result$2, a as SessionResponse, b as inspectResult, d as sessionPath, f as sessionRequestsPath, i as SessionRequest, j as RuntimeFileOccurrence, k as FileId, l as developmentSelectionKey, m as upgrade, n as SessionOutcome, o as SessionState, p as initial, q as RuntimeRequestNonce, r as SessionRedirect, t as DevelopmentSelection, x as pending, y as failureFromWire, z as isFileValue } from "./id-Bt9XWRGL.js";
|
|
2
2
|
import { a as ErrorCode, c as ServerMessageJson, d as WireSuccess, f as AppStateRevision, i as DeploymentCloseCode, l as WireFailure, m as InvocationKey, n as functionPathOf, o as FunctionAddress, p as DeploymentGeneration, r as ClientMessageJson, s as Operation, u as WireResult } from "./api-CAgKDij7.js";
|
|
3
|
-
import {
|
|
3
|
+
import { d as PaginationPageSize, t as ValueDescriptor } from "./descriptor-DCCz5AHd-_nhlnu8U.js";
|
|
4
4
|
import { Array as Array$1, Cause, Context, Deferred, Duration, Effect, ErrorReporter, Fiber, HashMap, Layer, ManagedRuntime, Option, Predicate, Schedule, Schema, Semaphore, String } from "effect";
|
|
5
5
|
import { customAlphabet } from "nanoid";
|
|
6
6
|
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
@@ -649,11 +649,25 @@ const ServerBuildManifestV3 = Schema.Struct({
|
|
|
649
649
|
environment: Schema.optional(ServerEnvironmentArtifact),
|
|
650
650
|
functions: Schema.Array(ServerFunctionArtifact)
|
|
651
651
|
});
|
|
652
|
-
upgrade(ServerBuildManifestThroughV2, ServerBuildManifestV3, (manifest) => ({
|
|
652
|
+
const ServerBuildManifestThroughV3 = upgrade(ServerBuildManifestThroughV2, ServerBuildManifestV3, (manifest) => ({
|
|
653
653
|
formatVersion: 3,
|
|
654
654
|
schema: manifest.schema,
|
|
655
655
|
functions: manifest.functions
|
|
656
656
|
}));
|
|
657
|
+
const ServerBuildManifestV4 = Schema.Struct({
|
|
658
|
+
formatVersion: Schema.Literal(4),
|
|
659
|
+
schema: ArtifactReference,
|
|
660
|
+
environment: Schema.optional(ServerEnvironmentArtifact),
|
|
661
|
+
functions: Schema.Array(ServerFunctionArtifact),
|
|
662
|
+
schemaEvolution: Schema.optional(Schema.Struct({
|
|
663
|
+
bundle: ArtifactReference,
|
|
664
|
+
sourceMap: ArtifactReference
|
|
665
|
+
}))
|
|
666
|
+
});
|
|
667
|
+
upgrade(ServerBuildManifestThroughV3, ServerBuildManifestV4, (manifest) => ({
|
|
668
|
+
...manifest,
|
|
669
|
+
formatVersion: 4
|
|
670
|
+
}));
|
|
657
671
|
ArtifactPath.make("inventory.json");
|
|
658
672
|
ArtifactPath.make("client/manifest.json");
|
|
659
673
|
ArtifactPath.make("client/shell.html");
|
|
@@ -665,6 +679,7 @@ ArtifactPath.make("server/environment.json");
|
|
|
665
679
|
//#endregion
|
|
666
680
|
//#region ../contracts/dist/runtime/transport.js
|
|
667
681
|
const runtimeInvocationPath = "/v1/invoke";
|
|
682
|
+
const runtimeConsolePath = "/v1/console/read";
|
|
668
683
|
const runtimeRevisionPath = "/v1/revision";
|
|
669
684
|
const runtimeIndexPreparePath = "/v1/indexes/prepare";
|
|
670
685
|
const runtimeIndexCommitPath = "/v1/indexes/commit";
|
|
@@ -672,6 +687,7 @@ const runtimeFileEffectsPath = "/v1/files/effects";
|
|
|
672
687
|
const runtimeFileEffectsAcknowledgePath = "/v1/files/effects/acknowledge";
|
|
673
688
|
const appSyncPath = `/_ignotum/v1/sync`;
|
|
674
689
|
const RuntimeRequestPath = Schema.Literals([
|
|
690
|
+
runtimeConsolePath,
|
|
675
691
|
runtimeInvocationPath,
|
|
676
692
|
runtimeRevisionPath,
|
|
677
693
|
runtimeIndexPreparePath,
|
|
@@ -699,9 +715,13 @@ Schema.Struct({
|
|
|
699
715
|
});
|
|
700
716
|
Schema.Struct({
|
|
701
717
|
appId: AppId,
|
|
702
|
-
deploymentId: DeploymentId
|
|
718
|
+
deploymentId: DeploymentId,
|
|
719
|
+
generation: Schema.optional(Schema.Natural)
|
|
703
720
|
});
|
|
704
|
-
Schema.Struct({ completed: Schema.Literal(true) })
|
|
721
|
+
Schema.Union([Schema.Struct({ completed: Schema.Literal(true) }), Schema.Struct({
|
|
722
|
+
completed: Schema.Literal(false),
|
|
723
|
+
message: Schema.String
|
|
724
|
+
})]);
|
|
705
725
|
const RuntimeErrorCode = Schema.Literals([
|
|
706
726
|
"InvalidRequest",
|
|
707
727
|
"InvalidSignature",
|