@trackunit/iris-app-build-utilities 3.0.18 → 3.0.19-alpha-1872e1df7fb.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/CHANGELOG.md CHANGED
@@ -1,63 +1,3 @@
1
- ## 3.0.18 (2026-11-04)
2
-
3
- ### 🧱 Updated Dependencies
4
-
5
- - Updated iris-app-api to 2.13.6
6
-
7
- ## 3.0.17 (2026-11-04)
8
-
9
- ### 🧱 Updated Dependencies
10
-
11
- - Updated iris-app-api to 2.13.5
12
-
13
- ## 3.0.16 (2026-11-04)
14
-
15
- ### 🧱 Updated Dependencies
16
-
17
- - Updated iris-app-api to 2.13.4
18
-
19
- ## 3.0.15 (2026-11-04)
20
-
21
- ### 🧱 Updated Dependencies
22
-
23
- - Updated iris-app-api to 2.13.3
24
-
25
- ## 3.0.14 (2026-11-04)
26
-
27
- ### 🧱 Updated Dependencies
28
-
29
- - Updated iris-app-api to 2.13.2
30
-
31
- ## 3.0.13 (2026-11-03)
32
-
33
- ### 🧱 Updated Dependencies
34
-
35
- - Updated iris-app-api to 2.13.1
36
-
37
- ## 3.0.12 (2026-11-03)
38
-
39
- ### 🧱 Updated Dependencies
40
-
41
- - Updated iris-app-api to 2.13.0
42
-
43
- ## 3.0.11 (2026-11-03)
44
-
45
- ### 🧱 Updated Dependencies
46
-
47
- - Updated iris-app-api to 2.12.28
48
-
49
- ## 3.0.10 (2026-11-03)
50
-
51
- ### 🧱 Updated Dependencies
52
-
53
- - Updated iris-app-api to 2.12.27
54
-
55
- ## 3.0.9 (2026-11-03)
56
-
57
- ### 🧱 Updated Dependencies
58
-
59
- - Updated iris-app-api to 2.12.26
60
-
61
1
  ## 3.0.8 (2026-11-02)
62
2
 
63
3
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-build-utilities",
3
- "version": "3.0.18",
3
+ "version": "3.0.19-alpha-1872e1df7fb.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "engines": {
@@ -13,7 +13,7 @@
13
13
  "@nx/react": "23.3.0",
14
14
  "tslib": "^2.6.2",
15
15
  "csp-header": "^6.4.0",
16
- "@trackunit/iris-app-api": "2.13.6",
16
+ "@trackunit/iris-app-api": "2.13.7-alpha-1872e1df7fb.0",
17
17
  "@nx/devkit": "23.3.0",
18
18
  "http-proxy-middleware": "3.0.5",
19
19
  "marked": "14.1.2",
@@ -53,7 +53,7 @@ const getWidgetExtensionIconPaths = (manifest) => {
53
53
  });
54
54
  };
55
55
  /**
56
- * Generates copy patterns for serverside extensions (LIFECYCLE_EXTENSION, SERVERSIDE_API_EXTENSION).
56
+ * Generates copy patterns for serverside extensions (LIFECYCLE_EXTENSION, SERVERSIDE_API_EXTENSION, AI_TOOLS_EXTENSION).
57
57
  * These are only copied in production mode.
58
58
  */
