@agentuity/core 0.0.78 → 0.0.80

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/index.d.ts CHANGED
@@ -1,9 +1,16 @@
1
- export * from './error';
2
- export * from './json';
3
- export * from './logger';
4
- export * from './services';
5
- export * from './standard_schema';
6
- export * from './string';
7
- export * from './typehelper';
8
- export * from './workbench';
1
+ export { RichError, StructuredError, isStructuredError } from './error';
2
+ export { safeStringify } from './json';
3
+ export type { Logger, LogLevel } from './logger';
4
+ export type { FetchAdapter, FetchRequest, FetchResponse, FetchSuccessResponse, FetchErrorResponse, Body, HttpMethod, } from './services/adapter';
5
+ export { ServiceException } from './services/exception';
6
+ export { type DataResult, type DataResultFound, type DataResultNotFound, type KeyValueStorage, type KeyValueStorageSetParams, type KeyValueStats, type KeyValueItemWithMetadata, KeyValueStorageService, } from './services/keyvalue';
7
+ export { type SessionEventProvider, SessionStartEventSchema, SessionCompleteEventSchema, SessionStartEventDelayedSchema, SessionCompleteEventDelayedSchema, type SessionStartEvent, type SessionCompleteEvent, } from './services/session';
8
+ export { type CreateStreamProps, type ListStreamsParams, type StreamInfo, type ListStreamsResponse, type Stream, type StreamStorage, StreamStorageService, } from './services/stream';
9
+ export { type VectorUpsertBase, type VectorUpsertEmbeddings, type VectorUpsertText, type VectorUpsertParams, type VectorSearchParams, type VectorSearchResult, type VectorSearchResultWithDocument, type VectorUpsertResult, type VectorResultFound, type VectorResultNotFound, type VectorResult, type VectorStorage, VectorStorageService, } from './services/vector';
10
+ export { type EvalRunEventProvider, EvalRunStartEventSchema, EvalRunCompleteEventSchema, EvalRunStartEventDelayedSchema, EvalRunCompleteEventDelayedSchema, type EvalRunStartEvent, type EvalRunCompleteEvent, } from './services/evalrun';
11
+ export { buildUrl, toServiceException, toPayload, fromResponse } from './services/_util';
12
+ export type { StandardSchemaV1 } from './standard_schema';
13
+ export { toCamelCase, toPascalCase } from './string';
14
+ export type { InferInput, InferOutput } from './typehelper';
15
+ export { WorkbenchConfigError, WorkbenchNotFoundError, encodeWorkbenchConfig, decodeWorkbenchConfig, getWorkbenchConfig, type WorkbenchConfig, } from './workbench-config';
9
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGxE,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAGvC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGjD,YAAY,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,IAAI,EACJ,UAAU,GACV,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACN,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAC7B,sBAAsB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,KAAK,oBAAoB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,EACjC,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,KAAK,oBAAoB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,EACjC,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGzF,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGrD,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG5D,OAAO,EACN,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,eAAe,GACpB,MAAM,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,9 +1,16 @@
1
- export * from './error';
2
- export * from './json';
3
- export * from './logger';
4
- export * from './services';
5
- export * from './standard_schema';
6
- export * from './string';
7
- export * from './typehelper';
8
- export * from './workbench';
1
+ // error.ts exports
2
+ export { RichError, StructuredError, isStructuredError } from './error';
3
+ // json.ts exports
4
+ export { safeStringify } from './json';
5
+ export { ServiceException } from './services/exception';
6
+ export { KeyValueStorageService, } from './services/keyvalue';
7
+ export { SessionStartEventSchema, SessionCompleteEventSchema, SessionStartEventDelayedSchema, SessionCompleteEventDelayedSchema, } from './services/session';
8
+ export { StreamStorageService, } from './services/stream';
9
+ export { VectorStorageService, } from './services/vector';
10
+ export { EvalRunStartEventSchema, EvalRunCompleteEventSchema, EvalRunStartEventDelayedSchema, EvalRunCompleteEventDelayedSchema, } from './services/evalrun';
11
+ export { buildUrl, toServiceException, toPayload, fromResponse } from './services/_util';
12
+ // string.ts exports
13
+ export { toCamelCase, toPascalCase } from './string';
14
+ // workbench exports
15
+ export { WorkbenchConfigError, WorkbenchNotFoundError, encodeWorkbenchConfig, decodeWorkbenchConfig, getWorkbenchConfig, } from './workbench-config';
9
16
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAExE,kBAAkB;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAevC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAQN,sBAAsB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEN,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,GAGjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAON,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAaN,oBAAoB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEN,uBAAuB,EACvB,0BAA0B,EAC1B,8BAA8B,EAC9B,iCAAiC,GAGjC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAKzF,oBAAoB;AACpB,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAKrD,oBAAoB;AACpB,OAAO,EACN,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GAElB,MAAM,oBAAoB,CAAC"}
@@ -7,6 +7,7 @@ export declare const EvalRunStartEventSchema: z.ZodObject<{
7
7
  projectId: z.ZodString;
8
8
  devmode: z.ZodBoolean;
9
9
  deploymentId: z.ZodOptional<z.ZodString>;
10
+ spanId: z.ZodOptional<z.ZodString>;
10
11
  }, z.core.$strip>;
