@executioncontrolprotocol/extension-telemetry 0.10.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.
@@ -0,0 +1,5 @@
1
+ /** @executioncontrolprotocol/telemetry extension. @category Extensions */
2
+ export declare const telemetryExtension: import("@executioncontrolprotocol/core").ExtensionDefinition;
3
+ export declare function registerTelemetryExtension(): Promise<void>;
4
+ export default telemetryExtension;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB,8DASrB,CAAA;AAIV,wBAAsB,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC,CAIhE;AAED,eAAe,kBAAkB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ import { defineExtension, hook, globalRegistry, catalogExtension } from "@executioncontrolprotocol/core";
2
+ /** @executioncontrolprotocol/telemetry extension. @category Extensions */
3
+ export const telemetryExtension = defineExtension("@executioncontrolprotocol", "telemetry")
4
+ .withConfig({})
5
+ .withCapabilities([])
6
+ .withHooks([
7
+ hook("run:started", async () => undefined),
8
+ hook("step:completed", async () => undefined),
9
+ hook("step:failed", async () => undefined),
10
+ hook("run:finally", async () => undefined),
11
+ ])
12
+ .build();
13
+ catalogExtension(telemetryExtension);
14
+ export async function registerTelemetryExtension() {
15
+ if (!globalRegistry.getExtension("@executioncontrolprotocol/telemetry")) {
16
+ await globalRegistry.registerExtension(telemetryExtension);
17
+ }
18
+ }
19
+ export default telemetryExtension;
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAExG,0EAA0E;AAC1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,2BAA2B,EAAE,WAAW,CAAC;KACxF,UAAU,CAAC,EAAE,CAAC;KACd,gBAAgB,CAAC,EAAE,CAAC;KACpB,SAAS,CAAC;IACT,IAAI,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC;IAC1C,IAAI,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC;IAC7C,IAAI,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC;IAC1C,IAAI,CAAC,aAAa,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC;CAC3C,CAAC;KACD,KAAK,EAAE,CAAA;AAEV,gBAAgB,CAAC,kBAAkB,CAAC,CAAA;AAEpC,MAAM,CAAC,KAAK,UAAU,0BAA0B;IAC9C,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,qCAAqC,CAAC,EAAE,CAAC;QACxE,MAAM,cAAc,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAA;IAC5D,CAAC;AACH,CAAC;AAED,eAAe,kBAAkB,CAAA"}
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@executioncontrolprotocol/extension-telemetry",
3
+ "version": "0.10.0",
4
+ "description": "Lifecycle telemetry hooks extension for ECP",
5
+ "license": "Apache-2.0",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsc -b"
21
+ },
22
+ "peerDependencies": {
23
+ "@executioncontrolprotocol/core": "^0.10.0",
24
+ "@executioncontrolprotocol/types": "^0.10.0",
25
+ "zod": "^3.24.0"
26
+ },
27
+ "devDependencies": {
28
+ "@executioncontrolprotocol/core": "0.10.0",
29
+ "@executioncontrolprotocol/types": "0.10.0",
30
+ "typescript": "^5.7.0",
31
+ "zod": "^3.24.0"
32
+ }
33
+ }