@rudderjs/telescope 9.0.0 → 9.0.1
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
|
@@ -85,7 +85,7 @@ Telescope records 19 entry types via the observer-registry pattern — each peer
|
|
|
85
85
|
| `cache` | CacheCollector | `@rudderjs/cache` | Cache hits, misses, writes, forgets |
|
|
86
86
|
| `schedule` | ScheduleCollector | `@rudderjs/schedule` | Scheduled task execution with output |
|
|
87
87
|
| `model` | ModelCollector | `@rudderjs/orm` | Model create/update/delete with dirty attributes diff |
|
|
88
|
-
| `command` | CommandCollector | `@rudderjs/
|
|
88
|
+
| `command` | CommandCollector | `@rudderjs/console` | CLI command invocations with args, duration, exit code |
|
|
89
89
|
| `http` | HttpCollector | `@rudderjs/http` | Outgoing HTTP requests with timing, headers, response body |
|
|
90
90
|
| `gate` | GateCollector | `@rudderjs/auth` | Authorization decisions — ability, allowed/denied, resolution path (ability/policy/before), timing |
|
|
91
91
|
| `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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
22
|
+
const { commandObservers } = await import('@rudderjs/console');
|
|
23
23
|
commandObservers.subscribe((obs) => this.record(obs));
|
|
24
24
|
}
|
|
25
25
|
catch {
|
|
26
|
-
// @rudderjs/
|
|
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;QACZ,IAAI,CAAC;YACH,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,MAAM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,CAAA;QACD,IAAI,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.
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"rudderjs": {
|
|
5
5
|
"provider": "TelescopeProvider",
|
|
6
6
|
"stage": "monitoring"
|
|
@@ -25,29 +25,29 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@rudderjs/
|
|
29
|
-
"@rudderjs/
|
|
28
|
+
"@rudderjs/core": "^0.1.4",
|
|
29
|
+
"@rudderjs/contracts": "^0.2.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@rudderjs/router": "^0.3.1",
|
|
33
|
-
"@rudderjs/
|
|
33
|
+
"@rudderjs/console": "^0.0.4",
|
|
34
34
|
"@rudderjs/log": "^0.0.7",
|
|
35
|
+
"@rudderjs/cache": "^0.0.12",
|
|
35
36
|
"@rudderjs/orm": "^0.1.2",
|
|
37
|
+
"@rudderjs/queue": "^3.0.2",
|
|
36
38
|
"@rudderjs/mail": "^0.0.11",
|
|
37
39
|
"@rudderjs/notification": "^0.0.12",
|
|
38
|
-
"@rudderjs/queue": "^3.0.2",
|
|
39
40
|
"@rudderjs/schedule": "^0.0.12",
|
|
41
|
+
"@rudderjs/broadcast": "^0.0.9",
|
|
40
42
|
"@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",
|
|
46
43
|
"@rudderjs/http": "^0.0.2",
|
|
47
|
-
"@rudderjs/
|
|
44
|
+
"@rudderjs/auth": "^3.2.1",
|
|
45
|
+
"@rudderjs/sync": "^0.2.1",
|
|
46
|
+
"@rudderjs/mcp": "^3.1.1",
|
|
47
|
+
"@rudderjs/ai": "^0.1.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
|
-
"@rudderjs/
|
|
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/
|
|
101
|
-
"@rudderjs/
|
|
102
|
-
"@rudderjs/rudder": "^0.0.3",
|
|
100
|
+
"@rudderjs/console": "^0.0.4",
|
|
101
|
+
"@rudderjs/broadcast": "^0.0.9",
|
|
103
102
|
"@rudderjs/http": "^0.0.2",
|
|
104
103
|
"@rudderjs/auth": "^3.2.1",
|
|
105
|
-
"@rudderjs/
|
|
104
|
+
"@rudderjs/ai": "^0.1.1",
|
|
105
|
+
"@rudderjs/sync": "^0.2.1",
|
|
106
106
|
"@rudderjs/support": "^0.0.4",
|
|
107
|
-
"@rudderjs/
|
|
107
|
+
"@rudderjs/mcp": "^3.1.1"
|
|
108
108
|
},
|
|
109
109
|
"author": "Suleiman Shahbari",
|
|
110
110
|
"scripts": {
|