@recombine-ai/telescope 0.1.1 → 0.2.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.
package/build/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export declare function helloTelescope(): string;
2
2
  export type * from './interfaces/api-call-tracer';
3
3
  export type * from './interfaces/conversational-tracer';
4
+ export type * from './interfaces/latency-tracer';
4
5
  export type * from './interfaces/step-tracer';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,mBAAmB,8BAA8B,CAAA;AACjD,mBAAmB,oCAAoC,CAAA;AACvD,mBAAmB,0BAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,mBAAmB,8BAA8B,CAAA;AACjD,mBAAmB,oCAAoC,CAAA;AACvD,mBAAmB,6BAA6B,CAAA;AAChD,mBAAmB,0BAA0B,CAAA"}
@@ -0,0 +1,14 @@
1
+ export type LatencyTrace = {
2
+ traceId?: string;
3
+ conversationId?: string;
4
+ seq: number;
5
+ atMs: number;
6
+ eventType: string;
7
+ payload?: unknown;
8
+ createdAt: number;
9
+ };
10
+ export interface LatencyTracer {
11
+ addLatencyTrace(trace: LatencyTrace): void;
12
+ flush(): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=latency-tracer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latency-tracer.d.ts","sourceRoot":"","sources":["../../src/interfaces/latency-tracer.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,YAAY,GAAG;IAEvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAGhB,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,GAAG,EAAE,MAAM,CAAA;IAGX,IAAI,EAAE,MAAM,CAAA;IAGZ,SAAS,EAAE,MAAM,CAAA;IAGjB,OAAO,CAAC,EAAE,OAAO,CAAA;IAGjB,SAAS,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,WAAW,aAAa;IAC1B,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAA;IAC1C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CACzB"}
@@ -0,0 +1 @@
1
+ export {};
package/build/stubs.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ApiCallTrace } from './interfaces/api-call-tracer';
2
2
  import { ConversationalTrace } from './interfaces/conversational-tracer';
3
3
  import { Logger } from './interfaces/dockyard';
4
+ import { LatencyTrace } from './interfaces/latency-tracer';
4
5
  import { StepTrace } from './interfaces/step-tracer';
5
6
  export declare function createStubStepTracer(logger: Logger): {
6
7
  addStepTrace(trace: StepTrace): void;
@@ -14,4 +15,8 @@ export declare function createStubConversationalTracer(logger: Logger): {
14
15
  addConversationalTrace(trace: ConversationalTrace): void;
15
16
  flush(): Promise<void>;
16
17
  };
18
+ export declare function createStubLatencyTracer(logger: Logger): {
19
+ addLatencyTrace(trace: LatencyTrace): void;
20
+ flush(): Promise<void>;
21
+ };
17
22
  //# sourceMappingURL=stubs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stubs.d.ts","sourceRoot":"","sources":["../src/stubs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAiB,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,mBAAmB,EAAwB,MAAM,oCAAoC,CAAA;AAC9F,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAc,MAAM,0BAA0B,CAAA;AAEhE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM;wBAEvB,SAAS;;EAuBpC;AAKD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM;2BAEvB,YAAY;;EAQ1C;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,MAAM;kCAEvB,mBAAmB;;EAKxD"}
1
+ {"version":3,"file":"stubs.d.ts","sourceRoot":"","sources":["../src/stubs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAiB,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,mBAAmB,EAAwB,MAAM,oCAAoC,CAAA;AAC9F,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAiB,MAAM,6BAA6B,CAAA;AACzE,OAAO,EAAE,SAAS,EAAc,MAAM,0BAA0B,CAAA;AAEhE,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM;wBAEvB,SAAS;;EAuBpC;AAKD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM;2BAEvB,YAAY;;EAQ1C;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,MAAM;kCAEvB,mBAAmB;;EAKxD;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM;2BAEvB,YAAY;;EAK1C"}
package/build/stubs.js CHANGED
@@ -41,3 +41,11 @@ export function createStubConversationalTracer(logger) {
41
41
  async flush() { },
42
42
  };
43
43
  }
44
+ export function createStubLatencyTracer(logger) {
45
+ return {
46
+ addLatencyTrace(trace) {
47
+ logger.log(`LatencyTrace: ${trace.eventType} (seq ${trace.seq})`, trace);
48
+ },
49
+ async flush() { },
50
+ };
51
+ }
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
- "name": "@recombine-ai/telescope",
3
- "version": "0.1.1",
4
- "description": "Observability suite for Recombine platform and Bosun IDE",
5
- "license": "EULA",
6
- "author": "recombine.ai",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/recombine-ai/platform.git",
10
- "directory": "packages/telescope"
11
- },
12
- "files": [
13
- "build"
14
- ],
15
- "type": "module",
16
- "types": "./build/index.d.ts",
17
- "exports": {
18
- ".": {
19
- "types": "./build/index.d.ts",
20
- "import": "./build/index.js",
21
- "default": "./build/index.js"
22
- }
23
- },
24
- "publishConfig": {
25
- "registry": "https://registry.npmjs.org"
26
- },
27
- "dependencies": {
28
- "zod": "^4.4.3"
2
+ "name": "@recombine-ai/telescope",
3
+ "version": "0.2.0",
4
+ "description": "Observability suite for Recombine platform and Bosun IDE",
5
+ "license": "EULA",
6
+ "author": "recombine.ai",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/recombine-ai/platform.git",
10
+ "directory": "packages/telescope"
11
+ },
12
+ "files": [
13
+ "build"
14
+ ],
15
+ "type": "module",
16
+ "types": "./build/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "types": "./build/index.d.ts",
20
+ "import": "./build/index.js",
21
+ "default": "./build/index.js"
29
22
  }
30
- }
23
+ },
24
+ "publishConfig": {
25
+ "registry": "https://registry.npmjs.org"
26
+ },
27
+ "dependencies": {
28
+ "zod": "^4.4.3"
29
+ }
30
+ }