@kmugalkhod/lightcode 0.14.0 → 0.16.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.
@@ -7,7 +7,7 @@
7
7
  <meta name="theme-color" content="#0D1117" />
8
8
  <title>Lightcode</title>
9
9
 
10
- <link rel="stylesheet" crossorigin href="./index-2dshmdgm.css"><script type="module" crossorigin src="./index-x9zna9dg.js"></script></head>
10
+ <link rel="stylesheet" crossorigin href="./index-wma2v20c.css"><script type="module" crossorigin src="./index-wzb9vzdt.js"></script></head>
11
11
  <body>
12
12
  <!--
13
13
  THESIS: One local coding workspace shared with the CLI; this surface rejects dashboard-card clutter and keeps the project conversation central.
package/cli.js CHANGED
@@ -124,7 +124,7 @@ var init_logger = __esm(() => {
124
124
  });
125
125
 
126
126
  // packages/shared/src/version.ts
127
- var lightcodeVersion = "0.14.0";
127
+ var lightcodeVersion = "0.16.0";
128
128
 
129
129
  // packages/shared/src/index.ts
130
130
  var productName = "Lightcode";
@@ -10089,7 +10089,7 @@ var init_runtime16 = __esm(() => {
10089
10089
 
10090
10090
  // packages/ai/src/workspace-browser.ts
10091
10091
  import { z as z37 } from "zod";
10092
- var workspaceLocationIdSchema, workspaceLocationStateSchema, workspaceLocationSchema, workspaceLocationsResponseSchema, workspaceBrowserOpenRequestSchema, workspaceBrowserIdSchema, workspaceBrowserOpenResponseSchema, workspacePathSegmentSchema, workspacePathSegmentsSchema, workspaceBrowserCursorSchema, workspaceBrowserEntriesRequestSchema, workspaceBrowserEntryKindSchema, workspaceBrowserSymlinkStateSchema, workspaceBrowserEntrySchema, workspaceBrowserEntriesResponseSchema, workspaceBrowserSelectRequestSchema, workspaceGrantIdSchema, workspaceGrantSchema, workspaceBrowserSelectResponseSchema, workspaceSessionPathParamsSchema, workspaceSessionCreateRequestSchema, workspaceBrowserPathParamsSchema, workspaceApiErrorCodeSchema, workspaceApiErrorResponseSchema;
10092
+ var workspaceLocationIdSchema, workspaceLocationStateSchema, workspaceLocationSchema, workspaceLocationsResponseSchema, workspaceBrowserOpenRequestSchema, workspaceBrowserIdSchema, workspaceBrowserOpenResponseSchema, workspacePathSegmentSchema, workspacePathSegmentsSchema, workspaceBrowserCursorSchema, workspaceBrowserEntriesRequestSchema, workspaceBrowserEntryKindSchema, workspaceBrowserSymlinkStateSchema, workspaceBrowserEntrySchema, workspaceBrowserEntriesResponseSchema, workspaceBrowserSelectRequestSchema, workspaceGrantIdSchema, workspaceGrantSchema, workspaceNativePickerRequestSchema, workspaceNativePickerResponseSchema, workspaceBrowserSelectResponseSchema, workspaceSessionPathParamsSchema, workspaceSessionCreateRequestSchema, workspaceBrowserPathParamsSchema, workspaceApiErrorCodeSchema, workspaceApiErrorResponseSchema;
10093
10093
  var init_workspace_browser = __esm(() => {
10094
10094
  init_coding_agent_modes();
10095
10095
  init_permissions();
@@ -10171,6 +10171,16 @@ var init_workspace_browser = __esm(() => {
10171
10171
  pathLabel: z37.string().min(1).max(4096),
10172
10172
  createdAt: z37.string().min(1)
10173
10173
  }).strict();
10174
+ workspaceNativePickerRequestSchema = z37.object({}).strict();
10175
+ workspaceNativePickerResponseSchema = z37.discriminatedUnion("outcome", [
10176
+ z37.object({
10177
+ outcome: z37.literal("selected"),
10178
+ workspace: workspaceGrantSchema
10179
+ }).strict(),
10180
+ z37.object({
10181
+ outcome: z37.literal("cancelled")
10182
+ }).strict()
10183
+ ]);
10174
10184
  workspaceBrowserSelectResponseSchema = z37.object({
10175
10185
  workspace: workspaceGrantSchema
10176
10186
  }).strict();
@@ -10198,7 +10208,10 @@ var init_workspace_browser = __esm(() => {
10198
10208
  "browser_capability_expired",
10199
10209
  "workspace_grant_not_found",
10200
10210
  "invalid_cursor",
10201
- "workspace_unavailable"
10211
+ "workspace_unavailable",
10212
+ "native_picker_busy",
10213
+ "native_picker_unavailable",
10214
+ "native_picker_failed"
10202
10215
  ]);
10203
10216
  workspaceApiErrorResponseSchema = z37.object({
10204
10217
  error: z37.string().min(1),
@@ -11358,6 +11371,9 @@ function scanRunCursorText(state, text) {
11358
11371
  cursor
11359
11372
  };
11360
11373
  }
11374
+ function shouldMonitorChatResponseBody(response) {
11375
+ return Boolean(response.body && response.status !== 204 && response.status !== 205 && response.status !== 304);
11376
+ }
11361
11377
  function buildSessionRunResumeUrl({
11362
11378
  chatApi,
11363
11379
  runId,
@@ -11762,7 +11778,11 @@ function useCodingSessionChat({
11762
11778
  } catch {}
11763
11779
  }
11764
11780
  lastStreamActivityRef.current = Date.now();
11765
- if (!response.body) {
11781
+ if (!shouldMonitorChatResponseBody(response)) {
11782
+ return response;
11783
+ }
11784
+ const responseBody = response.body;
11785
+ if (!responseBody) {
11766
11786
  return response;
11767
11787
  }
11768
11788
  const cursorDecoder = new TextDecoder;
@@ -11770,7 +11790,7 @@ function useCodingSessionChat({
11770
11790
  carry: "",
11771
11791
  cursor: runCursorRef.current
11772
11792
  };
11773
- const monitoredBody = response.body.pipeThrough(new TransformStream({
11793
+ const monitoredBody = responseBody.pipeThrough(new TransformStream({
11774
11794
  transform(chunk, controller) {
11775
11795
  lastStreamActivityRef.current = Date.now();
11776
11796
  cursorState = scanRunCursorText(cursorState, cursorDecoder.decode(chunk, { stream: true }));
@@ -12695,6 +12715,8 @@ __export(exports_runtime, {
12695
12715
  workspaceSessionCreateRequestSchema: () => workspaceSessionCreateRequestSchema,
12696
12716
  workspacePathSegmentsSchema: () => workspacePathSegmentsSchema,
12697
12717
  workspacePathSegmentSchema: () => workspacePathSegmentSchema,
12718
+ workspaceNativePickerResponseSchema: () => workspaceNativePickerResponseSchema,
12719
+ workspaceNativePickerRequestSchema: () => workspaceNativePickerRequestSchema,
12698
12720
  workspaceLocationsResponseSchema: () => workspaceLocationsResponseSchema,
12699
12721
  workspaceLocationStateSchema: () => workspaceLocationStateSchema,
12700
12722
  workspaceLocationSchema: () => workspaceLocationSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmugalkhod/lightcode",
3
- "version": "0.14.0",
3
+ "version": "0.16.0",
4
4
  "description": "Lightcode — a local AI coding agent with terminal and browser interfaces.",
5
5
  "type": "module",
6
6
  "license": "MIT",