@trackunit/iris-app 2.16.75 → 2.17.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +17 -17
  3. package/src/generators/ai-agent-sync/README.md +5 -2
  4. package/src/generators/ai-agent-sync/generator.d.ts +1 -1
  5. package/src/generators/ai-agent-sync/generator.js +41 -7
  6. package/src/generators/ai-agent-sync/legacy-agents-md/v1-prettier.md +98 -0
  7. package/src/generators/ai-agent-sync/legacy-agents-md/v1.md +95 -0
  8. package/src/generators/ai-agent-sync/legacy-agents-md/v2-prettier.md +93 -0
  9. package/src/generators/ai-agent-sync/legacy-agents-md/v2.md +90 -0
  10. package/src/generators/ai-agent-sync/legacy-agents-md/v3-prettier.md +94 -0
  11. package/src/generators/ai-agent-sync/legacy-agents-md/v3.md +91 -0
  12. package/src/generators/ai-agent-sync/legacy-agents-md/v4.md +43 -0
  13. package/src/generators/ai-agent-sync/legacy-agents-md/v5.md +43 -0
  14. package/src/generators/ai-agent-sync/legacy-agents-md/v6.md +62 -0
  15. package/src/generators/ai-agent-sync/legacy-agents-md/v7.md +62 -0
  16. package/src/generators/ai-agent-sync/legacy-agents-md/v8.md +62 -0
  17. package/src/generators/preset/files/.agents/skills/create-app/SKILL.md +2 -2
  18. package/src/generators/preset/files/.agents/skills/databricks-unity-catalog/SKILL.md +1 -1
  19. package/src/generators/preset/files/.agents/skills/graphql/SKILL.md +1 -1
  20. package/src/generators/preset/files/.agents/skills/irisx-app-sdk/SKILL.md +1 -1
  21. package/src/generators/preset/files/.agents/skills/set-up-react-map/SKILL.md +1 -1
  22. package/src/generators/preset/files/.agents/skills/widget-extensions/SKILL.md +1 -1
  23. package/src/generators/preset/generator.js +2 -0
  24. package/src/generators/preset/root-files/AGENTS-iris-app-sdk.md +78 -0
  25. package/src/generators/utils/sdk-agents-md/sdk-agents-md.d.ts +7 -0
  26. package/src/generators/utils/sdk-agents-md/sdk-agents-md.js +20 -0
  27. /package/src/generators/{preset/root-files/AGENTS.md → ai-agent-sync/legacy-agents-md/v9.md} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## 2.17.0 (2026-12-01)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **iris-app:** ai-agent-sync keeps the workspace's AGENTS.md and ships the SDK guide in AGENTS-iris-app-sdk.md [SDK-785] ([#27824](https://github.com/Trackunit/manager/pull/27824))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated iris-app-build-utilities to 3.0.58
10
+ - Updated iris-app-api to 2.14.3
11
+ - Updated react-vite-test-setup to 0.0.246
12
+ - Updated css-classname-utils to 0.0.154
13
+ - Updated react-graphql-tools to 1.23.78
14
+ - Updated shared-utils to 1.22.73
15
+
16
+ ### ❤️ Thank You
17
+
18
+ - Ulrik Jørgensen @ujo-trackunit
19
+
1
20
  ## 2.16.75 (2026-11-30)
2
21
 
3
22
  ### 🧱 Updated Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app",
3
- "version": "2.16.75",
3
+ "version": "2.17.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.153",
13
+ "@trackunit/css-classname-utils": "~0.0.154",
14
14
  "@typescript-eslint/types": "8.71.2",
15
15
  "@typescript-eslint/typescript-estree": "8.71.2",
16
16
  "pacote": "^21.5.1",
@@ -27,10 +27,10 @@
27
27
  "@npmcli/arborist": "^9.1.9",
28
28
  "win-ca": "^3.5.1",
29
29
  "node-forge": "^1.4.3",
30
- "@trackunit/iris-app-build-utilities": "^3.0.57",
31
- "@trackunit/react-graphql-tools": "^1.23.77",
32
- "@trackunit/shared-utils": "^1.22.72",
33
- "@trackunit/iris-app-api": "^2.14.2",
30
+ "@trackunit/iris-app-build-utilities": "^3.0.58",
31
+ "@trackunit/react-graphql-tools": "^1.23.78",
32
+ "@trackunit/shared-utils": "^1.22.73",
33
+ "@trackunit/iris-app-api": "^2.14.3",
34
34
  "tslib": "^2.6.2",
35
35
  "@clack/prompts": "^1.8.1",
36
36
  "@nx/devkit": "23.3.0",
@@ -38,17 +38,17 @@
38
38
  },
39
39
  "migrations": "./migrations.json",
40
40
  "pinnedVersions": {
41
- "@trackunit/iris-app-api": "2.14.2",
42
- "@trackunit/react-components": "9.0.7",
43
- "@trackunit/react-core-contexts": "3.1.8",
44
- "@trackunit/css-core": "1.22.77",
45
- "@trackunit/iris-app-sdk-vite": "1.12.39",
46
- "@trackunit/react-core-contexts-test": "1.28.69",
47
- "@trackunit/react-vite-test-setup": "0.0.245",
48
- "@trackunit/iris-app-runtime-core": "2.0.13",
49
- "@trackunit/serverside-utils": "0.5.359",
50
- "@trackunit/migrations": "0.2.187",
51
- "@trackunit/eslint-plugin-trackunit": "0.9.25"
41
+ "@trackunit/iris-app-api": "2.14.3",
42
+ "@trackunit/react-components": "10.0.0",
43
+ "@trackunit/react-core-contexts": "3.1.9",
44
+ "@trackunit/css-core": "1.22.78",
45
+ "@trackunit/iris-app-sdk-vite": "1.12.40",
46
+ "@trackunit/react-core-contexts-test": "1.28.70",
47
+ "@trackunit/react-vite-test-setup": "0.0.246",
48
+ "@trackunit/iris-app-runtime-core": "2.0.14",
49
+ "@trackunit/serverside-utils": "0.5.360",
50
+ "@trackunit/migrations": "0.2.188",
51
+ "@trackunit/eslint-plugin-trackunit": "0.9.26"
52
52
  },
53
53
  "types": "./src/index.d.ts",
54
54
  "type": "commonjs"
@@ -1,6 +1,6 @@
1
1
  # AI Agent Sync Generator
2
2
 
3
- Syncs agent skills, AGENTS.md, and AI agent configuration files to the latest version. Ensures the SDK is at the latest version before applying updates.
3
+ Syncs agent skills, the SDK agent guide, and AI agent configuration files to the latest version. Ensures the SDK is at the latest version before applying updates.
4
4
 
5
5
  ## Usage
6
6
 
