@mondaydotcomorg/z2h-shared-utils 0.7.1 → 0.7.3
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/constants.d.ts +13 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +33 -0
- package/dist/esm/constants.d.ts +13 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.mjs +20 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/observability/events.d.ts +12 -1
- package/dist/esm/observability/events.d.ts.map +1 -1
- package/dist/esm/observability/events.mjs +11 -1
- package/dist/esm/observability/index.d.ts +1 -0
- package/dist/esm/observability/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/observability/events.d.ts +12 -1
- package/dist/observability/events.d.ts.map +1 -1
- package/dist/observability/events.js +11 -1
- package/dist/observability/index.d.ts +1 -0
- package/dist/observability/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +25 -0
- package/src/index.ts +1 -0
- package/src/observability/events.ts +13 -1
- package/src/observability/index.ts +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const BUCKET_WRITE_NAME = "prod-use1-bigbrain-zth-mf-assets";
|
|
2
|
+
export declare const REGION = "us-east-1";
|
|
3
|
+
export declare const BUCKET_WRITE_URL = "https://prod-use1-bigbrain-zth-mf-assets.s3.us-east-1.amazonaws.com";
|
|
4
|
+
export declare const BUCKET_READ_DNS_NAME = "bigbrain-zth-mf-assets";
|
|
5
|
+
export declare const BUCKET_READ_DNS_URL = "https://bigbrain-zth-mf-assets.bigbrain.me";
|
|
6
|
+
export declare const S3_PREVIEWS_FOLDER = "previews";
|
|
7
|
+
export declare const MANIFEST_KEY = "mf-assets";
|
|
8
|
+
export declare const MANIFEST_READ_URL = "https://bigbrain-zth-mf-assets.bigbrain.me/mf-assets";
|
|
9
|
+
export declare const S3_SKILLS_BUCKET_NAME = "prod-use1-bigbrain-zth-skills";
|
|
10
|
+
export declare const DATAVIZ_SKILLS_PREFIX = "dataviz/";
|
|
11
|
+
export declare const APP_NAME_PATTERN: RegExp;
|
|
12
|
+
export declare const PREVIEW_APP_NAME_PREFIX = "zth-preview-";
|
|
13
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,qCAAqC,CAAC;AACpE,eAAO,MAAM,MAAM,cAAc,CAAC;AAClC,eAAO,MAAM,gBAAgB,wEAA4D,CAAC;AAE1F,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,mBAAmB,+CAAgD,CAAC;AAGjF,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAI7C,eAAO,MAAM,YAAY,cAAc,CAAC;AACxC,eAAO,MAAM,iBAAiB,yDAA2C,CAAC;AAG1E,eAAO,MAAM,qBAAqB,kCAAkC,CAAC;AAGrE,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAGhD,eAAO,MAAM,gBAAgB,QAA2B,CAAC;AAEzD,eAAO,MAAM,uBAAuB,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
const BUCKET_WRITE_NAME = 'prod-use1-bigbrain-zth-mf-assets';
|
|
4
|
+
const REGION = 'us-east-1';
|
|
5
|
+
const BUCKET_WRITE_URL = `https://${BUCKET_WRITE_NAME}.s3.${REGION}.amazonaws.com`;
|
|
6
|
+
const BUCKET_READ_DNS_NAME = 'bigbrain-zth-mf-assets';
|
|
7
|
+
const BUCKET_READ_DNS_URL = `https://${BUCKET_READ_DNS_NAME}.bigbrain.me`;
|
|
8
|
+
// Root prefix for ephemeral preview uploads: `previews/<previewAppName>/MF/...`.
|
|
9
|
+
const S3_PREVIEWS_FOLDER = 'previews';
|
|
10
|
+
// No `.json` extension: TridentSkeleton's `mfUrl` API appends `/mf-assets` to the
|
|
11
|
+
// bucket base, so the manifest must live at this exact key.
|
|
12
|
+
const MANIFEST_KEY = 'mf-assets';
|
|
13
|
+
const MANIFEST_READ_URL = `${BUCKET_READ_DNS_URL}/${MANIFEST_KEY}`;
|
|
14
|
+
// Read-only skills bucket; the broker mints creds for it and the agent syncs from it.
|
|
15
|
+
const S3_SKILLS_BUCKET_NAME = 'prod-use1-bigbrain-zth-skills';
|
|
16
|
+
// Published by data-cookbook's own CI on merge to master.
|
|
17
|
+
const DATAVIZ_SKILLS_PREFIX = 'dataviz/';
|
|
18
|
+
// Lowercase kebab-case, starts with a letter, 2-50 chars. Broker rejects anything else with 400.
|
|
19
|
+
const APP_NAME_PATTERN = /^[a-z][a-z0-9-]{1,49}$/;
|
|
20
|
+
const PREVIEW_APP_NAME_PREFIX = 'zth-preview-';
|
|
21
|
+
|
|
22
|
+
exports.APP_NAME_PATTERN = APP_NAME_PATTERN;
|
|
23
|
+
exports.BUCKET_READ_DNS_NAME = BUCKET_READ_DNS_NAME;
|
|
24
|
+
exports.BUCKET_READ_DNS_URL = BUCKET_READ_DNS_URL;
|
|
25
|
+
exports.BUCKET_WRITE_NAME = BUCKET_WRITE_NAME;
|
|
26
|
+
exports.BUCKET_WRITE_URL = BUCKET_WRITE_URL;
|
|
27
|
+
exports.DATAVIZ_SKILLS_PREFIX = DATAVIZ_SKILLS_PREFIX;
|
|
28
|
+
exports.MANIFEST_KEY = MANIFEST_KEY;
|
|
29
|
+
exports.MANIFEST_READ_URL = MANIFEST_READ_URL;
|
|
30
|
+
exports.PREVIEW_APP_NAME_PREFIX = PREVIEW_APP_NAME_PREFIX;
|
|
31
|
+
exports.REGION = REGION;
|
|
32
|
+
exports.S3_PREVIEWS_FOLDER = S3_PREVIEWS_FOLDER;
|
|
33
|
+
exports.S3_SKILLS_BUCKET_NAME = S3_SKILLS_BUCKET_NAME;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const BUCKET_WRITE_NAME = "prod-use1-bigbrain-zth-mf-assets";
|
|
2
|
+
export declare const REGION = "us-east-1";
|
|
3
|
+
export declare const BUCKET_WRITE_URL = "https://prod-use1-bigbrain-zth-mf-assets.s3.us-east-1.amazonaws.com";
|
|
4
|
+
export declare const BUCKET_READ_DNS_NAME = "bigbrain-zth-mf-assets";
|
|
5
|
+
export declare const BUCKET_READ_DNS_URL = "https://bigbrain-zth-mf-assets.bigbrain.me";
|
|
6
|
+
export declare const S3_PREVIEWS_FOLDER = "previews";
|
|
7
|
+
export declare const MANIFEST_KEY = "mf-assets";
|
|
8
|
+
export declare const MANIFEST_READ_URL = "https://bigbrain-zth-mf-assets.bigbrain.me/mf-assets";
|
|
9
|
+
export declare const S3_SKILLS_BUCKET_NAME = "prod-use1-bigbrain-zth-skills";
|
|
10
|
+
export declare const DATAVIZ_SKILLS_PREFIX = "dataviz/";
|
|
11
|
+
export declare const APP_NAME_PATTERN: RegExp;
|
|
12
|
+
export declare const PREVIEW_APP_NAME_PREFIX = "zth-preview-";
|
|
13
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,qCAAqC,CAAC;AACpE,eAAO,MAAM,MAAM,cAAc,CAAC;AAClC,eAAO,MAAM,gBAAgB,wEAA4D,CAAC;AAE1F,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,mBAAmB,+CAAgD,CAAC;AAGjF,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAI7C,eAAO,MAAM,YAAY,cAAc,CAAC;AACxC,eAAO,MAAM,iBAAiB,yDAA2C,CAAC;AAG1E,eAAO,MAAM,qBAAqB,kCAAkC,CAAC;AAGrE,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAGhD,eAAO,MAAM,gBAAgB,QAA2B,CAAC;AAEzD,eAAO,MAAM,uBAAuB,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const BUCKET_WRITE_NAME = 'prod-use1-bigbrain-zth-mf-assets';
|
|
2
|
+
const REGION = 'us-east-1';
|
|
3
|
+
const BUCKET_WRITE_URL = `https://${BUCKET_WRITE_NAME}.s3.${REGION}.amazonaws.com`;
|
|
4
|
+
const BUCKET_READ_DNS_NAME = 'bigbrain-zth-mf-assets';
|
|
5
|
+
const BUCKET_READ_DNS_URL = `https://${BUCKET_READ_DNS_NAME}.bigbrain.me`;
|
|
6
|
+
// Root prefix for ephemeral preview uploads: `previews/<previewAppName>/MF/...`.
|
|
7
|
+
const S3_PREVIEWS_FOLDER = 'previews';
|
|
8
|
+
// No `.json` extension: TridentSkeleton's `mfUrl` API appends `/mf-assets` to the
|
|
9
|
+
// bucket base, so the manifest must live at this exact key.
|
|
10
|
+
const MANIFEST_KEY = 'mf-assets';
|
|
11
|
+
const MANIFEST_READ_URL = `${BUCKET_READ_DNS_URL}/${MANIFEST_KEY}`;
|
|
12
|
+
// Read-only skills bucket; the broker mints creds for it and the agent syncs from it.
|
|
13
|
+
const S3_SKILLS_BUCKET_NAME = 'prod-use1-bigbrain-zth-skills';
|
|
14
|
+
// Published by data-cookbook's own CI on merge to master.
|
|
15
|
+
const DATAVIZ_SKILLS_PREFIX = 'dataviz/';
|
|
16
|
+
// Lowercase kebab-case, starts with a letter, 2-50 chars. Broker rejects anything else with 400.
|
|
17
|
+
const APP_NAME_PATTERN = /^[a-z][a-z0-9-]{1,49}$/;
|
|
18
|
+
const PREVIEW_APP_NAME_PREFIX = 'zth-preview-';
|
|
19
|
+
|
|
20
|
+
export { APP_NAME_PATTERN, BUCKET_READ_DNS_NAME, BUCKET_READ_DNS_URL, BUCKET_WRITE_NAME, BUCKET_WRITE_URL, DATAVIZ_SKILLS_PREFIX, MANIFEST_KEY, MANIFEST_READ_URL, PREVIEW_APP_NAME_PREFIX, REGION, S3_PREVIEWS_FOLDER, S3_SKILLS_BUCKET_NAME };
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
+
export { APP_NAME_PATTERN, BUCKET_READ_DNS_NAME, BUCKET_READ_DNS_URL, BUCKET_WRITE_NAME, BUCKET_WRITE_URL, DATAVIZ_SKILLS_PREFIX, MANIFEST_KEY, MANIFEST_READ_URL, PREVIEW_APP_NAME_PREFIX, REGION, S3_PREVIEWS_FOLDER, S3_SKILLS_BUCKET_NAME } from './constants.mjs';
|
|
1
2
|
export { ALWAYS_ON_CHANNELS, DECLARED_INTEGRATIONS } from './integrations.mjs';
|
|
@@ -79,9 +79,20 @@ export declare const Z2hAgentEvents: {
|
|
|
79
79
|
readonly biEvent: "z2h_agent_tool_call";
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
|
|
84
|
+
*/
|
|
83
85
|
export declare const Z2hCliEvents: {
|
|
84
86
|
readonly error: "z2h_cli_error";
|
|
85
87
|
readonly handlerParseError: "z2h_cli_handler_parse_error";
|
|
88
|
+
readonly deploySuccess: "z2h_app_deploy_success";
|
|
89
|
+
readonly previewSuccess: "z2h_app_preview_success";
|
|
90
|
+
readonly createSuccess: "z2h_app_created";
|
|
91
|
+
readonly templatesSuccess: "z2h_cli_templates_success";
|
|
92
|
+
readonly generateAppTemplateSuccess: "z2h_cli_generate_app_template_success";
|
|
93
|
+
readonly editSuccess: "z2h_app_edit_pulled";
|
|
94
|
+
readonly buildSuccess: "z2h_app_build_success";
|
|
95
|
+
readonly deleteSuccess: "z2h_app_delete_success";
|
|
86
96
|
};
|
|
97
|
+
export type Z2hCliEventName = (typeof Z2hCliEvents)[keyof typeof Z2hCliEvents];
|
|
87
98
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAEX
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -79,10 +79,20 @@ const Z2hAgentEvents = {
|
|
|
79
79
|
biEvent: 'z2h_agent_tool_call',
|
|
80
80
|
},
|
|
81
81
|
};
|
|
82
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
|
|
84
|
+
*/
|
|
83
85
|
const Z2hCliEvents = {
|
|
84
86
|
error: 'z2h_cli_error',
|
|
85
87
|
handlerParseError: 'z2h_cli_handler_parse_error',
|
|
88
|
+
deploySuccess: 'z2h_app_deploy_success',
|
|
89
|
+
previewSuccess: 'z2h_app_preview_success',
|
|
90
|
+
createSuccess: 'z2h_app_created',
|
|
91
|
+
templatesSuccess: 'z2h_cli_templates_success',
|
|
92
|
+
generateAppTemplateSuccess: 'z2h_cli_generate_app_template_success',
|
|
93
|
+
editSuccess: 'z2h_app_edit_pulled',
|
|
94
|
+
buildSuccess: 'z2h_app_build_success',
|
|
95
|
+
deleteSuccess: 'z2h_app_delete_success',
|
|
86
96
|
};
|
|
87
97
|
|
|
88
98
|
export { BackendRunnerEvents, Z2hAgentEvents, Z2hCliEvents, Z2hServiceEvents };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { createHttpTracker } from './httpTracker';
|
|
2
2
|
export type { HttpTracker, HttpTrackerDeps } from './httpTracker';
|
|
3
3
|
export { BackendRunnerEvents, Z2hServiceEvents, Z2hAgentEvents, Z2hCliEvents } from './events';
|
|
4
|
+
export type { Z2hCliEventName } from './events';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/observability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/observability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC/F,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
|
|
3
|
+
const constants = require('./constants.js');
|
|
3
4
|
const integrations = require('./integrations.js');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
8
|
+
exports.APP_NAME_PATTERN = constants.APP_NAME_PATTERN;
|
|
9
|
+
exports.BUCKET_READ_DNS_NAME = constants.BUCKET_READ_DNS_NAME;
|
|
10
|
+
exports.BUCKET_READ_DNS_URL = constants.BUCKET_READ_DNS_URL;
|
|
11
|
+
exports.BUCKET_WRITE_NAME = constants.BUCKET_WRITE_NAME;
|
|
12
|
+
exports.BUCKET_WRITE_URL = constants.BUCKET_WRITE_URL;
|
|
13
|
+
exports.DATAVIZ_SKILLS_PREFIX = constants.DATAVIZ_SKILLS_PREFIX;
|
|
14
|
+
exports.MANIFEST_KEY = constants.MANIFEST_KEY;
|
|
15
|
+
exports.MANIFEST_READ_URL = constants.MANIFEST_READ_URL;
|
|
16
|
+
exports.PREVIEW_APP_NAME_PREFIX = constants.PREVIEW_APP_NAME_PREFIX;
|
|
17
|
+
exports.REGION = constants.REGION;
|
|
18
|
+
exports.S3_PREVIEWS_FOLDER = constants.S3_PREVIEWS_FOLDER;
|
|
19
|
+
exports.S3_SKILLS_BUCKET_NAME = constants.S3_SKILLS_BUCKET_NAME;
|
|
7
20
|
exports.ALWAYS_ON_CHANNELS = integrations.ALWAYS_ON_CHANNELS;
|
|
8
21
|
exports.DECLARED_INTEGRATIONS = integrations.DECLARED_INTEGRATIONS;
|
|
@@ -79,9 +79,20 @@ export declare const Z2hAgentEvents: {
|
|
|
79
79
|
readonly biEvent: "z2h_agent_tool_call";
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
|
|
84
|
+
*/
|
|
83
85
|
export declare const Z2hCliEvents: {
|
|
84
86
|
readonly error: "z2h_cli_error";
|
|
85
87
|
readonly handlerParseError: "z2h_cli_handler_parse_error";
|
|
88
|
+
readonly deploySuccess: "z2h_app_deploy_success";
|
|
89
|
+
readonly previewSuccess: "z2h_app_preview_success";
|
|
90
|
+
readonly createSuccess: "z2h_app_created";
|
|
91
|
+
readonly templatesSuccess: "z2h_cli_templates_success";
|
|
92
|
+
readonly generateAppTemplateSuccess: "z2h_cli_generate_app_template_success";
|
|
93
|
+
readonly editSuccess: "z2h_app_edit_pulled";
|
|
94
|
+
readonly buildSuccess: "z2h_app_build_success";
|
|
95
|
+
readonly deleteSuccess: "z2h_app_delete_success";
|
|
86
96
|
};
|
|
97
|
+
export type Z2hCliEventName = (typeof Z2hCliEvents)[keyof typeof Z2hCliEvents];
|
|
87
98
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAEX
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -81,10 +81,20 @@ const Z2hAgentEvents = {
|
|
|
81
81
|
biEvent: 'z2h_agent_tool_call',
|
|
82
82
|
},
|
|
83
83
|
};
|
|
84
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
|
|
86
|
+
*/
|
|
85
87
|
const Z2hCliEvents = {
|
|
86
88
|
error: 'z2h_cli_error',
|
|
87
89
|
handlerParseError: 'z2h_cli_handler_parse_error',
|
|
90
|
+
deploySuccess: 'z2h_app_deploy_success',
|
|
91
|
+
previewSuccess: 'z2h_app_preview_success',
|
|
92
|
+
createSuccess: 'z2h_app_created',
|
|
93
|
+
templatesSuccess: 'z2h_cli_templates_success',
|
|
94
|
+
generateAppTemplateSuccess: 'z2h_cli_generate_app_template_success',
|
|
95
|
+
editSuccess: 'z2h_app_edit_pulled',
|
|
96
|
+
buildSuccess: 'z2h_app_build_success',
|
|
97
|
+
deleteSuccess: 'z2h_app_delete_success',
|
|
88
98
|
};
|
|
89
99
|
|
|
90
100
|
exports.BackendRunnerEvents = BackendRunnerEvents;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { createHttpTracker } from './httpTracker';
|
|
2
2
|
export type { HttpTracker, HttpTrackerDeps } from './httpTracker';
|
|
3
3
|
export { BackendRunnerEvents, Z2hServiceEvents, Z2hAgentEvents, Z2hCliEvents } from './events';
|
|
4
|
+
export type { Z2hCliEventName } from './events';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observability/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC/F,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
|
package/package.json
CHANGED
package/src/constants.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const BUCKET_WRITE_NAME = 'prod-use1-bigbrain-zth-mf-assets';
|
|
2
|
+
export const REGION = 'us-east-1';
|
|
3
|
+
export const BUCKET_WRITE_URL = `https://${BUCKET_WRITE_NAME}.s3.${REGION}.amazonaws.com`;
|
|
4
|
+
|
|
5
|
+
export const BUCKET_READ_DNS_NAME = 'bigbrain-zth-mf-assets';
|
|
6
|
+
export const BUCKET_READ_DNS_URL = `https://${BUCKET_READ_DNS_NAME}.bigbrain.me`;
|
|
7
|
+
|
|
8
|
+
// Root prefix for ephemeral preview uploads: `previews/<previewAppName>/MF/...`.
|
|
9
|
+
export const S3_PREVIEWS_FOLDER = 'previews';
|
|
10
|
+
|
|
11
|
+
// No `.json` extension: TridentSkeleton's `mfUrl` API appends `/mf-assets` to the
|
|
12
|
+
// bucket base, so the manifest must live at this exact key.
|
|
13
|
+
export const MANIFEST_KEY = 'mf-assets';
|
|
14
|
+
export const MANIFEST_READ_URL = `${BUCKET_READ_DNS_URL}/${MANIFEST_KEY}`;
|
|
15
|
+
|
|
16
|
+
// Read-only skills bucket; the broker mints creds for it and the agent syncs from it.
|
|
17
|
+
export const S3_SKILLS_BUCKET_NAME = 'prod-use1-bigbrain-zth-skills';
|
|
18
|
+
|
|
19
|
+
// Published by data-cookbook's own CI on merge to master.
|
|
20
|
+
export const DATAVIZ_SKILLS_PREFIX = 'dataviz/';
|
|
21
|
+
|
|
22
|
+
// Lowercase kebab-case, starts with a letter, 2-50 chars. Broker rejects anything else with 400.
|
|
23
|
+
export const APP_NAME_PATTERN = /^[a-z][a-z0-9-]{1,49}$/;
|
|
24
|
+
|
|
25
|
+
export const PREVIEW_APP_NAME_PREFIX = 'zth-preview-';
|
package/src/index.ts
CHANGED
|
@@ -82,8 +82,20 @@ export const Z2hAgentEvents = {
|
|
|
82
82
|
},
|
|
83
83
|
} as const;
|
|
84
84
|
|
|
85
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
|
|
87
|
+
*/
|
|
86
88
|
export const Z2hCliEvents = {
|
|
87
89
|
error: 'z2h_cli_error',
|
|
88
90
|
handlerParseError: 'z2h_cli_handler_parse_error',
|
|
91
|
+
deploySuccess: 'z2h_app_deploy_success',
|
|
92
|
+
previewSuccess: 'z2h_app_preview_success',
|
|
93
|
+
createSuccess: 'z2h_app_created',
|
|
94
|
+
templatesSuccess: 'z2h_cli_templates_success',
|
|
95
|
+
generateAppTemplateSuccess: 'z2h_cli_generate_app_template_success',
|
|
96
|
+
editSuccess: 'z2h_app_edit_pulled',
|
|
97
|
+
buildSuccess: 'z2h_app_build_success',
|
|
98
|
+
deleteSuccess: 'z2h_app_delete_success',
|
|
89
99
|
} as const;
|
|
100
|
+
|
|
101
|
+
export type Z2hCliEventName = (typeof Z2hCliEvents)[keyof typeof Z2hCliEvents];
|