11
12
  export type EvalRunStartEvent = z.infer<typeof EvalRunStartEventSchema>;
12
13
  export declare const EvalRunCompleteEventSchema: z.ZodObject<{
@@ -23,6 +24,7 @@ export declare const EvalRunStartEventDelayedSchema: z.ZodIntersection<z.ZodObje
23
24
  projectId: z.ZodString;
24
25
  devmode: z.ZodBoolean;
25
26
  deploymentId: z.ZodOptional<z.ZodString>;
27
+ spanId: z.ZodOptional<z.ZodString>;
26
28
  }, z.core.$strip>, z.ZodObject<{
27
29
  timestamp: z.ZodNumber;
28
30
  }, z.core.$strip>>;
@@ -1 +1 @@
1
- {"version":3,"file":"evalrun.d.ts","sourceRoot":"","sources":["../../src/services/evalrun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;iBAUiB,CAAC;AAEtD,MAAM,MAAM,iBAAiB,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IACH,QAAQ,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrD"}
@@ -8,6 +8,7 @@ export const EvalRunStartEventSchema = z
8
8
  projectId: z.string().describe('the project id'),
9
9
  devmode: z.boolean().describe('true if running in devmode'),
10
10
  deploymentId: z.string().optional().describe('the deployment id'),
11
+ spanId: z.string().optional().describe('the span id'),
11
12
  })
12
13
  .describe('The event to record an eval run started');
13
14
  export const EvalRunCompleteEventSchema = z