@@ -13,7 +13,10 @@ nx g @trackunit/iris-app:ai-agent-sync
13
13
  - `.agents/skills/` - AI agent skills for the IrisX App SDK (editor-agnostic)
14
14
  - `.mcp.json` - project-scoped MCP configuration for coding agents
15
15
  - `.cursor/mcp.json` - Cursor MCP configuration
16
- - `AGENTS.md` - Workspace-level agent instructions (always applied), read by Cursor and Claude Code
16
+ - `AGENTS-iris-app-sdk.md` - The IrisX App SDK agent instructions. Overwritten on every run, so don't edit it.
17
+ - `AGENTS.md` - Your workspace's agent instructions, read by Cursor and Claude Code. Created with a link to `AGENTS-iris-app-sdk.md` and an `@AGENTS-iris-app-sdk.md` import for Claude Code if missing. Earlier SDK versions wrote the SDK guide itself to `AGENTS.md`: an unmodified copy (see `legacy-agents-md/`), optionally after the circleci-configuration `AGENTS-managed.md` link, is replaced by the link. Any other `AGENTS.md` is kept as is; the link is appended if the file doesn't mention `AGENTS-iris-app-sdk.md` yet. A symlinked `AGENTS.md` is left alone.
18
+
19
+ The generator writes no ESLint config.
17
20
 
18
21
  It also removes the `CLAUDE.md` that earlier SDK versions generated, since Claude Code reads `AGENTS.md` natively. Only an unmodified copy is removed (see `legacy-claude-md/`), and not while a `CLAUDE.local.md` or `.claude/CLAUDE.md` exists, since its `@AGENTS.md` import is then what loads `AGENTS.md`. A `CLAUDE.md` you wrote or edited is kept.
19
22
 
@@ -1,7 +1,7 @@
1
1
  import { GeneratorCallback, Tree } from "@nx/devkit";
2
2
  import { AiAgentSyncGeneratorSchema } from "./schema";
3
3
  /**
4
- * Syncs Cursor skills, AGENTS.md, and AI agent configuration files.
4
+ * Syncs agent skills, the SDK guide that AGENTS.md points to, and AI agent configuration files.
5
5
  * Requires the SDK to be at the latest version before running.
6
6
  */
7
7
  export declare function aiAgentSyncGenerator(tree: Tree, options: AiAgentSyncGeneratorSchema): Promise<GeneratorCallback>;
@@ -9,11 +9,14 @@ const path = tslib_1.__importStar(require("path"));
9
9
  const semver = tslib_1.__importStar(require("semver"));
10
10
  const get_package_manifest_1 = require("../utils/get-package-manifest");
11
11
  const link_claude_skills_1 = require("../utils/link-claude-skills");
12
+ const sdk_agents_md_1 = require("../utils/sdk-agents-md/sdk-agents-md");
12
13
  const IRIS_APP_PACKAGE = "@trackunit/iris-app";
13
14
  const MIGRATIONS_PACKAGE = "@trackunit/migrations";
14
15
  const CLAUDE_MD = "CLAUDE.md";
15
16
  const CLAUDE_MEMORY_FILES = [CLAUDE_MD, ".claude/CLAUDE.md", "CLAUDE.local.md"];
16
17
  const LEGACY_CLAUDE_MD_DIR = path.join(__dirname, "legacy-claude-md");
