@kaoruisaac/pedelec 0.3.3 → 0.3.5
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 +84 -3
- package/dist/deno-module-internal.d.ts +19 -0
- package/dist/deno-module-internal.js +49 -0
- package/dist/index.d.ts +34 -9
- package/dist/index.js +216 -5
- package/dist/index.type-test.js +44 -3
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/dist/vite.d.ts +9 -0
- package/dist/vite.js +1255 -0
- package/dist/vite.type-test.d.ts +1 -0
- package/dist/vite.type-test.js +10 -0
- package/package.json +18 -2
package/dist/index.type-test.js
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
|
-
import { Pedelec, defineTool, } from "./index";
|
|
1
|
+
import { Pedelec, defineTool, defineDenoModule, } from "./index";
|
|
2
|
+
const spriteTools = defineDenoModule({
|
|
3
|
+
name: "sprite-tools",
|
|
4
|
+
description: "Sprite authoring utilities.",
|
|
5
|
+
entry: "./agent/sprite-tools.ts",
|
|
6
|
+
usage: `import { previewActorSource } from "sprite-tools";`,
|
|
7
|
+
preferStdinExecution: true,
|
|
8
|
+
});
|
|
9
|
+
const spriteName = spriteTools.name;
|
|
10
|
+
const spriteDefinition = spriteTools;
|
|
11
|
+
void spriteName;
|
|
12
|
+
void spriteDefinition;
|
|
13
|
+
// @ts-expect-error Deno Module usage is required by the public authoring API
|
|
14
|
+
defineDenoModule({
|
|
15
|
+
name: "missing-usage",
|
|
16
|
+
description: "Missing usage.",
|
|
17
|
+
entry: "./agent/missing-usage.ts",
|
|
18
|
+
});
|
|
19
|
+
// @ts-expect-error Deno Module entry remains required at authoring time
|
|
20
|
+
defineDenoModule({
|
|
21
|
+
name: "missing-entry",
|
|
22
|
+
description: "Missing entry.",
|
|
23
|
+
usage: 'import "missing-entry";',
|
|
24
|
+
});
|
|
25
|
+
defineDenoModule({
|
|
26
|
+
name: "non-string-entry",
|
|
27
|
+
description: "Invalid entry.",
|
|
28
|
+
// @ts-expect-error Deno Module entry is a build-time string authoring field
|
|
29
|
+
entry: 42,
|
|
30
|
+
usage: 'import "non-string-entry";',
|
|
31
|
+
});
|
|
2
32
|
function workspaceInputHasPublicType() {
|
|
3
33
|
return { path: "C:\\workspace\\project" };
|
|
4
34
|
}
|
|
@@ -20,6 +50,7 @@ async function typedOnToolNameFromCreateSession() {
|
|
|
20
50
|
argsSchema: { type: "object", properties: {}, required: [] },
|
|
21
51
|
}),
|
|
22
52
|
],
|
|
53
|
+
denoModules: [spriteTools],
|
|
23
54
|
},
|
|
24
55
|
});
|
|
25
56
|
session.onTool((name, args, ctx) => {
|
|
@@ -115,8 +146,18 @@ async function effortLevelPublicTypeContract() {
|
|
|
115
146
|
pedelec.createSession({ provider: "codex", sandbox: { path: "C:\\workspace\\legacy" } });
|
|
116
147
|
// @ts-expect-error the removed sandbox picker is not part of the public contract
|
|
117
148
|
pedelec.sandboxFolderPicker();
|
|
118
|
-
|
|
119
|
-
pedelec.createSession({ provider: "codex", model: "gpt-5" });
|
|
149
|
+
await pedelec.createSession({ model: "gpt-5" });
|
|
150
|
+
await pedelec.createSession({ provider: "codex", model: "gpt-5", effort: "max" });
|
|
151
|
+
const explicitEffort = "xhigh";
|
|
152
|
+
await pedelec.createSession({ provider: "codex", model: "gpt-5", effort: explicitEffort });
|
|
153
|
+
// @ts-expect-error explicit model mode cannot select a Desktop effort profile
|
|
154
|
+
await pedelec.createSession({ provider: "codex", model: "gpt-5", effortLevel: "high" });
|
|
155
|
+
// @ts-expect-error explicit effort requires an explicit model
|
|
156
|
+
await pedelec.createSession({ provider: "codex", effort: "high" });
|
|
157
|
+
// @ts-expect-error explicit model, effort, and Desktop profile are mutually exclusive
|
|
158
|
+
await pedelec.createSession({ model: "gpt-5", effort: "max", effortLevel: "low" });
|
|
159
|
+
// @ts-expect-error unsupported provider-native effort value
|
|
160
|
+
await pedelec.createSession({ model: "gpt-5", effort: "default" });
|
|
120
161
|
// @ts-expect-error session no longer exposes provider model
|
|
121
162
|
session.model;
|
|
122
163
|
// @ts-expect-error unsupported effort level
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.3.
|
|
1
|
+
export declare const SDK_VERSION = "0.3.5";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated from sdk/package.json. Do not edit manually.
|
|
2
|
-
export const SDK_VERSION = "0.3.
|
|
2
|
+
export const SDK_VERSION = "0.3.5";
|
package/dist/vite.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Plugin } from "vite";
|
|
2
|
+
/**
|
|
3
|
+
* Vite build-time support for the static Deno module authoring API.
|
|
4
|
+
*
|
|
5
|
+
* The plugin deliberately keeps the generated module inside the transformed
|
|
6
|
+
* browser module. The SDK can consume the non-enumerable private artifact in
|
|
7
|
+
* a later transport phase without giving the runtime the original entry path.
|
|
8
|
+
*/
|
|
9
|
+
export declare function pedelecVitePlugin(): Plugin;
|