apps 0.0.1-beta.91 → 0.0.1-beta.93
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 +4 -4
- package/framework-reference.json +1 -1
- package/js/{chunk-YRGL4QEF.js → chunk-2GPX2E57.js} +3 -3
- package/js/{chunk-H72MEDMN.js → chunk-4PIQKACY.js} +2 -2
- package/js/{chunk-JPEUKEV4.js → chunk-4X2UI4R2.js} +1 -1
- package/js/{chunk-KLYSEHUD.js → chunk-62NVUKED.js} +2 -2
- package/js/{chunk-KUCCHNVY.js → chunk-6C2I6JLA.js} +6 -6
- package/js/{chunk-YWFUWTUJ.js → chunk-6F3WAXVN.js} +4 -4
- package/js/{chunk-6XQLA5NC.js → chunk-6WC2OWHV.js} +15 -10
- package/js/{chunk-YNJ5CZMJ.js → chunk-74H25C4X.js} +13 -11
- package/js/{chunk-DDHBUKXX.js → chunk-7HG422GB.js} +42 -2
- package/js/{chunk-EOPQ727L.js → chunk-ACQXVKVQ.js} +1 -1
- package/js/{chunk-PYQLOLOC.js → chunk-ATBBIJ5O.js} +2 -2
- package/js/{chunk-TUMGL2OC.js → chunk-DILSCQPJ.js} +2 -2
- package/js/{chunk-5MDA7MKL.js → chunk-DYE2CKHG.js} +8 -8
- package/js/{chunk-XPRZTLHD.js → chunk-FA5MLNYL.js} +15 -15
- package/js/{chunk-7PHHWYV4.js → chunk-JJZZLNJY.js} +6 -6
- package/js/{chunk-74YVXBKY.js → chunk-KLSEU35Y.js} +1 -1
- package/js/{chunk-3LEVTFD4.js → chunk-MBCUKNUA.js} +10 -10
- package/js/{chunk-I5C7FD5Z.js → chunk-MN5XVRKW.js} +4 -4
- package/js/{chunk-5FHWNLCI.js → chunk-OWN3DP2W.js} +1 -1
- package/js/{chunk-XBG7HHXC.js → chunk-PBGPES67.js} +2 -2
- package/js/{chunk-GQ33QSNB.js → chunk-RKFLB36H.js} +2 -2
- package/js/{chunk-DADXWWRZ.js → chunk-TNVB3KLB.js} +6 -6
- package/js/{chunk-QWQM3CLH.js → chunk-URKOTNDA.js} +4 -4
- package/js/{chunk-PD6I2SDG.js → chunk-YDW7DX3A.js} +2 -2
- package/js/{chunk-IFJU5SYQ.js → chunk-ZKDXML77.js} +178 -23
- package/js/client.js +16 -16
- package/js/contracts.js +7 -7
- package/js/effect.js +18 -18
- package/js/graphql.js +20 -20
- package/js/host.js +18 -18
- package/js/index.js +13 -13
- package/js/mcp/effect.js +19 -19
- package/js/mcp.js +21 -21
- package/js/openapi.js +16 -16
- package/js/react.js +2 -2
- package/js/skills/effect.js +6 -6
- package/js/skills.js +15 -15
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +9 -9
- package/js/ui/serving.js +19 -18
- package/package.json +1 -1
- package/runtime.json +1 -1
- package/types/apps/src/contracts/app.d.ts +1 -1
- package/types/apps/src/contracts/openapi-document.d.ts +1 -1
- package/types/apps/src/contracts/ui.d.ts +31 -21
- package/types/apps/src/contracts/workflows.d.ts +37 -17
- package/types/apps/src/implementation/browser-scripts.gen.d.ts +1 -1
- package/types/apps/src/implementation/openapi-source.d.ts +1 -1
- package/types/apps/src/implementation/sql.d.ts +1 -1
- package/types/apps/src/implementation/ui-client.d.ts +1 -1
- package/types/apps/src/implementation/ui-document.d.ts +2 -2
- package/types/apps/src/implementation/ui-serving.d.ts +4 -4
- package/types/apps/src/implementation/ui-watch.d.ts +1 -1
- package/types/utils/src/legacy-keys.d.ts +20 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DeclarationInvalid,
|
|
3
3
|
JsonObject,
|
|
4
4
|
ValidationError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7HG422GB.js";
|
|
6
6
|
import {
|
|
7
7
|
Cause_exports,
|
|
8
8
|
Effect_exports,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
SchemaIssue_exports,
|
|
12
12
|
SchemaParser_exports,
|
|
13
13
|
Schema_exports
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZKDXML77.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/.bun/@cfworker+json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js
|
|
17
17
|
function deepCompareStrict(a, b) {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
declaredOperations,
|
|
3
3
|
nativeOperation,
|
|
4
4
|
nativeRouter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6F3WAXVN.js";
|
|
6
6
|
import {
|
|
7
7
|
fromPromise,
|
|
8
8
|
method
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MN5XVRKW.js";
|
|
10
10
|
import {
|
|
11
11
|
EmittedEvent,
|
|
12
12
|
EventName,
|
|
@@ -17,21 +17,21 @@ import {
|
|
|
17
17
|
normalizePlacements,
|
|
18
18
|
placementFields,
|
|
19
19
|
renderPlacement
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6WC2OWHV.js";
|
|
21
21
|
import {
|
|
22
22
|
decoderOf,
|
|
23
23
|
isSchema,
|
|
24
24
|
jsonSchemaDocument,
|
|
25
25
|
schemaArgument
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RKFLB36H.js";
|
|
27
27
|
import {
|
|
28
28
|
JsonValue
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7HG422GB.js";
|
|
30
30
|
import {
|
|
31
31
|
Effect_exports,
|
|
32
32
|
Result_exports,
|
|
33
33
|
Schema_exports
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ZKDXML77.js";
|
|
35
35
|
|
|
36
36
|
// src/contracts/http.ts
|
|
37
37
|
var ResponseStatusError = class extends Schema_exports.TaggedError()(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FetchHttpClient_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YDW7DX3A.js";
|
|
4
4
|
import {
|
|
5
5
|
recordedMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OWN3DP2W.js";
|
|
7
7
|
import {
|
|
8
8
|
HttpBody_exports,
|
|
9
9
|
HttpClient,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
tapError,
|
|
24
24
|
transformResponse,
|
|
25
25
|
uint8Array
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ACQXVKVQ.js";
|
|
27
27
|
import {
|
|
28
28
|
Array as Array2,
|
|
29
29
|
Boolean2 as Boolean,
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
withDefault2 as withDefault,
|
|
135
135
|
withTracerEnabled,
|
|
136
136
|
zero
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-ZKDXML77.js";
|
|
138
138
|
import {
|
|
139
139
|
__export
|
|
140
140
|
} from "./chunk-CZ7CSFO4.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
fromWeb,
|
|
5
5
|
layerMergedContext,
|
|
6
6
|
make2 as make
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ACQXVKVQ.js";
|
|
8
8
|
import {
|
|
9
9
|
Reference,
|
|
10
10
|
Service,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
succeed4 as succeed,
|
|
18
18
|
toReadableStreamEffect,
|
|
19
19
|
tryPromise
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZKDXML77.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
23
|
} from "./chunk-CZ7CSFO4.js";
|
|
@@ -13569,6 +13569,59 @@ function collectBracketPathEntries(isLeaf) {
|
|
|
13569
13569
|
}
|
|
13570
13570
|
|
|
13571
13571
|
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/SchemaTransformation.js
|
|
13572
|
+
var SchemaTransformation_exports = {};
|
|
13573
|
+
__export(SchemaTransformation_exports, {
|
|
13574
|
+
Middleware: () => Middleware,
|
|
13575
|
+
Transformation: () => Transformation,
|
|
13576
|
+
bigDecimalFromString: () => bigDecimalFromString,
|
|
13577
|
+
bigintFromString: () => bigintFromString,
|
|
13578
|
+
byteSizeFromBigInt: () => byteSizeFromBigInt,
|
|
13579
|
+
byteSizeFromNumber: () => byteSizeFromNumber,
|
|
13580
|
+
byteSizeFromString: () => byteSizeFromString,
|
|
13581
|
+
capitalize: () => capitalize3,
|
|
13582
|
+
composeTransformation: () => composeTransformation,
|
|
13583
|
+
dateFromMillis: () => dateFromMillis,
|
|
13584
|
+
dateFromString: () => dateFromString,
|
|
13585
|
+
dateTimeUtcFromString: () => dateTimeUtcFromString,
|
|
13586
|
+
dateTimeZonedFromString: () => dateTimeZonedFromString,
|
|
13587
|
+
defectFromJson: () => defectFromJson,
|
|
13588
|
+
durationFromMillis: () => durationFromMillis,
|
|
13589
|
+
durationFromNanos: () => durationFromNanos,
|
|
13590
|
+
durationFromString: () => durationFromString,
|
|
13591
|
+
errorFromJsonError: () => errorFromJsonError,
|
|
13592
|
+
fromFormData: () => fromFormData,
|
|
13593
|
+
fromJsonString: () => fromJsonString,
|
|
13594
|
+
fromURLSearchParams: () => fromURLSearchParams,
|
|
13595
|
+
isTransformation: () => isTransformation,
|
|
13596
|
+
makeTransformation: () => makeTransformation,
|
|
13597
|
+
numberFromString: () => numberFromString,
|
|
13598
|
+
optionFromNullOr: () => optionFromNullOr,
|
|
13599
|
+
optionFromNullishOr: () => optionFromNullishOr,
|
|
13600
|
+
optionFromOptional: () => optionFromOptional,
|
|
13601
|
+
optionFromOptionalKey: () => optionFromOptionalKey,
|
|
13602
|
+
optionFromUndefinedOr: () => optionFromUndefinedOr,
|
|
13603
|
+
passthrough: () => passthrough3,
|
|
13604
|
+
passthroughSubtype: () => passthroughSubtype2,
|
|
13605
|
+
passthroughSupertype: () => passthroughSupertype2,
|
|
13606
|
+
snakeToCamel: () => snakeToCamel3,
|
|
13607
|
+
splitKeyValue: () => splitKeyValue2,
|
|
13608
|
+
stringFromBase64String: () => stringFromBase64String,
|
|
13609
|
+
stringFromBase64UrlString: () => stringFromBase64UrlString,
|
|
13610
|
+
stringFromHexString: () => stringFromHexString,
|
|
13611
|
+
stringFromUriComponent: () => stringFromUriComponent,
|
|
13612
|
+
timeZoneFromString: () => timeZoneFromString,
|
|
13613
|
+
timeZoneNamedFromString: () => timeZoneNamedFromString,
|
|
13614
|
+
timeZoneOffsetFromNumber: () => timeZoneOffsetFromNumber,
|
|
13615
|
+
toLowerCase: () => toLowerCase3,
|
|
13616
|
+
toUpperCase: () => toUpperCase3,
|
|
13617
|
+
transform: () => transform3,
|
|
13618
|
+
transformEffect: () => transformEffect2,
|
|
13619
|
+
transformOptional: () => transformOptional2,
|
|
13620
|
+
trim: () => trim3,
|
|
13621
|
+
uint8ArrayFromBase64String: () => uint8ArrayFromBase64String,
|
|
13622
|
+
uncapitalize: () => uncapitalize3,
|
|
13623
|
+
urlFromString: () => urlFromString
|
|
13624
|
+
});
|
|
13572
13625
|
var Middleware = class extends Class {
|
|
13573
13626
|
_tag = "Middleware";
|
|
13574
13627
|
decode;
|
|
@@ -13597,6 +13650,7 @@ var Transformation = class extends Class {
|
|
|
13597
13650
|
return new Transformation(this.encode, this.decode);
|
|
13598
13651
|
}
|
|
13599
13652
|
};
|
|
13653
|
+
var composeTransformation = /* @__PURE__ */ dual(2, (self, other) => new Transformation(compose3(self.decode, other.decode), compose3(other.encode, self.encode)));
|
|
13600
13654
|
function isTransformation(u) {
|
|
13601
13655
|
return hasProperty(u, TypeId23) && u[TypeId23] === TypeId23;
|
|
13602
13656
|
}
|
|
@@ -13618,6 +13672,21 @@ function transformOptional2(options) {
|
|
|
13618
13672
|
function trim3() {
|
|
13619
13673
|
return new Transformation(trim2(), passthrough2());
|
|
13620
13674
|
}
|
|
13675
|
+
function snakeToCamel3() {
|
|
13676
|
+
return new Transformation(snakeToCamel2(), camelToSnake2());
|
|
13677
|
+
}
|
|
13678
|
+
function toLowerCase3() {
|
|
13679
|
+
return new Transformation(toLowerCase2(), passthrough2());
|
|
13680
|
+
}
|
|
13681
|
+
function toUpperCase3() {
|
|
13682
|
+
return new Transformation(toUpperCase2(), passthrough2());
|
|
13683
|
+
}
|
|
13684
|
+
function capitalize3() {
|
|
13685
|
+
return new Transformation(capitalize2(), passthrough2());
|
|
13686
|
+
}
|
|
13687
|
+
function uncapitalize3() {
|
|
13688
|
+
return new Transformation(uncapitalize2(), passthrough2());
|
|
13689
|
+
}
|
|
13621
13690
|
function splitKeyValue2(options) {
|
|
13622
13691
|
return new Transformation(splitKeyValue(options), joinKeyValue(options));
|
|
13623
13692
|
}
|
|
@@ -13625,10 +13694,38 @@ var passthrough_2 = /* @__PURE__ */ new Transformation(/* @__PURE__ */ passthrou
|
|
|
13625
13694
|
function passthrough3() {
|
|
13626
13695
|
return passthrough_2;
|
|
13627
13696
|
}
|
|
13697
|
+
function passthroughSupertype2() {
|
|
13698
|
+
return passthrough_2;
|
|
13699
|
+
}
|
|
13700
|
+
function passthroughSubtype2() {
|
|
13701
|
+
return passthrough_2;
|
|
13702
|
+
}
|
|
13628
13703
|
var numberFromString = /* @__PURE__ */ new Transformation(/* @__PURE__ */ Number4(), /* @__PURE__ */ String4());
|
|
13629
13704
|
var bigintFromString = /* @__PURE__ */ new Transformation(/* @__PURE__ */ BigInt4(), /* @__PURE__ */ String4());
|
|
13630
13705
|
var dateFromString = /* @__PURE__ */ new Transformation(/* @__PURE__ */ Date3(), /* @__PURE__ */ transform2(formatDate));
|
|
13631
13706
|
var dateFromMillis = /* @__PURE__ */ new Transformation(/* @__PURE__ */ Date3(), /* @__PURE__ */ transform2((date2) => date2.getTime()));
|
|
13707
|
+
var durationFromString = /* @__PURE__ */ transformEffect2({
|
|
13708
|
+
decode: (s, options) => match(fromInput(s), {
|
|
13709
|
+
onNone: () => fail7(new InvalidValue({
|
|
13710
|
+
expected: "a valid Duration string"
|
|
13711
|
+
}, s, options)),
|
|
13712
|
+
onSome: succeed7
|
|
13713
|
+
}),
|
|
13714
|
+
encode: (duration2) => succeed7(String(duration2))
|
|
13715
|
+
});
|
|
13716
|
+
var durationFromNanos = /* @__PURE__ */ transformEffect2({
|
|
13717
|
+
decode: (i) => succeed7(nanos(i)),
|
|
13718
|
+
encode: (a, options) => match(toNanos(a), {
|
|
13719
|
+
onNone: () => fail7(new InvalidValue({
|
|
13720
|
+
expected: "a Duration representable as a bigint"
|
|
13721
|
+
}, a, options)),
|
|
13722
|
+
onSome: (nanos2) => succeed7(nanos2)
|
|
13723
|
+
})
|
|
13724
|
+
});
|
|
13725
|
+
var durationFromMillis = /* @__PURE__ */ transform3({
|
|
13726
|
+
decode: (i) => millis(i),
|
|
13727
|
+
encode: (a) => toMillis(a)
|
|
13728
|
+
});
|
|
13632
13729
|
var byteSizeFromString = /* @__PURE__ */ transformEffect2({
|
|
13633
13730
|
decode: (input, options) => match(fromString2(input), {
|
|
13634
13731
|
onNone: () => fail7(new InvalidValue({
|
|
@@ -13753,6 +13850,15 @@ var urlFromString = /* @__PURE__ */ transformEffect2({
|
|
|
13753
13850
|
}, s, options)),
|
|
13754
13851
|
encode: (url) => succeed7(url.href)
|
|
13755
13852
|
});
|
|
13853
|
+
var bigDecimalFromString = /* @__PURE__ */ transformEffect2({
|
|
13854
|
+
decode: (s, options) => {
|
|
13855
|
+
const result6 = fromString(s);
|
|
13856
|
+
return isNone2(result6) ? fail7(new InvalidValue({
|
|
13857
|
+
expected: "a valid BigDecimal string"
|
|
13858
|
+
}, s, options)) : succeed7(result6.value);
|
|
13859
|
+
},
|
|
13860
|
+
encode: (bd) => succeed7(format4(bd))
|
|
13861
|
+
});
|
|
13756
13862
|
var uint8ArrayFromBase64String = /* @__PURE__ */ new Transformation(/* @__PURE__ */ decodeBase64(), /* @__PURE__ */ encodeBase64());
|
|
13757
13863
|
var stringFromBase64String = /* @__PURE__ */ new Transformation(/* @__PURE__ */ decodeBase64String(), /* @__PURE__ */ encodeBase64());
|
|
13758
13864
|
var stringFromBase64UrlString = /* @__PURE__ */ new Transformation(/* @__PURE__ */ decodeBase64UrlString(), /* @__PURE__ */ encodeBase64Url());
|
|
@@ -13763,6 +13869,54 @@ function fromJsonString(options) {
|
|
|
13763
13869
|
}
|
|
13764
13870
|
var fromFormData = /* @__PURE__ */ new Transformation(/* @__PURE__ */ decodeFormData(), /* @__PURE__ */ encodeFormData());
|
|
13765
13871
|
var fromURLSearchParams = /* @__PURE__ */ new Transformation(/* @__PURE__ */ decodeURLSearchParams(), /* @__PURE__ */ encodeURLSearchParams());
|
|
13872
|
+
var timeZoneOffsetFromNumber = /* @__PURE__ */ transform3({
|
|
13873
|
+
decode: (n) => zoneMakeOffset2(n),
|
|
13874
|
+
encode: (tz) => tz.offset
|
|
13875
|
+
});
|
|
13876
|
+
var timeZoneNamedFromString = /* @__PURE__ */ transformEffect2({
|
|
13877
|
+
decode: (s, options) => {
|
|
13878
|
+
return match(zoneMakeNamed2(s), {
|
|
13879
|
+
onNone: () => fail7(new InvalidValue({
|
|
13880
|
+
expected: "a valid IANA time zone"
|
|
13881
|
+
}, s, options)),
|
|
13882
|
+
onSome: succeed7
|
|
13883
|
+
});
|
|
13884
|
+
},
|
|
13885
|
+
encode: (tz) => succeed7(tz.id)
|
|
13886
|
+
});
|
|
13887
|
+
var timeZoneFromString = /* @__PURE__ */ transformEffect2({
|
|
13888
|
+
decode: (s, options) => {
|
|
13889
|
+
return match(zoneFromString2(s), {
|
|
13890
|
+
onNone: () => fail7(new InvalidValue({
|
|
13891
|
+
expected: "a valid time zone"
|
|
13892
|
+
}, s, options)),
|
|
13893
|
+
onSome: succeed7
|
|
13894
|
+
});
|
|
13895
|
+
},
|
|
13896
|
+
encode: (tz) => succeed7(zoneToString2(tz))
|
|
13897
|
+
});
|
|
13898
|
+
var dateTimeUtcFromString = /* @__PURE__ */ transformEffect2({
|
|
13899
|
+
decode: (s, options) => {
|
|
13900
|
+
return match(make14(s), {
|
|
13901
|
+
onNone: () => fail7(new InvalidValue({
|
|
13902
|
+
expected: "a valid UTC DateTime string"
|
|
13903
|
+
}, s, options)),
|
|
13904
|
+
onSome: (result6) => succeed7(toUtc2(result6))
|
|
13905
|
+
});
|
|
13906
|
+
},
|
|
13907
|
+
encode: (utc) => succeed7(formatIso2(utc))
|
|
13908
|
+
});
|
|
13909
|
+
var dateTimeZonedFromString = /* @__PURE__ */ transformEffect2({
|
|
13910
|
+
decode: (s, options) => {
|
|
13911
|
+
return match(makeZonedFromString2(s), {
|
|
13912
|
+
onNone: () => fail7(new InvalidValue({
|
|
13913
|
+
expected: "a valid Zoned DateTime string"
|
|
13914
|
+
}, s, options)),
|
|
13915
|
+
onSome: succeed7
|
|
13916
|
+
});
|
|
13917
|
+
},
|
|
13918
|
+
encode: (zoned) => succeed7(formatIsoZoned2(zoned))
|
|
13919
|
+
});
|
|
13766
13920
|
|
|
13767
13921
|
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/SchemaAST.js
|
|
13768
13922
|
function makeGuard(tag4) {
|
|
@@ -22602,7 +22756,7 @@ var Uint8ArrayFromHex = /* @__PURE__ */ String6.annotate({
|
|
|
22602
22756
|
decode: /* @__PURE__ */ decodeHex(),
|
|
22603
22757
|
encode: /* @__PURE__ */ encodeHex()
|
|
22604
22758
|
}));
|
|
22605
|
-
var
|
|
22759
|
+
var bigDecimalFromString2 = /* @__PURE__ */ transformEffect2({
|
|
22606
22760
|
decode: (s, options) => {
|
|
22607
22761
|
const result6 = fromString(s);
|
|
22608
22762
|
return isNone2(result6) ? fail7(new InvalidValue({
|
|
@@ -22645,10 +22799,10 @@ var BigDecimal = /* @__PURE__ */ declare(isBigDecimal, {
|
|
|
22645
22799
|
importDeclarations: [`import * as BigDecimal from "effect/BigDecimal"`]
|
|
22646
22800
|
}),
|
|
22647
22801
|
expected: "BigDecimal",
|
|
22648
|
-
toCodecJson: () => link()(BigDecimalString,
|
|
22802
|
+
toCodecJson: () => link()(BigDecimalString, bigDecimalFromString2),
|
|
22649
22803
|
toFormatter: () => (bd) => format4(bd)
|
|
22650
22804
|
});
|
|
22651
|
-
var BigDecimalFromString = /* @__PURE__ */ BigDecimalString.pipe(/* @__PURE__ */ decodeTo2(BigDecimal,
|
|
22805
|
+
var BigDecimalFromString = /* @__PURE__ */ BigDecimalString.pipe(/* @__PURE__ */ decodeTo2(BigDecimal, bigDecimalFromString2));
|
|
22652
22806
|
var ByteSize = /* @__PURE__ */ declare(isByteSize, {
|
|
22653
22807
|
representation: {
|
|
22654
22808
|
id: "effect/schema/ByteSize",
|
|
@@ -22838,11 +22992,11 @@ function dateTimeUtcFromInput2() {
|
|
|
22838
22992
|
});
|
|
22839
22993
|
});
|
|
22840
22994
|
}
|
|
22841
|
-
var
|
|
22995
|
+
var timeZoneOffsetFromNumber2 = /* @__PURE__ */ transform3({
|
|
22842
22996
|
decode: (n) => zoneMakeOffset2(n),
|
|
22843
22997
|
encode: (tz) => tz.offset
|
|
22844
22998
|
});
|
|
22845
|
-
var
|
|
22999
|
+
var timeZoneNamedFromString2 = /* @__PURE__ */ transformEffect2({
|
|
22846
23000
|
decode: (s, options) => {
|
|
22847
23001
|
return match(zoneMakeNamed2(s), {
|
|
22848
23002
|
onNone: () => fail7(new InvalidValue({
|
|
@@ -22853,7 +23007,7 @@ var timeZoneNamedFromString = /* @__PURE__ */ transformEffect2({
|
|
|
22853
23007
|
},
|
|
22854
23008
|
encode: (tz) => succeed7(tz.id)
|
|
22855
23009
|
});
|
|
22856
|
-
var
|
|
23010
|
+
var timeZoneFromString2 = /* @__PURE__ */ transformEffect2({
|
|
22857
23011
|
decode: (s, options) => {
|
|
22858
23012
|
return match(zoneFromString2(s), {
|
|
22859
23013
|
onNone: () => fail7(new InvalidValue({
|
|
@@ -22864,7 +23018,7 @@ var timeZoneFromString = /* @__PURE__ */ transformEffect2({
|
|
|
22864
23018
|
},
|
|
22865
23019
|
encode: (tz) => succeed7(zoneToString2(tz))
|
|
22866
23020
|
});
|
|
22867
|
-
var
|
|
23021
|
+
var dateTimeUtcFromString2 = /* @__PURE__ */ transformEffect2({
|
|
22868
23022
|
decode: (s, options) => {
|
|
22869
23023
|
return match(make14(s), {
|
|
22870
23024
|
onNone: () => fail7(new InvalidValue({
|
|
@@ -22875,7 +23029,7 @@ var dateTimeUtcFromString = /* @__PURE__ */ transformEffect2({
|
|
|
22875
23029
|
},
|
|
22876
23030
|
encode: (utc) => succeed7(formatIso2(utc))
|
|
22877
23031
|
});
|
|
22878
|
-
var
|
|
23032
|
+
var dateTimeZonedFromString2 = /* @__PURE__ */ transformEffect2({
|
|
22879
23033
|
decode: (s, options) => {
|
|
22880
23034
|
return match(makeZonedFromString2(s), {
|
|
22881
23035
|
onNone: () => fail7(new InvalidValue({
|
|
@@ -22924,7 +23078,7 @@ var DateTimeUtc = /* @__PURE__ */ declare((u) => isDateTime2(u) && isUtc2(u), {
|
|
|
22924
23078
|
const [minimum, maximum] = dateTimeArbitraryBounds(constraint, arbitraryMinimumDateTimestamp, arbitraryMaximumDateTimestamp);
|
|
22925
23079
|
return linkDecoding()(dateTimeArbitraryInteger(minimum, maximum), transform2(makeUnsafe5));
|
|
22926
23080
|
},
|
|
22927
|
-
toCodecJson: () => link()(String6,
|
|
23081
|
+
toCodecJson: () => link()(String6, dateTimeUtcFromString2),
|
|
22928
23082
|
toFormatter: () => (utc) => utc.toString()
|
|
22929
23083
|
});
|
|
22930
23084
|
var DateTimeUtcFromDate = /* @__PURE__ */ Date4.pipe(/* @__PURE__ */ decodeTo2(DateTimeUtc, {
|
|
@@ -22933,7 +23087,7 @@ var DateTimeUtcFromDate = /* @__PURE__ */ Date4.pipe(/* @__PURE__ */ decodeTo2(D
|
|
|
22933
23087
|
}));
|
|
22934
23088
|
var DateTimeUtcFromString = /* @__PURE__ */ String6.annotate({
|
|
22935
23089
|
expected: "a string that will be decoded as a DateTime.Utc"
|
|
22936
|
-
}).pipe(/* @__PURE__ */ decodeTo2(DateTimeUtc,
|
|
23090
|
+
}).pipe(/* @__PURE__ */ decodeTo2(DateTimeUtc, dateTimeUtcFromString2));
|
|
22937
23091
|
var DateTimeUtcFromMillis = /* @__PURE__ */ Int.pipe(/* @__PURE__ */ decodeTo2(DateTimeUtc, {
|
|
22938
23092
|
decode: /* @__PURE__ */ dateTimeUtcFromInput2(),
|
|
22939
23093
|
encode: /* @__PURE__ */ transform2(toEpochMillis2)
|
|
@@ -22949,7 +23103,7 @@ var TimeZoneOffset = /* @__PURE__ */ declare(isTimeZoneOffset2, {
|
|
|
22949
23103
|
importDeclarations: [`import * as DateTime from "effect/DateTime"`]
|
|
22950
23104
|
}),
|
|
22951
23105
|
expected: "DateTime.TimeZone.Offset",
|
|
22952
|
-
toCodecJson: () => link()(Int,
|
|
23106
|
+
toCodecJson: () => link()(Int, timeZoneOffsetFromNumber2),
|
|
22953
23107
|
toFormatter: () => (tz) => zoneToString2(tz)
|
|
22954
23108
|
});
|
|
22955
23109
|
var TimeZoneNamedString = /* @__PURE__ */ String6.annotate({
|
|
@@ -22967,10 +23121,10 @@ var TimeZoneNamed = /* @__PURE__ */ declare(isTimeZoneNamed2, {
|
|
|
22967
23121
|
}),
|
|
22968
23122
|
expected: "DateTime.TimeZone.Named",
|
|
22969
23123
|
toCodecArbitrary: () => linkDecoding()(Literals(arbitraryNamedTimeZones), transform2(zoneMakeNamedUnsafe2)),
|
|
22970
|
-
toCodecJson: () => link()(TimeZoneNamedString,
|
|
23124
|
+
toCodecJson: () => link()(TimeZoneNamedString, timeZoneNamedFromString2),
|
|
22971
23125
|
toFormatter: () => (tz) => zoneToString2(tz)
|
|
22972
23126
|
});
|
|
22973
|
-
var TimeZoneNamedFromString = /* @__PURE__ */ TimeZoneNamedString.pipe(/* @__PURE__ */ decodeTo2(TimeZoneNamed,
|
|
23127
|
+
var TimeZoneNamedFromString = /* @__PURE__ */ TimeZoneNamedString.pipe(/* @__PURE__ */ decodeTo2(TimeZoneNamed, timeZoneNamedFromString2));
|
|
22974
23128
|
var TimeZoneString = /* @__PURE__ */ String6.annotate({
|
|
22975
23129
|
expected: "a time zone string (IANA identifier or offset like +03:00)"
|
|
22976
23130
|
});
|
|
@@ -22986,10 +23140,10 @@ var TimeZone = /* @__PURE__ */ declare(isTimeZone2, {
|
|
|
22986
23140
|
}),
|
|
22987
23141
|
expected: "DateTime.TimeZone",
|
|
22988
23142
|
toCodecArbitrary: () => linkDecoding()(timeZoneArbitrarySchema(), transform2((value6) => typeof value6 === "number" ? zoneMakeOffset2(value6) : zoneMakeNamedUnsafe2(value6))),
|
|
22989
|
-
toCodecJson: () => link()(TimeZoneString,
|
|
23143
|
+
toCodecJson: () => link()(TimeZoneString, timeZoneFromString2),
|
|
22990
23144
|
toFormatter: () => (tz) => zoneToString2(tz)
|
|
22991
23145
|
});
|
|
22992
|
-
var TimeZoneFromString = /* @__PURE__ */ TimeZoneString.pipe(/* @__PURE__ */ decodeTo2(TimeZone,
|
|
23146
|
+
var TimeZoneFromString = /* @__PURE__ */ TimeZoneString.pipe(/* @__PURE__ */ decodeTo2(TimeZone, timeZoneFromString2));
|
|
22993
23147
|
var DateTimeZonedString = /* @__PURE__ */ String6.annotate({
|
|
22994
23148
|
expected: "a zoned DateTime string (e.g. 2024-01-01T00:00:00.000+00:00[Europe/London])"
|
|
22995
23149
|
});
|
|
@@ -23018,11 +23172,11 @@ var DateTimeZoned = /* @__PURE__ */ declare((u) => isDateTime2(u) && isZoned2(u)
|
|
|
23018
23172
|
timeZone
|
|
23019
23173
|
})));
|
|
23020
23174
|
},
|
|
23021
|
-
toCodecJson: () => link()(DateTimeZonedString,
|
|
23175
|
+
toCodecJson: () => link()(DateTimeZonedString, dateTimeZonedFromString2),
|
|
23022
23176
|
toFormatter: () => (zoned) => formatIsoZoned2(zoned),
|
|
23023
23177
|
toEquivalence: () => Equivalence5
|
|
23024
23178
|
});
|
|
23025
|
-
var DateTimeZonedFromString = /* @__PURE__ */ DateTimeZonedString.pipe(/* @__PURE__ */ decodeTo2(DateTimeZoned,
|
|
23179
|
+
var DateTimeZonedFromString = /* @__PURE__ */ DateTimeZonedString.pipe(/* @__PURE__ */ decodeTo2(DateTimeZoned, dateTimeZonedFromString2));
|
|
23026
23180
|
var netAddressFromString = (declaration, parse3, encode5, identifier2) => String6.pipe(decodeTo2(declaration, transformEffect2({
|
|
23027
23181
|
decode: (input, options) => {
|
|
23028
23182
|
const result6 = parse3(input);
|
|
@@ -23127,7 +23281,7 @@ var UnixPathAddressFromString = /* @__PURE__ */ String6.pipe(decodeTo2(UnixPathA
|
|
|
23127
23281
|
var SocketAddress = /* @__PURE__ */ declare(isSocketAddress, {
|
|
23128
23282
|
identifier: "SocketAddress"
|
|
23129
23283
|
});
|
|
23130
|
-
var
|
|
23284
|
+
var durationFromString2 = /* @__PURE__ */ transformEffect2({
|
|
23131
23285
|
decode: (s, options) => match(fromInput(s), {
|
|
23132
23286
|
onNone: () => fail7(new InvalidValue({
|
|
23133
23287
|
expected: "a valid Duration string"
|
|
@@ -23136,7 +23290,7 @@ var durationFromString = /* @__PURE__ */ transformEffect2({
|
|
|
23136
23290
|
}),
|
|
23137
23291
|
encode: (duration2) => succeed7(globalThis.String(duration2))
|
|
23138
23292
|
});
|
|
23139
|
-
var
|
|
23293
|
+
var durationFromNanos2 = /* @__PURE__ */ transformEffect2({
|
|
23140
23294
|
decode: (i) => succeed7(nanos(i)),
|
|
23141
23295
|
encode: (a, options) => match(toNanos(a), {
|
|
23142
23296
|
onNone: () => fail7(new InvalidValue({
|
|
@@ -23145,7 +23299,7 @@ var durationFromNanos = /* @__PURE__ */ transformEffect2({
|
|
|
23145
23299
|
onSome: (nanos2) => succeed7(nanos2)
|
|
23146
23300
|
})
|
|
23147
23301
|
});
|
|
23148
|
-
var
|
|
23302
|
+
var durationFromMillis2 = /* @__PURE__ */ transform3({
|
|
23149
23303
|
decode: (i) => millis(i),
|
|
23150
23304
|
encode: (a) => toMillis(a)
|
|
23151
23305
|
});
|
|
@@ -23210,9 +23364,9 @@ var Duration = /* @__PURE__ */ declare(isDuration, {
|
|
|
23210
23364
|
var DurationString = /* @__PURE__ */ String6.annotate({
|
|
23211
23365
|
expected: "a string that will be decoded as a Duration"
|
|
23212
23366
|
});
|
|
23213
|
-
var DurationFromString = /* @__PURE__ */ DurationString.pipe(/* @__PURE__ */ decodeTo2(Duration,
|
|
23214
|
-
var DurationFromNanos = /* @__PURE__ */ BigInt6.pipe(/* @__PURE__ */ decodeTo2(Duration,
|
|
23215
|
-
var DurationFromMillis = /* @__PURE__ */ Number6.pipe(/* @__PURE__ */ decodeTo2(Duration,
|
|
23367
|
+
var DurationFromString = /* @__PURE__ */ DurationString.pipe(/* @__PURE__ */ decodeTo2(Duration, durationFromString2));
|
|
23368
|
+
var DurationFromNanos = /* @__PURE__ */ BigInt6.pipe(/* @__PURE__ */ decodeTo2(Duration, durationFromNanos2));
|
|
23369
|
+
var DurationFromMillis = /* @__PURE__ */ Number6.pipe(/* @__PURE__ */ decodeTo2(Duration, durationFromMillis2));
|
|
23216
23370
|
function Exit(value6, error, defect) {
|
|
23217
23371
|
const schema2 = declareConstructor()([value6, error, defect], ([value7, error2, defect2]) => {
|
|
23218
23372
|
const cause = Cause(error2, defect2);
|
|
@@ -30988,6 +31142,7 @@ export {
|
|
|
30988
31142
|
SchemaGetter_exports,
|
|
30989
31143
|
transformEffect2 as transformEffect,
|
|
30990
31144
|
transform3 as transform,
|
|
31145
|
+
SchemaTransformation_exports,
|
|
30991
31146
|
isNull2 as isNull,
|
|
30992
31147
|
isVoid,
|
|
30993
31148
|
isLiteral,
|
package/js/client.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppUiApi,
|
|
3
3
|
UiContext,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
4
|
+
UiFailed,
|
|
5
|
+
UiVersionChanged
|
|
6
|
+
} from "./chunk-74H25C4X.js";
|
|
7
7
|
import {
|
|
8
8
|
AsyncResult_exports,
|
|
9
9
|
AtomRegistry_exports,
|
|
10
10
|
Atom_exports,
|
|
11
11
|
queryResult
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KLSEU35Y.js";
|
|
13
13
|
import {
|
|
14
14
|
decoderOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RKFLB36H.js";
|
|
16
16
|
import {
|
|
17
17
|
OtlpExporter_exports,
|
|
18
18
|
externalTrace,
|
|
19
19
|
pendingSpan,
|
|
20
20
|
telemetryLayer,
|
|
21
21
|
traceLinks
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-URKOTNDA.js";
|
|
23
23
|
import {
|
|
24
24
|
FetchHttpClient_exports
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-YDW7DX3A.js";
|
|
26
|
+
import "./chunk-OWN3DP2W.js";
|
|
27
27
|
import {
|
|
28
28
|
JsonValue
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7HG422GB.js";
|
|
30
30
|
import {
|
|
31
31
|
HttpApiClient_exports
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-DILSCQPJ.js";
|
|
33
33
|
import {
|
|
34
34
|
HttpClientError_exports
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ACQXVKVQ.js";
|
|
36
36
|
import {
|
|
37
37
|
Cause_exports,
|
|
38
38
|
Clock_exports,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
Semaphore_exports,
|
|
52
52
|
Stream_exports,
|
|
53
53
|
Tracer_exports
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ZKDXML77.js";
|
|
55
55
|
import "./chunk-CZ7CSFO4.js";
|
|
56
56
|
|
|
57
57
|
// src/contracts/live.ts
|
|
@@ -840,7 +840,7 @@ var createAppClient = () => {
|
|
|
840
840
|
browserSettings("/_executor/api/telemetry", "executor-app-web")
|
|
841
841
|
);
|
|
842
842
|
const browser = atoms(Layer_exports.empty);
|
|
843
|
-
const
|
|
843
|
+
const versionChanged = Effect_exports.sync(() => {
|
|
844
844
|
window.dispatchEvent(new Event("executor:deployment-changed"));
|
|
845
845
|
});
|
|
846
846
|
let pendingWrites = 0;
|
|
@@ -882,7 +882,7 @@ var createAppClient = () => {
|
|
|
882
882
|
const value = yield* api.ui[kind]({ payload: yield* payload(name, input) });
|
|
883
883
|
return yield* Schema_exports.decodeUnknownEffect(decoderOf(output))(value);
|
|
884
884
|
}).pipe(
|
|
885
|
-
Effect_exports.tapErrorTag("UiDeploymentChanged", () =>
|
|
885
|
+
Effect_exports.tapErrorTag("UiDeploymentChanged", () => versionChanged),
|
|
886
886
|
Effect_exports.withSpan(`ui.app.${kind}`, { attributes: { "executor.operation.name": name } })
|
|
887
887
|
);
|
|
888
888
|
const source = (name, input, output) => browser.atom(
|
|
@@ -993,9 +993,9 @@ var createAppClient = () => {
|
|
|
993
993
|
})
|
|
994
994
|
).pipe(
|
|
995
995
|
// Keep the last snapshot while the watcher replaces the document.
|
|
996
|
-
// Unmount or client disposal interrupts the
|
|
996
|
+
// Unmount or client disposal interrupts the version-change wait.
|
|
997
997
|
Stream_exports.catch(
|
|
998
|
-
(error) => Schema_exports.is(
|
|
998
|
+
(error) => Schema_exports.is(UiVersionChanged)(error) ? Stream_exports.unwrap(versionChanged.pipe(Effect_exports.as(Stream_exports.never))) : Stream_exports.fail(error)
|
|
999
999
|
),
|
|
1000
1000
|
Stream_exports.tap(
|
|
1001
1001
|
(value) => Effect_exports.sync(() => {
|
package/js/contracts.js
CHANGED
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
skillCatalog,
|
|
179
179
|
skillsCommand,
|
|
180
180
|
workflowDurationMillis
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-6WC2OWHV.js";
|
|
182
182
|
import {
|
|
183
183
|
AppSkillMetadata,
|
|
184
184
|
AppSkillName,
|
|
@@ -190,15 +190,15 @@ import {
|
|
|
190
190
|
SkillServiceName,
|
|
191
191
|
skillFormatLimits,
|
|
192
192
|
skillLoadLimits
|
|
193
|
-
} from "./chunk-
|
|
194
|
-
import "./chunk-
|
|
193
|
+
} from "./chunk-4PIQKACY.js";
|
|
194
|
+
import "./chunk-OWN3DP2W.js";
|
|
195
195
|
import {
|
|
196
196
|
AccountId,
|
|
197
197
|
HttpUrl
|
|
198
|
-
} from "./chunk-
|
|
199
|
-
import "./chunk-
|
|
200
|
-
import "./chunk-
|
|
201
|
-
import "./chunk-
|
|
198
|
+
} from "./chunk-7HG422GB.js";
|
|
199
|
+
import "./chunk-DILSCQPJ.js";
|
|
200
|
+
import "./chunk-ACQXVKVQ.js";
|
|
201
|
+
import "./chunk-ZKDXML77.js";
|
|
202
202
|
import "./chunk-CZ7CSFO4.js";
|
|
203
203
|
export {
|
|
204
204
|
AccountCheckCommand,
|
package/js/effect.js
CHANGED
|
@@ -3,35 +3,35 @@ import {
|
|
|
3
3
|
ApprovalDecision,
|
|
4
4
|
createAppHandler,
|
|
5
5
|
prepareElicitation
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-FA5MLNYL.js";
|
|
7
|
+
import "./chunk-JJZZLNJY.js";
|
|
8
|
+
import "./chunk-DYE2CKHG.js";
|
|
9
|
+
import "./chunk-2GPX2E57.js";
|
|
10
|
+
import "./chunk-PBGPES67.js";
|
|
11
|
+
import "./chunk-TNVB3KLB.js";
|
|
12
|
+
import "./chunk-6F3WAXVN.js";
|
|
13
|
+
import "./chunk-MN5XVRKW.js";
|
|
14
14
|
import {
|
|
15
15
|
ToolAnnotations
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-6WC2OWHV.js";
|
|
17
|
+
import "./chunk-4PIQKACY.js";
|
|
18
18
|
import {
|
|
19
19
|
compileJsonSchemaDecoder,
|
|
20
20
|
decoderOf,
|
|
21
21
|
jsonSchemaDecoder,
|
|
22
22
|
wrap
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-RKFLB36H.js";
|
|
24
|
+
import "./chunk-URKOTNDA.js";
|
|
25
|
+
import "./chunk-YDW7DX3A.js";
|
|
26
|
+
import "./chunk-OWN3DP2W.js";
|
|
27
27
|
import {
|
|
28
28
|
HttpUrl,
|
|
29
29
|
JsonObject,
|
|
30
30
|
ValidationError
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-7HG422GB.js";
|
|
32
|
+
import "./chunk-DILSCQPJ.js";
|
|
33
|
+
import "./chunk-ACQXVKVQ.js";
|
|
34
|
+
import "./chunk-ZKDXML77.js";
|
|
35
35
|
import "./chunk-CZ7CSFO4.js";
|
|
36
36
|
export {
|
|
37
37
|
ApprovalDecision,
|