dhis2_migration_assistant
Migrate from the deprecated d2 library to the modern App Platform by specifying current stack, target platform, and migration scope. Simplify codebase transitions for DHIS2 health systems.
Instructions
Assist with migrating from deprecated d2 library to modern App Platform
Input Schema
Name | Required | Description | Default |
---|---|---|---|
codeComplexity | No | Current codebase complexity | |
currentStack | Yes | ||
migrationScope | No | Scope of migration | |
targetPlatform | No |
Input Schema (JSON Schema)
{
"properties": {
"codeComplexity": {
"description": "Current codebase complexity",
"enum": [
"simple",
"moderate",
"complex"
],
"type": "string"
},
"currentStack": {
"properties": {
"buildSystem": {
"description": "Current build system",
"enum": [
"d2_cli",
"webpack",
"create_react_app",
"custom"
],
"type": "string"
},
"d2Version": {
"description": "Current d2 library version",
"type": "string"
},
"reactVersion": {
"description": "Current React version",
"type": "string"
}
},
"type": "object"
},
"migrationScope": {
"description": "Scope of migration",
"enum": [
"full_migration",
"incremental",
"new_features_only"
],
"type": "string"
},
"targetPlatform": {
"properties": {
"appPlatformVersion": {
"description": "Target App Platform version (default: latest)",
"type": "string"
},
"features": {
"description": "App Platform features to enable",
"items": {
"enum": [
"data_query",
"data_mutation",
"alerts",
"offline",
"pwa"
],
"type": "string"
},
"type": "array"
}
},
"type": "object"
}
},
"required": [
"currentStack"
],
"type": "object"
}