Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

17.4 KB
Raw Blame
[
  {
    "id": "manifest",
    "command": "node 'D:/repo/plugins/model-apps/scripts/generate-page-manifest.js' 'D:/work/widgets' 'widgets'",
    "exitCode": 0,
    "result": {
      "workingDir": "D:\\work\\widgets",
      "slug": "widgets",
      "features": [],
      "files": {
        "package.json": {
          "wrote": true
        },
        "genpage.d.ts": {
          "wrote": true
        }
      }
    }
  },
  {
    "id": "interaction-mode",
    "command": "node 'D:/repo/plugins/model-apps/scripts/resolve-interaction-mode.js'",
    "exitCode": 0,
    "result": {
      "ok": true,
      "interactive": true,
      "reason": "default (attended)"
    }
  },
  {
    "id": "node-version",
    "command": "node --version",
    "exitCode": 0,
    "result": "v20.20.2"
  },
  {
    "id": "pac-help",
    "command": "pac help",
    "exitCode": 0,
    "result": "Microsoft PowerPlatform CLI Version: 2.11.0"
  },
  {
    "id": "auth-list",
    "command": "pac auth list",
    "exitCode": 0,
    "result": "Index Active Kind      Name Friendly Name User                           Cloud  Type Environment Environment Url\n[1]   *      UNIVERSAL           Contoso       [email protected] Public User Contoso     https://contoso.crm.dynamics.com/"
  },
  {
    "id": "planner-discovery",
    "command": "Task genpage-planner (discovery: create, No connector bindings., No custom API bindings.)",
    "result": {
      "action": "needs_input",
      "why": "A new table must be created, so an app and a target solution are required before the plan can be proposed",
      "questions": [
        {
          "id": "app",
          "question": "Which app should the page be added to?",
          "options": [
            "Contoso Operations Hub (11111111-2222-3333-4444-555555555555)",
            "Field Service Desk (44444444-5555-6666-7777-888888888888)",
            "Create a new app"
          ]
        },
        {
          "id": "solution",
          "question": "Your env has 5 existing custom tables using prefix cr. Which solution should the new table (cr_widget) go in?",
          "options": [
            "Continue in 'ContosoOperations' (prefix: cr) — matches your existing custom tables [RECOMMENDED]",
            "Create new 'genpage-contoso-operations-hub' solution under cr publisher",
            "Use existing 'FieldSurveys' (prefix: new)",
            "Create a new solution under Default Publisher (prefix: new)",
            "Use Default Solution (prefix: new) ⚠ different prefix from existing work"
          ]
        }
      ],
      "discovered": {
        "languages": [
          "English (1033)"
        ],
        "existingEntities": [],
        "entitiesToCreate": [
          "cr_widget"
        ],
        "detectedPrefix": "cr",
        "detectedTableCount": 5,
        "solutions": [
          {
            "uniquename": "ContosoOperations",
            "prefix": "cr"
          },
          {
            "uniquename": "FieldSurveys",
            "prefix": "new"
          }
        ]
      }
    }
  },
  {
    "id": "list-languages",
    "by": "genpage-planner",
    "command": "node 'D:/repo/plugins/model-apps/scripts/list-languages.js' --env 'https://contoso.crm.dynamics.com'",
    "exitCode": 0,
    "result": {
      "ok": true,
      "baseLanguage": {
        "lcid": 1033,
        "code": "en-US",
        "name": "English (United States)",
        "rtl": false
      },
      "languages": [
        {
          "lcid": 1033,
          "code": "en-US",
          "name": "English (United States)",
          "rtl": false
        }
      ],
      "unmapped": [],
      "summary": [
        "1033 en-US — RTL: No"
      ]
    }
  },
  {
    "id": "list-tables-search",
    "by": "genpage-planner",
    "command": "node 'D:/repo/plugins/model-apps/scripts/list-tables.js' --env 'https://contoso.crm.dynamics.com' --search 'cr_widget' --exact",
    "exitCode": 0,
    "result": {
      "ok": true,
      "search": [
        "cr_widget"
      ],
      "exact": true,
      "count": 0,
      "tables": [],
      "missing": [
        "cr_widget"
      ]
    }
  },
  {
    "id": "list-tables-prefix-scan",
    "by": "genpage-planner",
    "command": "node 'D:/repo/plugins/model-apps/scripts/list-tables.js' --env 'https://contoso.crm.dynamics.com' --type custom",
    "exitCode": 0,
    "result": {
      "ok": true,
      "type": "custom",
      "count": 7,
      "tables": [
        {
          "logicalName": "cr_bin",
          "displayName": "Bin",
          "schemaName": "cr_Bin",
          "isCustom": true
        },
        {
          "logicalName": "cr_purchaseorder",
          "displayName": "Purchase Order",
          "schemaName": "cr_PurchaseOrder",
          "isCustom": true
        },
        {
          "logicalName": "cr_shipment",
          "displayName": "Shipment",
          "schemaName": "cr_Shipment",
          "isCustom": true
        },
        {
          "logicalName": "cr_supplier",
          "displayName": "Supplier",
          "schemaName": "cr_Supplier",
          "isCustom": true
        },
        {
          "logicalName": "cr_warehouse",
          "displayName": "Warehouse",
          "schemaName": "cr_Warehouse",
          "isCustom": true
        },
        {
          "logicalName": "new_feedback",
          "displayName": "Feedback",
          "schemaName": "new_Feedback",
          "isCustom": true
        },
        {
          "logicalName": "new_survey",
          "displayName": "Survey",
          "schemaName": "new_Survey",
          "isCustom": true
        }
      ]
    }
  },
  {
    "id": "list-solutions",
    "by": "genpage-planner",
    "command": "node 'D:/repo/plugins/model-apps/scripts/dataverse-request.js' 'https://contoso.crm.dynamics.com' GET 'solutions?$select=uniquename,friendlyname&$expand=publisherid($select=customizationprefix)&$filter=ismanaged eq false and uniquename ne ''Default'' and uniquename ne ''Active'' and isvisible eq true&$top=10'",
    "exitCode": 0,
    "result": {
      "status": 200,
      "data": {
        "value": [
          {
            "uniquename": "ContosoOperations",
            "friendlyname": "Contoso Operations",
            "publisherid": {
              "customizationprefix": "cr"
            }
          },
          {
            "uniquename": "FieldSurveys",
            "friendlyname": "Field Surveys",
            "publisherid": {
              "customizationprefix": "new"
            }
          }
        ]
      }
    }
  },
  {
    "id": "list-apps",
    "by": "genpage-planner",
    "command": "node 'D:/repo/plugins/model-apps/scripts/apps.js' list --env 'https://contoso.crm.dynamics.com'",
    "exitCode": 0,
    "result": {
      "ok": true,
      "count": 2,
      "apps": [
        {
          "id": "11111111-2222-3333-4444-555555555555",
          "name": "Contoso Operations Hub",
          "uniqueName": "ContosoOperationsHub",
          "description": "",
          "published": true,
          "unpublishedChanges": false
        },
        {
          "id": "44444444-5555-6666-7777-888888888888",
          "name": "Field Service Desk",
          "uniqueName": "FieldServiceDesk",
          "description": "",
          "published": true,
          "unpublishedChanges": false
        }
      ]
    }
  },
  {
    "id": "planner-proposal",
    "command": "Task genpage-planner (answers: create, cr_widget (new), widget list, app Contoso Operations Hub, solution ContosoOperations)",
    "result": {
      "action": "plan",
      "pages": [
        {
          "page": "Widgets",
          "file": "widgets.tsx",
          "entities": [
            "cr_widget"
          ]
        }
      ],
      "entityCreationRequired": true,
      "entities": [
        {
          "suffix": "widget",
          "resolved": "cr_widget",
          "columns": [
            "sku",
            "quantity"
          ],
          "choices": []
        }
      ],
      "app": {
        "name": "Contoso Operations Hub",
        "appId": "11111111-2222-3333-4444-555555555555"
      },
      "solution": {
        "uniqueName": "ContosoOperations",
        "publisherPrefix": "cr"
      }
    }
  },
  {
    "id": "plan-prepare",
    "command": "node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' prepare --plan 'D:/work/widgets/genpage-plan.md'",
    "exitCode": 0,
    "result": {
      "ok": true,
      "action": "prepare",
      "planPath": "D:\\work\\widgets\\genpage-plan.md",
      "quarantinedPath": null
    }
  },
  {
    "id": "planner-write",
    "command": "Task genpage-planner (approved: write genpage-plan.md)",
    "result": {
      "action": "written",
      "plan": "D:/work/widgets/genpage-plan.md"
    }
  },
  {
    "id": "plan-verify",
    "command": "node 'D:/repo/plugins/model-apps/scripts/genpage-plan-provenance.js' verify --plan 'D:/work/widgets/genpage-plan.md' --approved '@D:/work/widgets/.approved-genpage-plan.md'",
    "exitCode": 0,
    "result": {
      "ok": true,
      "action": "verify",
      "planPath": "D:\\work\\widgets\\genpage-plan.md",
      "kind": "create",
      "targets": [
        "widgets.tsx"
      ],
      "writtenHash": "521c7c8d4535a787dbfbf8c3a314ade15e6d531cc5271622141475735ac4a910"
    }
  },
  {
    "id": "auth-preflight",
    "command": "node 'D:/repo/plugins/model-apps/scripts/check-auth.js' --env 'https://contoso.crm.dynamics.com' --require-pac",
    "exitCode": 0,
    "result": {
      "ok": true,
      "blocker": null,
      "message": "Ready, but az (\"[email protected]\") and pac (\"[email protected]\") use different identities. WhoAmI passed so this works for now — but if a later step returns 403, run `az login --username [email protected]` to align them.",
      "warnings": [],
      "azUser": "[email protected]",
      "pacUser": "[email protected]",
      "envUrl": "https://contoso.crm.dynamics.com",
      "identitiesMatch": false,
      "whoAmI": {
        "ok": true,
        "userId": "22222222-3333-4444-5555-666666666666",
        "organizationId": "33333333-4444-5555-6666-777777777777"
      }
    },
    "userMessage": "Ready, but az (\"[email protected]\") and pac (\"[email protected]\") use different identities. WhoAmI passed so this works for now — but if a later step returns 403, run `az login --username [email protected]` to align them."
  },
  {
    "id": "entity-builder-1",
    "command": "Task genpage-entity-builder (plan D:/work/widgets/genpage-plan.md, working dir D:/work/widgets, plugin root D:/repo/plugins/model-apps, env from Phase 2a)",
    "result": {
      "action": "needs_input",
      "why": "Sample data is optional; the user must confirm it before rows are written",
      "questions": [
        {
          "id": "sample-data",
          "question": "Entity created successfully: cr_widget (3 columns). Would you like me to add sample data for testing?",
          "options": [
            {
              "label": "Yes, add sample data",
              "description": "Seed a few realistic widgets"
            },
            {
              "label": "No, skip",
              "description": "Leave the table empty"
            }
          ],
          "multiSelect": false
        }
      ],
      "discovered": {
        "provisioned": [
          "cr_widget"
        ],
        "log": "D:/work/widgets/genpage-entity-creation-log.md",
        "input": "D:/work/widgets/provision-input.json"
      }
    }
  },
  {
    "id": "builder-auth-1",
    "by": "genpage-entity-builder",
    "command": "node 'D:/repo/plugins/model-apps/scripts/check-auth.js' --env 'https://contoso.crm.dynamics.com' --require-pac",
    "exitCode": 0,
    "result": {
      "ok": true,
      "blocker": null,
      "message": "Ready, but az (\"[email protected]\") and pac (\"[email protected]\") use different identities. WhoAmI passed so this works for now — but if a later step returns 403, run `az login --username [email protected]` to align them.",
      "warnings": [],
      "azUser": "[email protected]",
      "pacUser": "[email protected]",
      "envUrl": "https://contoso.crm.dynamics.com",
      "identitiesMatch": false,
      "whoAmI": {
        "ok": true,
        "userId": "22222222-3333-4444-5555-666666666666",
        "organizationId": "33333333-4444-5555-6666-777777777777"
      }
    }
  },
  {
    "id": "provision-data-model",
    "by": "genpage-entity-builder",
    "command": "node 'D:/repo/plugins/model-apps/scripts/provision-entities.js' --env 'https://contoso.crm.dynamics.com' --input '@D:/work/widgets/provision-input.json' --apply",
    "artifact": "provision-input.json",
    "exitCode": 0,
    "result": {
      "ok": true,
      "solution": "ContosoOperations",
      "entities": [
        {
          "schemaName": "cr_Widget",
          "logicalName": "cr_widget",
          "entitySetName": "cr_widgets"
        }
      ],
      "columns": [
        {
          "table": "cr_widget",
          "schemaName": "cr_Sku",
          "logicalName": "cr_sku"
        },
        {
          "table": "cr_widget",
          "schemaName": "cr_Quantity",
          "logicalName": "cr_quantity"
        }
      ],
      "relationships": [],
      "records": {}
    }
  },
  {
    "id": "entity-builder-2",
    "command": "Task genpage-entity-builder (sample-data decision answered: No, skip; carries the pass-1 provisioning result)",
    "result": {
      "action": "complete",
      "summary": [
        {
          "table": "Widget",
          "logicalName": "cr_widget",
          "columns": 3,
          "relationships": "none",
          "sampleRecords": 0
        }
      ],
      "log": "D:/work/widgets/genpage-entity-creation-log.md"
    }
  },
  {
    "id": "builder-auth-2",
    "by": "genpage-entity-builder",
    "command": "node 'D:/repo/plugins/model-apps/scripts/check-auth.js' --env 'https://contoso.crm.dynamics.com' --require-pac",
    "exitCode": 0,
    "result": {
      "ok": true,
      "blocker": null,
      "message": "Ready, but az (\"[email protected]\") and pac (\"[email protected]\") use different identities. WhoAmI passed so this works for now — but if a later step returns 403, run `az login --username [email protected]` to align them.",
      "warnings": [],
      "azUser": "[email protected]",
      "pacUser": "[email protected]",
      "envUrl": "https://contoso.crm.dynamics.com",
      "identitiesMatch": false,
      "whoAmI": {
        "ok": true,
        "userId": "22222222-3333-4444-5555-666666666666",
        "organizationId": "33333333-4444-5555-6666-777777777777"
      }
    }
  },
  {
    "id": "generate-types",
    "command": "node 'D:/repo/plugins/model-apps/scripts/genpage.js' types --env 'https://contoso.crm.dynamics.com' --data-sources 'cr_widget' --output-file 'D:/work/widgets/RuntimeTypes.ts'",
    "artifact": "RuntimeTypes.ts",
    "exitCode": 0,
    "result": {
      "ok": true,
      "outputFile": "D:/work/widgets/RuntimeTypes.ts",
      "dataSources": [
        "cr_widget"
      ],
      "detail": "none",
      "bytes": 1303
    }
  },
  {
    "id": "gate-custom-api",
    "command": "node 'D:/repo/plugins/model-apps/scripts/lib/feature-flags.js' custom-api",
    "exitCode": 1,
    "result": "disabled"
  },
  {
    "id": "gate-telemetry",
    "command": "node 'D:/repo/plugins/model-apps/scripts/lib/feature-flags.js' custom-telemetry",
    "exitCode": 1,
    "result": "disabled"
  },
  {
    "id": "page-files",
    "command": "node 'D:/repo/plugins/model-apps/scripts/check-page-files.js' --plan 'D:/work/widgets/genpage-plan.md'",
    "exitCode": 0,
    "result": {
      "ok": true,
      "workingDir": "D:\\work\\widgets",
      "files": [
        "widgets.tsx"
      ],
      "problems": []
    }
  },
  {
    "id": "stamp",
    "command": "node 'D:/repo/plugins/model-apps/scripts/genpage-worker-output.js' --stamp --file 'D:/work/widgets/widgets.tsx'",
    "exitCode": 0,
    "result": {
      "ok": true,
      "action": "stamp",
      "filePath": "D:\\work\\widgets\\widgets.tsx",
      "existed": false
    }
  },
  {
    "id": "write-page",
    "command": "Write widgets.tsx",
    "artifact": "widgets.tsx"
  },
  {
    "id": "icon-grep",
    "command": "Grep from \"@fluentui/react-icons\" widgets.tsx; Grep ^BoxRegular$ references/verified-icons.txt",
    "result": "BoxRegular: verified"
  },
  {
    "id": "border-grep",
    "command": "Grep ['\"]?borderWidth['\"]?\\s*: widgets.tsx",
    "result": "no matches"
  },
  {
    "id": "gate",
    "command": "node 'D:/repo/plugins/model-apps/scripts/genpage-worker-output.js' --file 'D:/work/widgets/widgets.tsx'",
    "artifact": "widgets.tsx",
    "exitCode": 0,
    "result": {
      "ok": true,
      "filePath": "D:\\work\\widgets\\widgets.tsx",
      "problems": []
    }
  },
  {
    "id": "write-upload-text",
    "command": "Write prompt.txt, agent-message.txt, page-name.txt",
    "artifacts": [
      "prompt.txt",
      "agent-message.txt",
      "page-name.txt"
    ]
  },
  {
    "id": "create",
    "command": "node 'D:/repo/plugins/model-apps/scripts/genpage-upload.js' --env 'https://contoso.crm.dynamics.com' --app-id '11111111-2222-3333-4444-555555555555' --code-file 'widgets.tsx' --name-file 'page-name.txt' --data-sources 'cr_widget' --prompt-file 'prompt.txt' --model 'claude-sonnet-4-6' --agent-message-file 'agent-message.txt' --add-to-sitemap",
    "exitCode": 0,
    "writes": 1,
    "result": {
      "ok": true,
      "pageId": "66666666-7777-4888-9999-cccccccccccc",
      "appId": "11111111-2222-3333-4444-555555555555",
      "updated": false
    }
  }
]