@rudderjs/telescope 9.0.0 → 10.0.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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Debug assistant for RudderJS — records requests, queries, jobs, exceptions, logs, mail, notifications, events, cache operations, scheduled tasks, model changes, CLI commands, outgoing HTTP requests, authorization decisions, WebSocket lifecycle, Yjs CRDT events, and `dump()`/`dd()` calls.
4
4
 
5
+ > **About the version number.** Telescope is currently at v9.x. The high major doesn't reflect 9 ground-up rewrites — it's the result of Changesets peer-bump cascades across the `@rudderjs/*` workspace, where a major bump in any peer ripples through dependents. The public API has been stable since v6.
6
+
5
7
  ## Installation
6
8
 
7
9
  ```bash
@@ -85,7 +87,7 @@ Telescope records 19 entry types via the observer-registry pattern — each peer
85
87
  | `cache` | CacheCollector | `@rudderjs/cache` | Cache hits, misses, writes, forgets |
86
88
  | `schedule` | ScheduleCollector | `@rudderjs/schedule` | Scheduled task execution with output |
87
89
  | `model` | ModelCollector | `@rudderjs/orm` | Model create/update/delete with dirty attributes diff |
88
- | `command` | CommandCollector | `@rudderjs/rudder` | CLI command invocations with args, duration, exit code |
90
+ | `command` | CommandCollector | `@rudderjs/console` | CLI command invocations with args, duration, exit code |
89
91
  | `http` | HttpCollector | `@rudderjs/http` | Outgoing HTTP requests with timing, headers, response body |
90
92
  | `gate` | GateCollector | `@rudderjs/auth` | Authorization decisions — ability, allowed/denied, resolution path (ability/policy/before), timing |
91
93
  | `ai` | AiCollector | `@rudderjs/ai` | Agent runs — model, prompt, tool calls, token usage, middleware timing, streamed chunks |
@@ -1,12 +1,12 @@
1
1
  import type { Collector, TelescopeStorage } from '../types.js';
2
2
  /**
3
3
  * Records every `rudder` CLI invocation by subscribing to the
4
- * `commandObservers` registry exported from `@rudderjs/rudder`. The CLI
4
+ * `commandObservers` registry exported from `@rudderjs/console`. The CLI
5
5
  * runner emits one observation per command (success or failure) including
6
6
  * name, parsed args/opts, duration, exit code, and any thrown error.
7
7
  *
8
8
  * Self-contained: no app middleware, no router involvement. The collector
9
- * just subscribes once at boot. If `@rudderjs/rudder` is not installed
9
+ * just subscribes once at boot. If `@rudderjs/console` is not installed
10
10
  * (impossible in practice since telescope depends on it transitively),
11
11
  * the import quietly fails and no commands are recorded.
12
12
  */
@@ -1,12 +1,12 @@
1
1
  import { createEntry } from '../storage.js';
2
2
  /**
3
3
  * Records every `rudder` CLI invocation by subscribing to the
4
- * `commandObservers` registry exported from `@rudderjs/rudder`. The CLI
4
+ * `commandObservers` registry exported from `@rudderjs/console`. The CLI
5
5
  * runner emits one observation per command (success or failure) including
6
6
  * name, parsed args/opts, duration, exit code, and any thrown error.
7
7
  *
8
8
  * Self-contained: no app middleware, no router involvement. The collector
9
- * just subscribes once at boot. If `@rudderjs/rudder` is not installed
9
+ * just subscribes once at boot. If `@rudderjs/console` is not installed
10
10
  * (impossible in practice since telescope depends on it transitively),
11
11
  * the import quietly fails and no commands are recorded.
12
12
  */
@@ -19,11 +19,11 @@ export class CommandCollector {
19
19
  }
20
20
  async register() {
21
21
  try {
22
- const { commandObservers } = await import('@rudderjs/rudder');
22
+ const { commandObservers } = await import('@rudderjs/console');
23
23
  commandObservers.subscribe((obs) => this.record(obs));
24
24
  }
25
25
  catch {
26
- // @rudderjs/rudder not available — skip
26
+ // @rudderjs/console not available — skip
27
27
  }
28
28
  }
29
29
  record(obs) {
@@ -1 +1 @@
1
- {"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/collectors/command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAa3C;;;;;;;;;;GAUG;AACH,MAAM,OAAO,gBAAgB;IAIE;IAHpB,IAAI,GAAG,mBAAmB,CAAA;IAC1B,IAAI,GAAG,SAAkB,CAAA;IAElC,YAA6B,OAAyB;QAAzB,YAAO,GAAP,OAAO,CAAkB;IAAG,CAAC;IAE1D,KAAK,CAAC,QAAQ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GAAG,CAAC,KAAK,EAAE,CAAC;YACd,OAAO,CAAC,OAAO,CAAC,GAAG;gBACjB,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO;gBAC1B,KAAK,EAAI,GAAG,CAAC,KAAK,CAAC,KAAK;aACzB,CAAA;QACH,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;IAC/D,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudderjs/telescope",
3
- "version": "9.0.0",
3
+ "version": "10.0.0",
4
4
  "rudderjs": {
5
5
  "provider": "TelescopeProvider",
6
6
  "stage": "monitoring"
@@ -25,29 +25,29 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@rudderjs/contracts": "^0.2.0",
29
- "@rudderjs/core": "^0.1.3"
28
+ "@rudderjs/contracts": "^1.0.0",
29
+ "@rudderjs/core": "^1.0.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@rudderjs/router": "^0.3.1",
33
- "@rudderjs/rudder": "^0.0.3",
34
- "@rudderjs/log": "^0.0.7",
35
- "@rudderjs/orm": "^0.1.2",
36
- "@rudderjs/mail": "^0.0.11",
37
- "@rudderjs/notification": "^0.0.12",
38
- "@rudderjs/queue": "^3.0.2",
39
- "@rudderjs/schedule": "^0.0.12",
40
- "@rudderjs/middleware": "^0.0.14",
41
- "@rudderjs/cache": "^0.0.12",
42
- "@rudderjs/auth": "^3.2.1",
43
- "@rudderjs/sync": "^0.2.0",
44
- "@rudderjs/ai": "^0.1.0",
45
- "@rudderjs/broadcast": "^0.0.8",
32
+ "@rudderjs/router": "^1.0.0",
33
+ "@rudderjs/log": "^1.0.0",
34
+ "@rudderjs/orm": "^1.0.0",
35
+ "@rudderjs/console": "^0.0.4",
36
+ "@rudderjs/cache": "^1.0.0",
37
+ "@rudderjs/queue": "^4.0.0",
38
+ "@rudderjs/mail": "^1.0.0",
39
+ "@rudderjs/notification": "^1.0.0",
40
+ "@rudderjs/schedule": "^1.0.0",
41
+ "@rudderjs/middleware": "^1.0.0",
42
+ "@rudderjs/broadcast": "^1.0.0",
46
43
  "@rudderjs/http": "^0.0.2",
47
- "@rudderjs/mcp": "^3.1.0"
44
+ "@rudderjs/sync": "^0.2.2",
45
+ "@rudderjs/auth": "^4.0.0",
46
+ "@rudderjs/mcp": "^4.0.0",
47
+ "@rudderjs/ai": "^1.0.0"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
- "@rudderjs/rudder": {
50
+ "@rudderjs/console": {
51
51
  "optional": true
52
52
  },
53
53
  "@rudderjs/log": {
@@ -97,14 +97,14 @@
97
97
  "@types/node": "^20.0.0",
98
98
  "@types/better-sqlite3": "^7.6.0",
99
99
  "typescript": "^5.4.0",
100
- "@rudderjs/broadcast": "^0.0.8",
101
- "@rudderjs/sync": "^0.2.0",
102
- "@rudderjs/rudder": "^0.0.3",
100
+ "@rudderjs/console": "^0.0.4",
101
+ "@rudderjs/broadcast": "^1.0.0",
102
+ "@rudderjs/sync": "^0.2.2",
103
103
  "@rudderjs/http": "^0.0.2",
104
- "@rudderjs/auth": "^3.2.1",
105
- "@rudderjs/mcp": "^3.1.0",
106
- "@rudderjs/support": "^0.0.4",
107
- "@rudderjs/ai": "^0.1.0"
104
+ "@rudderjs/auth": "^4.0.0",
105
+ "@rudderjs/mcp": "^4.0.0",
106
+ "@rudderjs/support": "^1.0.0",
107
+ "@rudderjs/ai": "^1.0.0"
108
108
  },
109
109
  "author": "Suleiman Shahbari",
110
110
  "scripts": {