-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VSCode build/debug seetings and ESLint (#71)
* Add ESLint configuration and scripts for code quality checks * Refactor launch configurations and tasks for copilotstudio-client; add environment template * Update CI workflow to set working directory for linting and dependency installation in samples * Replace ESLint configuration with neostandard; update lint script and clean up code formatting * Add README.md for M365 Agents SDK Samples with debugging instructions * Add samples list to README.md for better navigation and clarity * Update sample links in README.md for improved navigation * Update samples table in README.md for consistency in column headers * Fix endpoint URL format in manifest.template.json by removing the protocol prefix * Add post-create command and recommended extensions for development container * Install OpenSSH server in post-create command for improved development environment setup * Fix typo in postCreateCommand.sh for xdg-utils installation * Update devcontainer image version and add new VS Code extensions * Update devcontainer image and add TypeScript and Deno features * Add ESLint extension to development container configuration * Refactor VS Code configurations and update package import syntax for improved project structure * Migrate Node.js project to TypeScript and restructure build process * Add cards bot sample (#68) * add cards bot sample * remove action card --------- Co-authored-by: Rido <[email protected]> * Add prebuild and prestart scripts, and configure VS Code launch and tasks for Node.js samples * Add build steps for Cards bot and Skill bot in CI workflow * Remove VS Code configuration from .gitignore and add node-samples workspace file --------- Co-authored-by: Jhonatan Sandoval Velasco <[email protected]>
- Loading branch information
1 parent
8bf0927
commit 4227c0a
Showing
35 changed files
with
4,332 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sudo apt update | ||
|
||
sudo DEBIAN_FRONTEND=noninteractive \ | ||
UCF_FORCE_CONFFOLD=1 \ | ||
UCF_FORCE_CONFDEF=1 \ | ||
apt -o Dpkg::Options::="--force-confdef" \ | ||
-o Dpkg::Options::="--force-confold" \ | ||
install openssh-server -y | ||
|
||
sudo apt upgrade -y | ||
sudo apt install xdg-utils -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"github.copilot-chat", | ||
"github.codespaces", | ||
"ms-dotnettools.csdevkit", | ||
"teamsdevapp.vscode-adaptive-cards" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "samples/basic/echo-bot/nodejs", | ||
"name" : "echo bot" | ||
}, | ||
{ | ||
"path": "samples/basic/cards/nodejs", | ||
"name": "cards" | ||
}, | ||
{ | ||
"path": "samples/basic/copilotstudio-client/nodejs", | ||
"name": "copilotstudio-client" | ||
}, | ||
{ | ||
"path" : "samples/complex/copilotstudio-skill/nodejs", | ||
"name": "copilotstudio-skill" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# M365 Agents SDK Samples | ||
|
||
To enable debugging, open this folder using Visual Studio Code (VSCode). Follow these steps: | ||
|
||
1. Launch VSCode. | ||
2. Select `File` > `Open Folder...`. | ||
3. Navigate to the `/workspaces/Agents/samples` directory and open it. | ||
4. Once the folder is open, you can start debugging by setting breakpoints and running the samples. | ||
|
||
## Samples list | ||
|
||
|Category | Name | Description | node | dotnet | python | | ||
|---------|-------------|-------------|--------|--------|--------| | ||
| Basic | Echo Bot | Simplest bot | [basic/echo-bot/nodejs](./basic/echo-bot/nodejs) | TBD | TBD | | ||
| Basic | Copilot Studio Client | Consume CopilotStudio Agent | [basic/copilotstudio-client/nodejs](./basic/copilotstudio-client/nodejs) | TBD | TBD | | ||
| Complex | Copilot Studio Skill | Call the echo bot from a Copilot Studio skill | [complex/copilotstudio-skill/nodejs](./complex/copilotstudio-skill/nodejs) | TBD | TBD | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "node-card-bot", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"program": "${workspaceFolder}/dist/index.js", | ||
"outFiles": [ "${workspaceFolder}/**/dist/**/*.js" ], | ||
"envFile": "${workspaceFolder}/.env", | ||
"preLaunchTask": "npm: build card-bot" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"label": "npm: build card-bot" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
samples/basic/copilotstudio-client/nodejs/.vscode/launch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "node-copilotstudio-client", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"program": "${workspaceFolder}/dist/index.js", | ||
"outFiles": [ "${workspaceFolder}/**/dist/**/*.js" ], | ||
"envFile": "${workspaceFolder}/.env", | ||
"preLaunchTask": "npm: build copilotstudio-client" | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
samples/basic/copilotstudio-client/nodejs/.vscode/tasks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"label": "npm: build copilotstudio-client" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
environmentId=127b164e-50eb-e1f3-9e9e-a3b54a865c16 | ||
botIdentifier=cr0d1_myTestAgent | ||
tenantId=18743834-d9d8-4376-aba7-5dba2dbe8c2a | ||
appClientId=3be1aa5f-e633-437a-bf2b-9a8b6627195c | ||
|
||
# cloud= # PowerPlatformCloud enum key. | ||
# customPowerPlatformCloud= # Power Platform API endpoint to use if Cloud is configured as "Other" | ||
# copilotBotType="" # BotType enum key. | ||
DEBUG="copilot-studio-client" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "node-echo-bot", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"program": "${workspaceFolder}/dist/index.js", | ||
"outFiles": [ "${workspaceFolder}/**/dist/**/*.js" ], | ||
"envFile": "${workspaceFolder}/.env", | ||
"preLaunchTask": "npm: build echo-bot" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "npm", | ||
"script": "build", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [], | ||
"label": "npm: build echo-bot" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.