@xn-intenton-z2a/agentic-lib 7.2.13 → 7.2.14
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.
|
@@ -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,7 +231,13 @@ jobs:
|
|
|
231
231
|
script: |
|
|
232
232
|
const fs = require('fs');
|
|
233
233
|
const frequency = '${{ inputs.schedule }}';
|
|
234
|
-
|
|
234
|
+
let model = '${{ inputs.model }}';
|
|
235
|
+
if (!model && fs.existsSync(tomlPath)) {
|
|
236
|
+
const toml = fs.readFileSync(tomlPath, 'utf8');
|
|
237
|
+
const m = toml.match(/^\s*model\s*=\s*"([^"]*)"/m);
|
|
238
|
+
if (m) model = m[1];
|
|
239
|
+
}
|
|
240
|
+
if (!model) model = 'gpt-5-mini';
|
|
235
241
|
const workflowPath = '.github/workflows/agentic-lib-workflow.yml';
|
|
236
242
|
const tomlPath = 'agentic-lib.toml';
|
|
237
243
|
|
|
@@ -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,7 +92,13 @@ jobs:
|
|
|
91
92
|
script: |
|
|
92
93
|
const fs = require('fs');
|
|
93
94
|
const frequency = '${{ inputs.frequency }}';
|
|
94
|
-
|
|
95
|
+
let model = '${{ inputs.model }}';
|
|
96
|
+
if (!model && fs.existsSync(tomlPath)) {
|
|
97
|
+
const toml = fs.readFileSync(tomlPath, 'utf8');
|
|
98
|
+
const m = toml.match(/^\s*model\s*=\s*"([^"]*)"/m);
|
|
99
|
+
if (m) model = m[1];
|
|
100
|
+
}
|
|
101
|
+
if (!model) model = 'gpt-5-mini';
|
|
95
102
|
const profile = '${{ inputs.profile }}';
|
|
96
103
|
const workflowPath = '.github/workflows/agentic-lib-workflow.yml';
|
|
97
104
|
const tomlPath = 'agentic-lib.toml';
|
|
@@ -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