@agentconnect.md/daemon 1.0.0-rc.12 → 1.0.0-rc.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.
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16871,7 +16871,7 @@ async function runChat(opts) {
|
|
|
16871
16871
|
//#region src/version.ts
|
|
16872
16872
|
const DAEMON_VERSION = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
|
|
16873
16873
|
//#endregion
|
|
16874
|
-
//#region ../protocol/
|
|
16874
|
+
//#region ../protocol/src/envelope.ts
|
|
16875
16875
|
/**
|
|
16876
16876
|
* The protocol envelope — every frame, both directions, is wrapped in this.
|
|
16877
16877
|
* Mirrors daemon-cp-ws-protocol.md §1.1.
|
|
@@ -16898,7 +16898,7 @@ object({
|
|
|
16898
16898
|
/** The all-zero UUID used when a frame is malformed past the point of reading `id`. */
|
|
16899
16899
|
const NIL_UUID = "00000000-0000-0000-0000-000000000000";
|
|
16900
16900
|
//#endregion
|
|
16901
|
-
//#region ../protocol/
|
|
16901
|
+
//#region ../protocol/src/frames/auth.ts
|
|
16902
16902
|
/**
|
|
16903
16903
|
* Auth & identity — protocol §3.1 / §3.2.
|
|
16904
16904
|
*
|
|
@@ -16928,7 +16928,7 @@ const AuthOk = object({
|
|
|
16928
16928
|
}).optional()
|
|
16929
16929
|
});
|
|
16930
16930
|
//#endregion
|
|
16931
|
-
//#region ../protocol/
|
|
16931
|
+
//#region ../protocol/src/frames/route.ts
|
|
16932
16932
|
/**
|
|
16933
16933
|
* Routing & orchestration (C→D control) — protocol §5.
|
|
16934
16934
|
*
|
|
@@ -16991,7 +16991,7 @@ const DrainProgress = object({
|
|
|
16991
16991
|
});
|
|
16992
16992
|
const DrainDone = object({ released: array(SessionKey) });
|
|
16993
16993
|
//#endregion
|
|
16994
|
-
//#region ../protocol/
|
|
16994
|
+
//#region ../protocol/src/frames/cron.ts
|
|
16995
16995
|
/**
|
|
16996
16996
|
* Cron sinks to the daemon (D5) — protocol §5.4.
|
|
16997
16997
|
*
|
|
@@ -17007,7 +17007,7 @@ const CronUpsert = object({
|
|
|
17007
17007
|
});
|
|
17008
17008
|
const CronRemove = object({ cronId: string().uuid() });
|
|
17009
17009
|
//#endregion
|
|
17010
|
-
//#region ../protocol/
|
|
17010
|
+
//#region ../protocol/src/frames/secrets.ts
|
|
17011
17011
|
/**
|
|
17012
17012
|
* Secrets (C5 ↔ D10) — protocol §6.
|
|
17013
17013
|
*
|
|
@@ -17046,7 +17046,7 @@ const ScopeAttestation = object({
|
|
|
17046
17046
|
exp: string().datetime()
|
|
17047
17047
|
});
|
|
17048
17048
|
//#endregion
|
|
17049
|
-
//#region ../protocol/
|
|
17049
|
+
//#region ../protocol/src/frames/register.ts
|
|
17050
17050
|
/**
|
|
17051
17051
|
* Capability upload + the reconcile snapshot — protocol §3.3.
|
|
17052
17052
|
*
|
|
@@ -17080,7 +17080,7 @@ const RegisterOk = object({
|
|
|
17080
17080
|
})
|
|
17081
17081
|
});
|
|
17082
17082
|
//#endregion
|
|
17083
|
-
//#region ../protocol/
|
|
17083
|
+
//#region ../protocol/src/frames/agent.ts
|
|
17084
17084
|
/**
|
|
17085
17085
|
* Agent lifecycle + delivery (protocol §4.3, §4.4, §7.4, §8).
|
|
17086
17086
|
*
|
|
@@ -17150,7 +17150,7 @@ const AgentScopeDenied = object({
|
|
|
17150
17150
|
capability: string()
|
|
17151
17151
|
});
|
|
17152
17152
|
//#endregion
|
|
17153
|
-
//#region ../protocol/
|
|
17153
|
+
//#region ../protocol/src/frame.ts
|
|
17154
17154
|
/**
|
|
17155
17155
|
* The single source of truth for the wire: `type` string → payload zod schema.
|
|
17156
17156
|
*
|
|
@@ -17315,7 +17315,7 @@ discriminatedUnion("type", [
|
|
|
17315
17315
|
frame("error", FRAME_SCHEMAS["error"])
|
|
17316
17316
|
]);
|
|
17317
17317
|
//#endregion
|
|
17318
|
-
//#region ../protocol/
|
|
17318
|
+
//#region ../protocol/src/codec.ts
|
|
17319
17319
|
/** Soft cap per frame — 256 KiB (protocol §1). Over this → FRAME_TOO_LARGE. */
|
|
17320
17320
|
const MAX_FRAME_BYTES = 256 * 1024;
|
|
17321
17321
|
const textEncoder = new TextEncoder();
|
|
@@ -17391,7 +17391,7 @@ function encode(frame) {
|
|
|
17391
17391
|
return JSON.stringify(frame);
|
|
17392
17392
|
}
|
|
17393
17393
|
//#endregion
|
|
17394
|
-
//#region ../protocol/
|
|
17394
|
+
//#region ../protocol/src/index.ts
|
|
17395
17395
|
/**
|
|
17396
17396
|
* Narrowing guard factory: `isFrame("auth")(frame)` narrows a decoded
|
|
17397
17397
|
* `AnyFrame` to the member whose `type` matches.
|