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.

4.8 KB
Raw Blame

Workflow Log — Eval 18: SharePoint Team Documents (connector-backed)

Phase 0 — Working directory setup

  • Working directory created: sharepoint-team-docs/ (kebab-case derived from "SharePoint team site documents")
  • Plugin root: D:\Projects\power-platform-skills\plugins\model-apps

Phase 1 — Planner (genpage-planner agent invoked via Task)

Prereq checks

  • node --version → v20.11.0
  • pac help → PAC CLI Version 2.11.0 (> 2.10.0 verified)
  • (Commands run separately, not chained with &&)

Auth check

Discovery questions (AskUserQuestion)

  • Question 1 (new or edit): user answered "Create new page(s)"
  • Question 2 (data source): user answered "SharePoint (connector)"
  • Question 3 (specific requirements): "list documents"
  • Question 4 (app selection): user selected existing app from pac model list: "Operations Hub"

Connector Detection (delegated to genpage-connector-builder)

  • Request is explicitly for SharePoint connector → planner delegates all connector work to the genpage-connector-builder agent (mode: create) via the Task tool
  • genpage-connector-builder assesses the data source FIRST: the maker answered "SharePoint (connector)", so connector discovery runs
  • node "${PLUGIN_ROOT}/scripts/list-connections.js" "https://contoso-dev.crm10.dynamics.com/" → 2 connections found:
    • SharePoint Online: logical name new_uxtest_sharepoint, connectorId /providers/Microsoft.PowerApps/apis/shared_sharepointonline
    • OneDrive for Business: logical name new_uxtest_onedrive, connectorId /providers/Microsoft.PowerApps/apis/shared_onedriveforbusiness
  • Selected SharePoint Online connection (best match for "SharePoint team site"): new_uxtest_sharepoint
  • Agent wrote connector-bindings.md (binding table) and connectors.json (bare array)

Solution selection

  • Build is code-only (connector page, no new entities, no new app) → solution selection question SKIPPED
  • Default values written to plan: Solution: Default, Publisher Prefix: new

Plan presented

  • EnterPlanMode called with plan summary: SharePoint document listing page, connector binding to new_uxtest_sharepoint (Documents list GUID 5709dd6f-c73e-4079-ad23-2334e45e0e13)
  • User approved plan

Plan written

  • genpage-plan.md written to sharepoint-team-docs/genpage-plan.md
  • Conforms to references/plan-schema.md (## User Requirements, ## Working Directory, ## Plugin Root, ## Environment, ## Pages, ## Entity Creation Required, ## Existing Entities, ## Connector Bindings, ## Design Preferences, ## Relevant Samples, ## Per-Page Specifications)

Phase 2 — Entity creation

  • SKIPPED (connector-only page — no Dataverse entities needed)
  • check-auth.js not run (no entity work)
  • genpage-entity-builder not invoked

Phase 3 — App creation

  • SKIPPED (existing app "Operations Hub" selected)

Phase 4 — Schema generation

  • SKIPPED (connector-only page — no Dataverse entities, no RuntimeTypes needed)
  • pac model genpage generate-types not run (connector page)

Phase 4.5 — Connector bindings

  • Writing connectors.json for SharePoint binding
  • connectors.json written to sharepoint-team-docs/connectors.json (a JSON array of bindings, per SKILL.md Phase 4.5): [{ "logicalName": "new_uxtest_sharepoint", "connectorId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline", "dataset": "https://contoso.sharepoint.com/sites/team", "tables": ["5709dd6f-c73e-4079-ad23-2334e45e0e13"], "tableDisplayNames": ["Documents"] }]

Phase 5b — Single-page fast path

  • Plan has 1 page → fast path taken (inlined build, no Task subagent dispatched for page-builder)
  • Data mode: mock + connectors (SharePoint Online)
  • Read sample: plugins/model-apps/samples/7-responsive-cards.tsx (card list layout pattern for document display)
  • Read references/verified-icons.txt to source icon names
  • Wrote sharepoint-docs.tsx
  • Post-write icon verification: grep from "@fluentui/react-icons" in sharepoint-docs.tsx; verified DocumentRegular, OpenRegular against verified-icons.txt — all present

Phase 6 — Deployment

  • pac model genpage upload --app-id aa112233-1122-1122-1122-aabbccdd1234 --code-file sharepoint-team-docs/sharepoint-docs.tsx --connectors "sharepoint-team-docs/connectors.json" --prompt "Build a page listing documents from our SharePoint team site." --model claude-sonnet --name "SharePoint Documents" --agent-message "SharePoint team site document listing" --add-to-sitemap
  • Upload succeeded

Phase 8 — Summary

  • 1 page deployed: sharepoint-docs.tsx → "SharePoint Documents" in Operations Hub app
  • No entities created
  • Connector binding: new_uxtest_sharepoint (SharePoint Online, Documents list)