raysurfer 0.5.6 → 0.5.7

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/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * RaySurfer SDK client
3
3
  */
4
- export declare const VERSION = "0.5.0";
4
+ export declare const VERSION = "0.5.7";
5
5
  import type { AgentReview, AgentVerdict, AutoReviewParams, AutoReviewResponse, BulkExecutionResultResponse, ExecutionState, FewShotExample, FileWritten, GetCodeFilesResponse, GetExecutionsParams, LogFile, RetrieveBestResponse, RetrieveCodeBlockResponse, RetrieveExecutionsResponse, SearchResponse, SnipsDesired, StoreCodeBlockResponse, StoreExecutionResponse, SubmitExecutionResultResponse, TaskPattern } from "./types";
6
6
  export interface RaySurferOptions {
7
7
  /** RaySurfer API key */
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ class ValidationError extends RaySurferError {
69
69
  }
70
70
 
71
71
  // src/client.ts
72
- var VERSION = "0.5.0";
72
+ var VERSION = "0.5.7";
73
73
  var DEFAULT_BASE_URL = "https://api.raysurfer.com";
74
74
  var MAX_RETRIES = 3;
75
75
  var RETRY_BASE_DELAY = 500;
@@ -632,10 +632,15 @@ function augmentSystemPrompt(systemPrompt, addition) {
632
632
  return addition;
633
633
  }
634
634
  function splitOptions(options) {
635
- const { snipsDesired, namespace, debug, workingDirectory, ...sdkOptions } = options;
635
+ const { workspaceId, namespace, debug, workingDirectory, ...sdkOptions } = options;
636
636
  return {
637
637
  sdkOptions,
638
- extras: { snipsDesired, namespace, debug, workingDirectory }
638
+ extras: {
639
+ workspaceId,
640
+ namespace,
641
+ debug,
642
+ workingDirectory
643
+ }
639
644
  };
640
645
  }
641
646
 
@@ -692,7 +697,8 @@ class RaysurferQuery {
692
697
  this._raysurfer = new RaySurfer({
693
698
  apiKey: this._apiKey,
694
699
  baseUrl: this._baseUrl,
695
- snipsDesired: this._extras.snipsDesired,
700
+ workspaceId: this._extras.workspaceId,
701
+ snipsDesired: this._extras.workspaceId ? "client" : undefined,
696
702
  namespace: this._extras.namespace
697
703
  });
698
704
  try {
@@ -12,11 +12,10 @@
12
12
  * Everything else works exactly the same. Set RAYSURFER_API_KEY to enable caching.
13
13
  */
14
14
  import type { Options, Query, SDKUserMessage } from "@anthropic-ai/claude-agent-sdk";
15
- import type { SnipsDesired } from "./types";
16
15
  /** Raysurfer-specific options beyond Claude SDK Options */
17
16
  export interface RaysurferExtras {
18
- /** Scope of private snippets - "company" (Team/Enterprise) or "client" (Enterprise only) */
19
- snipsDesired?: SnipsDesired;
17
+ /** Workspace ID for per-customer isolation (enterprise only) */
18
+ workspaceId?: string;
20
19
  /** Custom namespace for code storage/retrieval */
21
20
  namespace?: string;
22
21
  /** Enable debug logging - also enabled via RAYSURFER_DEBUG=true env var */
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-client.d.ts","sourceRoot":"","sources":["../src/sdk-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,KAAK,EAMV,OAAO,EAEP,KAAK,EAGL,cAAc,EAEf,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAyB,YAAY,EAAE,MAAM,SAAS,CAAC;AA2DnE,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,4FAA4F;IAC5F,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,oCAAoC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,4EAA4E;AAC5E,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,eAAe,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,qBAAqB,CAAC;AAEjD,kDAAkD;AAClD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,c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MAAM,EAAE,WAAW,GAAG,KAAK,CAEhD;AAED;;;;;;;;;GASG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,OAAO,CAAwB;gBAE3B,OAAO,GAAE,qBAA0B;IAI/C,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,CAAC,cAAc,CAAC,GAAG,KAAK;CAG7D;AAGD,OAAO,EAAE,eAAe,IAAI,eAAe,EAAE,CAAC;AAC9C,YAAY,EAAE,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;AAE/D,eAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raysurfer",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Semantic code caching for LLM agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",