@agentconnect.md/daemon 1.0.0-rc.53 → 1.0.0-rc.54
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/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -82315,7 +82315,7 @@ var CpCronRegistry = class {
|
|
|
82315
82315
|
* matching `<agentsDir>/<id>/agent.json`:
|
|
82316
82316
|
*
|
|
82317
82317
|
* - if one with that id exists → field-level MERGE the CP-owned keys into it;
|
|
82318
|
-
* - if none exists → CREATE a new `<agentsDir>/<
|
|
82318
|
+
* - if none exists → CREATE a new `<agentsDir>/<name>/agent.json`.
|
|
82319
82319
|
*
|
|
82320
82320
|
* CRITICAL: we operate on the RAW JSON TEXT (readFileSync → JSON.parse → set
|
|
82321
82321
|
* only CP-owned keys → writeFileSync). We never serialize the parsed/interpolated
|
|
@@ -82381,7 +82381,8 @@ function applySpecFields(raw, spec, opts) {
|
|
|
82381
82381
|
* workspace.path, and all locally-owned keys.
|
|
82382
82382
|
*
|
|
82383
82383
|
* CREATE (no file): synthesize a minimal valid agent.json under a fresh
|
|
82384
|
-
* `<agentsDir>/<
|
|
82384
|
+
* `<agentsDir>/<spec.name>/` dir (named by the unique slug) — runtime from
|
|
82385
|
+
* `spec.runtime` (falling back to
|
|
82385
82386
|
* the first known runtime + a warn), workspace translated or defaulted to
|
|
82386
82387
|
* from-scratch, path daemon-generated.
|
|
82387
82388
|
*/
|
|
@@ -82397,7 +82398,7 @@ function writeAgentSpec(agentsDir, agentId, spec, deps) {
|
|
|
82397
82398
|
writeFileSync(existingFile, JSON.stringify(raw, null, 2) + "\n");
|
|
82398
82399
|
return;
|
|
82399
82400
|
}
|
|
82400
|
-
const agentDir = join(agentsDir,
|
|
82401
|
+
const agentDir = join(agentsDir, spec.name);
|
|
82401
82402
|
const file = join(agentDir, "agent.json");
|
|
82402
82403
|
let runtime = spec.runtime;
|
|
82403
82404
|
if (!runtime) {
|