@stofone/dsh-agent-roster 0.10.3 → 0.10.4

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/CHANGELOG.md CHANGED
@@ -4,6 +4,16 @@
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.10.4] - 2026-11-03
8
+
9
+ ### Fixed
10
+
11
+ - **`compile --repo` was accepted and ignored.** The flag was parsed, then the artifact recorded `ownRepo()`
12
+ — the coordinates of whichever checkout ran the compiler. A repository that committed `dist/` therefore
13
+ disagreed with its own CI on every run: the drift check recompiled, got a different `source.repo`, and
14
+ failed. `migrate` had the same fault one layer down: it passed `source: {}` to the compiler instead of
15
+ the repository it was told to record. Both now write the coordinates they were given, and a test pins it.
16
+
7
17
  ## [0.10.3] - 2026-11-03
8
18
 
9
19
  ### Added
@@ -490,7 +500,8 @@
490
500
  - 工具返回值含 `undefined` 键,运行时按 `value is not lossless JSON` 整次拒绝;缺失值统一写 `null`,
491
501
  且所有返回值先过 `lib/json.js#lossless`。
492
502
 
493
- [Unreleased]: https://github.com/dsh-agent-roster/dsh-agent-roster/compare/v0.10.3...main
503
+ [Unreleased]: https://github.com/dsh-agent-roster/dsh-agent-roster/compare/v0.10.4...main
504
+ [0.10.4]: https://github.com/dsh-agent-roster/dsh-agent-roster/compare/v0.10.3...v0.10.4
494
505
  [0.10.3]: https://github.com/dsh-agent-roster/dsh-agent-roster/compare/v0.10.2...v0.10.3
495
506
  [0.10.2]: https://github.com/dsh-agent-roster/dsh-agent-roster/compare/v0.10.1...v0.10.2
496
507
  [0.10.1]: https://github.com/dsh-agent-roster/dsh-agent-roster/compare/v0.10.0...v0.10.1
package/bin/cli.mjs CHANGED
@@ -275,7 +275,7 @@ async function runCompile(options) {
275
275
  const result = compileRosterAt(rosterDir, {
276
276
  rolesDir,
277
277
  knownToolPolicies: options.knownPolicies.length > 0 ? options.knownPolicies : null,
278
- source: { repo: ownRepo(), ref: "main" },
278
+ source: { repo: options.repo ?? ownRepo(), ref: "main" },
279
279
  });
280
280
 
281
281
  const diagnostics = [...(result.diagnostics ?? [])];
package/lib/migrate.js CHANGED
@@ -295,7 +295,7 @@ export function migrateLibrary(rootDir, { write = false, knownToolPolicies = nul
295
295
  roles: scanned.roles,
296
296
  expectedId: entry.id,
297
297
  knownToolPolicies,
298
- source: {},
298
+ source: { ...source },
299
299
  });
300
300
  if (!compiled.ok) {
301
301
  report.diagnostics.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stofone/dsh-agent-roster",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "多 Agent 团队的静态成员档案定义与校验层:档案库在面板里看得见、改得动,团队成员的人设、模型与工具边界固化成可校验、可版本化的文件,并在 dsh-agent-teams 创建成员时把档案桥接给运行时。",
5
5
  "type": "module",
6
6
  "main": "index.js",