@caplets/core 0.22.0 → 0.24.0
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/auth.d.ts +2 -1
- package/dist/caplet-files-bundle.d.ts +62 -0
- package/dist/caplet-sets.d.ts +2 -0
- package/dist/caplet-source.js +96 -4
- package/dist/cli/add.d.ts +10 -0
- package/dist/cli/auth.d.ts +22 -0
- package/dist/cli/code-mode.d.ts +3 -0
- package/dist/cli/commands.d.ts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/code-mode/api.d.ts +3 -1
- package/dist/code-mode/diagnostics-builtins.generated.d.ts +1 -0
- package/dist/code-mode/diagnostics.d.ts +8 -0
- package/dist/code-mode/index.d.ts +1 -1
- package/dist/code-mode/journal.d.ts +103 -0
- package/dist/code-mode/platform-entry.d.ts +1 -0
- package/dist/code-mode/platform-host.d.ts +6 -0
- package/dist/code-mode/platform-runtime.generated.d.ts +1 -0
- package/dist/code-mode/runner.d.ts +5 -0
- package/dist/code-mode/runtime-api.generated.d.ts +1 -1
- package/dist/code-mode/sandbox.d.ts +14 -1
- package/dist/code-mode/sessions.d.ts +53 -0
- package/dist/code-mode/tool.d.ts +5 -0
- package/dist/code-mode/types.d.ts +30 -0
- package/dist/code-mode.js +21 -14
- package/dist/{completion-DnQujlrc.js → completion-CzHdM9B_.js} +14 -2
- package/dist/config/paths.d.ts +2 -0
- package/dist/config-runtime.d.ts +13 -1
- package/dist/config-runtime.js +44 -0
- package/dist/config.d.ts +25 -1
- package/dist/engine.d.ts +3 -0
- package/dist/google-discovery/index.d.ts +5 -0
- package/dist/google-discovery/manager.d.ts +37 -0
- package/dist/google-discovery/operations.d.ts +32 -0
- package/dist/google-discovery/request.d.ts +5 -0
- package/dist/google-discovery/schema.d.ts +2 -0
- package/dist/google-discovery/types.d.ts +70 -0
- package/dist/http/response.d.ts +14 -0
- package/dist/http-actions.d.ts +3 -0
- package/dist/index.js +190 -43
- package/dist/media/artifacts.d.ts +24 -0
- package/dist/media/index.d.ts +2 -0
- package/dist/media/input.d.ts +29 -0
- package/dist/native/options.d.ts +3 -6
- package/dist/native/remote.d.ts +2 -0
- package/dist/native/service.d.ts +2 -0
- package/dist/native/tools.d.ts +1 -0
- package/dist/native.js +1 -1
- package/dist/{observed-output-shapes-CL5MFXwM.js → observed-output-shapes-D2k2-q8K.js} +9 -0
- package/dist/observed-output-shapes.js +1 -1
- package/dist/openapi.d.ts +2 -0
- package/dist/registry.d.ts +6 -0
- package/dist/remote/options.d.ts +1 -1
- package/dist/runtime-plan.js +1 -1
- package/dist/runtime.d.ts +2 -0
- package/dist/serve/session.d.ts +1 -0
- package/dist/{service-4_chB2wu.js → service-BCT_Ls_3.js} +3878 -361
- package/dist/tools.d.ts +2 -1
- package/package.json +9 -2
package/dist/native/tools.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export declare const nativeCodeModeToolId = "code_mode";
|
|
|
3
3
|
export declare const nativeCodeModeToolName = "caplets__code_mode";
|
|
4
4
|
export declare function nativeCapletToolName(capletId: string): string;
|
|
5
5
|
export declare function nativeCapletsSystemGuidance(toolNames: string[]): string;
|
|
6
|
+
export declare function nativeCodeModePromptGuidance(): string[];
|
|
6
7
|
export declare function nativeCapletPromptGuidance(toolName: string, caplet: CapletConfig): string[];
|
|
7
8
|
export declare function nativeCapletToolDescription(toolName: string, caplet: CapletConfig): string;
|
package/dist/native.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as nativeCapletToolDescription, D as nativeCodeModeToolName, E as nativeCodeModeToolId, S as nativeCapletPromptGuidance, T as nativeCapletsSystemGuidance, f as RemoteNativeCapletsService, h as resolveNativeCapletsServiceOptions, p as createSdkRemoteCapletsClient, t as createNativeCapletsService, w as nativeCapletToolName } from "./service-BCT_Ls_3.js";
|
|
2
2
|
import { generatedToolInputJsonSchema, generatedToolInputSchema } from "./generated-tool-input-schema.js";
|
|
3
3
|
//#region src/native/process-cleanup.ts
|
|
4
4
|
function registerNativeCapletsProcessCleanup(service, options = {}) {
|
|
@@ -89,6 +89,15 @@ function nonSecretBackendIdentity(caplet) {
|
|
|
89
89
|
specUrl: caplet.specUrl,
|
|
90
90
|
baseUrl: caplet.baseUrl
|
|
91
91
|
};
|
|
92
|
+
case "googleDiscovery": return {
|
|
93
|
+
backend: caplet.backend,
|
|
94
|
+
server: caplet.server,
|
|
95
|
+
discoveryPath: caplet.discoveryPath,
|
|
96
|
+
discoveryUrl: caplet.discoveryUrl,
|
|
97
|
+
baseUrl: caplet.baseUrl,
|
|
98
|
+
includeOperations: caplet.includeOperations,
|
|
99
|
+
excludeOperations: caplet.excludeOperations
|
|
100
|
+
};
|
|
92
101
|
case "graphql": return {
|
|
93
102
|
backend: caplet.backend,
|
|
94
103
|
server: caplet.server,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as OBSERVED_OUTPUT_SHAPE_LIMITS, a as parseShapeableJsonText, c as shapeType, d as backendFingerprint, f as observedOutputShapeKey, i as observeOutputShape, l as mergeJsonShapes, m as stableHash, n as extractJsonShape, o as hasTruncatedShape, p as observedOutputShapeStorageKey, r as normalizedObservableValue, s as shapeToTypeScript, t as usefulOutputSchema, u as FileObservedOutputShapeStore, v as OBSERVED_OUTPUT_SHAPE_VERSION } from "./observed-output-shapes-
|
|
1
|
+
import { _ as OBSERVED_OUTPUT_SHAPE_LIMITS, a as parseShapeableJsonText, c as shapeType, d as backendFingerprint, f as observedOutputShapeKey, i as observeOutputShape, l as mergeJsonShapes, m as stableHash, n as extractJsonShape, o as hasTruncatedShape, p as observedOutputShapeStorageKey, r as normalizedObservableValue, s as shapeToTypeScript, t as usefulOutputSchema, u as FileObservedOutputShapeStore, v as OBSERVED_OUTPUT_SHAPE_VERSION } from "./observed-output-shapes-D2k2-q8K.js";
|
|
2
2
|
export { FileObservedOutputShapeStore, OBSERVED_OUTPUT_SHAPE_LIMITS, OBSERVED_OUTPUT_SHAPE_VERSION, backendFingerprint, extractJsonShape, hasTruncatedShape, mergeJsonShapes, normalizedObservableValue, observeOutputShape, observedOutputShapeKey, observedOutputShapeStorageKey, parseShapeableJsonText, shapeToTypeScript, shapeType, stableHash, usefulOutputSchema };
|
package/dist/openapi.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export declare class OpenApiManager {
|
|
|
8
8
|
private readonly cache;
|
|
9
9
|
constructor(registry: ServerRegistry, options?: {
|
|
10
10
|
authDir?: string;
|
|
11
|
+
artifactDir?: string;
|
|
12
|
+
exposeLocalArtifactPaths?: boolean;
|
|
11
13
|
});
|
|
12
14
|
updateRegistry(registry: ServerRegistry): void;
|
|
13
15
|
invalidate(serverId: string): void;
|
package/dist/registry.d.ts
CHANGED
|
@@ -32,6 +32,12 @@ export type CapletServerDetail = {
|
|
|
32
32
|
requestTimeoutMs: number;
|
|
33
33
|
operationCacheTtlMs: number;
|
|
34
34
|
source: "specPath" | "specUrl";
|
|
35
|
+
} | {
|
|
36
|
+
type: "googleDiscovery";
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
requestTimeoutMs: number;
|
|
39
|
+
operationCacheTtlMs: number;
|
|
40
|
+
source: "discoveryPath" | "discoveryUrl";
|
|
35
41
|
} | {
|
|
36
42
|
type: "graphql";
|
|
37
43
|
disabled: boolean;
|
package/dist/remote/options.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type CapletsRemoteEnv = Partial<Record<"CAPLETS_MODE" | "CAPLETS_REMOTE_URL" | "CAPLETS_REMOTE_USER" | "CAPLETS_REMOTE_PASSWORD" | "CAPLETS_REMOTE_TOKEN" | "CAPLETS_REMOTE_WORKSPACE"
|
|
1
|
+
export type CapletsRemoteEnv = Partial<Record<"CAPLETS_MODE" | "CAPLETS_REMOTE_URL" | "CAPLETS_REMOTE_USER" | "CAPLETS_REMOTE_PASSWORD" | "CAPLETS_REMOTE_TOKEN" | "CAPLETS_REMOTE_WORKSPACE", string>>;
|
|
2
2
|
export type CapletsRemoteModeInput = {
|
|
3
3
|
mode?: string;
|
|
4
4
|
remoteUrl?: string;
|
package/dist/runtime-plan.js
CHANGED
|
@@ -254,7 +254,7 @@ function classifyCapletRuntimeRoute(caplet) {
|
|
|
254
254
|
if (caplet.setup) return "process";
|
|
255
255
|
if (caplet.backend === "cli") return "process";
|
|
256
256
|
if (caplet.backend === "mcp") return caplet.transport === "stdio" || Boolean(caplet.command) ? "process" : "worker_safe";
|
|
257
|
-
if (caplet.backend === "openapi" || caplet.backend === "graphql" || caplet.backend === "http") return "worker_safe";
|
|
257
|
+
if (caplet.backend === "openapi" || caplet.backend === "googleDiscovery" || caplet.backend === "graphql" || caplet.backend === "http") return "worker_safe";
|
|
258
258
|
if (caplet.backend === "caplets") return "worker_safe";
|
|
259
259
|
return "local_only";
|
|
260
260
|
}
|
package/dist/runtime.d.ts
CHANGED
package/dist/serve/session.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare class CapletsMcpSession {
|
|
|
13
13
|
private readonly resources;
|
|
14
14
|
private readonly prompts;
|
|
15
15
|
private codeModeTool;
|
|
16
|
+
private readonly codeModeSessions;
|
|
16
17
|
private readonly unsubscribeReload;
|
|
17
18
|
private closed;
|
|
18
19
|
constructor(engine: CapletsEngine, options?: CapletsMcpSessionOptions);
|