@kaoruisaac/pedelec 0.2.11 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  import { Pedelec, defineTool, } from "./index";
2
- function sandboxInputHasPublicType() {
2
+ function workspaceInputHasPublicType() {
3
3
  return { path: "C:\\workspace\\project" };
4
4
  }
5
5
  async function typedOnToolNameFromCreateSession() {
@@ -50,10 +50,20 @@ async function typedOnToolNameFromCreateSession() {
50
50
  });
51
51
  session.onChat((_text, ctx) => {
52
52
  const chatCtx = ctx;
53
+ const messageType = ctx.type;
53
54
  const receivedAt = ctx.eventReceivedAt;
54
55
  void receivedAt;
56
+ void messageType;
55
57
  void chatCtx;
56
58
  });
59
+ session.onChatDelta((_text, ctx) => {
60
+ const chatDeltaCtx = ctx;
61
+ const deltaType = ctx.type;
62
+ const receivedAt = ctx.eventReceivedAt;
63
+ void receivedAt;
64
+ void deltaType;
65
+ void chatDeltaCtx;
66
+ });
57
67
  session.onStatus((_status, ctx) => {
58
68
  const statusCtx = ctx;
59
69
  const previous = ctx.previousStatus;
@@ -68,6 +78,7 @@ async function typedOnToolNameFromCreateSession() {
68
78
  const endedCtx = ctx;
69
79
  return endedCtx;
70
80
  });
81
+ await session.resume();
71
82
  }
72
83
  async function resumedSessionFallsBackToString() {
73
84
  const pedelec = new Pedelec();
@@ -84,10 +95,10 @@ async function noSkillsFallsBackToString() {
84
95
  const pedelec = new Pedelec();
85
96
  const session = await pedelec.createSession({
86
97
  provider: "codex",
87
- sandbox: { path: "C:\\workspace\\project" },
98
+ workspace: { path: "C:\\workspace\\project" },
88
99
  });
89
- const typedSandbox = sandboxInputHasPublicType();
90
- void typedSandbox;
100
+ const typedWorkspace = workspaceInputHasPublicType();
101
+ void typedWorkspace;
91
102
  session.onTool((name) => {
92
103
  const anyString = name;
93
104
  return anyString;
@@ -100,6 +111,10 @@ async function effortLevelPublicTypeContract() {
100
111
  const pedelec = new Pedelec();
101
112
  await pedelec.createSession({ effortLevel: "high" });
102
113
  const session = await pedelec.createSession({ provider: "codex", effortLevel: "low" });
114
+ // @ts-expect-error the removed sandbox input is not part of the public contract
115
+ pedelec.createSession({ provider: "codex", sandbox: { path: "C:\\workspace\\legacy" } });
116
+ // @ts-expect-error the removed sandbox picker is not part of the public contract
117
+ pedelec.sandboxFolderPicker();
103
118
  // @ts-expect-error model is no longer a createSession option
104
119
  pedelec.createSession({ provider: "codex", model: "gpt-5" });
105
120
  // @ts-expect-error session no longer exposes provider model
@@ -136,14 +151,14 @@ async function availabilityHasPublicType() {
136
151
  void availability;
137
152
  void promise;
138
153
  }
139
- async function sandboxFolderPickerHasPublicType() {
154
+ async function workspaceFolderPickerHasPublicType() {
140
155
  const pedelec = new Pedelec();
141
- const result = pedelec.sandboxFolderPicker();
156
+ const result = pedelec.workspaceFolderPicker();
142
157
  void result;
143
158
  }
144
159
  function directoryPickerIsRemoved() {
145
160
  const pedelec = new Pedelec();
146
- // @ts-expect-error directoryPicker was removed in favor of sandboxFolderPicker
161
+ // @ts-expect-error directoryPicker was removed in favor of workspaceFolderPicker
147
162
  pedelec.directoryPicker();
148
163
  }
149
164
  function publicSecurityTypesAreRestricted() {
@@ -164,7 +179,7 @@ void noSkillsFallsBackToString;
164
179
  void effortLevelPublicTypeContract;
165
180
  void listAssetsHasPublicTypes;
166
181
  void availabilityHasPublicType;
167
- void sandboxFolderPickerHasPublicType;
182
+ void workspaceFolderPickerHasPublicType;
168
183
  void directoryPickerIsRemoved;
169
184
  void publicSecurityTypesAreRestricted;
170
185
  const baseContext = {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.2.11";
1
+ export declare const SDK_VERSION = "0.3.0";
@@ -1,2 +1,2 @@
1
1
  // Generated from sdk/package.json. Do not edit manually.
2
- export const SDK_VERSION = "0.2.11";
2
+ export const SDK_VERSION = "0.3.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaoruisaac/pedelec",
3
- "version": "0.2.11",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",