code-foundry 1.0.4 → 1.0.6
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/code-foundry.yml +3 -1
- package/.github/workflows/ci.yml +1 -1
- package/.github/workflows/codeql.yml +1 -1
- package/.github/workflows/opencode-security_self-ci.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/.github/workflows/security.yml +1 -1
- package/.github/workflows/test.yml +1 -1
- package/.github/workflows/validation.yml +1 -1
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/commands/sync.mjs +27 -6
package/.github/code-foundry.yml
CHANGED
|
@@ -11,7 +11,7 @@ dependency_review: auto
|
|
|
11
11
|
package_manager: bun
|
|
12
12
|
toolchain: auto
|
|
13
13
|
runtime_repository: 0xPlayerOne/code-foundry
|
|
14
|
-
runtime_ref: v1.0.
|
|
14
|
+
runtime_ref: v1.0.5
|
|
15
15
|
release_type: node
|
|
16
16
|
npm_publish: true
|
|
17
17
|
license: agpl-3.0-or-later
|
|
@@ -37,3 +37,5 @@ post_release_mode: auto
|
|
|
37
37
|
opencode_security: false
|
|
38
38
|
sync_mode: overlay
|
|
39
39
|
custom_workflows: preserve
|
|
40
|
+
staging_validation_mode: fast
|
|
41
|
+
opencode_security_model:
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -46,7 +46,7 @@ jobs:
|
|
|
46
46
|
# reusable workflow already checks out the consumer repository.
|
|
47
47
|
source_ref: 137698ef3545204af8fad00fc8bd64d663c8122e
|
|
48
48
|
runner: ubuntu-latest
|
|
49
|
-
model: opencode-go/muse-spark-1.
|
|
49
|
+
model: opencode-go/muse-spark-1.3-contributor
|
|
50
50
|
mode: standard
|
|
51
51
|
fail_on_severity: high
|
|
52
52
|
max_cost_usd: 1
|
|
@@ -17,7 +17,7 @@ on:
|
|
|
17
17
|
description: Code Foundry runtime tag or ref.
|
|
18
18
|
required: false
|
|
19
19
|
type: string
|
|
20
|
-
default:
|
|
20
|
+
default: v1.0.5
|
|
21
21
|
billing-pause-bypass:
|
|
22
22
|
description: Allow this explicitly dispatched release to run while other CI remains paused.
|
|
23
23
|
required: false
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.6](https://github.com/0xPlayerOne/code-foundry/compare/v1.0.5...v1.0.6) (2026-09-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* scope dependabot ecosystems to configured languages ([#457](https://github.com/0xPlayerOne/code-foundry/issues/457)) ([2bb9121](https://github.com/0xPlayerOne/code-foundry/commit/2bb91215de662dfa7a38d0c13cc7af1b5b07d798))
|
|
9
|
+
|
|
10
|
+
## [1.0.5](https://github.com/0xPlayerOne/code-foundry/compare/v1.0.4...v1.0.5) (2026-09-06)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* default runtime-ref inputs to the current runtime release ([#454](https://github.com/0xPlayerOne/code-foundry/issues/454)) ([6d77025](https://github.com/0xPlayerOne/code-foundry/commit/6d77025511ca641e98a17c4eed63a24285a48169))
|
|
16
|
+
|
|
3
17
|
## [1.0.4](https://github.com/0xPlayerOne/code-foundry/compare/v1.0.3...v1.0.4) (2026-09-06)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
package/src/commands/sync.mjs
CHANGED
|
@@ -405,8 +405,11 @@ function renderWorkflow(content, config, repository, ref, rustCodeql) {
|
|
|
405
405
|
|
|
406
406
|
/**
|
|
407
407
|
* Dependabot updates land on the repository's integration branch. Direct
|
|
408
|
-
* repositories have no staging branch, so every update targets main. Cargo
|
|
409
|
-
* updates are emitted only when Rust
|
|
408
|
+
* repositories have no staging branch, so every update targets main. Cargo,
|
|
409
|
+
* npm, and pip updates are emitted only when Rust, TypeScript, or Python is
|
|
410
|
+
* part of the configured language set, respectively; weekly updater runs
|
|
411
|
+
* fail when an ecosystem has no manifests to read, so unconfigured
|
|
412
|
+
* ecosystems are dropped instead of left to error.
|
|
410
413
|
* @param {string} content
|
|
411
414
|
* @param {Record<string,string>} config
|
|
412
415
|
* @param {string} languages
|
|
@@ -415,15 +418,33 @@ function renderWorkflow(content, config, repository, ref, rustCodeql) {
|
|
|
415
418
|
function renderDependabot(content, config, languages) {
|
|
416
419
|
let rendered = content
|
|
417
420
|
if (!includesValue(languages, 'rust')) {
|
|
418
|
-
rendered = rendered
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
421
|
+
rendered = stripDependabotEcosystem(rendered, 'cargo')
|
|
422
|
+
}
|
|
423
|
+
if (!includesValue(languages, 'typescript')) {
|
|
424
|
+
rendered = stripDependabotEcosystem(rendered, 'npm')
|
|
425
|
+
}
|
|
426
|
+
if (!includesValue(languages, 'python')) {
|
|
427
|
+
rendered = stripDependabotEcosystem(rendered, 'pip')
|
|
422
428
|
}
|
|
423
429
|
if (isStagingRelease(config.git_workflow)) return rendered
|
|
424
430
|
return rendered.replaceAll('target-branch: staging', 'target-branch: main')
|
|
425
431
|
}
|
|
426
432
|
|
|
433
|
+
/**
|
|
434
|
+
* Remove one package-ecosystem update block from a dependabot template.
|
|
435
|
+
* Blocks are split on their leading list marker so removal never disturbs
|
|
436
|
+
* neighboring ecosystems or the file header.
|
|
437
|
+
* @param {string} content
|
|
438
|
+
* @param {string} ecosystem
|
|
439
|
+
* @returns {string}
|
|
440
|
+
*/
|
|
441
|
+
function stripDependabotEcosystem(content, ecosystem) {
|
|
442
|
+
return content
|
|
443
|
+
.split(/(?=^ - package-ecosystem: )/m)
|
|
444
|
+
.filter((block) => !block.startsWith(` - package-ecosystem: ${ecosystem}\n`))
|
|
445
|
+
.join('')
|
|
446
|
+
}
|
|
447
|
+
|
|
427
448
|
/**
|
|
428
449
|
* Contribution policy documents describe the repository's branch flow. The
|
|
429
450
|
* canonical templates describe the staging-release topology (this runtime
|