18
+ const LEGACY_AGENTS_MD_DIR = path.join(__dirname, "legacy-agents-md");
19
+ const CIRCLECI_AGENTS_MANAGED_LINK = "See [AGENTS-managed.md](AGENTS-managed.md) for this repo's managed build, test and verify commands.";
17
20
  function getStringValue(obj, key) {
18
21
  if (typeof obj === "object" && obj !== null && key in obj) {
19
22
  const value = obj[key];
@@ -57,14 +60,45 @@ function normalizeWhitespace(content) {
57
60
  return content.replace(/\s+/g, " ").trim();
58
61
  }
59
62
  /**
60
- * Every CLAUDE.md template earlier SDK versions shipped, whitespace-normalized so a
63
+ * Every template of a file earlier SDK versions shipped, whitespace-normalized so a
61
64
  * workspace formatter's line wrapping or line endings do not hide a match.
62
65
  */
63
- function readLegacyClaudeMdTemplates() {
66
+ function readLegacyTemplates(directory) {
64
67
  return new Set(fs
65
- .readdirSync(LEGACY_CLAUDE_MD_DIR)
68
+ .readdirSync(directory)
66
69
  .filter(file => file.endsWith(".md"))
67
- .map(file => normalizeWhitespace(fs.readFileSync(path.join(LEGACY_CLAUDE_MD_DIR, file), "utf-8"))));
70
+ .map(file => normalizeWhitespace(fs.readFileSync(path.join(directory, file), "utf-8"))));
71
+ }
72
+ function isSymlink(filePath) {
73
+ return fs.lstatSync(filePath, { throwIfNoEntry: false })?.isSymbolicLink() ?? false;
74
+ }
75
+ /**
76
+ * Makes AGENTS.md point to the SDK guide. Earlier SDK versions wrote the guide itself
77
+ * to AGENTS.md, so an unmodified copy is replaced by the pointer, keeping the
78
+ * circleci-configuration link in front of it. Any other content is the workspace's and
79
+ * is kept; the pointer is appended unless the file already mentions the guide.
80
+ */
81
+ function syncAgentsMd(tree) {
82
+ if (isSymlink(path.join(tree.root, sdk_agents_md_1.AGENTS_MD))) {
83
+ devkit_1.logger.warn(`[iris-app:ai-agent-sync] Not updating ${sdk_agents_md_1.AGENTS_MD}: it is a symlink. ` +
84
+ `Make it point to ${sdk_agents_md_1.SDK_AGENTS_MD} yourself.`);
85
+ return;
86
+ }
87
+ const content = tree.read(sdk_agents_md_1.AGENTS_MD, "utf-8") ?? "";
88
+ const eol = content.includes("\r\n") ? "\r\n" : "\n";
89
+ const normalized = normalizeWhitespace(content);
90
+ const legacyTemplates = readLegacyTemplates(LEGACY_AGENTS_MD_DIR);
91
+ const circleCiLink = normalizeWhitespace(CIRCLECI_AGENTS_MANAGED_LINK);
92
+ if (normalized === "" || legacyTemplates.has(normalized)) {
93
+ tree.write(sdk_agents_md_1.AGENTS_MD, (0, sdk_agents_md_1.sdkAgentsMdPointer)(eol));
94
+ }
95
+ else if (normalized.startsWith(circleCiLink) && legacyTemplates.has(normalized.slice(circleCiLink.length).trim())) {
96
+ tree.write(sdk_agents_md_1.AGENTS_MD, `${CIRCLECI_AGENTS_MANAGED_LINK}${eol}${eol}${(0, sdk_agents_md_1.sdkAgentsMdPointer)(eol)}`);
97
+ }
98
+ else if (!content.includes(sdk_agents_md_1.SDK_AGENTS_MD)) {
99
+ const separator = content.endsWith("\n") ? eol : `${eol}${eol}`;
100
+ tree.write(sdk_agents_md_1.AGENTS_MD, `${content}${separator}${(0, sdk_agents_md_1.sdkAgentsMdPointer)(eol)}`);
101
+ }
68
102
  }
69
103
  function importsAgentsMd(content) {
70
104
  return /^@AGENTS\.md\s*$/m.test(content);
@@ -83,7 +117,7 @@ function removeSdkGeneratedClaudeMd(tree) {
83
117
  const otherMemoryFiles = CLAUDE_MEMORY_FILES.filter(file => file !== CLAUDE_MD && tree.exists(file));
84
118
  if (content !== null &&
85
119
  otherMemoryFiles.length === 0 &&
86
- readLegacyClaudeMdTemplates().has(normalizeWhitespace(content))) {
120
+ readLegacyTemplates(LEGACY_CLAUDE_MD_DIR).has(normalizeWhitespace(content))) {
87
121
  tree.delete(CLAUDE_MD);
88
122
  }
89
123
  const presentMemoryFiles = CLAUDE_MEMORY_FILES.filter(file => tree.exists(file));
@@ -94,7 +128,7 @@ function removeSdkGeneratedClaudeMd(tree) {
94
128
  }
95
129
  }
96
130
  /**
97
- * Syncs Cursor skills, AGENTS.md, and AI agent configuration files.
131
+ * Syncs agent skills, the SDK guide that AGENTS.md points to, and AI agent configuration files.
98
132
  * Requires the SDK to be at the latest version before running.
99
133
  */
100
134
  async function aiAgentSyncGenerator(tree, options) {
@@ -142,10 +176,10 @@ async function aiAgentSyncGenerator(tree, options) {
142
176
  // Copy MCP configuration and agent skills shared with the preset generator.
143
177
  const managedFilesTemplatePath = path.join(__dirname, "../preset/files");
144
178
  (0, devkit_1.generateFiles)(tree, managedFilesTemplatePath, ".", {});
145
- // Copy AGENTS.md to workspace root
146
179
  const rootTemplatePath = path.join(__dirname, "../preset/root-files");
147
180
  (0, devkit_1.generateFiles)(tree, rootTemplatePath, ".", {});
148
181
  await (0, devkit_1.formatFiles)(tree);
182
+ syncAgentsMd(tree);
149
183
  // After tree flush, create a symlink at .claude/skills -> ../.agents/skills
150
184
  // so Claude Code auto-discovers the same skills Cursor and Codex consume.
151
185
  // The Tree API has no symlink primitive, so this runs as a post-generation
@@ -0,0 +1,98 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Package Management
6
+
7
+ Use npm as the package manager for this workspace.
8
+
9
+ ## Building Real Applications
10
+
11
+ You are building real applications that work with actual Trackunit data.
12
+
13
+ - Never mock data unless explicitly requested by the user
14
+ - Always use Trackunit's GraphQL API to fetch real data
15
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
16
+ - Only use mock data if the user explicitly requests it for testing purposes
17
+
18
+ When building any feature:
19
+
20
+ 1. Identify what data you need
21
+ 2. Check if it's available via Trackunit's GraphQL API
22
+ 3. If available, use the GraphQL API (see graphql skill)
23
+ 4. If not available, ask the user
24
+
25
+ ## IrisX App Commands
26
+
27
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
28
+
29
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
30
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
31
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
32
+
33
+ Available extension types:
34
+
35
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
36
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
37
+ - `FLEET_EXTENSION` - Menu items in Main Menu
38
+ - `REPORT_EXTENSION` - Reports in Reports screen
39
+ - `WIDGET_EXTENSION` - Dashboard widgets
40
+ - `APP_SETTINGS_EXTENSION` - Configuration in App library
41
+ - `ADMINISTRATION_EXTENSION` - Admin UI tabs (admin-only)
42
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
43
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
44
+ - `APP_LIFECYCLE_EXTENSION` - Handles app install/uninstall events
45
+
46
+ ## Security Configuration
47
+
48
+ IrisX Apps are locked down by default. External API requests and embedded content require proper CSP configuration in the app manifest:
49
+
50
+ ```typescript
51
+ cspHeader: {
52
+ 'frame-src': ['https://api.example.com'],
53
+ 'script-src': ['https://api.example.com'],
54
+ 'connect-src': ['https://api.example.com'],
55
+ },
56
+ scopes: [
57
+ {scope: "required.scope.1", optional: false},
58
+ {scope: "required.scope.2", optional: true},
59
+ ],
60
+ ```
61
+
62
+ Never submit apps automatically - always instruct the user to do so.
63
+
64
+ ## Runtime Hooks
65
+
66
+ IrisX Apps have access to runtime hooks from `@trackunit/react-core-hooks`:
67
+
68
+ - `useAssetRuntime()` - Asset information in asset-scoped extensions
69
+ - `useCustomerRuntime()` - Customer data
70
+ - `useEventRuntime()` - Event details
71
+ - `useSiteRuntime()` - Site information
72
+ - Plus navigation, user context, and utility hooks (see react-core-hooks skill)
73
+
74
+ ## Quality Assurance
75
+
76
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
77
+
78
+ ## Browser Testing
79
+
80
+ IrisX Apps are ALWAYS tested at `https://new.manager.trackunit.com/goto/iris-app-dev` - NEVER on localhost.
81
+
82
+ When the dev server runs locally via `npx nx run [app-name]:serve`, test the app in the Trackunit Manager environment at the URL above. IrisX apps are extensions that integrate into Trackunit Manager and require the host platform to function.
83
+
84
+ ## Agent Skills
85
+
86
+ When working on specific tasks, read the relevant skill from `.cursor/skills/`:
87
+
88
+ | Skill | Use When |
89
+ | -------------------- | ------------------------------ |
90
+ | `widget-extensions` | Building Widget Extensions |
91
+ | `react-core-hooks` | Using runtime hooks |
92
+ | `graphql` | Working with GraphQL API |
93
+ | `customfields` | Storing/reading CustomFields |
94
+ | `graphql-timeseries` | Time series data queries |
95
+ | `browser-testing` | Testing in browser |
96
+ | `tables-and-sorting` | Building data tables |
97
+ | `feature-docs` | Creating feature documentation |
98
+ | `create-app` | Creating new apps step-by-step |
@@ -0,0 +1,95 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Package Management
6
+
7
+ Use npm as the package manager for this workspace.
8
+
9
+ ## Building Real Applications
10
+
11
+ You are building real applications that work with actual Trackunit data.
12
+
13
+ - Never mock data unless explicitly requested by the user
14
+ - Always use Trackunit's GraphQL API to fetch real data
15
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
16
+ - Only use mock data if the user explicitly requests it for testing purposes
17
+
18
+ When building any feature:
19
+ 1. Identify what data you need
20
+ 2. Check if it's available via Trackunit's GraphQL API
21
+ 3. If available, use the GraphQL API (see graphql skill)
22
+ 4. If not available, ask the user
23
+
24
+ ## IrisX App Commands
25
+
26
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
27
+
28
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
29
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
30
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
31
+
32
+ Available extension types:
33
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
34
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
35
+ - `FLEET_EXTENSION` - Menu items in Main Menu
36
+ - `REPORT_EXTENSION` - Reports in Reports screen
37
+ - `WIDGET_EXTENSION` - Dashboard widgets
38
+ - `APP_SETTINGS_EXTENSION` - Configuration in App library
39
+ - `ADMINISTRATION_EXTENSION` - Admin UI tabs (admin-only)
40
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
41
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
42
+ - `APP_LIFECYCLE_EXTENSION` - Handles app install/uninstall events
43
+
44
+ ## Security Configuration
45
+
46
+ IrisX Apps are locked down by default. External API requests and embedded content require proper CSP configuration in the app manifest:
47
+
48
+ ```typescript
49
+ cspHeader: {
50
+ 'frame-src': ['https://api.example.com'],
51
+ 'script-src': ['https://api.example.com'],
52
+ 'connect-src': ['https://api.example.com'],
53
+ },
54
+ scopes: [
55
+ {scope: "required.scope.1", optional: false},
56
+ {scope: "required.scope.2", optional: true},
57
+ ],
58
+ ```
59
+
60
+ Never submit apps automatically - always instruct the user to do so.
61
+
62
+ ## Runtime Hooks
63
+
64
+ IrisX Apps have access to runtime hooks from `@trackunit/react-core-hooks`:
65
+ - `useAssetRuntime()` - Asset information in asset-scoped extensions
66
+ - `useCustomerRuntime()` - Customer data
67
+ - `useEventRuntime()` - Event details
68
+ - `useSiteRuntime()` - Site information
69
+ - Plus navigation, user context, and utility hooks (see react-core-hooks skill)
70
+
71
+ ## Quality Assurance
72
+
73
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
74
+
75
+ ## Browser Testing
76
+
77
+ IrisX Apps are ALWAYS tested at `https://new.manager.trackunit.com/goto/iris-app-dev` - NEVER on localhost.
78
+
79
+ When the dev server runs locally via `npx nx run [app-name]:serve`, test the app in the Trackunit Manager environment at the URL above. IrisX apps are extensions that integrate into Trackunit Manager and require the host platform to function.
80
+
81
+ ## Agent Skills
82
+
83
+ When working on specific tasks, read the relevant skill from `.cursor/skills/`:
84
+
85
+ | Skill | Use When |
86
+ |-------|----------|
87
+ | `widget-extensions` | Building Widget Extensions |
88
+ | `react-core-hooks` | Using runtime hooks |
89
+ | `graphql` | Working with GraphQL API |
90
+ | `customfields` | Storing/reading CustomFields |
91
+ | `graphql-timeseries` | Time series data queries |
92
+ | `browser-testing` | Testing in browser |
93
+ | `tables-and-sorting` | Building data tables |
94
+ | `feature-docs` | Creating feature documentation |
95
+ | `create-app` | Creating new apps step-by-step |
@@ -0,0 +1,93 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+
16
+ 1. Identify what data you need
17
+ 2. Check if it's available via Trackunit's GraphQL API
18
+ 3. If available, use the GraphQL API (see graphql skill)
19
+ 4. If not available, ask the user
20
+
21
+ ## IrisX App Commands
22
+
23
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
24
+
25
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
26
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
27
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
28
+
29
+ Available extension types:
30
+
31
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
32
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
33
+ - `FLEET_EXTENSION` - Menu items in Main Menu
34
+ - `REPORT_EXTENSION` - Reports in Reports screen
35
+ - `WIDGET_EXTENSION` - Dashboard widgets
36
+ - `APP_SETTINGS_EXTENSION` - Configuration in App library
37
+ - `ADMINISTRATION_EXTENSION` - Admin UI tabs (admin-only)
38
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
39
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
40
+ - `APP_LIFECYCLE_EXTENSION` - Handles app install/uninstall events
41
+
42
+ ## Security Configuration
43
+
44
+ IrisX Apps are locked down by default. External API requests and embedded content require proper CSP configuration in the app manifest:
45
+
46
+ ```typescript
47
+ cspHeader: {
48
+ 'frame-src': ['https://api.example.com'],
49
+ 'script-src': ['https://api.example.com'],
50
+ 'connect-src': ['https://api.example.com'],
51
+ },
52
+ scopes: [
53
+ {scope: "required.scope.1", optional: false},
54
+ {scope: "required.scope.2", optional: true},
55
+ ],
56
+ ```
57
+
58
+ Never submit apps automatically - always instruct the user to do so.
59
+
60
+ ## Runtime Hooks
61
+
62
+ IrisX Apps have access to runtime hooks from `@trackunit/react-core-hooks`:
63
+
64
+ - `useAssetRuntime()` - Asset information in asset-scoped extensions
65
+ - `useCustomerRuntime()` - Customer data
66
+ - `useEventRuntime()` - Event details
67
+ - `useSiteRuntime()` - Site information
68
+ - Plus navigation, user context, and utility hooks (see react-core-hooks skill)
69
+
70
+ ## Quality Assurance
71
+
72
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
73
+
74
+ ## Browser Testing
75
+
76
+ IrisX Apps are ALWAYS tested at `https://new.manager.trackunit.com/goto/iris-app-dev` - NEVER on localhost.
77
+
78
+ When the dev server runs locally via `npx nx run [app-name]:serve`, test the app in the Trackunit Manager environment at the URL above. IrisX apps are extensions that integrate into Trackunit Manager and require the host platform to function.
79
+
80
+ ## Agent Skills
81
+
82
+ When working on specific tasks, read the relevant skill from `.agents/skills/`:
83
+
84
+ | Skill | Use When |
85
+ | -------------------- | ------------------------------ |
86
+ | `widget-extensions` | Building Widget Extensions |
87
+ | `react-core-hooks` | Using runtime hooks |
88
+ | `graphql` | Working with GraphQL API |
89
+ | `customfields` | Storing/reading CustomFields |
90
+ | `graphql-timeseries` | Time series data queries |
91
+ | `browser-testing` | Testing in browser |
92
+ | `tables-and-sorting` | Building data tables |
93
+ | `create-app` | Creating new apps step-by-step |
@@ -0,0 +1,90 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+ 1. Identify what data you need
16
+ 2. Check if it's available via Trackunit's GraphQL API
17
+ 3. If available, use the GraphQL API (see graphql skill)
18
+ 4. If not available, ask the user
19
+
20
+ ## IrisX App Commands
21
+
22
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
23
+
24
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
25
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
26
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
27
+
28
+ Available extension types:
29
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
30
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
31
+ - `FLEET_EXTENSION` - Menu items in Main Menu
32
+ - `REPORT_EXTENSION` - Reports in Reports screen
33
+ - `WIDGET_EXTENSION` - Dashboard widgets
34
+ - `APP_SETTINGS_EXTENSION` - Configuration in App library
35
+ - `ADMINISTRATION_EXTENSION` - Admin UI tabs (admin-only)
36
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
37
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
38
+ - `APP_LIFECYCLE_EXTENSION` - Handles app install/uninstall events
39
+
40
+ ## Security Configuration
41
+
42
+ IrisX Apps are locked down by default. External API requests and embedded content require proper CSP configuration in the app manifest:
43
+
44
+ ```typescript
45
+ cspHeader: {
46
+ 'frame-src': ['https://api.example.com'],
47
+ 'script-src': ['https://api.example.com'],
48
+ 'connect-src': ['https://api.example.com'],
49
+ },
50
+ scopes: [
51
+ {scope: "required.scope.1", optional: false},
52
+ {scope: "required.scope.2", optional: true},
53
+ ],
54
+ ```
55
+
56
+ Never submit apps automatically - always instruct the user to do so.
57
+
58
+ ## Runtime Hooks
59
+
60
+ IrisX Apps have access to runtime hooks from `@trackunit/react-core-hooks`:
61
+ - `useAssetRuntime()` - Asset information in asset-scoped extensions
62
+ - `useCustomerRuntime()` - Customer data
63
+ - `useEventRuntime()` - Event details
64
+ - `useSiteRuntime()` - Site information
65
+ - Plus navigation, user context, and utility hooks (see react-core-hooks skill)
66
+
67
+ ## Quality Assurance
68
+
69
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
70
+
71
+ ## Browser Testing
72
+
73
+ IrisX Apps are ALWAYS tested at `https://new.manager.trackunit.com/goto/iris-app-dev` - NEVER on localhost.
74
+
75
+ When the dev server runs locally via `npx nx run [app-name]:serve`, test the app in the Trackunit Manager environment at the URL above. IrisX apps are extensions that integrate into Trackunit Manager and require the host platform to function.
76
+
77
+ ## Agent Skills
78
+
79
+ When working on specific tasks, read the relevant skill from `.agents/skills/`:
80
+
81
+ | Skill | Use When |
82
+ |-------|----------|
83
+ | `widget-extensions` | Building Widget Extensions |
84
+ | `react-core-hooks` | Using runtime hooks |
85
+ | `graphql` | Working with GraphQL API |
86
+ | `customfields` | Storing/reading CustomFields |
87
+ | `graphql-timeseries` | Time series data queries |
88
+ | `browser-testing` | Testing in browser |
89
+ | `tables-and-sorting` | Building data tables |
90
+ | `create-app` | Creating new apps step-by-step |
@@ -0,0 +1,94 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+
16
+ 1. Identify what data you need
17
+ 2. Check if it's available via Trackunit's GraphQL API
18
+ 3. If available, use the GraphQL API (see graphql skill)
19
+ 4. If not available, ask the user
20
+
21
+ ## IrisX App Commands
22
+
23
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
24
+
25
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
26
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
27
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
28
+
29
+ Available extension types:
30
+
31
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
32
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
33
+ - `FLEET_EXTENSION` - Menu items in Main Menu
34
+ - `REPORT_EXTENSION` - Reports in Reports screen
35
+ - `WIDGET_EXTENSION` - Dashboard widgets
36
+ - `IRIS_APP_SETTINGS_EXTENSION` - Configuration in App library
37
+ - `ADMIN_EXTENSION` - Admin UI tabs (admin-only)
38
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
39
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
40
+ - `LIFECYCLE_EXTENSION` - Handles app install/uninstall events
41
+ - `SERVERLESS_FUNCTION_EXTENSION` - Serverless backend functions
42
+
43
+ ## Security Configuration
44
+
45
+ IrisX Apps are locked down by default. External API requests and embedded content require proper CSP configuration in the app manifest:
46
+
47
+ ```typescript
48
+ cspHeader: {
49
+ 'frame-src': ['https://api.example.com'],
50
+ 'script-src': ['https://api.example.com'],
51
+ 'connect-src': ['https://api.example.com'],
52
+ },
53
+ scopes: [
54
+ {scope: "required.scope.1", optional: false},
55
+ {scope: "required.scope.2", optional: true},
56
+ ],
57
+ ```
58
+
59
+ Never submit apps automatically - always instruct the user to do so.
60
+
61
+ ## Runtime Hooks
62
+
63
+ IrisX Apps have access to runtime hooks from `@trackunit/react-core-hooks`:
64
+
65
+ - `useAssetRuntime()` - Asset information in asset-scoped extensions
66
+ - `useCustomerRuntime()` - Customer data
67
+ - `useEventRuntime()` - Event details
68
+ - `useSiteRuntime()` - Site information
69
+ - Plus navigation, user context, and utility hooks (see react-core-hooks skill)
70
+
71
+ ## Quality Assurance
72
+
73
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
74
+
75
+ ## Browser Testing
76
+
77
+ IrisX Apps are ALWAYS tested at `https://new.manager.trackunit.com/goto/iris-app-dev` - NEVER on localhost.
78
+
79
+ When the dev server runs locally via `npx nx run [app-name]:serve`, test the app in the Trackunit Manager environment at the URL above. IrisX apps are extensions that integrate into Trackunit Manager and require the host platform to function.
80
+
81
+ ## Agent Skills
82
+
83
+ When working on specific tasks, read the relevant skill from `.agents/skills/`:
84
+
85
+ | Skill | Use When |
86
+ | -------------------- | ------------------------------ |
87
+ | `widget-extensions` | Building Widget Extensions |
88
+ | `react-core-hooks` | Using runtime hooks |
89
+ | `graphql` | Working with GraphQL API |
90
+ | `customfields` | Storing/reading CustomFields |
91
+ | `graphql-timeseries` | Time series data queries |
92
+ | `browser-testing` | Testing in browser |
93
+ | `tables-and-sorting` | Building data tables |
94
+ | `create-app` | Creating new apps step-by-step |
@@ -0,0 +1,91 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+ 1. Identify what data you need
16
+ 2. Check if it's available via Trackunit's GraphQL API
17
+ 3. If available, use the GraphQL API (see graphql skill)
18
+ 4. If not available, ask the user
19
+
20
+ ## IrisX App Commands
21
+
22
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
23
+
24
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
25
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
26
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
27
+
28
+ Available extension types:
29
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
30
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
31
+ - `FLEET_EXTENSION` - Menu items in Main Menu
32
+ - `REPORT_EXTENSION` - Reports in Reports screen
33
+ - `WIDGET_EXTENSION` - Dashboard widgets
34
+ - `IRIS_APP_SETTINGS_EXTENSION` - Configuration in App library
35
+ - `ADMIN_EXTENSION` - Admin UI tabs (admin-only)
36
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
37
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
38
+ - `LIFECYCLE_EXTENSION` - Handles app install/uninstall events
39
+ - `SERVERLESS_FUNCTION_EXTENSION` - Serverless backend functions
40
+
41
+ ## Security Configuration
42
+
43
+ IrisX Apps are locked down by default. External API requests and embedded content require proper CSP configuration in the app manifest:
44
+
45
+ ```typescript
46
+ cspHeader: {
47
+ 'frame-src': ['https://api.example.com'],
48
+ 'script-src': ['https://api.example.com'],
49
+ 'connect-src': ['https://api.example.com'],
50
+ },
51
+ scopes: [
52
+ {scope: "required.scope.1", optional: false},
53
+ {scope: "required.scope.2", optional: true},
54
+ ],
55
+ ```
56
+
57
+ Never submit apps automatically - always instruct the user to do so.
58
+
59
+ ## Runtime Hooks
60
+
61
+ IrisX Apps have access to runtime hooks from `@trackunit/react-core-hooks`:
62
+ - `useAssetRuntime()` - Asset information in asset-scoped extensions
63
+ - `useCustomerRuntime()` - Customer data
64
+ - `useEventRuntime()` - Event details
65
+ - `useSiteRuntime()` - Site information
66
+ - Plus navigation, user context, and utility hooks (see react-core-hooks skill)
67
+
68
+ ## Quality Assurance
69
+
70
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
71
+
72
+ ## Browser Testing
73
+
74
+ IrisX Apps are ALWAYS tested at `https://new.manager.trackunit.com/goto/iris-app-dev` - NEVER on localhost.
75
+
76
+ When the dev server runs locally via `npx nx run [app-name]:serve`, test the app in the Trackunit Manager environment at the URL above. IrisX apps are extensions that integrate into Trackunit Manager and require the host platform to function.
77
+
78
+ ## Agent Skills
79
+
80
+ When working on specific tasks, read the relevant skill from `.agents/skills/`:
81
+
82
+ | Skill | Use When |
83
+ |-------|----------|
84
+ | `widget-extensions` | Building Widget Extensions |
85
+ | `react-core-hooks` | Using runtime hooks |
86
+ | `graphql` | Working with GraphQL API |
87
+ | `customfields` | Storing/reading CustomFields |
88
+ | `graphql-timeseries` | Time series data queries |
89
+ | `browser-testing` | Testing in browser |
90
+ | `tables-and-sorting` | Building data tables |
91
+ | `create-app` | Creating new apps step-by-step |
@@ -0,0 +1,43 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+ 1. Identify what data you need
16
+ 2. Check if it's available via Trackunit's GraphQL API
17
+ 3. If available, use the GraphQL API
18
+ 4. If not available, ask the user
19
+
20
+ ## IrisX App Commands
21
+
22
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
23
+
24
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
25
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
26
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
27
+
28
+ Available extension types:
29
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
30
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
31
+ - `FLEET_EXTENSION` - Menu items in Main Menu
32
+ - `REPORT_EXTENSION` - Reports in Reports screen
33
+ - `WIDGET_EXTENSION` - Dashboard widgets
34
+ - `IRIS_APP_SETTINGS_EXTENSION` - Configuration in App library
35
+ - `ADMIN_EXTENSION` - Admin UI tabs (admin-only)
36
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
37
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
38
+ - `LIFECYCLE_EXTENSION` - Handles app install/uninstall events
39
+ - `SERVERLESS_FUNCTION_EXTENSION` - Serverless backend functions
40
+
41
+ ## Quality Assurance
42
+
43
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
@@ -0,0 +1,43 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+ 1. Identify what data you need
16
+ 2. Check if it's available via Trackunit's GraphQL API
17
+ 3. If available, use the GraphQL API
18
+ 4. If not available, ask the user
19
+
20
+ ## IrisX App Commands
21
+
22
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
23
+
24
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
25
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
26
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
27
+
28
+ Available extension types:
29
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
30
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
31
+ - `FLEET_EXTENSION` - Menu items in Main Menu
32
+ - `REPORT_EXTENSION` - Reports in Reports screen
33
+ - `WIDGET_EXTENSION` - Dashboard widgets
34
+ - `IRIS_APP_SETTINGS_EXTENSION` - Configuration in App library
35
+ - `ADMIN_EXTENSION` - Admin UI tabs (admin-only)
36
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
37
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
38
+ - `LIFECYCLE_EXTENSION` - Handles app install/uninstall events
39
+ - `SERVERSIDE_API_EXTENSION` - Serverside backend functions
40
+
41
+ ## Quality Assurance
42
+
43
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
@@ -0,0 +1,62 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+ 1. Identify what data you need
16
+ 2. Check if it's available via Trackunit's GraphQL API
17
+ 3. If available, use the GraphQL API
18
+ 4. If not available, ask the user
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) 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.
26
+
27
+ Before looking up UI or GraphQL information, check whether tools such as `explore_introspect_gql_schema` are in your tool list (clients may prefix them, 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: follow the `graphql` skill (`.agents/skills/graphql/SKILL.md`) for codegen, and the Developer Hub docs at https://developers.trackunit.com/docs/graphql-api
36
+
37
+ Never invent components, props, or schema fields; look them up with one of the sources above.
38
+
39
+ ## IrisX App Commands
40
+
41
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
42
+
43
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
44
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
45
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
46
+
47
+ Available extension types:
48
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
49
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
50
+ - `FLEET_EXTENSION` - Menu items in Main Menu
51
+ - `REPORT_EXTENSION` - Reports in Reports screen
52
+ - `WIDGET_EXTENSION` - Dashboard widgets
53
+ - `IRIS_APP_SETTINGS_EXTENSION` - Configuration in App library
54
+ - `ADMIN_EXTENSION` - Admin UI tabs (admin-only)
55
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
56
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
57
+ - `LIFECYCLE_EXTENSION` - Handles app install/uninstall events
58
+ - `SERVERSIDE_API_EXTENSION` - Serverside backend functions
59
+
60
+ ## Quality Assurance
61
+
62
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
@@ -0,0 +1,62 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+ 1. Identify what data you need
16
+ 2. Check if it's available via Trackunit's GraphQL API
17
+ 3. If available, use the GraphQL API
18
+ 4. If not available, ask the user
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 tools such as `explore_introspect_gql_schema` are in your tool list (clients may prefix them, 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: follow the `graphql` skill (`.agents/skills/graphql/SKILL.md`) for codegen, and the [Developer Hub GraphQL docs](https://developers.trackunit.com/docs/apps-and-extensions/overview/public-apis/graphql-api/)
36
+
37
+ Never invent components, props, or schema fields; look them up with one of the sources above.
38
+
39
+ ## IrisX App Commands
40
+
41
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
42
+
43
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
44
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
45
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
46
+
47
+ Available extension types:
48
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
49
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
50
+ - `FLEET_EXTENSION` - Menu items in Main Menu
51
+ - `REPORT_EXTENSION` - Reports in Reports screen
52
+ - `WIDGET_EXTENSION` - Dashboard widgets
53
+ - `IRIS_APP_SETTINGS_EXTENSION` - Configuration in App library
54
+ - `ADMIN_EXTENSION` - Admin UI tabs (admin-only)
55
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
56
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
57
+ - `LIFECYCLE_EXTENSION` - Handles app install/uninstall events
58
+ - `SERVERSIDE_API_EXTENSION` - Serverside backend functions
59
+
60
+ ## Quality Assurance
61
+
62
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
@@ -0,0 +1,62 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+ 1. Identify what data you need
16
+ 2. Check if it's available via Trackunit's GraphQL API
17
+ 3. If available, use the GraphQL API
18
+ 4. If not available, ask the user
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
+
39
+ ## IrisX App Commands
40
+
41
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
42
+
43
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
44
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
45
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
46
+
47
+ Available extension types:
48
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
49
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
50
+ - `FLEET_EXTENSION` - Menu items in Main Menu
51
+ - `REPORT_EXTENSION` - Reports in Reports screen
52
+ - `WIDGET_EXTENSION` - Dashboard widgets
53
+ - `IRIS_APP_SETTINGS_EXTENSION` - Configuration in App library
54
+ - `ADMIN_EXTENSION` - Admin UI tabs (admin-only)
55
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
56
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
57
+ - `LIFECYCLE_EXTENSION` - Handles app install/uninstall events
58
+ - `SERVERSIDE_API_EXTENSION` - Serverside backend functions
59
+
60
+ ## Quality Assurance
61
+
62
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
@@ -18,8 +18,8 @@ If the user hasn't described the functionality, ask what they want to build. The
18
18
 
19
19
  ## 2. Set up
20
20
 
21
- 1. Create the app and extensions with the commands in `AGENTS.md`.
22
- 2. Confirm Trackunit MCP is connected and authenticated, using the check in the "Trackunit MCP" section of `AGENTS.md`. If it isn't, tell the user they can connect it, and continue with the fallbacks listed there. Do not block or wait for authentication.
21
+ 1. Create the app and extensions with the commands in `AGENTS-iris-app-sdk.md`.
22
+ 2. Confirm Trackunit MCP is connected and authenticated, using the check in the "Trackunit MCP" section of `AGENTS-iris-app-sdk.md`. If it isn't, tell the user they can connect it, and continue with the fallbacks listed there. Do not block or wait for authentication.
23
23
  3. Start the dev server in the background.
24
24
  4. **Gate:** open the extension in Manager and confirm it renders without console errors before any GraphQL setup or UI work.
25
25
 
@@ -49,7 +49,7 @@ The UI sends the IrisX user token to the invoke route. The serverside extension
49
49
 
50
50
  ## Create the serverside function
51
51
 
52
- Create a dedicated extension with the extension command in `AGENTS.md` and `--type=SERVERSIDE_API_EXTENSION`. It generates a Hono handler, local server, build target, Deno manifest, and app manifest registration. Keep all Databricks code in it.
52
+ Create a dedicated extension with the extension command in `AGENTS-iris-app-sdk.md` and `--type=SERVERSIDE_API_EXTENSION`. It generates a Hono handler, local server, build target, Deno manifest, and app manifest registration. Keep all Databricks code in it.
53
53
 
54
54
  Add the latest `@trackunit/serverside-utils` and a runtime validation library such as `zod`, and list them in the extension's `package.json`.
55
55
 
@@ -9,7 +9,7 @@ Generate typed React hooks from `.graphql` files with `@trackunit/react-graphql-
9
9
 
10
10
  ## Explore the schema
11
11
 
12
- Before writing a query or mutation, check whether Trackunit MCP is connected, as described in the "Trackunit MCP" section of `AGENTS.md`.
12
+ Before writing a query or mutation, check whether Trackunit MCP is connected, as described in the "Trackunit MCP" section of `AGENTS-iris-app-sdk.md`.
13
13
 
14
14
  **If Trackunit MCP is connected:** look up types and fields with `explore_introspect_gql_schema`, and validate each operation with `explore_validate_gql_query` before saving the `.graphql` file.
15
15
 
@@ -5,7 +5,7 @@ description: Use when creating apps, adding extensions, configuring CSP/scopes,
5
5
 
6
6
  # IrisX App SDK
7
7
 
8
- IrisX Apps are React applications that integrate into Trackunit Manager at extension points. `AGENTS.md` lists the SDK commands and extension types. Always use those commands, never `create-react-app`, `npm init`, or other generic React or Node.js tooling.
8
+ IrisX Apps are React applications that integrate into Trackunit Manager at extension points. `AGENTS-iris-app-sdk.md` lists the SDK commands and extension types. Always use those commands, never `create-react-app`, `npm init`, or other generic React or Node.js tooling.
9
9
 
10
10
  Guides: [creating a new app](https://developers.trackunit.com/docs/apps-and-extensions/overview/getting-started/creating-a-new-app), [creating a new extension](https://developers.trackunit.com/docs/apps-and-extensions/overview/getting-started/creating-a-new-extension), and [running the Iris App SDK](https://developers.trackunit.com/docs/apps-and-extensions/overview/getting-started/running-the-iris-app-sdk).
11
11
 
@@ -12,7 +12,7 @@ Use `@trackunit/react-map` with one Trackunit adapter. Do not use `google.maps`,
12
12
 
13
13
  ## Ensure a UI extension exists
14
14
 
15
- The map needs a UI extension. If none exists, ask the user which extension point should contain it, then create one with the extension command in `AGENTS.md`. Never choose the extension point without their confirmation.
15
+ The map needs a UI extension. If none exists, ask the user which extension point should contain it, then create one with the extension command in `AGENTS-iris-app-sdk.md`. Never choose the extension point without their confirmation.
16
16
 
17
17
  ## Choose the provider
18
18
 
@@ -7,7 +7,7 @@ description: Use when creating dashboard widgets, KPI displays, configurable wid
7
7
 
8
8
  Widgets are React components on Trackunit Manager dashboards. For full-page extensions, use `FLEET_EXTENSION` or `ASSET_HOME_EXTENSION` instead.
9
9
 
10
- Create one with the extension command in `AGENTS.md` and `--type=WIDGET_EXTENSION`. It generates `extension-manifest.ts` and `src/app.tsx`, which renders both display and edit mode.
10
+ Create one with the extension command in `AGENTS-iris-app-sdk.md` and `--type=WIDGET_EXTENSION`. It generates `extension-manifest.ts` and `src/app.tsx`, which renders both display and edit mode.
11
11
 
12
12
  ## Manifest
13
13
 
@@ -8,6 +8,7 @@ const react_1 = require("@nx/react");
8
8
  const path_1 = tslib_1.__importDefault(require("path"));
9
9
  const link_claude_skills_1 = require("../utils/link-claude-skills");
10
10
  const pinned_versions_1 = require("../utils/pinned-versions/pinned-versions");
11
+ const sdk_agents_md_1 = require("../utils/sdk-agents-md/sdk-agents-md");
11
12
  const uses_trackunit_eslint_plugin_1 = require("../utils/uses-trackunit-eslint-plugin");
12
13
  /**
13
14
  * Preset generator for Iris apps workspace.
@@ -26,6 +27,7 @@ async function presetGenerator(tree, options) {
26
27
  (0, devkit_1.generateFiles)(tree, path_1.default.join(__dirname, "files"), ".", {});
27
28
  (0, devkit_1.generateFiles)(tree, path_1.default.join(__dirname, "root-files"), ".", {});
28
29
  (0, devkit_1.generateFiles)(tree, path_1.default.join(__dirname, "lint-files"), ".", { template: "" });
30
+ tree.write(sdk_agents_md_1.AGENTS_MD, (0, sdk_agents_md_1.sdkAgentsMdPointer)());
29
31
  if (!tree.exists("vitest.empty-stub.ts")) {
30
32
  tree.write("vitest.empty-stub.ts", "export default {};\n");
31
33
  }
@@ -0,0 +1,78 @@
1
+ # IrisX App SDK Workspace
2
+
3
+ This is an IrisX App workspace. Follow these rules for all development.
4
+
5
+ ## Building Real Applications
6
+
7
+ You are building real applications that work with actual Trackunit data.
8
+
9
+ - Never mock data unless explicitly requested by the user
10
+ - Always use Trackunit's GraphQL API to fetch real data
11
+ - If data is not available via GraphQL, ask the user how they want to obtain the data
12
+ - Only use mock data if the user explicitly requests it for testing purposes
13
+
14
+ When building any feature:
15
+ 1. Identify what data you need
16
+ 2. Check if it's available via Trackunit's GraphQL API
17
+ 3. If available, use the GraphQL API
18
+ 4. If not available, ask the user
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
+
39
+ ## IrisX App Commands
40
+
41
+ **ALWAYS use these specific commands** (never generic React/Node.js commands):
42
+
43
+ - **Create new app:** `npx nx generate @trackunit/iris-app:create [name-of-your-app]`
44
+ - **Create new extension:** `npx nx g @trackunit/iris-app:extend --name=[my-extension-name] --app=[app-name] --directory=[feature] --type=[extension-type]`
45
+ - **Run app:** `npx nx run [name-of-your-app]:serve`
46
+
47
+ Available extension types:
48
+ - `ASSET_HOME_EXTENSION` - Tabs in Asset Home screen
49
+ - `SITE_HOME_EXTENSION` - Tabs in Site Home screen
50
+ - `FLEET_EXTENSION` - Menu items in Main Menu
51
+ - `REPORT_EXTENSION` - Reports in Reports screen
52
+ - `WIDGET_EXTENSION` - Dashboard widgets
53
+ - `IRIS_APP_SETTINGS_EXTENSION` - Configuration in App library
54
+ - `ADMIN_EXTENSION` - Admin UI tabs (admin-only)
55
+ - `CUSTOMER_HOME_EXTENSION` - UI within Customer Home
56
+ - `ASSET_EVENTS_ACTIONS_EXTENSION` - UI in Asset Home Events
57
+ - `LIFECYCLE_EXTENSION` - Handles app install/uninstall events
58
+ - `SERVERSIDE_API_EXTENSION` - Serverside backend functions
59
+
60
+ ## Quality Assurance
61
+
62
+ Before completing any task: Always check for and fix all ESLint and TypeScript errors in modified files.
63
+
64
+ ## Claude Code
65
+
66
+ Claude Code (v2.1.277 or later) reads `AGENTS.md` directly. A `CLAUDE.md` or `CLAUDE.local.md` stops that; if you need one (older Claude Code, personal notes), make its first line `@AGENTS.md`.
67
+
68
+ SDK-specific skills live in `.agents/skills/`. The generator creates a `.claude/skills` symlink pointing at `../.agents/skills` so Claude Code auto-discovers them. When a skill is referenced in this file, read it from `.agents/skills/[skill-name]/SKILL.md`.
69
+
70
+ Restart Claude Code after changing `.mcp.json` so the MCP servers are reloaded.
71
+
72
+ If skills are not appearing in your available skills list, the symlink may be missing (for example on Windows without Developer Mode, or if a real `.claude/skills` directory existed first). Recreate it with:
73
+
74
+ ```bash
75
+ ln -s ../.agents/skills .claude/skills
76
+ ```
77
+
78
+ If `.claude/skills` already exists as a real directory, move its contents into `.agents/skills/` and delete it before running the command above.
@@ -0,0 +1,7 @@
1
+ export declare const AGENTS_MD = "AGENTS.md";
2
+ export declare const SDK_AGENTS_MD = "AGENTS-iris-app-sdk.md";
3
+ /**
4
+ * The lines AGENTS.md uses to point to the SDK guide. The `@` line is a Claude Code
5
+ * import, which loads the guide into context instead of relying on the agent to open it.
6
+ */
7
+ export declare function sdkAgentsMdPointer(eol?: string): string;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SDK_AGENTS_MD = exports.AGENTS_MD = void 0;
4
+ exports.sdkAgentsMdPointer = sdkAgentsMdPointer;
5
+ exports.AGENTS_MD = "AGENTS.md";
6
+ exports.SDK_AGENTS_MD = "AGENTS-iris-app-sdk.md";
7
+ /**
8
+ * The lines AGENTS.md uses to point to the SDK guide. The `@` line is a Claude Code
9
+ * import, which loads the guide into context instead of relying on the agent to open it.
10
+ */
11
+ function sdkAgentsMdPointer(eol = "\n") {
12
+ return [
13
+ `Read [${exports.SDK_AGENTS_MD}](${exports.SDK_AGENTS_MD}) before working in this workspace: it holds the IrisX App SDK rules. ` +
14
+ `\`nx g @trackunit/iris-app:ai-agent-sync\` overwrites it, so keep your own rules in this file.`,
15
+ "",
16
+ `@${exports.SDK_AGENTS_MD}`,
17
+ "",
18
+ ].join(eol);
19
+ }
20
+ //# sourceMappingURL=sdk-agents-md.js.map