@midsummer-ai/sdk 0.1.0-staging.3491 → 0.1.0-staging.3497
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/ai/index.mjs +1 -1
- package/client.d.mts +1 -1
- package/client.mjs +1 -1
- package/contract.d.mts +1 -1
- package/contract.mjs +1 -1
- package/database/stand-in.d.mts +1 -1
- package/database/stand-in.mjs +1 -1
- package/email/client.mjs +1 -1
- package/email/contract.mjs +1 -1
- package/email/index.mjs +1 -1
- package/email/smtp.mjs +1 -1
- package/email/stand-in.mjs +1 -1
- package/{email-DkEDxvot.mjs → email-4iedeyjF.mjs} +1 -1
- package/{here-CLbmaWH4.mjs → here-1plIxb0D.mjs} +1 -1
- package/{index-BNxl2RLQ.d.mts → index-CXiY5knc.d.mts} +1 -1
- package/index.d.mts +1 -1
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/queues/index.d.mts +1 -1
- package/queues/index.mjs +2 -2
- package/s3.d.mts +1 -1
- package/s3.mjs +1 -1
- package/socket.d.mts +1 -1
- package/socket.mjs +1 -1
- package/{src-BfPJG4Zj.mjs → src-BKKy9km-.mjs} +2 -2
- package/stand-in.d.mts +1 -1
- package/storage/files.d.mts +1 -1
- package/vector/index.mjs +1 -1
- package/wire.d.mts +1 -1
package/ai/index.mjs
CHANGED
package/client.d.mts
CHANGED
package/client.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as FRAMES_PATH, c as serveSigned, l as signedHttp, o as SOCKET_PATH, s as client } from "./src-
|
|
1
|
+
import { a as FRAMES_PATH, c as serveSigned, l as signedHttp, o as SOCKET_PATH, s as client } from "./src-BKKy9km-.mjs";
|
|
2
2
|
export { FRAMES_PATH, SOCKET_PATH, client, serveSigned, signedHttp };
|
package/contract.d.mts
CHANGED
package/contract.mjs
CHANGED
package/database/stand-in.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Storage } from "../index-
|
|
1
|
+
import { p as Storage } from "../index-CXiY5knc.mjs";
|
|
2
2
|
import { t as AuthConfig } from "../auth-B7rCtXFQ.mjs";
|
|
3
3
|
import { a as FileMetadata, c as FunctionReference, d as HttpRouter, n as CronJob, s as FunctionKind, v as RegisteredFunction, y as Row } from "../server-B5HK2Ou9.mjs";
|
|
4
4
|
import { r as Built } from "../build-BhmOZmGQ.mjs";
|
package/database/stand-in.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as storage } from "../src-
|
|
1
|
+
import { r as storage } from "../src-BKKy9km-.mjs";
|
|
2
2
|
import { standIn } from "../stand-in.mjs";
|
|
3
3
|
import { _ as shapeError, a as tagBytes, b as valueAt, f as indexFields, g as shapeAt, i as keyBytes, o as untagBytes, v as tableCode } from "../bytes-C2pcyl9u.mjs";
|
|
4
4
|
import { A as comparePrefix, M as indexTuple, O as valueKey, S as nextCron, T as readLimited, _ as isFunction, a as Refusal, b as limits, i as NotFoundError, j as documentBytes, k as compareKey, l as fetchOver, o as TooLarge, r as InsufficientError, y as isRouter } from "../server-Drjni3-F.mjs";
|
package/email/client.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { d as MESSAGES_PATH, f as boundEmail, h as serveMessages, m as serveBound, p as client } from "../email-
|
|
1
|
+
import { d as MESSAGES_PATH, f as boundEmail, h as serveMessages, m as serveBound, p as client } from "../email-4iedeyjF.mjs";
|
|
2
2
|
export { MESSAGES_PATH, boundEmail, client, serveBound, serveMessages };
|
package/email/contract.mjs
CHANGED
package/email/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MAX_MESSAGE_BYTES, c as checkMessage, i as MAX_BATCH, l as email, n as MAX_ATTACHMENTS, o as MAX_RECIPIENTS, r as MAX_ATTACHMENT_BYTES, s as addressOf, t as EmailError, u as verifyWebhook } from "../email-
|
|
1
|
+
import { a as MAX_MESSAGE_BYTES, c as checkMessage, i as MAX_BATCH, l as email, n as MAX_ATTACHMENTS, o as MAX_RECIPIENTS, r as MAX_ATTACHMENT_BYTES, s as addressOf, t as EmailError, u as verifyWebhook } from "../email-4iedeyjF.mjs";
|
|
2
2
|
export { EmailError, MAX_ATTACHMENTS, MAX_ATTACHMENT_BYTES, MAX_BATCH, MAX_MESSAGE_BYTES, MAX_RECIPIENTS, addressOf, checkMessage, email, verifyWebhook };
|
package/email/smtp.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as email, p as client, t as EmailError } from "../email-
|
|
1
|
+
import { l as email, p as client, t as EmailError } from "../email-4iedeyjF.mjs";
|
|
2
2
|
import { createServer } from "node:net";
|
|
3
3
|
import { createServer as createServer$1 } from "node:tls";
|
|
4
4
|
//#region src/email/smtp.ts
|
package/email/stand-in.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as addressOf, t as EmailError } from "../email-
|
|
1
|
+
import { s as addressOf, t as EmailError } from "../email-4iedeyjF.mjs";
|
|
2
2
|
//#region src/email/stand-in.ts
|
|
3
3
|
/**
|
|
4
4
|
* Email's Stand-in: the Capability's behaviour in memory, for `midsummer dev` and tests. It sends
|
|
@@ -26,7 +26,7 @@ function late(current) {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Where a run's frames go when Midsummer gave it a Workload session (`MIDSUMMER_IDENTITY_REQUEST_TOKEN`), as a CI run,
|
|
29
|
-
* an agent's
|
|
29
|
+
* an agent's dev server and `midsummer dev --view` have: `path` on the API its identity token comes from, sent with
|
|
30
30
|
* the session's token, so `bucket` and `queue` reach what its environment binds, and a view's own copies on a view.
|
|
31
31
|
* Undefined outside one. `fail` makes the product's own error: `forbidden` for a session that has ended, `unavailable`
|
|
32
32
|
* for an API that can't be reached.
|
|
@@ -210,7 +210,7 @@ interface EngineList {
|
|
|
210
210
|
declare const WORKLOAD_PATH = "/storage/workload";
|
|
211
211
|
/**
|
|
212
212
|
* The bucket the environment binds under `name`, from code in a deployment in any framework, in a run
|
|
213
|
-
* Midsummer starts (a CI run, an agent's
|
|
213
|
+
* Midsummer starts (a CI run, an agent's dev server, `midsummer dev --view`; a view's own folder on
|
|
214
214
|
* a view), or `midsummer dev`'s bucket of that name. Code that runs outside Midsummer connects with a storage
|
|
215
215
|
* key instead: `storage(client(origin, { key, secret }))`.
|
|
216
216
|
*/
|
package/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as StorageErrorReason, S as StorageErrorCode, _ as WORKLOAD_PATH, a as ListOptions, b as streamsOf, c as ObjectStream, d as PutOptions, f as Range, g as Usage, h as StoredObject, i as EnginePut, l as Operations, m as StorageEngine, n as Bucket, o as Listing, p as Storage, r as EngineList, s as ObjectRead, t as Body, u as Part, v as bucket, x as StorageError, y as storage } from "./index-
|
|
1
|
+
import { C as StorageErrorReason, S as StorageErrorCode, _ as WORKLOAD_PATH, a as ListOptions, b as streamsOf, c as ObjectStream, d as PutOptions, f as Range, g as Usage, h as StoredObject, i as EnginePut, l as Operations, m as StorageEngine, n as Bucket, o as Listing, p as Storage, r as EngineList, s as ObjectRead, t as Body, u as Part, v as bucket, x as StorageError, y as storage } from "./index-CXiY5knc.mjs";
|
|
2
2
|
export { Body, Bucket, EngineList, EnginePut, ListOptions, Listing, ObjectRead, ObjectStream, Operations, Part, PutOptions, Range, Storage, StorageEngine, StorageError, type StorageErrorCode, type StorageErrorReason, StoredObject, Usage, WORKLOAD_PATH, bucket, storage, streamsOf };
|
package/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as StorageError } from "./errors-B1tO_wdm.mjs";
|
|
2
|
-
import { i as streamsOf, n as bucket, r as storage, t as WORKLOAD_PATH } from "./src-
|
|
2
|
+
import { i as streamsOf, n as bucket, r as storage, t as WORKLOAD_PATH } from "./src-BKKy9km-.mjs";
|
|
3
3
|
export { StorageError, WORKLOAD_PATH, bucket, storage, streamsOf };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midsummer-ai/sdk",
|
|
3
|
-
"version": "0.1.0-staging.
|
|
3
|
+
"version": "0.1.0-staging.3497",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Midsummer's handles for an app's code: its Database, Storage, Queues, Vector DB, AI, Email and Agents, with stand-ins for tests.",
|
package/queues/index.d.mts
CHANGED
|
@@ -327,7 +327,7 @@ declare function checkReceive(options: {
|
|
|
327
327
|
}): void;
|
|
328
328
|
/**
|
|
329
329
|
* The engine of the environment this code runs in: the request's own in a deployment, a run's
|
|
330
|
-
* through its Workload session (a CI run, an agent's
|
|
330
|
+
* through its Workload session (a CI run, an agent's dev server, `midsummer dev --view`; a view's
|
|
331
331
|
* own queue on a view), or `midsummer dev`'s on this computer. Every call goes to the one current when it is made. Flows reach their
|
|
332
332
|
* Queues through it too.
|
|
333
333
|
*/
|
package/queues/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as workloadTransport, n as late, r as processEnv, t as here } from "../here-
|
|
1
|
+
import { i as workloadTransport, n as late, r as processEnv, t as here } from "../here-1plIxb0D.mjs";
|
|
2
2
|
//#region src/queues/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* Queues: a Team's Queues of Messages, which the SDK reaches by the name an Environment binds each one
|
|
@@ -140,7 +140,7 @@ function checkReceive(options) {
|
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
142
|
* The engine of the environment this code runs in: the request's own in a deployment, a run's
|
|
143
|
-
* through its Workload session (a CI run, an agent's
|
|
143
|
+
* through its Workload session (a CI run, an agent's dev server, `midsummer dev --view`; a view's
|
|
144
144
|
* own queue on a view), or `midsummer dev`'s on this computer. Every call goes to the one current when it is made. Flows reach their
|
|
145
145
|
* Queues through it too.
|
|
146
146
|
*/
|
package/s3.d.mts
CHANGED
package/s3.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as StorageError } from "./errors-B1tO_wdm.mjs";
|
|
2
2
|
import { a as checkMetadata, l as checkUploadId, m as sha256, n as checkBucketName, o as checkPartNumber, r as checkKey, s as checkParts } from "./names-Do0ot5Ha.mjs";
|
|
3
|
-
import { i as streamsOf } from "./src-
|
|
3
|
+
import { i as streamsOf } from "./src-BKKy9km-.mjs";
|
|
4
4
|
//#region src/s3.ts
|
|
5
5
|
/**
|
|
6
6
|
* Storage over the S3 protocol, so the tools and SDKs that speak it reach a Project's Buckets
|
package/socket.d.mts
CHANGED
package/socket.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { d as sameHex, f as sign, m as socketSession, p as socket, u as keyed } from "./src-
|
|
1
|
+
import { d as sameHex, f as sign, m as socketSession, p as socket, u as keyed } from "./src-BKKy9km-.mjs";
|
|
2
2
|
export { keyed, sameHex, sign, socket, socketSession };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as StorageError } from "./errors-B1tO_wdm.mjs";
|
|
2
2
|
import { a as checkMetadata, c as checkRange, d as invalid, i as checkListLimit, l as checkUploadId, n as checkBucketName, o as checkPartNumber, r as checkKey, s as checkParts } from "./names-Do0ot5Ha.mjs";
|
|
3
3
|
import { bucketsOf, remote, repeatable, serve } from "./wire.mjs";
|
|
4
|
-
import { i as workloadTransport, n as late, r as processEnv, t as here } from "./here-
|
|
4
|
+
import { i as workloadTransport, n as late, r as processEnv, t as here } from "./here-1plIxb0D.mjs";
|
|
5
5
|
//#region src/socket.ts
|
|
6
6
|
/**
|
|
7
7
|
* Storage's wire over a WebSocket: one connection carries every call, so a client pays for one HTTP
|
|
@@ -409,7 +409,7 @@ const WORKLOAD_PATH = "/storage/workload";
|
|
|
409
409
|
let dev;
|
|
410
410
|
/**
|
|
411
411
|
* The bucket the environment binds under `name`, from code in a deployment in any framework, in a run
|
|
412
|
-
* Midsummer starts (a CI run, an agent's
|
|
412
|
+
* Midsummer starts (a CI run, an agent's dev server, `midsummer dev --view`; a view's own folder on
|
|
413
413
|
* a view), or `midsummer dev`'s bucket of that name. Code that runs outside Midsummer connects with a storage
|
|
414
414
|
* key instead: `storage(client(origin, { key, secret }))`.
|
|
415
415
|
*/
|
package/stand-in.d.mts
CHANGED
package/storage/files.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as StorageEngine, t as Body } from "../index-
|
|
1
|
+
import { m as StorageEngine, t as Body } from "../index-CXiY5knc.mjs";
|
|
2
2
|
import { n as AuthProvider, r as VerifierOptions } from "../auth-B7rCtXFQ.mjs";
|
|
3
3
|
//#region src/storage/files.d.ts
|
|
4
4
|
/** Whether a rule only reads its folder, or reads, puts and deletes in it. */
|
package/vector/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as late, t as here } from "../here-
|
|
1
|
+
import { n as late, t as here } from "../here-1plIxb0D.mjs";
|
|
2
2
|
import { C as checked, S as Vectors, T as vectorErrorCodes, _ as MAX_VALUE, b as Query, c as Ids, d as MAX_DIMENSION, f as MAX_FULL_TEXT, g as MAX_TOP_K, h as MAX_TEXT, i as remote, l as List, m as MAX_QUERIES, p as MAX_METADATA_BYTES, s as Aggregation, u as MAX_BATCH, v as MultiQuery, w as VectorError, x as TextSearch, y as NamespaceName } from "../wire-BdNDzlIN.mjs";
|
|
3
3
|
//#region src/vector/index.ts
|
|
4
4
|
/**
|
package/wire.d.mts
CHANGED