59
59
  const getServersideExtensionPatterns = (options) => {
@@ -22,6 +22,17 @@ const fixUrl = (image, extensionId) => {
22
22
  * @returns { IrisAppExtension[]} The updated extensions
23
23
  */
24
24
  const updateExtensions = (extensions) => {
25
+ const aiToolsErrors = (0, iris_app_api_1.validateIrisAiTools)({
26
+ extensions: extensions.map(extension => ({
27
+ id: extension.id,
28
+ type: extension.type,
29
+ aiTools: "aiTools" in extension ? extension.aiTools : undefined,
30
+ })),
31
+ });
32
+ if (aiToolsErrors.length > 0) {
33
+ aiToolsErrors.forEach(error => (0, consoleUtils_1.logError)(` ✨ Invalid aiTools: ${error}`));
34
+ throw new Error(`Invalid aiTools: ${aiToolsErrors.join(" ")}`);
35
+ }
25
36
  extensions.forEach(extension => {
26
37
  const aiNavigationErrors = (0, iris_app_api_1.validateIrisAiNavigation)({
27
38
  extensionId: extension.id,
@@ -38,6 +49,7 @@ const updateExtensions = (extensions) => {
38
49
  extension.type !== "WIDGET_EXTENSION" &&
39
50
  extension.type !== "LIFECYCLE_EXTENSION" &&
40
51
  extension.type !== "SERVERSIDE_API_EXTENSION" &&
52
+ extension.type !== "AI_TOOLS_EXTENSION" &&
41
53
  extension.menuItem.name) {
42
54
  extension.menuItem.name =
43
55
  (0, irisAppTranslationUtils_1.convertTranslationKeyIfNeeded)(extension.menuItem.name, extension.sourceRoot) || "Unknown";
@@ -1,3 +1,4 @@
1
+ import type { IrisAppExtensionType } from "@trackunit/iris-app-api";
1
2
  /**
2
3
  * Pure utility functions for serverside extension spawning.
3
4
  * These functions are side-effect free and easily testable.
@@ -5,8 +6,8 @@
5
6
  /** Port range for serverside extension dev servers */
6
7
  export declare const SERVERSIDE_PORT_MIN = 22230;
7
8
  export declare const SERVERSIDE_PORT_MAX = 22239;
8
- /** Serverside extension type constant */
9
- export declare const SERVERSIDE_EXTENSION_TYPE: "SERVERSIDE_API_EXTENSION";
9
+ /** Extension types that run as a function and are served locally behind `/invoke`. */
10
+ export declare const SERVERSIDE_FUNCTION_EXTENSION_TYPES: ReadonlyArray<IrisAppExtensionType>;
10
11
  /**
11
12
  * Creates the spawn command arguments for an extension.
12
13
  *
@@ -1,15 +1,18 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.analyzeProcessExit = exports.splitBufferToLines = exports.formatLogLine = exports.createSpawnOptions = exports.createSpawnCommand = exports.SERVERSIDE_FUNCTION_EXTENSION_TYPES = exports.SERVERSIDE_PORT_MAX = exports.SERVERSIDE_PORT_MIN = void 0;
2
4
  /**
3
5
  * Pure utility functions for serverside extension spawning.
4
6
  * These functions are side-effect free and easily testable.
5
7
  */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.analyzeProcessExit = exports.splitBufferToLines = exports.formatLogLine = exports.createSpawnOptions = exports.createSpawnCommand = exports.SERVERSIDE_EXTENSION_TYPE = exports.SERVERSIDE_PORT_MAX = exports.SERVERSIDE_PORT_MIN = void 0;
8
8
  /** Port range for serverside extension dev servers */
9
9
  exports.SERVERSIDE_PORT_MIN = 22230;
10
10
  exports.SERVERSIDE_PORT_MAX = 22239;
11
- /** Serverside extension type constant */
12
- exports.SERVERSIDE_EXTENSION_TYPE = "SERVERSIDE_API_EXTENSION";
11
+ /** Extension types that run as a function and are served locally behind `/invoke`. */
12
+ exports.SERVERSIDE_FUNCTION_EXTENSION_TYPES = [
13
+ "SERVERSIDE_API_EXTENSION",
14
+ "AI_TOOLS_EXTENSION",
15
+ ];
13
16
  /**
14
17
  * Creates the spawn command arguments for an extension.
15
18
  *
@@ -14,7 +14,7 @@ const serversideUtils_1 = require("./serversideUtils");
14
14
  const spawnServersideExtensions = async (manifest, workspaceRoot) => {
15
15
  const portMap = new Map();
16
16
  const processes = [];
17
- const serversideExtensions = manifest.extensions.filter(ext => ext.type === serversideUtils_1.SERVERSIDE_EXTENSION_TYPE);
17
+ const serversideExtensions = manifest.extensions.filter(ext => serversideUtils_1.SERVERSIDE_FUNCTION_EXTENSION_TYPES.includes(ext.type));
18
18
  if (serversideExtensions.length === 0) {
19
19
  return {
20
20
  portMap,