Skip to content

Commit db41063

Browse files
authored
Merge branch 'dev' into copilot/fix-69c0c414-9e1f-41d3-80b9-aa53e2bdd047
2 parents cc9fb3d + 13741c3 commit db41063

38 files changed

+682
-79
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "docs",
33
"type": "module",
44
"private": true,
5-
"version": "2.3.15",
5+
"version": "2.4.0",
66
"license": "MIT",
77
"scripts": {
88
"build": "astro build",

docs/public/genaiscript.d.ts

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/content/docs/guides/genaiscript.d.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/content/docs/reference/scripts/logging.mdx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,30 +94,24 @@ dgb("This is a debug message!")
9494

9595
By default, the debug logging is disabled. You need to turn it on with namespace patterns.
9696

97-
The script messages are visible by running with `DEBUG=<scriptid>`.
98-
99-
```sh "--dbg script"
100-
genaiscript run poem --dbg script
101-
```
102-
103-
or using the `DEBUG` environment variable.
97+
The script messages are visible by running with `DEBUG=script`.
10498

10599
```sh
106100
DEBUG=script genaiscript run ...
107101
```
108102

109-
You can specify multiple categories by separating them with a comma.
110-
111-
```sh "--dbg script"
112-
genaiscript run poem --dbg script file config modelalias
113-
```
114-
115103
or
116104

117105
```sh
118106
DEBUG=script,genaiscript:* genaiscript run ...
119107
```
120108

109+
:::note
110+
111+
You must set the DEBUG environment variable before loading the genaiscript cli. It will not work from the `.env` file.
112+
113+
:::
114+
121115
### wildcards
122116

123117
The `*` character may be used as a wildcard. Suppose for example your library has debuggers named `connect:bodyParser`,

docs/src/content/docs/reference/scripts/system.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ system({
821821
description:
822822
"GitHub Actions workflows support annotations ([Read more...](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message)).",
823823
lineNumbers: true,
824+
activation: ["annotation", "annotations", "warnings", "errors"],
824825
})
825826

826827
export default function (ctx: ChatGenerationContext) {
@@ -926,6 +927,7 @@ Generate changelog formatter edits
926927
system({
927928
title: "Generate changelog formatter edits",
928929
lineNumbers: true,
930+
activation: ["changelog"],
929931
})
930932

931933
export default function (ctx: ChatGenerationContext) {
@@ -1074,6 +1076,7 @@ Generate diagrams
10741076
`````js wrap title="system.diagrams"
10751077
system({
10761078
title: "Generate diagrams",
1079+
activation: ["diagram", "chart"],
10771080
parameters: {
10781081
repair: {
10791082
type: "integer",
@@ -1357,6 +1360,7 @@ Teaches the file format supported by GenAIScripts
13571360
system({
13581361
title: "File generation",
13591362
description: "Teaches the file format supported by GenAIScripts",
1363+
activation: ["file", "files"],
13601364
})
13611365

13621366
export default function (ctx: ChatGenerationContext) {
@@ -2130,6 +2134,7 @@ Git repository information
21302134
`````js wrap title="system.git_info"
21312135
system({
21322136
title: "Git repository information",
2137+
activation: ["git"],
21332138
parameters: {
21342139
cwd: {
21352140
type: "string",
@@ -2414,6 +2419,7 @@ General GitHub information.
24142419
`````js wrap title="system.github_info"
24152420
system({
24162421
title: "General GitHub information.",
2422+
activation: ["github"],
24172423
})
24182424

24192425
export default async function (ctx: ChatGenerationContext) {
@@ -3985,6 +3991,7 @@ system({
39853991
title: "Read resource content from a URL using MCP resource resolution",
39863992
description:
39873993
"Provides a tool that can read and return the content of resources from URLs using the host's resolveResource function. Supports various protocols including https, file, git, gist, and vscode.",
3994+
activation: ["resource", "resources"],
39883995
});
39893996
39903997
export default function (ctx: ChatGenerationContext) {
@@ -4734,6 +4741,7 @@ Today's date.
47344741
`````js wrap title="system.today"
47354742
system({
47364743
title: "Today's date.",
4744+
activation: ["today"],
47374745
})
47384746
export default function (ctx: ChatGenerationContext) {
47394747
const { $ } = ctx

examples/action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "microsoft",
55
"license": "MIT",
66
"dependencies": {
7-
"genaiscript": "2.3.15"
7+
"genaiscript": "2.4.0"
88
},
99
"scripts": {
1010
"upgrade": "npx -y npm-check-updates -u && npm install && npm run fix",

genaiscript.d.ts

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@genaiscript/monorepo",
33
"displayName": "GenAIScript",
44
"description": "Programmatically assemble prompts for LLMs using JavaScript. Orchestrate LLMs, tools, and data in code.",
5-
"version": "2.3.15",
5+
"version": "2.4.0",
66
"license": "MIT",
77
"private": true,
88
"author": "microsoft",

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@genaiscript/api",
33
"private": false,
4-
"version": "2.3.15",
4+
"version": "2.4.0",
55
"main": "./dist/commonjs/index.js",
66
"module": "./dist/esm/index.js",
77
"types": "./dist/commonjs/index.d.ts",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "genaiscript",
3-
"version": "2.3.15",
3+
"version": "2.4.0",
44
"type": "module",
55
"bin": "./dist/src/index.js",
66
"files": [

0 commit comments

Comments
 (0)