Skip to content

towards audio #1048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 66 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
da4a136
towards audio
pelikhan Jan 24, 2025
9da5b6c
🐛: Handle unknown reference types in state logging
pelikhan Apr 1, 2025
8789900
Merge branch 'main' of https://github.com/microsoft/genaiscript
pelikhan Apr 12, 2025
927499d
Merge remote-tracking branch 'origin/main' into dev
pelikhan Apr 15, 2025
62daf26
3rd party license update
pelikhan Apr 15, 2025
c3da24c
fix #1462
pelikhan Apr 16, 2025
ad6ea98
✨ feat: enhance Azure API usage and version configuration
pelikhan Apr 16, 2025
5730224
:sparkles: Enhance API version parsing logic
pelikhan Apr 16, 2025
a2d4437
test with gpt-4.1
pelikhan Apr 16, 2025
0e5d7a7
🔧 refactor: improve astgrep debug and doc formatting
pelikhan Apr 16, 2025
1dfe8ce
✨ Improve terminal message rendering logic
pelikhan Apr 16, 2025
24a0c10
using project watcher to avoid rebuild scripts on every invocation
pelikhan Apr 16, 2025
fe5abf1
cache workspace parsing
pelikhan Apr 16, 2025
e300b9a
Release 1.129.5
pelikhan Apr 16, 2025
679d21b
[skip ci] updated version numbers
pelikhan Apr 16, 2025
4634508
:sparkles: Improve debug logging and update GCC script
pelikhan Apr 16, 2025
b5d72de
:recycle: Enhance debugging and logging in container handling
pelikhan Apr 16, 2025
31af074
✨ feat: improve Azure API version parsing in env.ts
pelikhan Apr 16, 2025
a3cc560
Release 1.129.6
pelikhan Apr 16, 2025
6326aa6
[skip ci] updated version numbers
pelikhan Apr 16, 2025
386421e
🎨: Improve trimmed message rendering logic
pelikhan Apr 16, 2025
0784ee6
✨: Improve message trimming with hidden lines indicator
pelikhan Apr 16, 2025
d36b726
✨: Improve hidden lines rendering logic
pelikhan Apr 16, 2025
6b3d5c6
✨ refactor terminal rendering for truncation logic
pelikhan Apr 16, 2025
f84dcb3
Release 1.129.7
pelikhan Apr 16, 2025
2f2d940
[skip ci] updated version numbers
pelikhan Apr 16, 2025
1f1f68b
support running .gitignored files directly
pelikhan Apr 16, 2025
1a48aa3
Release 1.129.8
pelikhan Apr 16, 2025
398a064
[skip ci] updated version numbers
pelikhan Apr 16, 2025
5a57d8c
toy blog narration script
pelikhan Apr 17, 2025
3cb8448
test narration
pelikhan Apr 17, 2025
b72d1e9
add blog audio descriptions
pelikhan Apr 17, 2025
68c7129
✨: Enhance blog narration with diverse AI voice options
pelikhan Apr 17, 2025
67fff13
generating videos
pelikhan Apr 17, 2025
ab6dddb
✨ Enhance Azure AI and OpenAI LLM capabilities
pelikhan Apr 17, 2025
db54ca2
render schema in chat preview
pelikhan Apr 17, 2025
506ed93
✨ feat: enable blog narration and improve schema handling
pelikhan Apr 17, 2025
69067f5
narration blog
pelikhan Apr 17, 2025
a108ca5
don't send defaults in response_schema
pelikhan Apr 17, 2025
e5a8e2c
✨: Add options to disable trace and output generation
pelikhan Apr 17, 2025
dc5e072
✨ Update trace and output file handling conventions
pelikhan Apr 17, 2025
54704f3
Release 1.129.9
pelikhan Apr 17, 2025
b37518a
[skip ci] updated version numbers
pelikhan Apr 17, 2025
cea1503
✨: Add JSONSchemaToFunctionParameters utility refinement
pelikhan Apr 17, 2025
125a528
✨ feat: add options parameter to copyTo method
pelikhan Apr 18, 2025
4e2cab1
copyTo option as optional
pelikhan Apr 18, 2025
b9b75b8
removing .mp4s
pelikhan Apr 18, 2025
b4c15ae
typos (#1465)
pelikhan Apr 18, 2025
ee94092
updating github actions docs
pelikhan Apr 18, 2025
69eb2c0
Merge branch 'dev' of https://github.com/microsoft/genaiscript into dev
pelikhan Apr 18, 2025
0015b69
:sparkles: Add blog post on GitHub Models in Actions
pelikhan Apr 18, 2025
a9b4400
typo
pelikhan Apr 18, 2025
552e2c1
narration
pelikhan Apr 18, 2025
2b0942d
fix various typechecking issues in genaiscript.d.ts
pelikhan Apr 19, 2025
981ae86
✨ refactor code and enhance interfaces
pelikhan Apr 19, 2025
f596b2e
Release 1.130.0
pelikhan Apr 19, 2025
0b5aa57
[skip ci] updated version numbers
pelikhan Apr 19, 2025
7e26ee6
✨ improve error handling in file operations
pelikhan Apr 19, 2025
9ad1a35
:sparkles: Add workspace and haiku prompt, enhance fs function
pelikhan Apr 19, 2025
5e8d127
genai: generated docs
pelikhan Apr 19, 2025
07c204f
Release 1.130.1
pelikhan Apr 19, 2025
2e34982
[skip ci] updated version numbers
pelikhan Apr 19, 2025
5f8b3c3
message about waiting to start
pelikhan Apr 19, 2025
da9dc4c
enable permissions: models: read in github actions (#1467)
pelikhan Apr 19, 2025
6f43267
Merge remote-tracking branch 'origin/dev' into defaudio
pelikhan Apr 19, 2025
743186e
use github models for pr failure investigation
pelikhan Apr 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: compile
run: yarn compile:action
- name: poem
run: yarn run:script poem --model azure:gpt-4o -tlp 5 --out-trace $GITHUB_STEP_SUMMARY
run: yarn run:script poem --model azure:gpt-4.1 -tlp 5 --out-trace $GITHUB_STEP_SUMMARY
env:
AZURE_OPENAI_API_ENDPOINT: ${{ secrets.AZURE_OPENAI_API_ENDPOINT }}
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
18 changes: 3 additions & 15 deletions .github/workflows/genai-commander.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: genai commander
on:
issue_comment:
types: [created]
env:
GENAISCRIPT_DEFAULT_REASONING_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_MODEL }}
GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL }}
GENAISCRIPT_DEFAULT_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_MODEL }}
GENAISCRIPT_DEFAULT_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_SMALL_MODEL }}
GENAISCRIPT_DEFAULT_VISION_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_VISION_MODEL }}
jobs:
pr_commented:
# must be PR and have a comment starting with /genai
Expand All @@ -16,6 +10,7 @@ jobs:
permissions:
contents: read
pull-requests: write
models: read
steps:
# only allow PRs from the same repository
- name: Check if PR is from the same repository
Expand Down Expand Up @@ -79,23 +74,16 @@ jobs:
run: yarn install --frozen-lockfile
- name: compile
run: yarn compile
#
# Start Ollama in a docker container
#
- name: start ollama
run: yarn ollama:start
# Execute the /genai <command> found in the comment
#
- name: genaiscript pr-describe
if: startsWith(github.event.comment.body, '/genai describe')
run: node packages/cli/built/genaiscript.cjs run pr-describe -prd --out-trace $GITHUB_STEP_SUMMARY --vars defaultBranch=dev
run: node packages/cli/built/genaiscript.cjs run pr-describe -p github -prd --out-trace $GITHUB_STEP_SUMMARY --vars defaultBranch=dev
env:
GITHUB_ISSUE: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_COMMIT_SHA: ${{ fromJSON(steps.sha.outputs.result).sha }}
- name: genaiscript pr-review
if: startsWith(github.event.comment.body, '/genai review')
run: node packages/cli/built/genaiscript.cjs run pr-review -prc --out-trace $GITHUB_STEP_SUMMARY --vars defaultBranch=dev
run: node packages/cli/built/genaiscript.cjs run pr-review -p github -prc --out-trace $GITHUB_STEP_SUMMARY --vars defaultBranch=dev
env:
GITHUB_ISSUE: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/genai-investigator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:
contents: read
actions: read
pull-requests: write
models: read
env:
GENAISCRIPT_DEFAULT_REASONING_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_MODEL }}
GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL }}
Expand All @@ -35,23 +36,18 @@ jobs:
- run: yarn install --frozen-lockfile
- name: compile
run: yarn compile
#
# Start Ollama in a docker container
#
- name: start ollama
run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
- name: genaiscript gai
run: node packages/cli/built/genaiscript.cjs run gai -pr ${{ github.event.workflow_run.pull_requests[0].number }} -prc --vars "workflow=${{ github.event.workflow_run.workflow_id }}" --vars "failure_run_id=${{ github.event.workflow_run.id }}" --out-trace $GITHUB_STEP_SUMMARY
run: node packages/cli/built/genaiscript.cjs run gai -p github -pr ${{ github.event.workflow_run.pull_requests[0].number }} -prc --vars "workflow=${{ github.event.workflow_run.workflow_id }}" --vars "failure_run_id=${{ github.event.workflow_run.id }}" --out-trace $GITHUB_STEP_SUMMARY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GENAISCRIPT_VAR_BRANCH: ${{ github.event.workflow_run.head_branch }}
- name: genaiscript github-agent
run: node packages/cli/built/genaiscript.cjs run github-agent -pr ${{ github.event.workflow_run.pull_requests[0].number }} -prc --vars "workflow=${{ github.event.workflow_run.workflow_id }}" --vars "failure_run_id=${{ github.event.workflow_run.id }}" --out-trace $GITHUB_STEP_SUMMARY
run: node packages/cli/built/genaiscript.cjs run github-agent -p github -pr ${{ github.event.workflow_run.pull_requests[0].number }} -prc --vars "workflow=${{ github.event.workflow_run.workflow_id }}" --vars "failure_run_id=${{ github.event.workflow_run.id }}" --out-trace $GITHUB_STEP_SUMMARY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GENAISCRIPT_VAR_BRANCH: ${{ github.event.workflow_run.head_branch }}
- name: genaiscript github-one
run: node packages/cli/built/genaiscript.cjs run github-one -pr ${{ github.event.workflow_run.pull_requests[0].number }} -prc --vars "workflow=${{ github.event.workflow_run.workflow_id }}" --vars "failure_run_id=${{ github.event.workflow_run.id }}" --out-trace $GITHUB_STEP_SUMMARY
run: node packages/cli/built/genaiscript.cjs run github-one -p github -pr ${{ github.event.workflow_run.pull_requests[0].number }} -prc --vars "workflow=${{ github.event.workflow_run.workflow_id }}" --vars "failure_run_id=${{ github.event.workflow_run.id }}" --out-trace $GITHUB_STEP_SUMMARY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GENAISCRIPT_VAR_BRANCH: ${{ github.event.workflow_run.head_branch }}
1 change: 1 addition & 0 deletions .github/workflows/genai-issue-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
permissions:
contents: read
issues: write
models: read
steps:
- uses: actions/checkout@v4
with:
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/genai-issue-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ on:
concurrency:
group: issues-${{ github.event.issue.number }}
cancel-in-progress: true
env:
GENAISCRIPT_DEFAULT_REASONING_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_MODEL }}
GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_REASONING_SMALL_MODEL }}
GENAISCRIPT_DEFAULT_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_MODEL }}
GENAISCRIPT_DEFAULT_SMALL_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_SMALL_MODEL }}
GENAISCRIPT_DEFAULT_VISION_MODEL: ${{ vars.GENAISCRIPT_DEFAULT_VISION_MODEL }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
models: read
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -29,10 +24,8 @@ jobs:
- run: yarn install --frozen-lockfile
- name: compile
run: yarn compile
- name: start ollama
run: yarn ollama:start
- name: genaiscript issue-review
run: node packages/cli/built/genaiscript.cjs run issue-reviewer -prc --out-trace $GITHUB_STEP_SUMMARY
run: node packages/cli/built/genaiscript.cjs run issue-reviewer -p github -prc --out-trace $GITHUB_STEP_SUMMARY
env:
GITHUB_ISSUE: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/genai-pr-commit-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
models: read
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/genai-pr-docs-commit-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
models: read
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/genai-pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
models: read
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ packages/sample/src/mlads/*
packages/core/src/dbg.ts
TypeScript/
react/
docs/public/blog/*.mp4
26 changes: 26 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
{
"devicescript.devtools.autoStart": false,
"cSpell.words": [
"accum",
"adoinfo",
"Agentic",
"AIAPI",
"AIREQUEST",
"ANYJS",
"ANYTS",
"Apim",
"argk",
"argkv",
"arrayify",
"astgrep",
"astrojs",
"Automatable",
"autopad",
"azurecontentsafety",
"azureopenai",
"azuretoken",
"bitindex",
"blockslist",
"BYOG",
"cancellers",
"cctx",
"changeext",
"chatencoder",
"chattypes",
"Chunker",
"chunkers",
"cmds",
"cmsg",
"codelion",
"Codespaces",
"codestral",
Expand All @@ -37,6 +45,7 @@
"cybercrime",
"DALLE",
"dbgc",
"dbgp",
"dbgr",
"deepseek",
"demux",
Expand All @@ -49,28 +58,34 @@
"domcontentloaded",
"doptions",
"dotjs",
"downsampled",
"dtype",
"eargs",
"echomodel",
"emojify",
"Entra",
"Evals",
"execa",
"extname",
"fallbacktools",
"fetchtext",
"ffprobe",
"Fmepg",
"frontmatter",
"genai",
"Genaiscript",
"genaiscriptdts",
"GENAISCRIPTIGNORE",
"genaisrc",
"ghcliinfo",
"ghinfo",
"gistfs",
"gistpad",
"gitmoji",
"greyscale",
"GROQ",
"Gruber",
"Halleux",
"hostconfiguration",
"hostpath",
"htmlescape",
Expand Down Expand Up @@ -107,6 +122,7 @@
"memorystream",
"menuitemcheckbox",
"menuitemradio",
"micropip",
"millis",
"missings",
"mixtral",
Expand All @@ -119,17 +135,22 @@
"napi",
"nemo",
"networkidle",
"newext",
"nickyt",
"nodehost",
"nodepackage",
"nodir",
"nomic",
"nonemodel",
"nothrow",
"oannotations",
"ollama",
"onnx",
"openai",
"openaiapi",
"OPENROUTER",
"optillm",
"outf",
"packagemanagers",
"parameterquickpick",
"Peli",
Expand All @@ -148,6 +169,7 @@
"pyodide",
"quoteify",
"qwen",
"RAAA",
"redteam",
"RIPGREP",
"RULEID",
Expand All @@ -157,18 +179,21 @@
"scriptquickpick",
"secretscanner",
"sglang",
"shiki",
"sidenote",
"skia",
"Smol",
"smsg",
"smtlib",
"socketserver",
"spinbutton",
"sres",
"stackgraph",
"stackgraphs",
"strcmp",
"stringifying",
"structurify",
"suffixext",
"sysr",
"tabletojson",
"TAVILY",
Expand All @@ -182,6 +207,7 @@
"tvly",
"typecheck",
"unfence",
"unthink",
"unwrappers",
"urllib",
"urlparse",
Expand Down
10 changes: 5 additions & 5 deletions THIRD_PARTY_LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2927,7 +2927,7 @@ MIT License

The following npm package may be included in this product:

- genaiscript-vscode@1.129.1
- genaiscript-vscode@1.129.4

This package contains the following license:

Expand Down Expand Up @@ -8899,10 +8899,10 @@ The following npm packages may be included in this product:
- @tokenizer/token@0.3.0
- agent-base@6.0.2
- eastasianwidth@0.2.0
- genaiscript-core-internal@1.129.1
- genaiscript-sample@1.129.1
- genaiscript-web@1.129.1
- genaiscript@1.129.1
- genaiscript-core-internal@1.129.4
- genaiscript-sample@1.129.4
- genaiscript-web@1.129.4
- genaiscript@1.129.4
- https-proxy-agent@5.0.1
- isarray@1.0.0
- javascript-natural-sort@0.7.1
Expand Down
13 changes: 13 additions & 0 deletions demo/genaisrc/demo.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"folders": [
{
"path": ".."
},
{
"path": "../../docs"
}
],
"settings": {
"genaiscript.cli.path": "../packages/cli/built/genaiscript.cjs"
}
}
1 change: 1 addition & 0 deletions demo/genaisrc/haiku.genai.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$`Write a haiku about code`
Loading
Loading