@cxtms/cx-schema 1.8.2 → 1.9.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/dist/cli.js +14 -11
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
- package/scripts/postinstall.js +15 -12
- package/{.claude/skills/cx-core → skills/cxtms-developer}/SKILL.md +16 -14
- package/{.claude/skills/cx-module → skills/cxtms-module-builder}/SKILL.md +10 -10
- package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/SKILL.md +17 -17
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-cli-auth.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-accounting.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-commodity.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-contact.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-geography.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-job.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-notification.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-order-sub.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-order.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-organization.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-rate.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-shared.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-entity-warehouse.md +0 -0
- /package/{.claude/skills/cx-core → skills/cxtms-developer}/ref-graphql-query.md +0 -0
- /package/{.claude/skills/cx-module → skills/cxtms-module-builder}/ref-components-data.md +0 -0
- /package/{.claude/skills/cx-module → skills/cxtms-module-builder}/ref-components-display.md +0 -0
- /package/{.claude/skills/cx-module → skills/cxtms-module-builder}/ref-components-forms.md +0 -0
- /package/{.claude/skills/cx-module → skills/cxtms-module-builder}/ref-components-interactive.md +0 -0
- /package/{.claude/skills/cx-module → skills/cxtms-module-builder}/ref-components-layout.md +0 -0
- /package/{.claude/skills/cx-module → skills/cxtms-module-builder}/ref-components-specialized.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-accounting.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-communication.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-entity.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-expressions-ncalc.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-expressions-template.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-filetransfer.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-flow.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-other.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-query.md +0 -0
- /package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-utilities.md +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cxtms/cx-schema",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Schema validation package for CargoXplorer YAML modules",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"schemas",
|
|
33
33
|
"scripts",
|
|
34
34
|
"templates",
|
|
35
|
-
"
|
|
35
|
+
"skills"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"ajv": "^8.12.0",
|
package/scripts/postinstall.js
CHANGED
|
@@ -150,9 +150,9 @@ function main() {
|
|
|
150
150
|
createValidationScript(projectRoot);
|
|
151
151
|
|
|
152
152
|
// Copy Claude Code skills (clean existing first to remove stale files)
|
|
153
|
-
const skillNames = ['
|
|
153
|
+
const skillNames = ['cxtms-developer', 'cxtms-module-builder', 'cxtms-workflow-builder'];
|
|
154
154
|
for (const skillName of skillNames) {
|
|
155
|
-
const skillSource = path.join(__dirname, '..', '
|
|
155
|
+
const skillSource = path.join(__dirname, '..', 'skills', skillName);
|
|
156
156
|
if (fs.existsSync(skillSource)) {
|
|
157
157
|
const skillDest = path.join(projectRoot, '.claude', 'skills', skillName);
|
|
158
158
|
console.log(`Installing ${skillName} skill...`);
|
|
@@ -169,14 +169,17 @@ function main() {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
// Remove
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
172
|
+
// Remove deprecated skills
|
|
173
|
+
const deprecatedSkills = ['cx-build', 'cx-core', 'cx-module', 'cx-workflow'];
|
|
174
|
+
for (const oldSkill of deprecatedSkills) {
|
|
175
|
+
const oldSkillDest = path.join(projectRoot, '.claude', 'skills', oldSkill);
|
|
176
|
+
if (fs.existsSync(oldSkillDest)) {
|
|
177
|
+
try {
|
|
178
|
+
fs.rmSync(oldSkillDest, { recursive: true });
|
|
179
|
+
console.log(`Removed deprecated ${oldSkill} skill.`);
|
|
180
|
+
} catch (error) {
|
|
181
|
+
// Ignore cleanup errors
|
|
182
|
+
}
|
|
180
183
|
}
|
|
181
184
|
}
|
|
182
185
|
|
|
@@ -184,8 +187,8 @@ function main() {
|
|
|
184
187
|
console.log('\nUsage:');
|
|
185
188
|
console.log(' npx cxtms modules/your-module.yaml');
|
|
186
189
|
console.log(' node .cx-schema/validate.js modules/your-module.yaml');
|
|
187
|
-
console.log(' /
|
|
188
|
-
console.log(' /
|
|
190
|
+
console.log(' /cxtms-module-builder <description> (Claude Code skill - UI modules)');
|
|
191
|
+
console.log(' /cxtms-workflow-builder <description> (Claude Code skill - workflows)');
|
|
189
192
|
}
|
|
190
193
|
|
|
191
194
|
// Only run if this is not being installed as a dependency of cx-schema-validator itself
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
description:
|
|
2
|
+
name: cxtms-developer
|
|
3
|
+
description: >
|
|
4
|
+
Shared CargoXplorer domain reference — entity fields, enums, customValues, GraphQL queries, and CLI auth.
|
|
5
|
+
Use when the user asks about CX entity fields, enums, customValues, entity relationships, or needs domain reference for Orders, Contacts, Commodities, Jobs, Charges, or other CX entities.
|
|
4
6
|
argument-hint: <entity name or question about fields>
|
|
5
7
|
---
|
|
6
8
|
|
|
7
|
-
Shared domain reference for CargoXplorer entities. Used by `
|
|
9
|
+
Shared domain reference for CargoXplorer entities. Used by `cxtms-workflow-builder` and `cxtms-module-builder` skills for entity field names, types, navigation properties, enums, and customValues extension patterns.
|
|
8
10
|
|
|
9
11
|
## Feature File Layout
|
|
10
12
|
|
|
@@ -27,32 +29,32 @@ Use `--feature <feature_name>` with `cx-cli create` to automatically place files
|
|
|
27
29
|
|
|
28
30
|
### Primary Entities
|
|
29
31
|
|
|
30
|
-
!cat
|
|
31
|
-
!cat
|
|
32
|
-
!cat
|
|
33
|
-
!cat
|
|
32
|
+
!cat skills/cxtms-developer/ref-entity-order.md
|
|
33
|
+
!cat skills/cxtms-developer/ref-entity-contact.md
|
|
34
|
+
!cat skills/cxtms-developer/ref-entity-commodity.md
|
|
35
|
+
!cat skills/cxtms-developer/ref-entity-accounting.md
|
|
34
36
|
|
|
35
37
|
### Order Sub-Entities & Related
|
|
36
38
|
|
|
37
|
-
!cat
|
|
38
|
-
!cat
|
|
39
|
+
!cat skills/cxtms-developer/ref-entity-order-sub.md
|
|
40
|
+
!cat skills/cxtms-developer/ref-entity-job.md
|
|
39
41
|
|
|
40
42
|
### Pricing & Accounting Lookups
|
|
41
43
|
|
|
42
|
-
!cat
|
|
44
|
+
!cat skills/cxtms-developer/ref-entity-rate.md
|
|
43
45
|
|
|
44
46
|
### Shared & Lookup Entities
|
|
45
47
|
|
|
46
|
-
!cat
|
|
47
|
-
!cat
|
|
48
|
+
!cat skills/cxtms-developer/ref-entity-shared.md
|
|
49
|
+
!cat skills/cxtms-developer/ref-entity-geography.md
|
|
48
50
|
|
|
49
51
|
### Warehouse & Inventory
|
|
50
52
|
|
|
51
|
-
!cat
|
|
53
|
+
!cat skills/cxtms-developer/ref-entity-warehouse.md
|
|
52
54
|
|
|
53
55
|
### Notifications
|
|
54
56
|
|
|
55
|
-
!cat
|
|
57
|
+
!cat skills/cxtms-developer/ref-entity-notification.md
|
|
56
58
|
|
|
57
59
|
| Category | Entities | Reference |
|
|
58
60
|
|----------|----------|-----------|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: cxtms-module-builder
|
|
3
3
|
description: >
|
|
4
4
|
Works with CXTMS app module YAML files — creates, modifies, fixes, validates, and deploys UI screens, forms, grids, and routes.
|
|
5
5
|
Use when the user asks to create, modify, or fix a module YAML file, references *-module.yaml files, or asks about UI components/forms/grids/routes in a CX project.
|
|
@@ -160,9 +160,9 @@ When the target file doesn't exist, a new module is created with:
|
|
|
160
160
|
|
|
161
161
|
**Read these files only when needed for the current task.** Do not load all references upfront.
|
|
162
162
|
|
|
163
|
-
### Entity Field Reference (
|
|
163
|
+
### Entity Field Reference (cxtms-developer)
|
|
164
164
|
|
|
165
|
-
!cat
|
|
165
|
+
!cat skills/cxtms-developer/SKILL.md
|
|
166
166
|
|
|
167
167
|
### Component Directory
|
|
168
168
|
|
|
@@ -170,12 +170,12 @@ Read the relevant category ref file when building specific component types:
|
|
|
170
170
|
|
|
171
171
|
| Category | Components | File |
|
|
172
172
|
|----------|-----------|------|
|
|
173
|
-
| **Layout & Structure** | `layout`, `row`, `col`, `header`, `tabs`, `toolbar`, `card`, `line`, `slot` |
|
|
174
|
-
| **Forms & Input** | `form`, `field`, `field-collection`, `barcodeScanner` |
|
|
175
|
-
| **Data Display** | `dataGrid`, `text`, `markup`, `badge`, `icon`, `image`, `photo`, `summary`, `diff`, `viewer`, `embed` |
|
|
176
|
-
| **Interactive & Nav** | `button`, `dropdown`, `menuButton`, `link`, `redirect`, `navbar`, `navbarItem`, `navbarLink`, `navDropdown` |
|
|
177
|
-
| **Data & Collections** | `collection`, `list`, `listItem`, `datasource`, `script` |
|
|
178
|
-
| **Specialized** | `calendar`, `notes`, `dashboard`, `dashboard-widget`, `widget`, `timeline`, `timeline-grid`, `oauth2` |
|
|
173
|
+
| **Layout & Structure** | `layout`, `row`, `col`, `header`, `tabs`, `toolbar`, `card`, `line`, `slot` | `skills/cxtms-module-builder/ref-components-layout.md` |
|
|
174
|
+
| **Forms & Input** | `form`, `field`, `field-collection`, `barcodeScanner` | `skills/cxtms-module-builder/ref-components-forms.md` |
|
|
175
|
+
| **Data Display** | `dataGrid`, `text`, `markup`, `badge`, `icon`, `image`, `photo`, `summary`, `diff`, `viewer`, `embed` | `skills/cxtms-module-builder/ref-components-display.md` |
|
|
176
|
+
| **Interactive & Nav** | `button`, `dropdown`, `menuButton`, `link`, `redirect`, `navbar`, `navbarItem`, `navbarLink`, `navDropdown` | `skills/cxtms-module-builder/ref-components-interactive.md` |
|
|
177
|
+
| **Data & Collections** | `collection`, `list`, `listItem`, `datasource`, `script` | `skills/cxtms-module-builder/ref-components-data.md` |
|
|
178
|
+
| **Specialized** | `calendar`, `notes`, `dashboard`, `dashboard-widget`, `widget`, `timeline`, `timeline-grid`, `oauth2` | `skills/cxtms-module-builder/ref-components-specialized.md` |
|
|
179
179
|
|
|
180
180
|
### Templates
|
|
181
181
|
|
|
@@ -409,7 +409,7 @@ Reusable select components (e.g., `Countries/Select`, `Ports/Select`) follow thi
|
|
|
409
409
|
|
|
410
410
|
## Server Module Commands
|
|
411
411
|
|
|
412
|
-
Deploy, undeploy, and release commands are listed in the CLI section at the top of this file. For authentication setup (login, PAT tokens, org management): see [
|
|
412
|
+
Deploy, undeploy, and release commands are listed in the CLI section at the top of this file. For authentication setup (login, PAT tokens, org management): see [cxtms-developer/ref-cli-auth.md](skills/cxtms-developer/ref-cli-auth.md)
|
|
413
413
|
|
|
414
414
|
### Releasing App to GitHub
|
|
415
415
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
2
|
+
name: cxtms-workflow-builder
|
|
3
3
|
description: >
|
|
4
4
|
Works with CXTMS workflow YAML files — creates, modifies, fixes, validates, and deploys standard process and Flow state machine workflows.
|
|
5
5
|
Use when the user asks to create, modify, or fix a workflow YAML file, references workflow/*.yaml files, or asks about workflow tasks/triggers/activities in a CX project.
|
|
@@ -75,7 +75,7 @@ npx cxtms create workflow <name> --template <template>
|
|
|
75
75
|
|
|
76
76
|
**All templates** include workflow-level `events` (`onWorkflowStarted`, `onWorkflowExecuted`, `onWorkflowFailed`) and activity-level `events` (`onActivityStarted`, `onActivityCompleted`, `onActivityFailed`) with Log steps. Replace/extend these with notification tasks (Email/Send, HttpRequest, Workflow/Execute) as needed.
|
|
77
77
|
|
|
78
|
-
**Flow workflows** — scaffold with `basic` then set `workflowType: Flow`, remove `activities`/`triggers`, add `entity`, `states`, `transitions`, `aggregations`. Load Flow reference: `!cat
|
|
78
|
+
**Flow workflows** — scaffold with `basic` then set `workflowType: Flow`, remove `activities`/`triggers`, add `entity`, `states`, `transitions`, `aggregations`. Load Flow reference: `!cat skills/cxtms-workflow-builder/ref-flow.md`
|
|
79
79
|
|
|
80
80
|
### Step 4: Validate
|
|
81
81
|
|
|
@@ -191,8 +191,8 @@ events: # Workflow-level event handlers
|
|
|
191
191
|
|
|
192
192
|
## Variable References (quick summary)
|
|
193
193
|
|
|
194
|
-
For template expressions and value directives: see [ref-expressions-template.md](
|
|
195
|
-
For NCalc conditions and functions: see [ref-expressions-ncalc.md](
|
|
194
|
+
For template expressions and value directives: see [ref-expressions-template.md](skills/cxtms-workflow-builder/ref-expressions-template.md)
|
|
195
|
+
For NCalc conditions and functions: see [ref-expressions-ncalc.md](skills/cxtms-workflow-builder/ref-expressions-ncalc.md)
|
|
196
196
|
|
|
197
197
|
**`{{ path }}`** — in step inputs. Single `{{ }}` returns raw object. Multiple returns string interpolation.
|
|
198
198
|
**`[variable]`** — in conditions and `expression:` directives. NCalc syntax.
|
|
@@ -279,25 +279,25 @@ Implicit variable: `iteration` (zero-based).
|
|
|
279
279
|
|
|
280
280
|
| Category | Tasks | Load Reference |
|
|
281
281
|
|----------|-------|----------------|
|
|
282
|
-
| Utilities | SetVariable, Log, Error, HttpRequest, Map, Template, Import, Export, CsvParse, UnzipFile | `!cat
|
|
283
|
-
| Query & Workflow | Query/GraphQL, Validation, Workflow/Execute | `!cat
|
|
284
|
-
| Entity CRUD | Order, Contact, Commodity, Job, Charge, Discount, Inventory, Movement, Transmission | `!cat
|
|
285
|
-
| Communication | Email/Send, Document/Render, Attachment, PdfDocument/Merge | `!cat
|
|
286
|
-
| File Transfer | Connect, Disconnect, ListFiles, Download, Upload, Move, Delete | `!cat
|
|
287
|
-
| Accounting | AccountingTransaction, Payment, Number/Generate, SequenceNumber | `!cat
|
|
288
|
-
| Other | User, Auth, Caching, X12/Parse, EDIFACT, Flow/Transition, Notes, AppModule, ActionEvent | `!cat
|
|
282
|
+
| Utilities | SetVariable, Log, Error, HttpRequest, Map, Template, Import, Export, CsvParse, UnzipFile | `!cat skills/cxtms-workflow-builder/ref-utilities.md` |
|
|
283
|
+
| Query & Workflow | Query/GraphQL, Validation, Workflow/Execute | `!cat skills/cxtms-workflow-builder/ref-query.md` |
|
|
284
|
+
| Entity CRUD | Order, Contact, Commodity, Job, Charge, Discount, Inventory, Movement, Transmission | `!cat skills/cxtms-workflow-builder/ref-entity.md` |
|
|
285
|
+
| Communication | Email/Send, Document/Render, Attachment, PdfDocument/Merge | `!cat skills/cxtms-workflow-builder/ref-communication.md` |
|
|
286
|
+
| File Transfer | Connect, Disconnect, ListFiles, Download, Upload, Move, Delete | `!cat skills/cxtms-workflow-builder/ref-filetransfer.md` |
|
|
287
|
+
| Accounting | AccountingTransaction, Payment, Number/Generate, SequenceNumber | `!cat skills/cxtms-workflow-builder/ref-accounting.md` |
|
|
288
|
+
| Other | User, Auth, Caching, X12/Parse, EDIFACT, Flow/Transition, Notes, AppModule, ActionEvent | `!cat skills/cxtms-workflow-builder/ref-other.md` |
|
|
289
289
|
|
|
290
|
-
## Entity Field Reference (
|
|
290
|
+
## Entity Field Reference (cxtms-developer)
|
|
291
291
|
|
|
292
|
-
!cat
|
|
292
|
+
!cat skills/cxtms-developer/SKILL.md
|
|
293
293
|
|
|
294
294
|
## Additional References (load on demand)
|
|
295
295
|
|
|
296
296
|
| Reference | Load |
|
|
297
297
|
|-----------|------|
|
|
298
|
-
| Template Expressions & Value Directives | `!cat
|
|
299
|
-
| NCalc Expressions & Functions | `!cat
|
|
300
|
-
| Flow Workflows (state machines) | `!cat
|
|
298
|
+
| Template Expressions & Value Directives | `!cat skills/cxtms-workflow-builder/ref-expressions-template.md` |
|
|
299
|
+
| NCalc Expressions & Functions | `!cat skills/cxtms-workflow-builder/ref-expressions-ncalc.md` |
|
|
300
|
+
| Flow Workflows (state machines) | `!cat skills/cxtms-workflow-builder/ref-flow.md` |
|
|
301
301
|
|
|
302
302
|
## Dynamic Schema Access (load on demand)
|
|
303
303
|
|
|
@@ -320,7 +320,7 @@ Implicit variable: `iteration` (zero-based).
|
|
|
320
320
|
|
|
321
321
|
## Server Workflow Commands
|
|
322
322
|
|
|
323
|
-
Deploy, undeploy, and release commands are listed in the CLI section at the top of this file. For authentication setup (login, PAT tokens, org management): see [
|
|
323
|
+
Deploy, undeploy, and release commands are listed in the CLI section at the top of this file. For authentication setup (login, PAT tokens, org management): see [cxtms-developer/ref-cli-auth.md](skills/cxtms-developer/ref-cli-auth.md)
|
|
324
324
|
|
|
325
325
|
### Releasing App to GitHub
|
|
326
326
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{.claude/skills/cx-module → skills/cxtms-module-builder}/ref-components-interactive.md
RENAMED
|
File without changes
|
|
File without changes
|
/package/{.claude/skills/cx-module → skills/cxtms-module-builder}/ref-components-specialized.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-expressions-ncalc.md
RENAMED
|
File without changes
|
/package/{.claude/skills/cx-workflow → skills/cxtms-workflow-builder}/ref-expressions-template.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|