@trackunit/iris-app 2.16.73 → 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.
- package/CHANGELOG.md +34 -0
- package/package.json +17 -17
- package/src/generators/ai-agent-sync/README.md +5 -2
- package/src/generators/ai-agent-sync/generator.d.ts +1 -1
- package/src/generators/ai-agent-sync/generator.js +41 -7
- package/src/generators/ai-agent-sync/legacy-agents-md/v1-prettier.md +98 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v1.md +95 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v2-prettier.md +93 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v2.md +90 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v3-prettier.md +94 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v3.md +91 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v4.md +43 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v5.md +43 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v6.md +62 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v7.md +62 -0
- package/src/generators/ai-agent-sync/legacy-agents-md/v8.md +62 -0
- package/src/generators/preset/files/.agents/skills/create-app/SKILL.md +2 -2
- package/src/generators/preset/files/.agents/skills/databricks-unity-catalog/SKILL.md +1 -1
- package/src/generators/preset/files/.agents/skills/graphql/SKILL.md +1 -1
- package/src/generators/preset/files/.agents/skills/irisx-app-sdk/SKILL.md +1 -1
- package/src/generators/preset/files/.agents/skills/set-up-react-map/SKILL.md +1 -1
- package/src/generators/preset/files/.agents/skills/widget-extensions/SKILL.md +1 -1
- package/src/generators/preset/generator.js +2 -0
- package/src/generators/preset/root-files/AGENTS-iris-app-sdk.md +78 -0
- package/src/generators/utils/sdk-agents-md/sdk-agents-md.d.ts +7 -0
- package/src/generators/utils/sdk-agents-md/sdk-agents-md.js +20 -0
- package/migrations/entry.js.map +0 -1
- package/migrations/p-content-space-codemod/invent-content-space.js.map +0 -1
- package/migrations/p-content-space-codemod/orchestrator.js.map +0 -1
- package/migrations/p-content-space-codemod/remove-redundant-padding.js.map +0 -1
- package/migrations/p-content-space-codemod/report-run-messaging.js.map +0 -1
- package/migrations/p-content-space-codemod/report-unresolved.js.map +0 -1
- package/migrations/p-content-space-codemod/resolve-content-shell.js.map +0 -1
- package/migrations/p-content-space-codemod/rewrite-page-content.js.map +0 -1
- package/migrations/p-content-space-codemod/shell-skip-reason.js.map +0 -1
- package/migrations/repair-tsconfig/repair-tsconfig.js.map +0 -1
- package/migrations/utils/classname-ast-rewrite.js.map +0 -1
- package/migrations/utils/resolve-extension-types.js.map +0 -1
- package/src/executors/submit/executor.js.map +0 -1
- package/src/executors/unpublish/executor.js.map +0 -1
- package/src/executors/utils/authentication.js.map +0 -1
- package/src/executors/utils/irisAppServerSettings.js.map +0 -1
- package/src/executors/utils/src/index.js.map +0 -1
- package/src/generators/ai-agent-sync/generator.js.map +0 -1
- package/src/generators/create/generator.js.map +0 -1
- package/src/generators/extend/dependencies.js.map +0 -1
- package/src/generators/extend/generator.js.map +0 -1
- package/src/generators/preset/generator.js.map +0 -1
- package/src/generators/utils/get-package-manifest.js.map +0 -1
- package/src/generators/utils/link-claude-skills.js.map +0 -1
- package/src/generators/utils/own-package-json/own-package-json.js.map +0 -1
- package/src/generators/utils/pinned-versions/pinned-versions.js.map +0 -1
- package/src/generators/utils/uses-trackunit-eslint-plugin.js.map +0 -1
- package/src/generators/utils/write-trackunit-project-eslint-config.js.map +0 -1
- package/src/index.js.map +0 -1
- package/src/utils/ast/astUtils.js.map +0 -1
- package/src/utils/fileUpdater.js.map +0 -1
- /package/src/generators/{preset/root-files/AGENTS.md → ai-agent-sync/legacy-agents-md/v9.md} +0 -0
|
@@ -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
|