@executor-js/sdk 0.2.1 → 1.4.20
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/{chunk-QQK7X3DM.js → chunk-I2OEQ2GJ.js} +3 -3
- package/dist/{chunk-QQK7X3DM.js.map → chunk-I2OEQ2GJ.js.map} +1 -1
- package/dist/{chunk-NPWV4R3N.js → chunk-OIJL6F6M.js} +67 -123
- package/dist/chunk-OIJL6F6M.js.map +1 -0
- package/dist/connections.d.ts +33 -22
- package/dist/connections.d.ts.map +1 -1
- package/dist/core.js +2 -4
- package/dist/core.js.map +1 -1
- package/dist/credential-bindings.d.ts +42 -45
- package/dist/credential-bindings.d.ts.map +1 -1
- package/dist/elicitation.d.ts +11 -14
- package/dist/elicitation.d.ts.map +1 -1
- package/dist/executor.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/oauth-popup-types.d.ts +3 -0
- package/dist/oauth-popup-types.d.ts.map +1 -1
- package/dist/promise-executor.d.ts.map +1 -1
- package/dist/scope.d.ts +3 -5
- package/dist/scope.d.ts.map +1 -1
- package/dist/secrets.d.ts +9 -13
- package/dist/secrets.d.ts.map +1 -1
- package/dist/testing.js +2 -2
- package/dist/types.d.ts +6 -9
- package/dist/types.d.ts.map +1 -1
- package/dist/usages.d.ts +3 -5
- package/dist/usages.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-NPWV4R3N.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/promise-executor.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// @executor-js/sdk/promise — thin Promise façade over the Effect SDK.\n//\n// Consumer goal: use executors + plugins without touching Effect. The\n// façade wraps `createExecutor` so it returns a Promise, and proxies\n// every method on the returned executor to unwrap its Effect into a\n// Promise. Plugin factories are Effect-native but consumers never see\n// that — the proxy flattens plugin extension methods too.\n//\n// Not a goal: authoring plugins in Promise style. The plugin model\n// (storage, schema, staticSources, Effect ctx) is Effect-only. Bring\n// your own `@executor-js/plugin-*` from the Effect side.\n// ---------------------------------------------------------------------------\n\nimport { Brand, Effect } from \"effect\";\n\nimport { makeMemoryAdapter } from \"@executor-js/storage-core/testing/memory\";\n\nimport { makeInMemoryBlobStore } from \"./blob\";\nimport {\n createExecutor as createEffectExecutor,\n collectSchemas,\n type Executor as EffectExecutor,\n type OnElicitation,\n} from \"./executor\";\nimport { ScopeId } from \"./ids\";\nimport type { AnyPlugin } from \"./plugin\";\nimport { Scope } from \"./scope\";\n\n// ---------------------------------------------------------------------------\n// Types\n//\n// Promise consumers shouldn't need to construct Effect `Brand`s to call into\n// the executor — branded ids (`SecretId`, `ScopeId`, `ToolId`, `PolicyId`,\n// `ConnectionId`) are typed as `string & Brand<...>` on the Effect side, but\n// at runtime they're plain strings. `Unbrand` strips brand tags from\n// parameter types (recursively, so it walks into object fields like\n// `secrets.set({ id, scope })`) so consumers can pass plain strings. Return\n// types are passed through unchanged — caller code that reads `.id` etc.\n// off a returned ref still gets the branded type for use as an opaque token.\n// ---------------------------------------------------------------------------\n\ntype Unbrand<T> =\n T extends Brand.Brand<string>\n ? string\n : T extends readonly (infer U)[]\n ? readonly Unbrand<U>[]\n : T extends ReadonlyMap<infer K, infer V>\n ? ReadonlyMap<Unbrand<K>, Unbrand<V>>\n : T extends ReadonlySet<infer U>\n ? ReadonlySet<Unbrand<U>>\n : T extends Date\n ? T\n : T extends (...args: infer A) => infer R\n ? (...args: { [I in keyof A]: Unbrand<A[I]> }) => Unbrand<R>\n : T extends object\n ? { readonly [K in keyof T]: Unbrand<T[K]> }\n : T;\n\nexport type Promisified<T> = T extends (...args: infer A) => Effect.Effect<infer R, infer _E>\n ? (...args: { [I in keyof A]: Unbrand<A[I]> }) => Promise<R>\n : T extends readonly unknown[]\n ? T\n : T extends object\n ? { readonly [K in keyof T]: Promisified<T[K]> }\n : T;\n\nexport type Executor<TPlugins extends readonly AnyPlugin[] = []> = Promisified<\n EffectExecutor<TPlugins>\n>;\n\nexport interface ExecutorConfig<TPlugins extends readonly AnyPlugin[] = []> {\n /**\n * Precedence-ordered scope stack (innermost first). Optional — defaults\n * to a single-element stack with id \"default-scope\". Pass an array of\n * `{ id, name }` partials to build a multi-scope executor.\n */\n readonly scopes?: readonly { readonly id?: string; readonly name?: string }[];\n readonly plugins?: TPlugins;\n /**\n * How to respond when a tool requests user input mid-invocation. Pass\n * `\"accept-all\"` for tests / non-interactive hosts, or a handler\n * `(ctx) => Promise<ElicitationResponse>` for interactive ones.\n * Required at construction so per-invoke calls don't have to thread\n * an options arg.\n */\n readonly onElicitation: OnElicitation;\n}\n\n// ---------------------------------------------------------------------------\n// Promisify proxy — walks nested objects, converts Effect-returning methods\n// into Promise-returning methods. Non-Effect return values pass through.\n// ---------------------------------------------------------------------------\n\nconst isPlainObject = (v: unknown): v is Record<string | symbol, unknown> =>\n v !== null &&\n typeof v === \"object\" &&\n !Array.isArray(v) &&\n !(v instanceof Date) &&\n !(v instanceof Promise);\n\nconst promisifyDeep = <T>(value: T): Promisified<T> => {\n if (typeof value === \"function\") {\n return ((...args: unknown[]) => {\n const result = (value as (...a: unknown[]) => unknown).apply(undefined, args);\n if (Effect.isEffect(result)) {\n return Effect.runPromise(result as Effect.Effect<unknown, unknown>);\n }\n return result;\n }) as Promisified<T>;\n }\n\n if (!isPlainObject(value)) return value as Promisified<T>;\n\n return new Proxy(value, {\n get(target, prop, receiver) {\n const v = Reflect.get(target, prop, receiver);\n if (typeof v === \"function\") {\n return (...args: unknown[]) => {\n const result = (v as (...a: unknown[]) => unknown).apply(target, args);\n if (Effect.isEffect(result)) {\n return Effect.runPromise(result as Effect.Effect<unknown, unknown>);\n }\n return result;\n };\n }\n if (isPlainObject(v)) return promisifyDeep(v);\n return v;\n },\n }) as Promisified<T>;\n};\n\n// ---------------------------------------------------------------------------\n// createExecutor — Promise wrapper over the Effect createExecutor.\n// Defaults to an in-memory adapter + blob store, so a consumer can\n// construct an executor with just `{ plugins: [...] }`.\n// ---------------------------------------------------------------------------\n\nexport const createExecutor = async <const TPlugins extends readonly AnyPlugin[] = []>(\n config: ExecutorConfig<TPlugins>,\n): Promise<Executor<TPlugins>> => {\n const plugins = (config?.plugins ?? []) as TPlugins;\n const schema = collectSchemas(plugins);\n\n const scopes =\n config.scopes && config.scopes.length > 0\n ? config.scopes.map(
|
|
1
|
+
{"version":3,"sources":["../src/promise-executor.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// @executor-js/sdk/promise — thin Promise façade over the Effect SDK.\n//\n// Consumer goal: use executors + plugins without touching Effect. The\n// façade wraps `createExecutor` so it returns a Promise, and proxies\n// every method on the returned executor to unwrap its Effect into a\n// Promise. Plugin factories are Effect-native but consumers never see\n// that — the proxy flattens plugin extension methods too.\n//\n// Not a goal: authoring plugins in Promise style. The plugin model\n// (storage, schema, staticSources, Effect ctx) is Effect-only. Bring\n// your own `@executor-js/plugin-*` from the Effect side.\n// ---------------------------------------------------------------------------\n\nimport { Brand, Effect } from \"effect\";\n\nimport { makeMemoryAdapter } from \"@executor-js/storage-core/testing/memory\";\n\nimport { makeInMemoryBlobStore } from \"./blob\";\nimport {\n createExecutor as createEffectExecutor,\n collectSchemas,\n type Executor as EffectExecutor,\n type OnElicitation,\n} from \"./executor\";\nimport { ScopeId } from \"./ids\";\nimport type { AnyPlugin } from \"./plugin\";\nimport { Scope } from \"./scope\";\n\n// ---------------------------------------------------------------------------\n// Types\n//\n// Promise consumers shouldn't need to construct Effect `Brand`s to call into\n// the executor — branded ids (`SecretId`, `ScopeId`, `ToolId`, `PolicyId`,\n// `ConnectionId`) are typed as `string & Brand<...>` on the Effect side, but\n// at runtime they're plain strings. `Unbrand` strips brand tags from\n// parameter types (recursively, so it walks into object fields like\n// `secrets.set({ id, scope })`) so consumers can pass plain strings. Return\n// types are passed through unchanged — caller code that reads `.id` etc.\n// off a returned ref still gets the branded type for use as an opaque token.\n// ---------------------------------------------------------------------------\n\ntype Unbrand<T> =\n T extends Brand.Brand<string>\n ? string\n : T extends readonly (infer U)[]\n ? readonly Unbrand<U>[]\n : T extends ReadonlyMap<infer K, infer V>\n ? ReadonlyMap<Unbrand<K>, Unbrand<V>>\n : T extends ReadonlySet<infer U>\n ? ReadonlySet<Unbrand<U>>\n : T extends Date\n ? T\n : T extends (...args: infer A) => infer R\n ? (...args: { [I in keyof A]: Unbrand<A[I]> }) => Unbrand<R>\n : T extends object\n ? { readonly [K in keyof T]: Unbrand<T[K]> }\n : T;\n\nexport type Promisified<T> = T extends (...args: infer A) => Effect.Effect<infer R, infer _E>\n ? (...args: { [I in keyof A]: Unbrand<A[I]> }) => Promise<R>\n : T extends readonly unknown[]\n ? T\n : T extends object\n ? { readonly [K in keyof T]: Promisified<T[K]> }\n : T;\n\nexport type Executor<TPlugins extends readonly AnyPlugin[] = []> = Promisified<\n EffectExecutor<TPlugins>\n>;\n\nexport interface ExecutorConfig<TPlugins extends readonly AnyPlugin[] = []> {\n /**\n * Precedence-ordered scope stack (innermost first). Optional — defaults\n * to a single-element stack with id \"default-scope\". Pass an array of\n * `{ id, name }` partials to build a multi-scope executor.\n */\n readonly scopes?: readonly { readonly id?: string; readonly name?: string }[];\n readonly plugins?: TPlugins;\n /**\n * How to respond when a tool requests user input mid-invocation. Pass\n * `\"accept-all\"` for tests / non-interactive hosts, or a handler\n * `(ctx) => Promise<ElicitationResponse>` for interactive ones.\n * Required at construction so per-invoke calls don't have to thread\n * an options arg.\n */\n readonly onElicitation: OnElicitation;\n}\n\n// ---------------------------------------------------------------------------\n// Promisify proxy — walks nested objects, converts Effect-returning methods\n// into Promise-returning methods. Non-Effect return values pass through.\n// ---------------------------------------------------------------------------\n\nconst isPlainObject = (v: unknown): v is Record<string | symbol, unknown> =>\n v !== null &&\n typeof v === \"object\" &&\n !Array.isArray(v) &&\n !(v instanceof Date) &&\n !(v instanceof Promise);\n\nconst promisifyDeep = <T>(value: T): Promisified<T> => {\n if (typeof value === \"function\") {\n return ((...args: unknown[]) => {\n const result = (value as (...a: unknown[]) => unknown).apply(undefined, args);\n if (Effect.isEffect(result)) {\n return Effect.runPromise(result as Effect.Effect<unknown, unknown>);\n }\n return result;\n }) as Promisified<T>;\n }\n\n if (!isPlainObject(value)) return value as Promisified<T>;\n\n return new Proxy(value, {\n get(target, prop, receiver) {\n const v = Reflect.get(target, prop, receiver);\n if (typeof v === \"function\") {\n return (...args: unknown[]) => {\n const result = (v as (...a: unknown[]) => unknown).apply(target, args);\n if (Effect.isEffect(result)) {\n return Effect.runPromise(result as Effect.Effect<unknown, unknown>);\n }\n return result;\n };\n }\n if (isPlainObject(v)) return promisifyDeep(v);\n return v;\n },\n }) as Promisified<T>;\n};\n\n// ---------------------------------------------------------------------------\n// createExecutor — Promise wrapper over the Effect createExecutor.\n// Defaults to an in-memory adapter + blob store, so a consumer can\n// construct an executor with just `{ plugins: [...] }`.\n// ---------------------------------------------------------------------------\n\nexport const createExecutor = async <const TPlugins extends readonly AnyPlugin[] = []>(\n config: ExecutorConfig<TPlugins>,\n): Promise<Executor<TPlugins>> => {\n const plugins = (config?.plugins ?? []) as TPlugins;\n const schema = collectSchemas(plugins);\n\n const scopes =\n config.scopes && config.scopes.length > 0\n ? config.scopes.map((s, i) =>\n Scope.make({\n id: ScopeId.make(s.id ?? (i === 0 ? \"default-scope\" : `scope-${i}`)),\n name: s.name ?? (i === 0 ? \"default\" : `scope-${i}`),\n createdAt: new Date(),\n }),\n )\n : [\n Scope.make({\n id: ScopeId.make(\"default-scope\"),\n name: \"default\",\n createdAt: new Date(),\n }),\n ];\n\n const effectConfig = {\n scopes,\n adapter: makeMemoryAdapter({ schema }),\n blobs: makeInMemoryBlobStore(),\n plugins,\n onElicitation: config.onElicitation,\n };\n\n // The SDK has no observability requirement; storage failures surface\n // as raw `StorageError` / `UniqueViolationError` in the typed channel.\n // `Effect.runPromise` turns them into Promise rejections — consumers\n // get the tagged error as the rejected value. See\n // notes/promise-sdk-typed-errors.md for the planned `runPromiseExit`\n // rewrite that exposes the full error union to consumers.\n const effectExecutor = await Effect.runPromise(createEffectExecutor(effectConfig));\n\n return promisifyDeep(effectExecutor) as Executor<TPlugins>;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,SAAgB,cAAc;AAE9B,SAAS,yBAAyB;AA8ElC,IAAM,gBAAgB,CAAC,MACrB,MAAM,QACN,OAAO,MAAM,YACb,CAAC,MAAM,QAAQ,CAAC,KAChB,EAAE,aAAa,SACf,EAAE,aAAa;AAEjB,IAAM,gBAAgB,CAAI,UAA6B;AACrD,MAAI,OAAO,UAAU,YAAY;AAC/B,YAAQ,IAAI,SAAoB;AAC9B,YAAM,SAAU,MAAuC,MAAM,QAAW,IAAI;AAC5E,UAAI,OAAO,SAAS,MAAM,GAAG;AAC3B,eAAO,OAAO,WAAW,MAAyC;AAAA,MACpE;AACA,aAAO;AAAA,IACT;AAAA,EACF;AAEA,MAAI,CAAC,cAAc,KAAK,EAAG,QAAO;AAElC,SAAO,IAAI,MAAM,OAAO;AAAA,IACtB,IAAI,QAAQ,MAAM,UAAU;AAC1B,YAAM,IAAI,QAAQ,IAAI,QAAQ,MAAM,QAAQ;AAC5C,UAAI,OAAO,MAAM,YAAY;AAC3B,eAAO,IAAI,SAAoB;AAC7B,gBAAM,SAAU,EAAmC,MAAM,QAAQ,IAAI;AACrE,cAAI,OAAO,SAAS,MAAM,GAAG;AAC3B,mBAAO,OAAO,WAAW,MAAyC;AAAA,UACpE;AACA,iBAAO;AAAA,QACT;AAAA,MACF;AACA,UAAI,cAAc,CAAC,EAAG,QAAO,cAAc,CAAC;AAC5C,aAAO;AAAA,IACT;AAAA,EACF,CAAC;AACH;AAQO,IAAMA,kBAAiB,OAC5B,WACgC;AAChC,QAAM,UAAW,QAAQ,WAAW,CAAC;AACrC,QAAM,SAAS,eAAe,OAAO;AAErC,QAAM,SACJ,OAAO,UAAU,OAAO,OAAO,SAAS,IACpC,OAAO,OAAO;AAAA,IAAI,CAAC,GAAG,MACpB,MAAM,KAAK;AAAA,MACT,IAAI,QAAQ,KAAK,EAAE,OAAO,MAAM,IAAI,kBAAkB,SAAS,CAAC,GAAG;AAAA,MACnE,MAAM,EAAE,SAAS,MAAM,IAAI,YAAY,SAAS,CAAC;AAAA,MACjD,WAAW,oBAAI,KAAK;AAAA,IACtB,CAAC;AAAA,EACH,IACA;AAAA,IACE,MAAM,KAAK;AAAA,MACT,IAAI,QAAQ,KAAK,eAAe;AAAA,MAChC,MAAM;AAAA,MACN,WAAW,oBAAI,KAAK;AAAA,IACtB,CAAC;AAAA,EACH;AAEN,QAAM,eAAe;AAAA,IACnB;AAAA,IACA,SAAS,kBAAkB,EAAE,OAAO,CAAC;AAAA,IACrC,OAAO,sBAAsB;AAAA,IAC7B;AAAA,IACA,eAAe,OAAO;AAAA,EACxB;AAQA,QAAM,iBAAiB,MAAM,OAAO,WAAW,eAAqB,YAAY,CAAC;AAEjF,SAAO,cAAc,cAAc;AACrC;","names":["createExecutor"]}
|
|
@@ -8,7 +8,10 @@ export type OAuthPopupResult<TAuth> = ({
|
|
|
8
8
|
readonly type: typeof OAUTH_POPUP_MESSAGE_TYPE;
|
|
9
9
|
readonly ok: false;
|
|
10
10
|
readonly sessionId: string | null;
|
|
11
|
+
/** Short user-facing summary. */
|
|
11
12
|
readonly error: string;
|
|
13
|
+
/** Full technical detail. Omitted when identical to `error`. */
|
|
14
|
+
readonly errorDetails?: string;
|
|
12
15
|
};
|
|
13
16
|
export declare const isOAuthPopupResult: <TAuth>(value: unknown) => value is OAuthPopupResult<TAuth>;
|
|
14
17
|
//# sourceMappingURL=oauth-popup-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-popup-types.d.ts","sourceRoot":"","sources":["../src/oauth-popup-types.ts"],"names":[],"mappings":"AAQA,+DAA+D;AAC/D,eAAO,MAAM,wBAAwB,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AC,CAAC,GAC1D,CAAC,SAAS,SAAS,OAAO,EAAE,GAC1B,CAAC,GACD,CAAC,SAAS,MAAM,GACd;IAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAC9C,CAAC,CAAC;AAEV,MAAM,MAAM,QAAQ,CAAC,QAAQ,SAAS,SAAS,SAAS,EAAE,GAAG,EAAE,IAAI,WAAW,CAC5E,cAAc,CAAC,QAAQ,CAAC,CACzB,CAAC;AAEF,MAAM,WAAW,cAAc,CAAC,QAAQ,SAAS,SAAS,SAAS,EAAE,GAAG,EAAE;IACxE;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS;QAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC9E,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAC5B;;;;;;OAMG;IACH,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;CACvC;AAmDD,eAAO,MAAM,cAAc,GAAU,KAAK,CAAC,QAAQ,SAAS,SAAS,SAAS,EAAE,GAAG,EAAE,EACnF,QAAQ,cAAc,CAAC,QAAQ,CAAC,KAC/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAsC5B,CAAC"}
|
package/dist/scope.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
declare const
|
|
2
|
+
export declare const Scope: Schema.Struct<{
|
|
3
3
|
readonly id: Schema.brand<Schema.String, "ScopeId">;
|
|
4
4
|
readonly name: Schema.String;
|
|
5
5
|
readonly createdAt: Schema.Date;
|
|
6
|
-
}
|
|
7
|
-
export
|
|
8
|
-
}
|
|
9
|
-
export {};
|
|
6
|
+
}>;
|
|
7
|
+
export type Scope = typeof Scope.Type;
|
|
10
8
|
//# sourceMappingURL=scope.d.ts.map
|
package/dist/scope.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../src/scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../src/scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAC"}
|
package/dist/secrets.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ export interface SecretProvider {
|
|
|
38
38
|
* avoid recursive fallback through themselves. */
|
|
39
39
|
readonly allowFallback?: boolean;
|
|
40
40
|
}
|
|
41
|
-
declare const
|
|
41
|
+
export declare const SecretRef: Schema.Struct<{
|
|
42
42
|
readonly id: Schema.brand<Schema.String, "SecretId">;
|
|
43
43
|
readonly scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
44
44
|
/** Human-readable label (e.g. "Cloudflare API Token") */
|
|
@@ -46,10 +46,9 @@ declare const SecretRef_base: Schema.Class<SecretRef, Schema.Struct<{
|
|
|
46
46
|
/** Which provider holds the value */
|
|
47
47
|
readonly provider: Schema.String;
|
|
48
48
|
readonly createdAt: Schema.Date;
|
|
49
|
-
}
|
|
50
|
-
export
|
|
51
|
-
|
|
52
|
-
declare const SetSecretInput_base: Schema.Class<SetSecretInput, Schema.Struct<{
|
|
49
|
+
}>;
|
|
50
|
+
export type SecretRef = typeof SecretRef.Type;
|
|
51
|
+
export declare const SetSecretInput: Schema.Struct<{
|
|
53
52
|
readonly id: Schema.brand<Schema.String, "SecretId">;
|
|
54
53
|
/** Scope id to own this secret. Must be one of the executor's
|
|
55
54
|
* configured scopes. */
|
|
@@ -61,16 +60,13 @@ declare const SetSecretInput_base: Schema.Class<SetSecretInput, Schema.Struct<{
|
|
|
61
60
|
/** Optional provider routing. If unset the executor picks the first
|
|
62
61
|
* writable provider in registration order. */
|
|
63
62
|
readonly provider: Schema.optional<Schema.String>;
|
|
64
|
-
}
|
|
65
|
-
export
|
|
66
|
-
|
|
67
|
-
declare const RemoveSecretInput_base: Schema.Class<RemoveSecretInput, Schema.Struct<{
|
|
63
|
+
}>;
|
|
64
|
+
export type SetSecretInput = typeof SetSecretInput.Type;
|
|
65
|
+
export declare const RemoveSecretInput: Schema.Struct<{
|
|
68
66
|
readonly id: Schema.brand<Schema.String, "SecretId">;
|
|
69
67
|
/** Scope id whose secret row/value should be removed. Must be one of
|
|
70
68
|
* the executor's configured scopes. */
|
|
71
69
|
readonly targetScope: Schema.brand<Schema.String, "ScopeId">;
|
|
72
|
-
}
|
|
73
|
-
export
|
|
74
|
-
}
|
|
75
|
-
export {};
|
|
70
|
+
}>;
|
|
71
|
+
export type RemoveSecretInput = typeof RemoveSecretInput.Type;
|
|
76
72
|
//# sourceMappingURL=secrets.d.ts.map
|
package/dist/secrets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../src/secrets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAehE,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;6DAEyD;IACzD,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B;;;;;;;4EAOwE;IACxE,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,EAAE,cAAc,CAAC,C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AAiB,GAAG,OAAO,iBAAiB,CAAC,IAAI,CAAC"}
|
package/dist/testing.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeTestConfig,
|
|
3
3
|
memorySecretsPlugin
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-I2OEQ2GJ.js";
|
|
5
|
+
import "./chunk-OIJL6F6M.js";
|
|
6
6
|
|
|
7
7
|
// src/testing.ts
|
|
8
8
|
import * as NodeHttpServer from "@effect/platform-node/NodeHttpServer";
|
package/dist/types.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface Tool {
|
|
|
46
46
|
readonly outputSchema?: unknown;
|
|
47
47
|
readonly annotations?: ToolAnnotations;
|
|
48
48
|
}
|
|
49
|
-
declare const
|
|
49
|
+
export declare const ToolSchema: Schema.Struct<{
|
|
50
50
|
readonly id: Schema.brand<Schema.String, "ToolId">;
|
|
51
51
|
readonly name: Schema.optional<Schema.String>;
|
|
52
52
|
readonly description: Schema.optional<Schema.String>;
|
|
@@ -55,10 +55,9 @@ declare const ToolSchema_base: Schema.Class<ToolSchema, Schema.Struct<{
|
|
|
55
55
|
readonly inputTypeScript: Schema.optional<Schema.String>;
|
|
56
56
|
readonly outputTypeScript: Schema.optional<Schema.String>;
|
|
57
57
|
readonly typeScriptDefinitions: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
|
|
58
|
-
}
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
declare const SourceDetectionResult_base: Schema.Class<SourceDetectionResult, Schema.Struct<{
|
|
58
|
+
}>;
|
|
59
|
+
export type ToolSchema = typeof ToolSchema.Type;
|
|
60
|
+
export declare const SourceDetectionResult: Schema.Struct<{
|
|
62
61
|
/** Plugin id that recognized the URL (e.g. "openapi", "graphql"). */
|
|
63
62
|
readonly kind: Schema.String;
|
|
64
63
|
/** Confidence tier — UI uses this to pick a winner when multiple
|
|
@@ -72,9 +71,8 @@ declare const SourceDetectionResult_base: Schema.Class<SourceDetectionResult, Sc
|
|
|
72
71
|
/** Namespace suggestion — the plugin's recommendation for the source
|
|
73
72
|
* id. UI may override. */
|
|
74
73
|
readonly namespace: Schema.String;
|
|
75
|
-
}
|
|
76
|
-
export
|
|
77
|
-
}
|
|
74
|
+
}>;
|
|
75
|
+
export type SourceDetectionResult = typeof SourceDetectionResult.Type;
|
|
78
76
|
export interface ToolListFilter {
|
|
79
77
|
/** Only tools under this source id. */
|
|
80
78
|
readonly sourceId?: string;
|
|
@@ -88,5 +86,4 @@ export interface ToolListFilter {
|
|
|
88
86
|
* should pass `true` so users can author rules against blocked tools. */
|
|
89
87
|
readonly includeBlocked?: boolean;
|
|
90
88
|
}
|
|
91
|
-
export {};
|
|
92
89
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;2CACuC;IACvC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;oEAEgE;IAChE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,mFAAmF;IACnF,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B;;;4BAGwB;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CA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Schema.Struct<{
|
|
4
4
|
readonly pluginId: Schema.String;
|
|
5
5
|
readonly scopeId: Schema.brand<Schema.String, "ScopeId">;
|
|
6
6
|
readonly ownerKind: Schema.String;
|
|
7
7
|
readonly ownerId: Schema.String;
|
|
8
8
|
readonly ownerName: Schema.NullOr<Schema.String>;
|
|
9
9
|
readonly slot: Schema.String;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
12
|
-
}
|
|
10
|
+
}>;
|
|
11
|
+
export type Usage = typeof Usage.Type;
|
|
13
12
|
export interface UsagesForSecretInput {
|
|
14
13
|
readonly secretId: SecretId;
|
|
15
14
|
}
|
|
16
15
|
export interface UsagesForConnectionInput {
|
|
17
16
|
readonly connectionId: ConnectionId;
|
|
18
17
|
}
|
|
19
|
-
export {};
|
|
20
18
|
//# sourceMappingURL=usages.d.ts.map
|
package/dist/usages.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usages.d.ts","sourceRoot":"","sources":["../src/usages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAW,QAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"usages.d.ts","sourceRoot":"","sources":["../src/usages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAW,QAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAwBxD,eAAO,MAAM,KAAK;;;;;;;EAOhB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAC;AAEtC,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@executor-js/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.4.20",
|
|
4
4
|
"homepage": "https://github.com/RhysSullivan/executor/tree/main/packages/core/sdk",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/RhysSullivan/executor/issues"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"typecheck:slow": "tsc --noEmit"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@executor-js/storage-core": "
|
|
54
|
+
"@executor-js/storage-core": "1.4.20",
|
|
55
55
|
"@standard-schema/spec": "^1.1.0",
|
|
56
56
|
"effect": "4.0.0-beta.59",
|
|
57
57
|
"fractional-indexing": "^3.2.0",
|