@trackunit/iris-app 2.9.1 → 2.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ ## 2.10.0 (2026-10-01)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **iris-app:** create-app skill confirms Trackunit MCP is authenticated [GLU-2538] ([2b21dee8eb1](https://github.com/Trackunit/manager/commit/2b21dee8eb1))
6
+ - **iris-app:** graphql skill explores schema via Trackunit MCP when connected [GLU-2538] ([9ae217eccee](https://github.com/Trackunit/manager/commit/9ae217eccee))
7
+ - **iris-app:** teach generated AGENTS.md to use Trackunit MCP with /llms.txt fallback [GLU-2537] ([8022f333614](https://github.com/Trackunit/manager/commit/8022f333614))
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - **review:** graphql skill uses codegen as the schema check when MCP is not connected [GLU-2538] ([ed9fafa9f0e](https://github.com/Trackunit/manager/commit/ed9fafa9f0e))
12
+ - **review:** detect deferred MCP tools and use codegen as the GraphQL fallback check [GLU-2537] ([08bbd3ceb60](https://github.com/Trackunit/manager/commit/08bbd3ceb60))
13
+
14
+ ### ❤️ Thank You
15
+
16
+ - Claude
17
+ - Cursor @cursoragent
18
+ - Michael Buss Rønne
19
+
20
+ ## 2.9.2 (2026-10-01)
21
+
22
+ ### 🧱 Updated Dependencies
23
+
24
+ - Updated iris-app-build-utilities to 2.6.2
25
+ - Updated iris-app-api to 2.8.2
26
+ - Updated react-vite-test-setup to 0.0.156
27
+ - Updated css-classname-utils to 0.0.64
28
+ - Updated react-graphql-tools to 1.19.2
29
+ - Updated shared-utils to 1.18.2
30
+
1
31
  ## 2.9.1 (2026-10-01)
2
32
 
3
33
  ### 🧱 Updated Dependencies
package/README.md CHANGED
@@ -9,7 +9,7 @@ Trackunit Iris App SDK are used by developers to integrate custom functionality
9
9
  For more info and a full guide on Iris App SDK Development, please visit our [Developer Hub](https://developers.trackunit.com/).
10
10
  ## Getting started
11
11
 
12
- Run through the easy getting started guide here: [Getting Started](https://developers.trackunit.com/docs/getting-started)
12
+ Run through the easy getting started guide here: [Getting Started](https://developers.trackunit.com/docs/apps-and-extensions/overview/getting-started)
13
13
 
14
14
  ## Serverside GraphQL scaffolding
15
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app",
3
- "version": "2.9.1",
3
+ "version": "2.10.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "main": "src/index.js",
6
6
  "generators": "./generators.json",
@@ -10,7 +10,7 @@
10
10
  "node": ">=24.x"
11
11
  },
12
12
  "dependencies": {
13
- "@trackunit/css-classname-utils": "0.0.63",
13
+ "@trackunit/css-classname-utils": "0.0.64",
14
14
  "@typescript-eslint/types": "8.58.1",
15
15
  "@typescript-eslint/typescript-estree": "8.58.1",
16
16
  "pacote": "^21.0.4",
@@ -19,19 +19,19 @@
19
19
  "semver": "7.8.5",
20
20
  "string-ts": "^2.0.0",
21
21
  "ts-morph": "^20.0.0",
22
- "@phenomnomnominal/tsquery": "^6.1.3",
22
+ "@phenomnomnominal/tsquery": "^6.2.0",
23
23
  "typescript": "6.0.2",
24
24
  "@nx/js": "23.1.0",
25
25
  "@nx/eslint": "23.1.0",
26
26
  "@nx/react": "23.1.0",
27
27
  "@npmcli/arborist": "^9.1.9",
28
28
  "win-ca": "^3.5.1",
29
- "@trackunit/iris-app-build-utilities": "2.6.1",
30
- "@trackunit/react-graphql-tools": "1.19.1",
31
- "@trackunit/shared-utils": "1.18.1",
32
- "@trackunit/iris-app-api": "2.8.1",
29
+ "@trackunit/iris-app-build-utilities": "2.6.2",
30
+ "@trackunit/react-graphql-tools": "1.19.2",
31
+ "@trackunit/shared-utils": "1.18.2",
32
+ "@trackunit/iris-app-api": "2.8.2",
33
33
  "tslib": "^2.6.2",
34
- "@clack/prompts": "^1.0.0",
34
+ "@clack/prompts": "^1.8.1",
35
35
  "@npm/types": "^1.0.2",
36
36
  "@nx/devkit": "23.1.0",
37
37
  "nx": "23.1.0"
@@ -75,7 +75,7 @@ const IrisAppGenerator = async function (tree, options) {
75
75
  ...tuDependencies,
76
76
  "@apollo/client": "3.14.1",
77
77
  graphql: "16.10.0",
78
- "@tanstack/react-router": "1.114.29",
78
+ "@tanstack/react-router": "1.170.39",
79
79
  tslib: "2.4.0",
80
80
  react: "19.3.0",
81
81
  "react-dom": "19.3.0",
@@ -14,9 +14,9 @@ exports.spaDependencies = {
14
14
  exports.testDependencies = {
15
15
  "@nx/vite": "23.1.0",
16
16
  "@nx/vitest": "23.1.0",
17
- "@testing-library/dom": "^10.4.0",
17
+ "@testing-library/dom": "^10.4.2",
18
18
  "@testing-library/jest-dom": "^6.9.1",
19
- "@testing-library/react": "16.2.0",
19
+ "@testing-library/react": "16.3.3",
20
20
  "@vitejs/plugin-react": "6.1.0",
21
21
  "@vitest/coverage-istanbul": "^4.1.6",
22
22
  jsdom: "^26.1.0",
@@ -51,6 +51,7 @@ Structure the plan as:
51
51
  - **Phase 1: Project Setup**
52
52
  - Create app with `@trackunit/iris-app:create`
53
53
  - Create extensions with `@trackunit/iris-app:extend`
54
+ - Confirm Trackunit MCP is connected and authenticated (fallbacks if not)
54
55
  - Start dev server in background
55
56
 
56
57
  - **Phase 2: Browser Verification (CRITICAL GATE)**
@@ -87,6 +88,10 @@ npx nx generate @trackunit/iris-app:create [app-name]
87
88
  npx nx g @trackunit/iris-app:extend --name=[extension-name] --app=[app-name] --directory=[feature] --type=[EXTENSION_TYPE]
88
89
  ```
89
90
 
91
+ **Confirm Trackunit MCP:**
92
+ - Confirm Trackunit MCP is connected and authenticated before assuming its tools exist, using the check in the "Trackunit MCP" section of `AGENTS.md`.
93
+ - If it is not connected, tell the user they can connect it (see `AGENTS.md`), then continue with the fallbacks listed there. Do not block or wait for authentication.
94
+
90
95
  **5. Start Development Server**
91
96
 
92
97
  ```bash
@@ -233,7 +233,7 @@ const CustomFieldsForm = ({ assetId }: { assetId: string }) => {
233
233
 
234
234
  ## References
235
235
 
236
- - [Save Data from Your App](https://developers.trackunit.com/docs/save-data-from-your-app)
237
- - [Defining a Custom Field](https://developers.trackunit.com/docs/defining-a-custom-field)
238
- - [Using a Custom Field](https://developers.trackunit.com/docs/using-a-custom-field)
239
- - [Deploying a New Custom Field](https://developers.trackunit.com/docs/deploying-a-new-custom-field)
236
+ - [Save Data from Your App](https://developers.trackunit.com/docs/apps-and-extensions/overview/save-data-from-your-app)
237
+ - [Defining a Custom Field](https://developers.trackunit.com/docs/apps-and-extensions/overview/save-data-from-your-app/defining-a-custom-field)
238
+ - [Using a Custom Field](https://developers.trackunit.com/docs/apps-and-extensions/overview/save-data-from-your-app/using-a-custom-field)
239
+ - [Deploying a New Custom Field](https://developers.trackunit.com/docs/apps-and-extensions/overview/save-data-from-your-app/deploying-a-new-custom-field)
@@ -18,6 +18,18 @@ Trackunit exposes a GraphQL API with NX executors for code generation. Use `@tra
18
18
 
19
19
  **Not for:** Time series data (use `graphql-timeseries` skill).
20
20
 
21
+ ## Explore the Schema
22
+
23
+ Before writing a query or mutation, check whether Trackunit MCP is connected, using the check in the "Trackunit MCP" section of `AGENTS.md` (it also covers setup and authentication).
24
+
25
+ **If Trackunit MCP is connected:**
26
+ - Look up types and fields with `explore_introspect_gql_schema`
27
+ - Validate each query or mutation with `explore_validate_gql_query` before saving the `.graphql` file and running codegen
28
+
29
+ **If Trackunit MCP is not connected:** do not block or wait for authentication. Use the [Developer Hub GraphQL docs](https://developers.trackunit.com/docs/apps-and-extensions/overview/public-apis/graphql-api/) and the [GraphQL Explorer](https://apps.iris.trackunit.com/graphql-public-viewer/) to find types, write the `.graphql` file, then run the `graphql-hooks` codegen below. Codegen validates against the public schema, so fix any unknown field or type errors it reports before using the generated hooks.
30
+
31
+ Never invent schema fields; look them up with one of the sources above, and treat codegen errors as the final check.
32
+
21
33
  ## Setup
22
34
 
23
35
  ### Install GraphQL Tools
@@ -131,7 +143,7 @@ const { data } = useQuery(GetAssetsDocument, {
131
143
 
132
144
  ## References
133
145
 
134
- - [Calling Trackunit GraphQL API](https://developers.trackunit.com/docs/graphql-api)
146
+ - [Calling Trackunit GraphQL API](https://developers.trackunit.com/docs/apps-and-extensions/overview/public-apis/graphql-api/)
135
147
  - [Apollo useQuery documentation](https://www.apollographql.com/docs/react/data/queries)
136
148
  - [Apollo useMutation documentation](https://www.apollographql.com/docs/react/data/mutations)
137
149
  - [GraphQL Code Generator](https://the-guild.dev/graphql/codegen)
@@ -140,6 +152,7 @@ const { data } = useQuery(GetAssetsDocument, {
140
152
 
141
153
  | Mistake | Fix |
142
154
  |---------|-----|
155
+ | Guessing schema fields | Introspect via Trackunit MCP; otherwise use the Developer Hub docs and fix any unknown field errors from `graphql-hooks` codegen |
143
156
  | Using generic GraphQL libraries | Use `@trackunit/react-graphql-tools` only |
144
157
  | Missing hook generation | Run `nx run [project]:graphql-hooks` after adding `.graphql` files |
145
158
  | Wrong project name format | Use `[subdir-name]-[extension-name]` from `project.json` |
@@ -44,7 +44,7 @@ Extensions are React applications that integrate into specific points in Trackun
44
44
  npx nx generate @trackunit/iris-app:create [name-of-your-app]
45
45
  ```
46
46
 
47
- See: [Creating a new app](https://developers.trackunit.com/docs/creating-a-new-app)
47
+ See: [Creating a new app](https://developers.trackunit.com/docs/apps-and-extensions/overview/getting-started/creating-a-new-app)
48
48
 
49
49
  ### Create New Extension
50
50
 
@@ -52,7 +52,7 @@ See: [Creating a new app](https://developers.trackunit.com/docs/creating-a-new-a
52
52
  npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]
53
53
  ```
54
54
 
55
- See: [Creating a new extension](https://developers.trackunit.com/docs/creating-a-new-extension)
55
+ See: [Creating a new extension](https://developers.trackunit.com/docs/apps-and-extensions/overview/getting-started/creating-a-new-extension)
56
56
 
57
57
  ### Run App
58
58
 
@@ -60,7 +60,7 @@ See: [Creating a new extension](https://developers.trackunit.com/docs/creating-a
60
60
  npx nx run [name-of-your-app]:serve
61
61
  ```
62
62
 
63
- See: [Running the Iris App SDK](https://developers.trackunit.com/docs/running-the-iris-app-sdk)
63
+ See: [Running the Iris App SDK](https://developers.trackunit.com/docs/apps-and-extensions/overview/getting-started/running-the-iris-app-sdk)
64
64
 
65
65
  ## Security Configuration
66
66
 
@@ -87,7 +87,7 @@ scopes: [
87
87
 
88
88
  Apps requiring API access need scopes configured in the manifest, and the app must be deployed with those scopes to work locally. Never submit an app automatically - instruct the user to do so.
89
89
 
90
- See: [Embedding IrisX Dashboards in Apps](https://developers.trackunit.com/docs/analytics-dashboards-in-apps#troubleshooting)
90
+ See: [Embedding IrisX Dashboards in Apps](https://developers.trackunit.com/docs/guides/analytics-and-insights/analytics-dashboards-in-apps#troubleshooting)
91
91
 
92
92
  ## Runtime Hooks
93
93
 
@@ -23,6 +23,7 @@ async function presetGenerator(tree, options) {
23
23
  tree.write(extensionsPath, "{}");
24
24
  }
25
25
  (0, devkit_1.generateFiles)(tree, path_1.default.join(__dirname, "files"), ".", {});
26
+ (0, devkit_1.generateFiles)(tree, path_1.default.join(__dirname, "root-files"), ".", {});
26
27
  if (!tree.exists("vitest.empty-stub.ts")) {
27
28
  tree.write("vitest.empty-stub.ts", "export default {};\n");
28
29
  }
@@ -17,6 +17,25 @@ When building any feature:
17
17
  3. If available, use the GraphQL API
18
18
  4. If not available, ask the user
19
19
 
20
+ ## Trackunit MCP
21
+
22
+ This workspace configures the Trackunit MCP server (`https://mcp.trackunit.ai/mcp`).
23
+
24
+ - **Configuration:** `.mcp.json` (Claude Code and other clients that read a project `.mcp.json`) and `.cursor/mcp.json` (Cursor).
25
+ - **Authentication:** the user must complete OAuth for the `trackunit` server by signing in with an IrisX account that has the `iris.app.developer` scope. See [Connect Trackunit IrisX MCP](https://help.trackunit.com/en/articles/676615-connect-trackunit-irisx-mcp). In Cursor, open the MCP settings and click Connect on the `trackunit` server; in Claude Code, run `/mcp` and authenticate the `trackunit` server.
26
+
27
+ Before looking up UI or GraphQL information, check whether the `trackunit` server's `explore_*` tools (such as `explore_introspect_gql_schema`) are available, either directly in your tool list or through your client's MCP or tool search/discovery mechanism. Clients may prefix tool names, e.g. `mcp__trackunit__explore_introspect_gql_schema`. A server that is configured but not yet authenticated, or only exposes an authenticate tool, counts as not connected.
28
+
29
+ **If connected**, use the MCP tools:
30
+ - GraphQL schema: `explore_introspect_gql_schema`, and `explore_validate_gql_query` to validate queries
31
+ - Design system: `explore_get_design_system_components`, then `explore_get_design_system_code`
32
+
33
+ **If not connected**, do not block or wait for the user to authenticate; continue with the public sources:
34
+ - Design system: fetch `https://design.iris.trackunit.com/llms.txt`, then `https://design.iris.trackunit.com/ai?storyId=<id>` for the component you need
35
+ - GraphQL schema: find types in the [Developer Hub GraphQL docs](https://developers.trackunit.com/docs/apps-and-extensions/overview/public-apis/graphql-api/) and the [GraphQL Explorer](https://apps.iris.trackunit.com/graphql-public-viewer/), then run the `graphql-hooks` codegen from the `graphql` skill (`.agents/skills/graphql/SKILL.md`). Codegen validates against the public schema, so fix any unknown field or type errors it reports.
36
+
37
+ Never invent components, props, or schema fields; look them up with one of the sources above.
38
+
20
39
  ## IrisX App Commands
21
40
 
22
41
  **ALWAYS use these specific commands** (never generic React/Node.js commands):