@@ -1 +1 @@
1
- {"version":3,"file":"evalrun.js","sourceRoot":"","sources":["../../src/services/evalrun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACtC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC3D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;CACjE,CAAC;KACD,QAAQ,CAAC,yCAAyC,CAAC,CAAC;AAItD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACzC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAA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OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC3D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACjE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;CACrD,CAAC;KACD,QAAQ,CAAC,yCAAyC,CAAC,CAAC;AAItD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC;KACzC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;IAC1F,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CAC1D,CAAC;KACD,QAAQ,CAAC,2CAA2C,CAAC,CAAC;AAIxD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAC3D,uBAAuB,EACvB,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC,EAAE,CAAC,CAC5E,CAAC;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,YAAY,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC,EAAE,CAAC,CAC5E,CAAC"}
@@ -42,7 +42,6 @@ export declare const WorkbenchNotFoundError: {
42
42
  export interface WorkbenchConfig {
43
43
  route?: string;
44
44
  headers?: Record<string, string>;
45
- port?: number;
46
45
  apiKey?: string;
47
46
  }
48
47
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"workbench-config.d.ts","sourceRoot":"","sources":["../src/workbench-config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEF;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CASrE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAsBtE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CASpD"}
1
+ {"version":3,"file":"workbench-config.d.ts","sourceRoot":"","sources":["../src/workbench-config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AAEF;;GAEG;AAEH,MAAM,WAAW,eAAe;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CASrE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAsBtE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAS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,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QACzD,CAAC;aAAM,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;YACxC,gCAAgC;YAChC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QACtB,CAAC;aAAM,CAAC;YACP,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAoB,CAAC;QACnD,OAAO,MAAM,CAAC;IACf,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,oBAAoB,CAAC;YAC9B,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC;IACJ,CAAC;AACF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB;IACjC,gEAAgE;IAChE,sFAAsF;IACtF,IAAI,OAAO,iCAAiC,KAAK,WAAW,EAAE,CAAC;QAC9D,MAAM,IAAI,sBAAsB,EAAE,CAAC;IACpC,CAAC;IAED,sFAAsF;IACtF,OAAO,qBAAqB,CAAC,iCAAiC,CAAC,CAAC;AACjE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentuity/core",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Agentuity employees and contributors",
6
6
  "type": "module",
@@ -32,12 +32,13 @@
32
32
  "zod": "^4.1.12"
33
33
  },
34
34
  "devDependencies": {
35
- "@agentuity/test-utils": "0.0.78",
35
+ "@agentuity/test-utils": "0.0.80",
36
36
  "@types/bun": "latest",
37
37
  "bun-types": "latest",
38
38
  "typescript": "^5.9.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
- }
42
+ },
43
+ "sideEffects": false
43
44
  }
package/src/index.ts CHANGED
@@ -1,8 +1,92 @@
1
- export * from './error';
2
- export * from './json';
3
- export * from './logger';
4
- export * from './services';
5
- export * from './standard_schema';
6
- export * from './string';
7
- export * from './typehelper';
8
- export * from './workbench';
1
+ // error.ts exports
2
+ export { RichError, StructuredError, isStructuredError } from './error';
3
+
4
+ // json.ts exports
5
+ export { safeStringify } from './json';
6
+
7
+ // logger.ts exports
8
+ export type { Logger, LogLevel } from './logger';
9
+
10
+ // services exports
11
+ export type {
12
+ FetchAdapter,
13
+ FetchRequest,
14
+ FetchResponse,
15
+ FetchSuccessResponse,
16
+ FetchErrorResponse,
17
+ Body,
18
+ HttpMethod,
19
+ } from './services/adapter';
20
+ export { ServiceException } from './services/exception';
21
+ export {
22
+ type DataResult,
23
+ type DataResultFound,
24
+ type DataResultNotFound,
25
+ type KeyValueStorage,
26
+ type KeyValueStorageSetParams,
27
+ type KeyValueStats,
28
+ type KeyValueItemWithMetadata,
29
+ KeyValueStorageService,
30
+ } from './services/keyvalue';
31
+ export {
32
+ type SessionEventProvider,
33
+ SessionStartEventSchema,
34
+ SessionCompleteEventSchema,
35
+ SessionStartEventDelayedSchema,
36
+ SessionCompleteEventDelayedSchema,
37
+ type SessionStartEvent,
38
+ type SessionCompleteEvent,
39
+ } from './services/session';
40
+ export {
41
+ type CreateStreamProps,
42
+ type ListStreamsParams,
43
+ type StreamInfo,
44
+ type ListStreamsResponse,
45
+ type Stream,
46
+ type StreamStorage,
47
+ StreamStorageService,
48
+ } from './services/stream';
49
+ export {
50
+ type VectorUpsertBase,
51
+ type VectorUpsertEmbeddings,
52
+ type VectorUpsertText,
53
+ type VectorUpsertParams,
54
+ type VectorSearchParams,
55
+ type VectorSearchResult,
56
+ type VectorSearchResultWithDocument,
57
+ type VectorUpsertResult,
58
+ type VectorResultFound,
59
+ type VectorResultNotFound,
60
+ type VectorResult,
61
+ type VectorStorage,
62
+ VectorStorageService,
63
+ } from './services/vector';
64
+ export {
65
+ type EvalRunEventProvider,
66
+ EvalRunStartEventSchema,
67
+ EvalRunCompleteEventSchema,
68
+ EvalRunStartEventDelayedSchema,
69
+ EvalRunCompleteEventDelayedSchema,
70
+ type EvalRunStartEvent,
71
+ type EvalRunCompleteEvent,
72
+ } from './services/evalrun';
73
+ export { buildUrl, toServiceException, toPayload, fromResponse } from './services/_util';
74
+
75
+ // standard_schema.ts exports
76
+ export type { StandardSchemaV1 } from './standard_schema';
77
+
78
+ // string.ts exports
79
+ export { toCamelCase, toPascalCase } from './string';
80
+
81
+ // typehelper.ts exports
82
+ export type { InferInput, InferOutput } from './typehelper';
83
+
84
+ // workbench exports
85
+ export {
86
+ WorkbenchConfigError,
87
+ WorkbenchNotFoundError,
88
+ encodeWorkbenchConfig,
89
+ decodeWorkbenchConfig,
90
+ getWorkbenchConfig,
91
+ type WorkbenchConfig,
92
+ } from './workbench-config';
@@ -9,6 +9,7 @@ export const EvalRunStartEventSchema = z
9
9
  projectId: z.string().describe('the project id'),
10
10
  devmode: z.boolean().describe('true if running in devmode'),
11
11
  deploymentId: z.string().optional().describe('the deployment id'),
12
+ spanId: z.string().optional().describe('the span id'),
12
13
  })
13
14
  .describe('The event to record an eval run started');
14
15
 
@@ -17,7 +17,6 @@ export const WorkbenchNotFoundError = StructuredError(
17
17
  export interface WorkbenchConfig {
18
18
  route?: string;
19
19
  headers?: Record<string, string>;
20
- port?: number;
21
20
  apiKey?: string;
22
21
  }
23
22