apps 0.0.1-beta.36 → 0.0.1-beta.38
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/framework-reference.json +1 -1
- package/js/{chunk-KOOJUMLR.js → chunk-3MMG2H6M.js} +2 -2
- package/js/{chunk-XEXUHXC3.js → chunk-3V575NIW.js} +226 -18
- package/js/{chunk-KZFV3WCJ.js → chunk-5P2WQRRM.js} +385 -56
- package/js/{chunk-4U2VUDET.js → chunk-5TJA7364.js} +2 -2
- package/js/{chunk-BKJDZYK7.js → chunk-7CSHVXVR.js} +3 -3
- package/js/{chunk-ZQWDOHEO.js → chunk-BO4US6DZ.js} +9 -49
- package/js/{chunk-A4O72Z3A.js → chunk-DKUEYTYD.js} +167 -30
- package/js/{chunk-UBAKWXAJ.js → chunk-DWMEIU2L.js} +411 -94
- package/js/{chunk-ENJCQWVF.js → chunk-E4BWL7KQ.js} +3 -3
- package/js/{chunk-CZLCA2O4.js → chunk-F3TBO2U3.js} +7 -94
- package/js/{chunk-POOIHRPF.js → chunk-GHXRRFZA.js} +11 -34
- package/js/{chunk-RSNZDT4L.js → chunk-JTMDWPCH.js} +2 -2
- package/js/{chunk-YW333DH3.js → chunk-KANDIVIH.js} +4 -4
- package/js/chunk-KAQD3DTI.js +16 -0
- package/js/{chunk-556EWA6P.js → chunk-MLHNVYHT.js} +17 -4
- package/js/{chunk-IJQ5LE74.js → chunk-MXDKXAY4.js} +363 -401
- package/js/{chunk-A2NN45C7.js → chunk-NROBHRTG.js} +7 -7
- package/js/{chunk-BI6R577B.js → chunk-P7MGDPFD.js} +2 -2
- package/js/{chunk-SRB2WDU7.js → chunk-Q4QZDB2F.js} +3 -3
- package/js/{chunk-JU7F4PRK.js → chunk-RIXVGVA6.js} +2 -2
- package/js/{chunk-WAGGHNWH.js → chunk-RJCWJNCH.js} +9 -9
- package/js/{chunk-WMVTBHGK.js → chunk-U5PFZDVB.js} +2 -2
- package/js/{chunk-PHO7HXTC.js → chunk-VIU2XXA7.js} +294 -47
- package/js/{chunk-TADLIUEU.js → chunk-VJQXXOQ3.js} +2 -2
- package/js/{chunk-NHCFIWN5.js → chunk-W2NV54JD.js} +1 -1
- package/js/{chunk-BI45HZWM.js → chunk-YQ35E7KS.js} +1 -1
- package/js/{chunk-WDBUOIWV.js → chunk-ZUKBIHMK.js} +3 -3
- package/js/client.js +13 -16
- package/js/contracts.js +16 -20
- package/js/effect.js +19 -23
- package/js/graphql.js +21 -25
- package/js/host.js +19 -23
- package/js/index.js +13 -25
- package/js/mcp/effect.js +21 -25
- package/js/mcp/stdio.js +21 -25
- package/js/mcp.js +23 -27
- package/js/openapi.js +17 -20
- package/js/react.js +2 -3
- package/js/skills/effect.js +6 -6
- package/js/skills.js +15 -16
- package/js/storage/facet.js +1 -214
- package/js/ui/auth/contracts.js +2 -2
- package/js/ui/auth.js +5 -5
- package/js/ui/contracts.js +5 -6
- package/js/ui/serving.js +10 -10
- package/package.json +1 -2
- package/runtime.json +1 -1
- package/types/apps/src/contracts/app.d.ts +0 -2
- package/types/apps/src/contracts/context.d.ts +12 -11
- package/types/apps/src/contracts/host.d.ts +10 -8
- package/types/apps/src/contracts/live.d.ts +2 -0
- package/types/apps/src/contracts/operations.d.ts +3 -3
- package/types/apps/src/contracts/protocol-version.d.ts +2 -2
- package/types/apps/src/contracts/protocols/10.d.ts +1450 -0
- package/types/apps/src/contracts/protocols/4.d.ts +3 -3
- package/types/apps/src/contracts/protocols/5.d.ts +1 -1
- package/types/apps/src/contracts/protocols/6.d.ts +1 -1
- package/types/apps/src/contracts/protocols/7.d.ts +1 -1
- package/types/apps/src/contracts/sql.d.ts +58 -0
- package/types/apps/src/contracts/workflows.d.ts +6 -0
- package/types/apps/src/facet.d.ts +4 -5
- package/types/apps/src/implementation/openapi-compile.d.ts +2 -2
- package/types/apps/src/implementation/schema.d.ts +1 -10
- package/types/apps/src/implementation/sql.d.ts +66 -0
- package/types/apps/src/index.d.ts +1 -2
- package/types/telemetry/src/app-records.d.ts +42 -0
- package/types/telemetry/src/recorded-failure.d.ts +20 -0
- package/types/utils/src/api-error.d.ts +5 -0
- package/types/utils/src/recorded-message.d.ts +15 -0
- package/js/chunk-73AV3JVU.js +0 -186
- package/js/chunk-HDAQBRT5.js +0 -1254
- package/js/chunk-IU7CCCUC.js +0 -630
- package/js/chunk-NHUHTWAF.js +0 -0
- package/js/chunk-V5DWGYRK.js +0 -268
- package/js/chunk-Y3XN4X4Q.js +0 -19
- package/types/app-data/src/implementation/cursor.d.ts +0 -10
- package/types/app-data/src/implementation/index-key.d.ts +0 -7
- package/types/app-data/src/implementation/promise.d.ts +0 -68
- package/types/app-data/src/implementation/range.d.ts +0 -8
- package/types/app-data/src/implementation/schema.d.ts +0 -18
- package/types/app-data/src/implementation/sqlite.d.ts +0 -11
- package/types/app-data/src/index.d.ts +0 -4
- package/types/apps/src/contracts/storage.d.ts +0 -68
- package/types/apps/src/implementation/storage.d.ts +0 -15
|
@@ -160,7 +160,7 @@ import {
|
|
|
160
160
|
pipeThroughChannel,
|
|
161
161
|
provide,
|
|
162
162
|
provide2,
|
|
163
|
-
|
|
163
|
+
provideContext,
|
|
164
164
|
provideMerge,
|
|
165
165
|
redact,
|
|
166
166
|
remove,
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
withFiber,
|
|
212
212
|
withParentSpan,
|
|
213
213
|
zero2 as zero
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-MXDKXAY4.js";
|
|
215
215
|
import {
|
|
216
216
|
__export
|
|
217
217
|
} from "./chunk-CZ7CSFO4.js";
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DatabaseFieldReserved,
|
|
3
|
-
DatabaseLimitExceeded,
|
|
4
|
-
DatabaseSchema
|
|
5
|
-
} from "./chunk-73AV3JVU.js";
|
|
6
1
|
import {
|
|
7
2
|
CacheCommand,
|
|
8
3
|
CacheReply,
|
|
@@ -13,17 +8,20 @@ import {
|
|
|
13
8
|
FailureSource,
|
|
14
9
|
ProviderError,
|
|
15
10
|
UpstreamError
|
|
16
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-P7MGDPFD.js";
|
|
17
12
|
import {
|
|
18
13
|
AppSkillName,
|
|
19
14
|
AppSkills
|
|
20
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MLHNVYHT.js";
|
|
16
|
+
import {
|
|
17
|
+
RecordedMessage
|
|
18
|
+
} from "./chunk-KAQD3DTI.js";
|
|
21
19
|
import {
|
|
22
20
|
AccountId,
|
|
23
21
|
HttpUrl,
|
|
24
22
|
JsonObject as JsonObject2,
|
|
25
23
|
JsonValue
|
|
26
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YQ35E7KS.js";
|
|
27
25
|
import {
|
|
28
26
|
Any,
|
|
29
27
|
ArraySchema,
|
|
@@ -65,7 +63,7 @@ import {
|
|
|
65
63
|
isBetween,
|
|
66
64
|
isSchema,
|
|
67
65
|
isStream,
|
|
68
|
-
|
|
66
|
+
make2 as make,
|
|
69
67
|
merge,
|
|
70
68
|
optional,
|
|
71
69
|
optionalKey,
|
|
@@ -78,7 +76,7 @@ import {
|
|
|
78
76
|
transformOptional,
|
|
79
77
|
withConstructorDefault,
|
|
80
78
|
withDefault
|
|
81
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-MXDKXAY4.js";
|
|
82
80
|
|
|
83
81
|
// src/contracts/api-response-error.ts
|
|
84
82
|
var maxApiErrorInstructionsLength = 4096;
|
|
@@ -171,6 +169,13 @@ var WorkflowFailure = class extends Schema_exports.TaggedError()("WorkflowFailur
|
|
|
171
169
|
]),
|
|
172
170
|
retryable: Schema_exports.Boolean
|
|
173
171
|
}) {
|
|
172
|
+
/**
|
|
173
|
+
* The step name and error detail are the app's. Its run's owner reads them; telemetry records
|
|
174
|
+
* only the reason, however the failure was built or decoded.
|
|
175
|
+
*/
|
|
176
|
+
get [RecordedMessage]() {
|
|
177
|
+
return this.step === void 0 && this.errorName === void 0 && !this.message ? void 0 : `The workflow failed (${this.reason}); the app's error is not recorded`;
|
|
178
|
+
}
|
|
174
179
|
};
|
|
175
180
|
var NonRetryableError = class extends Error {
|
|
176
181
|
name = "NonRetryableError";
|
|
@@ -277,6 +282,177 @@ var WorkflowControlCommand = Schema_exports.Union([
|
|
|
277
282
|
Schema_exports.Struct({ operation: Schema_exports.Literal("terminate"), run: WorkflowRunId })
|
|
278
283
|
]);
|
|
279
284
|
|
|
285
|
+
// ../app-data/src/contracts/database.ts
|
|
286
|
+
var DataName = Schema_exports.String.check(
|
|
287
|
+
Schema_exports.makeFilter((value) => /^[A-Za-z][A-Za-z0-9_]*$/.test(value) && value.length <= 128)
|
|
288
|
+
);
|
|
289
|
+
var Scalar = Schema_exports.Union([Schema_exports.String, Schema_exports.Finite, Schema_exports.Boolean]);
|
|
290
|
+
var Field = Schema_exports.Struct({
|
|
291
|
+
kind: Schema_exports.Literals(["string", "number", "boolean", "id", "userId"]),
|
|
292
|
+
optional: Schema_exports.optional(Schema_exports.Boolean),
|
|
293
|
+
default: Schema_exports.optional(Scalar),
|
|
294
|
+
references: Schema_exports.optional(DataName)
|
|
295
|
+
});
|
|
296
|
+
var Index = Schema_exports.Struct({ name: DataName, fields: Schema_exports.NonEmptyArray(DataName) });
|
|
297
|
+
var Table = Schema_exports.Struct({
|
|
298
|
+
fields: Schema_exports.Record(DataName, Field),
|
|
299
|
+
indexes: Schema_exports.Array(Index)
|
|
300
|
+
});
|
|
301
|
+
var DatabaseSchema = Schema_exports.Record(DataName, Table);
|
|
302
|
+
var Row = Schema_exports.Record(Schema_exports.String, Scalar);
|
|
303
|
+
var RowMetadata = Schema_exports.Struct({
|
|
304
|
+
id: Schema_exports.NonEmptyString,
|
|
305
|
+
createdAt: Schema_exports.String,
|
|
306
|
+
updatedAt: Schema_exports.String
|
|
307
|
+
});
|
|
308
|
+
var Patch = Schema_exports.Record(DataName, Schema_exports.NullOr(Scalar));
|
|
309
|
+
var RangeClause = Schema_exports.Struct({
|
|
310
|
+
field: DataName,
|
|
311
|
+
op: Schema_exports.Literals(["eq", "gt", "gte", "lt", "lte"]),
|
|
312
|
+
value: Schema_exports.NullOr(Scalar)
|
|
313
|
+
});
|
|
314
|
+
var QueryPlan = Schema_exports.Struct({
|
|
315
|
+
table: DataName,
|
|
316
|
+
index: DataName,
|
|
317
|
+
order: Schema_exports.Literals(["asc", "desc"]),
|
|
318
|
+
clauses: Schema_exports.Array(RangeClause)
|
|
319
|
+
});
|
|
320
|
+
var QueryTerminal = Schema_exports.Union([
|
|
321
|
+
Schema_exports.Struct({ kind: Schema_exports.Literal("collect") }),
|
|
322
|
+
Schema_exports.Struct({ kind: Schema_exports.Literal("count") }),
|
|
323
|
+
Schema_exports.Struct({ kind: Schema_exports.Literal("first") }),
|
|
324
|
+
Schema_exports.Struct({
|
|
325
|
+
kind: Schema_exports.Literal("take"),
|
|
326
|
+
count: Schema_exports.Int.check(Schema_exports.isGreaterThanOrEqualTo(0))
|
|
327
|
+
}),
|
|
328
|
+
Schema_exports.Struct({
|
|
329
|
+
kind: Schema_exports.Literal("paginate"),
|
|
330
|
+
cursor: Schema_exports.NullOr(Schema_exports.String),
|
|
331
|
+
numItems: Schema_exports.Int.check(Schema_exports.isGreaterThan(0))
|
|
332
|
+
})
|
|
333
|
+
]);
|
|
334
|
+
var DatabaseOperation = Schema_exports.Union([
|
|
335
|
+
Schema_exports.Struct({ kind: Schema_exports.Literal("get"), table: DataName, id: Schema_exports.NonEmptyString }),
|
|
336
|
+
Schema_exports.Struct({ kind: Schema_exports.Literal("insert"), table: DataName, value: Patch }),
|
|
337
|
+
Schema_exports.Struct({
|
|
338
|
+
kind: Schema_exports.Literal("update"),
|
|
339
|
+
table: DataName,
|
|
340
|
+
id: Schema_exports.NonEmptyString,
|
|
341
|
+
patch: Patch
|
|
342
|
+
}),
|
|
343
|
+
Schema_exports.Struct({ kind: Schema_exports.Literal("delete"), table: DataName, id: Schema_exports.NonEmptyString }),
|
|
344
|
+
Schema_exports.Struct({ kind: Schema_exports.Literal("query"), plan: QueryPlan, terminal: QueryTerminal })
|
|
345
|
+
]);
|
|
346
|
+
var PaginationResult = Schema_exports.Struct({
|
|
347
|
+
page: Schema_exports.Array(Row),
|
|
348
|
+
continueCursor: Schema_exports.NullOr(Schema_exports.String),
|
|
349
|
+
isDone: Schema_exports.Boolean
|
|
350
|
+
});
|
|
351
|
+
var OperationResult = Schema_exports.Union([
|
|
352
|
+
Row,
|
|
353
|
+
Schema_exports.Array(Row),
|
|
354
|
+
PaginationResult,
|
|
355
|
+
Schema_exports.Boolean,
|
|
356
|
+
Schema_exports.Finite,
|
|
357
|
+
Schema_exports.Null
|
|
358
|
+
]);
|
|
359
|
+
var AppDatabaseError = class extends Schema_exports.TaggedError()("AppDatabaseError", {
|
|
360
|
+
reason: Schema_exports.Literals([
|
|
361
|
+
"schema",
|
|
362
|
+
"schema_changed",
|
|
363
|
+
"table",
|
|
364
|
+
"index",
|
|
365
|
+
"range",
|
|
366
|
+
"value",
|
|
367
|
+
"readonly",
|
|
368
|
+
"cursor",
|
|
369
|
+
"limit",
|
|
370
|
+
"closed",
|
|
371
|
+
"storage",
|
|
372
|
+
"replay"
|
|
373
|
+
])
|
|
374
|
+
}) {
|
|
375
|
+
};
|
|
376
|
+
var DatabaseLimits = Schema_exports.Struct({
|
|
377
|
+
rowsRead: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
378
|
+
rowsReturned: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
379
|
+
bytesRead: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
380
|
+
writes: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
381
|
+
scanCalls: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
382
|
+
directGets: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
383
|
+
valueBytes: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
384
|
+
indexBytes: Schema_exports.Int.check(Schema_exports.isGreaterThan(0))
|
|
385
|
+
});
|
|
386
|
+
var defaultDatabaseLimits = {
|
|
387
|
+
rowsRead: 5e3,
|
|
388
|
+
rowsReturned: 1e3,
|
|
389
|
+
bytesRead: 4 * 1024 * 1024,
|
|
390
|
+
writes: 1e3,
|
|
391
|
+
scanCalls: 100,
|
|
392
|
+
directGets: 1e3,
|
|
393
|
+
valueBytes: 64 * 1024,
|
|
394
|
+
indexBytes: 2048
|
|
395
|
+
};
|
|
396
|
+
var DatabaseLimit = Schema_exports.Literals([
|
|
397
|
+
"scanCalls",
|
|
398
|
+
"directGets",
|
|
399
|
+
"rowsRead",
|
|
400
|
+
"rowsReturned",
|
|
401
|
+
"pageSize",
|
|
402
|
+
"bytesRead",
|
|
403
|
+
"writes",
|
|
404
|
+
"valueBytes"
|
|
405
|
+
]);
|
|
406
|
+
var count = (value) => value.toLocaleString("en-US");
|
|
407
|
+
var limitMessages = {
|
|
408
|
+
scanCalls: (maximum, requested) => `This invocation made ${count(requested)} index queries; the limit is ${count(maximum)}. Each first(), take(), collect(), count() or paginate() call on withIndex(...) counts once. Read related rows with one take() or paginate() over a shared index prefix instead of one first() per item, use get(id) for known IDs, or split the work across workflow steps.`,
|
|
409
|
+
directGets: (maximum, requested) => `This invocation made ${count(requested)} get(id) calls, including those made by update and delete; the limit is ${count(maximum)}. Split the work across workflow steps or mutations.`,
|
|
410
|
+
rowsRead: (maximum, requested) => `This invocation read ${count(requested)} rows; the limit is ${count(maximum)}. Read fewer rows per call, through an index or a LIMIT, or split the work across calls or workflow steps.`,
|
|
411
|
+
rowsReturned: (maximum, requested) => `This invocation returned ${count(requested)} rows; the limit is ${count(maximum)}. collect() fails rather than truncating. Page with paginate() across calls or workflow steps.`,
|
|
412
|
+
pageSize: (maximum, requested) => `One call asked for ${count(requested)} rows; take(n) and paginate({ numItems }) accept at most ${count(maximum)}. Page with paginate() across calls or workflow steps.`,
|
|
413
|
+
bytesRead: (maximum, requested) => `This invocation read ${count(requested)} bytes; the limit is ${count(maximum)}. Read fewer or smaller rows per call, or page with paginate() across calls or workflow steps.`,
|
|
414
|
+
writes: (maximum, requested) => `This invocation wrote ${count(requested)} rows; the limit is ${count(maximum)}. Split large ingests into batches, one batch per mutation or workflow step.`,
|
|
415
|
+
valueBytes: (maximum, requested) => `A row encodes to ${count(requested)} bytes; each row may use at most ${count(maximum)}. Store large content outside the row or split it across rows.`
|
|
416
|
+
};
|
|
417
|
+
var DatabaseLimitExceeded = class extends Schema_exports.TaggedError()(
|
|
418
|
+
"DatabaseLimitExceeded",
|
|
419
|
+
{
|
|
420
|
+
limit: DatabaseLimit,
|
|
421
|
+
maximum: Schema_exports.Int,
|
|
422
|
+
requested: Schema_exports.Int
|
|
423
|
+
}
|
|
424
|
+
) {
|
|
425
|
+
get message() {
|
|
426
|
+
return limitMessages[this.limit](this.maximum, this.requested);
|
|
427
|
+
}
|
|
428
|
+
};
|
|
429
|
+
var reservedFieldNames = ["id", "createdAt", "updatedAt"];
|
|
430
|
+
var DatabaseFieldReserved = class extends Schema_exports.TaggedError()(
|
|
431
|
+
"DatabaseFieldReserved",
|
|
432
|
+
{
|
|
433
|
+
table: Schema_exports.String,
|
|
434
|
+
field: Schema_exports.Literals(reservedFieldNames)
|
|
435
|
+
}
|
|
436
|
+
) {
|
|
437
|
+
get message() {
|
|
438
|
+
return `Table "${this.table}" declares "${this.field}", which is reserved: the host adds id, createdAt and updatedAt to every row. Rename the field, or use the row's own ${this.field}.`;
|
|
439
|
+
}
|
|
440
|
+
};
|
|
441
|
+
var DatabaseRuntimeLimits = Schema_exports.Struct({
|
|
442
|
+
maxCursorChars: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
443
|
+
connectionCacheCapacity: Schema_exports.Int.check(Schema_exports.isGreaterThan(0)),
|
|
444
|
+
connectionCacheTtlMs: Schema_exports.Int.check(Schema_exports.isGreaterThan(0))
|
|
445
|
+
});
|
|
446
|
+
var defaultDatabaseRuntimeLimits = DatabaseRuntimeLimits.make({
|
|
447
|
+
maxCursorChars: 8192,
|
|
448
|
+
connectionCacheCapacity: 64,
|
|
449
|
+
connectionCacheTtlMs: 5 * 60 * 1e3
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
// src/contracts/sql.ts
|
|
453
|
+
var reservedTablePrefix = "_executor_";
|
|
454
|
+
var migrationsDirectory = "migrations";
|
|
455
|
+
|
|
280
456
|
// ../../node_modules/.bun/effect@4.0.1/node_modules/effect/dist/rpc/RpcSchema.js
|
|
281
457
|
var StreamSchemaTypeId = "~effect/rpc/RpcSchema/StreamSchema";
|
|
282
458
|
var schema = /* @__PURE__ */ declare(isStream);
|
|
@@ -1963,7 +2139,7 @@ var ManyAccounts = class extends Data_exports.TaggedClass("many") {
|
|
|
1963
2139
|
};
|
|
1964
2140
|
|
|
1965
2141
|
// src/contracts/protocol-version.ts
|
|
1966
|
-
var frameworkProtocol =
|
|
2142
|
+
var frameworkProtocol = 10;
|
|
1967
2143
|
|
|
1968
2144
|
// src/contracts/protocols/oauth.ts
|
|
1969
2145
|
var OAuthClientAuth2 = Schema_exports.Literals([
|
|
@@ -2089,12 +2265,12 @@ var OAuth2Config2 = Schema_exports.Union([
|
|
|
2089
2265
|
|
|
2090
2266
|
// src/contracts/schedules.ts
|
|
2091
2267
|
var minimumIntervalMilliseconds = 6e4;
|
|
2092
|
-
var
|
|
2268
|
+
var count2 = Schema_exports.Int.check(Schema_exports.isGreaterThan(0));
|
|
2093
2269
|
var absent = Schema_exports.optionalKey(Schema_exports.Never);
|
|
2094
2270
|
var Interval = Schema_exports.Union([
|
|
2095
|
-
Schema_exports.Struct({ seconds:
|
|
2096
|
-
Schema_exports.Struct({ seconds: absent, minutes:
|
|
2097
|
-
Schema_exports.Struct({ seconds: absent, minutes: absent, hours:
|
|
2271
|
+
Schema_exports.Struct({ seconds: count2, minutes: absent, hours: absent }),
|
|
2272
|
+
Schema_exports.Struct({ seconds: absent, minutes: count2, hours: absent }),
|
|
2273
|
+
Schema_exports.Struct({ seconds: absent, minutes: absent, hours: count2 })
|
|
2098
2274
|
]);
|
|
2099
2275
|
var CalendarSchedule = Schema_exports.Struct({
|
|
2100
2276
|
expression: Schema_exports.NonEmptyString,
|
|
@@ -2996,6 +3172,31 @@ var protocol9 = {
|
|
|
2996
3172
|
}
|
|
2997
3173
|
};
|
|
2998
3174
|
|
|
3175
|
+
// src/contracts/protocols/10.ts
|
|
3176
|
+
var DeclaredRequirements5 = Schema_exports.Struct({
|
|
3177
|
+
...DeclaredRequirements4.fields,
|
|
3178
|
+
sql: Schema_exports.optionalKey(Schema_exports.Literal(true))
|
|
3179
|
+
});
|
|
3180
|
+
var MigrateCommand = Schema_exports.Struct({ operation: Schema_exports.Literal("migrate") });
|
|
3181
|
+
var MigrateResult = Schema_exports.Array(
|
|
3182
|
+
Schema_exports.Struct({ id: Schema_exports.Int, name: Schema_exports.NonEmptyString })
|
|
3183
|
+
);
|
|
3184
|
+
var HostRequest4 = Schema_exports.Union([...HostRequest3.members, MigrateCommand]);
|
|
3185
|
+
var HostInvocation6 = Schema_exports.Struct({
|
|
3186
|
+
...HostInvocation5.fields,
|
|
3187
|
+
command: HostRequest4
|
|
3188
|
+
});
|
|
3189
|
+
var protocol10 = {
|
|
3190
|
+
version: 10,
|
|
3191
|
+
schemas: {
|
|
3192
|
+
...protocol9.schemas,
|
|
3193
|
+
request: HostRequest4,
|
|
3194
|
+
requirements: DeclaredRequirements5,
|
|
3195
|
+
invocation: HostInvocation6,
|
|
3196
|
+
migrate: MigrateResult
|
|
3197
|
+
}
|
|
3198
|
+
};
|
|
3199
|
+
|
|
2999
3200
|
// src/contracts/host.ts
|
|
3000
3201
|
var skillsCommand = (sources) => sources ? { operation: "skills", sources: true } : { operation: "skills" };
|
|
3001
3202
|
var skillCatalog = (response) => Schema_exports.is(SkillSources2)(response) ? response : { skills: response };
|
|
@@ -3090,6 +3291,10 @@ export {
|
|
|
3090
3291
|
WorkflowRpcCommand,
|
|
3091
3292
|
WorkflowRpcResult,
|
|
3092
3293
|
WorkflowControlCommand,
|
|
3294
|
+
DatabaseLimitExceeded,
|
|
3295
|
+
DatabaseFieldReserved,
|
|
3296
|
+
reservedTablePrefix,
|
|
3297
|
+
migrationsDirectory,
|
|
3093
3298
|
ElicitationLimits,
|
|
3094
3299
|
defaultElicitationLimits,
|
|
3095
3300
|
FormElicitation,
|
|
@@ -3153,16 +3358,13 @@ export {
|
|
|
3153
3358
|
HostKindMismatch,
|
|
3154
3359
|
protocol4,
|
|
3155
3360
|
AccountCheckCommand,
|
|
3156
|
-
HostRequest3 as HostRequest,
|
|
3157
3361
|
protocol5,
|
|
3158
3362
|
protocol6,
|
|
3159
3363
|
CredentialHost,
|
|
3160
3364
|
DeclaredAuthMethod3 as DeclaredAuthMethod,
|
|
3161
3365
|
DeclaredProvider3 as DeclaredProvider,
|
|
3162
|
-
DeclaredRequirements4 as DeclaredRequirements,
|
|
3163
3366
|
ResolvedAccount3 as ResolvedAccount,
|
|
3164
3367
|
ResolvedAccounts3 as ResolvedAccounts,
|
|
3165
|
-
HostInvocation5 as HostInvocation,
|
|
3166
3368
|
protocol7,
|
|
3167
3369
|
HostDeclarationInvalid3 as HostDeclarationInvalid,
|
|
3168
3370
|
HostEvaluationFailed3 as HostEvaluationFailed,
|
|
@@ -3177,6 +3379,12 @@ export {
|
|
|
3177
3379
|
HostError5 as HostError,
|
|
3178
3380
|
HostResponse5 as HostResponse,
|
|
3179
3381
|
protocol9,
|
|
3382
|
+
DeclaredRequirements5 as DeclaredRequirements,
|
|
3383
|
+
MigrateCommand,
|
|
3384
|
+
MigrateResult,
|
|
3385
|
+
HostRequest4 as HostRequest,
|
|
3386
|
+
HostInvocation6 as HostInvocation,
|
|
3387
|
+
protocol10,
|
|
3180
3388
|
skillsCommand,
|
|
3181
3389
|
skillCatalog,
|
|
3182
3390
|
inspectCommand,
|