@sorbetai/plugins 0.0.0-stage → 0.1.0-alpha.16
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 +1179 -2
- package/dist/LICENSE.worker.acorn +21 -0
- package/dist/LICENSE.worker.acorn-walk +21 -0
- package/dist/LICENSE.worker.effect +21 -0
- package/dist/LICENSE.worker.ensure-error +9 -0
- package/dist/LICENSE.worker.es-toolkit +21 -0
- package/dist/LICENSE.worker.pi-schema.typebox +23 -0
- package/dist/authority-BWlX47zt.d.ts +547 -0
- package/dist/authority-Ci--C1Np.js +4667 -0
- package/dist/context-i4UGSmNB.d.ts +1326 -0
- package/dist/data-schema-CHZWAtoX.js +185 -0
- package/dist/facet-C9IwWGl5.d.ts +178 -0
- package/dist/index-NehD_iIX.d.ts +610 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1400 -0
- package/dist/isolate-worker.d.mts +1 -0
- package/dist/isolate-worker.mjs +180791 -0
- package/dist/model.d.ts +27 -0
- package/dist/model.js +274 -0
- package/dist/node.d.ts +273 -0
- package/dist/node.js +2844 -0
- package/dist/object-borrow-C81Gj5tq.js +488 -0
- package/dist/object-invocation-DC6PCiFY.js +15 -0
- package/dist/object-invocation-DMnRagqW.d.ts +13 -0
- package/dist/object-method-Bs7hYSjS.js +69 -0
- package/dist/objects-DdioT9PR.js +113 -0
- package/dist/remote.d.ts +39 -0
- package/dist/remote.js +899 -0
- package/dist/run-yield-B1AE7-PN.js +16 -0
- package/dist/source-Ns6MY6kd.d.ts +214 -0
- package/dist/view-Cn9jz2Wx.js +73 -0
- package/package.json +53 -3
package/dist/remote.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { B as PluginObjects, N as ObjectCatalog, j as ObjectAddress, l as PluginToolRegistration } from "./context-i4UGSmNB.js";
|
|
2
|
+
import "./index-NehD_iIX.js";
|
|
3
|
+
import "./authority-BWlX47zt.js";
|
|
4
|
+
import "./source-Ns6MY6kd.js";
|
|
5
|
+
import { t as ObjectInvocationUnknownError } from "./object-invocation-DMnRagqW.js";
|
|
6
|
+
import { a as ObjectFacetTransport, c as FacetRequest, d as decodeObjectFacetRequest, i as makeObjectFacet, l as ObjectFacetUnavailableError, n as ObjectFacetOptions, o as makeRemoteObjectClient, r as ObjectFacetPermission, s as FacetReply, t as ObjectFacet, u as decodeObjectFacetReply } from "./facet-C9IwWGl5.js";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as ensure_error0 from "ensure-error";
|
|
9
|
+
import * as Scope from "effect/Scope";
|
|
10
|
+
|
|
11
|
+
//#region src/remote/connector.d.ts
|
|
12
|
+
interface ObjectFacetConnector {
|
|
13
|
+
/** Establish the same authenticated Host-owned facet. The connector owns network routing,
|
|
14
|
+
* credentials and retry pacing; returned addresses cannot select another connection. */
|
|
15
|
+
connect(signal: AbortSignal): Promise<ObjectFacetTransport>;
|
|
16
|
+
}
|
|
17
|
+
/** The client stopped locally, but its Host-owned facet still needs these identities reconciled.
|
|
18
|
+
* Reconciliation may release the original hold; it must never repeat its constructor. */
|
|
19
|
+
declare class ObjectFacetRecoveryPendingError extends Error {
|
|
20
|
+
readonly facetId: string | undefined;
|
|
21
|
+
readonly code = "object-facet-recovery-pending";
|
|
22
|
+
readonly acquisitionIds: readonly string[];
|
|
23
|
+
constructor(facetId: string | undefined, acquisitionIds: readonly string[]);
|
|
24
|
+
}
|
|
25
|
+
/** Re-establishes capability access to the same resumable facet and original handles.
|
|
26
|
+
* Calls are never replayed. An uncertain acquisition is reconciled and released by its
|
|
27
|
+
* original identity, and still reports Unknown to its caller. */
|
|
28
|
+
declare const makeResumableRemoteObjectClient: (connector: ObjectFacetConnector) => Effect.Effect<Readonly<{
|
|
29
|
+
objects: Readonly<PluginObjects>;
|
|
30
|
+
objectCapabilities: Readonly<{
|
|
31
|
+
catalog: () => Effect.Effect<ObjectCatalog, Error | ensure_error0.NonError, never>;
|
|
32
|
+
bind: (address: ObjectAddress, method: string, metadata: Pick<PluginToolRegistration, "name" | "description">) => Effect.Effect<{
|
|
33
|
+
tool: Readonly<PluginToolRegistration>;
|
|
34
|
+
borrow: Effect.Effect<void, ensure_error0.NonError, Scope.Scope>;
|
|
35
|
+
}, Error, Scope.Scope>;
|
|
36
|
+
}>;
|
|
37
|
+
}>, never, Scope.Scope>;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { type FacetReply, type FacetRequest, type ObjectFacet, type ObjectFacetConnector, type ObjectFacetOptions, type ObjectFacetPermission, ObjectFacetRecoveryPendingError, type ObjectFacetTransport, ObjectFacetUnavailableError, ObjectInvocationUnknownError, decodeObjectFacetReply, decodeObjectFacetRequest, makeObjectFacet, makeRemoteObjectClient, makeResumableRemoteObjectClient };
|