@xn-intenton-z2a/agentic-lib 7.2.13 → 7.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/agentic-lib-bot.yml +12 -3
- package/.github/workflows/agentic-lib-init.yml +7 -1
- package/.github/workflows/agentic-lib-schedule.yml +12 -5
- package/.github/workflows/agentic-lib-workflow.yml +8 -7
- package/package.json +1 -1
- package/src/seeds/zero-behaviour.test.js +2 -2
- package/src/seeds/zero-package.json +1 -1
- package/src/seeds/zero-playwright.config.js +1 -1
|
@@ -39,7 +39,7 @@ on:
|
|
|
39
39
|
model:
|
|
40
40
|
type: string
|
|
41
41
|
required: false
|
|
42
|
-
default: "
|
|
42
|
+
default: ""
|
|
43
43
|
workflow_dispatch:
|
|
44
44
|
inputs:
|
|
45
45
|
discussion-url:
|
|
@@ -53,11 +53,12 @@ on:
|
|
|
53
53
|
required: false
|
|
54
54
|
default: ""
|
|
55
55
|
model:
|
|
56
|
-
description: "Copilot SDK model to use"
|
|
56
|
+
description: "Copilot SDK model to use (empty = read from agentic-lib.toml)"
|
|
57
57
|
type: choice
|
|
58
58
|
required: false
|
|
59
|
-
default: "
|
|
59
|
+
default: ""
|
|
60
60
|
options:
|
|
61
|
+
- ""
|
|
61
62
|
- gpt-5-mini
|
|
62
63
|
- claude-sonnet-4
|
|
63
64
|
- gpt-4.1
|
|
@@ -80,11 +81,19 @@ jobs:
|
|
|
80
81
|
params:
|
|
81
82
|
runs-on: ubuntu-latest
|
|
82
83
|
steps:
|
|
84
|
+
- uses: actions/checkout@v6
|
|
85
|
+
with:
|
|
86
|
+
sparse-checkout: ${{ env.configPath }}
|
|
87
|
+
sparse-checkout-cone-mode: false
|
|
83
88
|
- name: Normalise params
|
|
84
89
|
id: normalise
|
|
85
90
|
shell: bash
|
|
86
91
|
run: |
|
|
87
92
|
MODEL='${{ inputs.model }}'
|
|
93
|
+
if [ -z "$MODEL" ] && [ -f "${{ env.configPath }}" ]; then
|
|
94
|
+
TOML_MODEL=$(grep '^\s*model' "${{ env.configPath }}" | head -1 | sed 's/.*= *"\([^"]*\)".*/\1/')
|
|
95
|
+
MODEL="${TOML_MODEL}"
|
|
96
|
+
fi
|
|
88
97
|
echo "model=${MODEL:-gpt-5-mini}" >> $GITHUB_OUTPUT
|
|
89
98
|
DRY_RUN='${{ inputs.dry-run }}'
|
|
90
99
|
echo "dry-run=${DRY_RUN:-true}" >> $GITHUB_OUTPUT
|
|
@@ -231,9 +231,15 @@ jobs:
|
|
|
231
231
|
script: |
|
|
232
232
|
const fs = require('fs');
|
|
233
233
|
const frequency = '${{ inputs.schedule }}';
|
|
234
|
-
const model = '${{ inputs.model || 'gpt-5-mini' }}';
|
|
235
234
|
const workflowPath = '.github/workflows/agentic-lib-workflow.yml';
|
|
236
235
|
const tomlPath = 'agentic-lib.toml';
|
|
236
|
+
let model = '${{ inputs.model }}';
|
|
237
|
+
if (!model && fs.existsSync(tomlPath)) {
|
|
238
|
+
const toml = fs.readFileSync(tomlPath, 'utf8');
|
|
239
|
+
const m = toml.match(/^\s*model\s*=\s*"([^"]*)"/m);
|
|
240
|
+
if (m) model = m[1];
|
|
241
|
+
}
|
|
242
|
+
if (!model) model = 'gpt-5-mini';
|
|
237
243
|
|
|
238
244
|
const SCHEDULE_MAP = {
|
|
239
245
|
off: null,
|
|
@@ -21,7 +21,7 @@ on:
|
|
|
21
21
|
description: "Copilot SDK model to use"
|
|
22
22
|
required: false
|
|
23
23
|
type: string
|
|
24
|
-
default: "
|
|
24
|
+
default: ""
|
|
25
25
|
profile:
|
|
26
26
|
description: "Tuning profile"
|
|
27
27
|
required: false
|
|
@@ -46,11 +46,12 @@ on:
|
|
|
46
46
|
- "hourly"
|
|
47
47
|
- "continuous"
|
|
48
48
|
model:
|
|
49
|
-
description: "Copilot SDK model to use"
|
|
49
|
+
description: "Copilot SDK model to use (empty = read from agentic-lib.toml)"
|
|
50
50
|
required: false
|
|
51
51
|
type: choice
|
|
52
|
-
default: "
|
|
52
|
+
default: ""
|
|
53
53
|
options:
|
|
54
|
+
- ""
|
|
54
55
|
- gpt-5-mini
|
|
55
56
|
- claude-sonnet-4
|
|
56
57
|
- gpt-4.1
|
|
@@ -91,10 +92,16 @@ jobs:
|
|
|
91
92
|
script: |
|
|
92
93
|
const fs = require('fs');
|
|
93
94
|
const frequency = '${{ inputs.frequency }}';
|
|
94
|
-
const model = '${{ inputs.model || 'gpt-5-mini' }}';
|
|
95
|
-
const profile = '${{ inputs.profile }}';
|
|
96
95
|
const workflowPath = '.github/workflows/agentic-lib-workflow.yml';
|
|
97
96
|
const tomlPath = 'agentic-lib.toml';
|
|
97
|
+
let model = '${{ inputs.model }}';
|
|
98
|
+
if (!model && fs.existsSync(tomlPath)) {
|
|
99
|
+
const toml = fs.readFileSync(tomlPath, 'utf8');
|
|
100
|
+
const m = toml.match(/^\s*model\s*=\s*"([^"]*)"/m);
|
|
101
|
+
if (m) model = m[1];
|
|
102
|
+
}
|
|
103
|
+
if (!model) model = 'gpt-5-mini';
|
|
104
|
+
const profile = '${{ inputs.profile }}';
|
|
98
105
|
|
|
99
106
|
const isMaintenance = frequency === 'maintenance';
|
|
100
107
|
const effectiveFrequency = isMaintenance ? 'weekly' : frequency;
|
|
@@ -23,7 +23,7 @@ on:
|
|
|
23
23
|
model:
|
|
24
24
|
type: string
|
|
25
25
|
required: false
|
|
26
|
-
default: "
|
|
26
|
+
default: ""
|
|
27
27
|
profile:
|
|
28
28
|
type: string
|
|
29
29
|
required: false
|
|
@@ -47,11 +47,12 @@ on:
|
|
|
47
47
|
workflow_dispatch:
|
|
48
48
|
inputs:
|
|
49
49
|
model:
|
|
50
|
-
description: "Copilot SDK model to use"
|
|
50
|
+
description: "Copilot SDK model to use (empty = read from agentic-lib.toml)"
|
|
51
51
|
type: choice
|
|
52
52
|
required: false
|
|
53
|
-
default: "
|
|
53
|
+
default: ""
|
|
54
54
|
options:
|
|
55
|
+
- ""
|
|
55
56
|
- gpt-5-mini
|
|
56
57
|
- claude-sonnet-4
|
|
57
58
|
- gpt-4.1
|
|
@@ -553,17 +554,17 @@ jobs:
|
|
|
553
554
|
run: npm ci
|
|
554
555
|
|
|
555
556
|
- name: Apply profile and model to config
|
|
556
|
-
if:
|
|
557
|
+
if: inputs.profile != '' || inputs.model != ''
|
|
557
558
|
run: |
|
|
558
559
|
CONFIG="${{ needs.params.outputs.config-path }}"
|
|
559
|
-
PROFILE="${{
|
|
560
|
-
MODEL="${{
|
|
560
|
+
PROFILE="${{ inputs.profile }}"
|
|
561
|
+
MODEL="${{ inputs.model }}"
|
|
561
562
|
if [ -f "$CONFIG" ]; then
|
|
562
563
|
if [ -n "$PROFILE" ]; then
|
|
563
564
|
sed -i "s/^profile = \"[^\"]*\"/profile = \"${PROFILE}\"/" "$CONFIG"
|
|
564
565
|
echo "Updated [tuning].profile to: ${PROFILE}"
|
|
565
566
|
fi
|
|
566
|
-
if [ -n "$MODEL" ]
|
|
567
|
+
if [ -n "$MODEL" ]; then
|
|
567
568
|
sed -i "s/^model = \"[^\"]*\"/model = \"${MODEL}\"/" "$CONFIG"
|
|
568
569
|
echo "Updated [tuning].model to: ${MODEL}"
|
|
569
570
|
fi
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { test, expect } from "@playwright/test";
|
|
|
4
4
|
import { getIdentity } from "../../src/lib/main.js";
|
|
5
5
|
|
|
6
6
|
test("homepage returns 200 and renders", async ({ page }) => {
|
|
7
|
-
const response = await page.goto("
|
|
7
|
+
const response = await page.goto("./", { waitUntil: "networkidle" });
|
|
8
8
|
expect(response.status()).toBe(200);
|
|
9
9
|
|
|
10
10
|
await expect(page.locator("#lib-name")).toBeVisible({ timeout: 10000 });
|
|
@@ -16,7 +16,7 @@ test("homepage returns 200 and renders", async ({ page }) => {
|
|
|
16
16
|
|
|
17
17
|
test("page displays the library version from src/lib/main.js", async ({ page }) => {
|
|
18
18
|
const { version } = getIdentity();
|
|
19
|
-
await page.goto("
|
|
19
|
+
await page.goto("./", { waitUntil: "networkidle" });
|
|
20
20
|
const pageVersion = await page.locator("#lib-version").textContent();
|
|
21
21
|
expect(pageVersion).toContain(version);
|
|
22
22
|
});
|