Skip to content

Commit bc4456d

Browse files
authored
Merge pull request #1545 from microsoft/dev
Dev
2 parents 1d78611 + b674bab commit bc4456d

File tree

275 files changed

+20232
-9513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+20232
-9513
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"image": "mcr.microsoft.com/devcontainers/javascript-node:20",
2+
"image": "mcr.microsoft.com/devcontainers/javascript-node:22",
33
"postCreateCommand": "yarn install --frozen-lockfile --prefer-offline && yarn install:playwright",
44
"customizations": {
55
"vscode": {
@@ -16,7 +16,8 @@
1616
"GitHub.vscode-pull-request-github",
1717
"usernamehw.errorlens",
1818
"goessner.mdmath",
19-
"vsls-contrib.gistfs"
19+
"vsls-contrib.gistfs",
20+
"ms-azuretools.vscode-containers"
2021
]
2122
}
2223
},

.genaiscript/instructions/genaiscript.instructions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
---
2+
applyTo: '**/*.genai.js,**/*.genai.ts,**/*.genai.mjs,**/*.genai.mts'
3+
---
14
## GenAIScript Code Generation Instructions
25

3-
GenAIScript is a custom runtime for node.js. It provides a set of unique APIs and support the TypeScript syntax.
6+
GenAIScript is a custom runtime for node.js. It provides a set of unique APIs and support the TypeScript syntax, ESM, await/async.
47

58
- GenAIScript documentation: https://microsoft.github.io/genaiscript/llms-full.txt
69

.github/prompts/doc-writer.prompt.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
mode: 'agent'
3+
---
4+
You are writing technical documentation for the GenAIScript project, which uses TypeScript.
5+
6+
Your task is the review and update the current documentation page.
7+
8+
- Check the grammar and spelling of the text.
9+
- Ensure that the content is clear and concise.
10+
- Ensure that the content is accurate and up-to-date.
11+
- Ensure that the content follows the conventions of technical writing.
12+
- Ensure that the content is formatted in Markdown for the Astro Starlight documentation.
13+
- DO NOT edit any other pages.
14+
15+
## Writing Guidelines
16+
17+
Follow the Microsoft Learn writing style. Your output should be **clear, concise, inclusive, and well-structured**. Use the guidance below for all documentation types (API reference, how-to guides, tutorials, conceptual docs).
18+
19+
### Style and Voice
20+
- Use **simple, direct sentences**. Avoid filler and jargon.
21+
- Write in **second person**, active voice. Use a friendly, solution-focused tone.
22+
- Use **inclusive language**. Prefer gender-neutral terms (e.g., "you", "they", "partner").

.github/workflows/anthropic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fetch-depth: 0
2727
- uses: actions/setup-node@v4
2828
with:
29-
node-version: "20"
29+
node-version: "22"
3030
cache: yarn
3131
- run: yarn install --frozen-lockfile
3232
- name: compile

.github/workflows/azure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
fetch-depth: 0
2727
- uses: actions/setup-node@v4
2828
with:
29-
node-version: "20"
29+
node-version: "22"
3030
cache: yarn
3131
- run: yarn install --frozen-lockfile
3232
- name: compile

.github/workflows/build-genai-commit.yml_ renamed to .github/workflows/build-genai-commit.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ name: genai commit tests
22

33
on:
44
workflow_dispatch:
5-
schedule:
6-
- cron: "0 7 * * *"
75
push:
8-
branches: [main]
6+
branches: [dev]
97
paths:
108
- "packages/core/**"
119
- "packages/sample/**"
1210
- "packages/cli/**"
1311
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
12+
group: -genai-test-${{ github.workflow }}-${{ github.ref }}
1513
cancel-in-progress: true
14+
permissions:
15+
models: read
16+
contents: read
17+
pull-requests: write
1618
jobs:
1719
build:
1820
runs-on: ubuntu-latest
@@ -23,27 +25,21 @@ jobs:
2325
fetch-depth: 0
2426
- uses: actions/setup-node@v4
2527
with:
26-
node-version: "20"
28+
node-version: "22"
2729
cache: yarn
2830
- run: yarn install --frozen-lockfile
2931
- name: compile
3032
run: yarn compile:action
31-
- name: download ollama docker
32-
run: yarn ollama:start
3333
- name: generate dummy result
3434
working-directory: packages/sample
3535
run: mkdir -p temp && touch temp/commit-tests.txt
3636
- name: select llm tests to run
37-
run: node packages/cli/built/genaiscript.cjs run test-commit --out-trace $GITHUB_STEP_SUMMARY --model azure:gpt-4o --small-model azure:gpt-4o-mini
37+
run: node packages/cli/built/genaiscript.cjs run test-commit --out-trace $GITHUB_STEP_SUMMARY -p github
3838
env:
39-
AZURE_OPENAI_API_ENDPOINT: ${{ secrets.AZURE_OPENAI_API_ENDPOINT }}
40-
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4140
- name: run llm tests
4241
working-directory: packages/sample
43-
run: xargs -r -a temp/commit-tests.txt node ../cli/built/genaiscript.cjs test --out-summary $GITHUB_STEP_SUMMARY --test-delay 10 --model azure:gpt-4o --small-model azure:gpt-4o-mini
42+
run: xargs -r -a temp/commit-tests.txt node ../cli/built/genaiscript.cjs test --out-summary $GITHUB_STEP_SUMMARY --test-delay 10 -p github
4443
env:
4544
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
AZURE_OPENAI_API_ENDPOINT: ${{ secrets.AZURE_OPENAI_API_ENDPOINT }}
47-
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
4845
WEATHER_API_KEY: ${{ secrets.WEATHER_API_KEY }}
49-

.github/workflows/build-genai.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 0
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: "20"
20+
node-version: "22"
2121
cache: yarn
2222
- run: yarn install --frozen-lockfile
2323
- name: compile

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: build
22
permissions:
33
contents: read
4+
models: read
45
on:
56
push:
67
branches: [main, dev]
@@ -11,7 +12,7 @@ jobs:
1112
runs-on: ubuntu-latest
1213
strategy:
1314
matrix:
14-
node-version: [20, 22, 23]
15+
node-version: [22, 23, 24]
1516
steps:
1617
- uses: actions/checkout@v4
1718
with:
@@ -37,5 +38,9 @@ jobs:
3738
run: yarn test:core
3839
- name: unit tests
3940
run: yarn test:samples
40-
- name: unit tests (2)
41+
- name: unit test:modulesamples
4142
run: yarn test:modulesamples
43+
- name: github models
44+
run: yarn genai poem -p github
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/cli-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fetch-depth: 0
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: "20"
16+
node-version: "22"
1717
cache: yarn
1818
- run: yarn install --frozen-lockfile
1919
- name: compile

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fetch-depth: 10
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: "20"
22+
node-version: "22"
2323
cache: yarn
2424
- run: yarn install --frozen-lockfile
2525
- run: yarn playwright install

0 commit comments

Comments
 (0)