@ikenga/contract 0.14.0 → 0.15.0
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/README.md +8 -8
- package/dist/action-frontmatter.js +1 -1
- package/dist/action-frontmatter.js.map +1 -1
- package/dist/app-bridge.d.ts +126 -0
- package/dist/app-bridge.d.ts.map +1 -0
- package/dist/app-bridge.js +141 -0
- package/dist/app-bridge.js.map +1 -0
- package/dist/artifact.d.ts +10 -10
- package/dist/engine/adapter.d.ts +1 -1
- package/dist/engine/adapter.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +22 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +2 -1
- package/dist/manifest.js.map +1 -1
- package/dist/registry.d.ts +20 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +1 -1
- package/dist/registry.js.map +1 -1
- package/dist/window.js +1 -1
- package/dist/window.js.map +1 -1
- package/package.json +6 -2
- package/src/action-frontmatter.ts +1 -1
- package/src/app-bridge.ts +158 -0
- package/src/engine/adapter.ts +1 -1
- package/src/index.ts +1 -0
- package/src/manifest.ts +2 -1
- package/src/registry.ts +1 -1
- package/src/window.ts +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# @ikenga/contract
|
|
2
2
|
|
|
3
|
-
[](https://github.com/
|
|
4
|
-
[](https://github.com/
|
|
3
|
+
[](https://github.com/ikenga-hq/ikenga-contract/actions)
|
|
4
|
+
[](https://github.com/ikenga-hq/ikenga-contract/releases)
|
|
5
5
|
[](LICENSE)
|
|
6
|
-
[](https://github.com/
|
|
6
|
+
[](https://github.com/ikenga-hq/ikenga-contract/discussions)
|
|
7
7
|
|
|
8
8
|
> The single source of truth for how the Ikenga shell, pkgs, and engines talk to each
|
|
9
9
|
> other.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
## What it is
|
|
12
12
|
|
|
13
13
|
`@ikenga/contract` is the shared TypeScript package that defines the wire between the
|
|
14
|
-
[Ikenga shell](https://github.com/
|
|
14
|
+
[Ikenga shell](https://github.com/ikenga-hq/ikenga), its packages, and its engine
|
|
15
15
|
adapters: the manifest schema, the RPC envelope, the Engine interface, and the capability
|
|
16
16
|
scope catalogue. It's intentionally small and stable — bumping its major version is an
|
|
17
17
|
event coordinated across the shell and every published pkg.
|
|
@@ -55,7 +55,7 @@ install time.
|
|
|
55
55
|
## Source of truth
|
|
56
56
|
|
|
57
57
|
The `Manifest` schema **mirrors** the Rust struct in
|
|
58
|
-
[`
|
|
58
|
+
[`ikenga-hq/ikenga`](https://github.com/ikenga-hq/ikenga) at
|
|
59
59
|
`src-tauri/src/pkg/manifest.rs`. The Rust kernel parses pkg `manifest.json` files; this
|
|
60
60
|
package is a TS-side validator and types-only mirror for tooling (CLI, registry build). To
|
|
61
61
|
change the manifest, change the Rust struct first and update this schema in lockstep.
|
|
@@ -69,8 +69,8 @@ but unused by the kernel today; treat them as forward-looking.
|
|
|
69
69
|
## Links
|
|
70
70
|
|
|
71
71
|
- [ikenga.dev](https://ikenga.dev) — site + docs
|
|
72
|
-
- [`ikenga`](https://github.com/
|
|
73
|
-
- [`ikenga-pkgs`](https://github.com/
|
|
72
|
+
- [`ikenga`](https://github.com/ikenga-hq/ikenga) — the desktop shell (owns the Rust source of truth)
|
|
73
|
+
- [`ikenga-pkgs`](https://github.com/ikenga-hq/ikenga-pkgs) — first-party packages
|
|
74
74
|
|
|
75
75
|
## License
|
|
76
76
|
|
|
@@ -79,5 +79,5 @@ Apache-2.0 — see [`LICENSE`](LICENSE).
|
|
|
79
79
|
## Contributing & community
|
|
80
80
|
|
|
81
81
|
Issues and PRs welcome. Start a thread in
|
|
82
|
-
[Discussions](https://github.com/
|
|
82
|
+
[Discussions](https://github.com/ikenga-hq/ikenga-contract/discussions).
|
|
83
83
|
<!-- VERIFY: link CONTRIBUTING.md / CODE_OF_CONDUCT.md once the org .github defaults or per-repo copies exist. -->
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Atelier skill *action*'s YAML frontmatter (the block between the leading
|
|
3
3
|
// `---` fences of an `actions/*.md` file).
|
|
4
4
|
//
|
|
5
|
-
// The Rust loader in `
|
|
5
|
+
// The Rust loader in `ikenga-hq/ikenga` at
|
|
6
6
|
// `src-tauri/src/pkg/skill_actions.rs` mirrors this schema. Field changes MUST
|
|
7
7
|
// be made in lockstep with that Rust struct — same convention as
|
|
8
8
|
// manifest.ts ↔ manifest.rs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-frontmatter.js","sourceRoot":"","sources":["../src/action-frontmatter.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,2CAA2C;AAC3C,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"action-frontmatter.js","sourceRoot":"","sources":["../src/action-frontmatter.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,2EAA2E;AAC3E,2CAA2C;AAC3C,EAAE;AACF,2CAA2C;AAC3C,+EAA+E;AAC/E,iEAAiE;AACjE,6BAA6B;AAC7B,EAAE;AACF,+EAA+E;AAE/E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8EAA8E;AAC9E,mCAAmC;AACnC,8EAA8E;AAE9E;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/B,OAAO;IACP,MAAM;IACN,UAAU;IACV,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,YAAY;CACb,CAAC,CAAC;AAGH,8EAA8E;AAC9E,qCAAqC;AACrC,8EAA8E;AAE9E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC;IAC/B,SAAS;IACT,QAAQ;IACR,MAAM;IACN,WAAW;IACX,SAAS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 -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** The `method` discriminant carried inside the logging frame's `data`. */
|
|
3
|
+
export declare const REPO_CHANGED_METHOD: "repo.changed";
|
|
4
|
+
/**
|
|
5
|
+
* Per-pkg relay budget enforced by the Rust supervisor's MCP read loop.
|
|
6
|
+
*
|
|
7
|
+
* Mirrors `MCP_NOTIFICATION_MAX_PER_SEC` in
|
|
8
|
+
* `shell/src-tauri/src/pkg/lifecycle.rs:166` — this is a re-declaration for
|
|
9
|
+
* pkg authors, NOT a second enforcement point. The shell drops (never queues)
|
|
10
|
+
* frames past the cap, so an over-cap burst loses the middle of the run, not
|
|
11
|
+
* the tail.
|
|
12
|
+
*
|
|
13
|
+
* The window is **TUMBLING, not rolling**: the loop resets `window_start` to
|
|
14
|
+
* `now` and zeroes the counter the first time a frame arrives ≥1s after the
|
|
15
|
+
* window opened (`lifecycle.rs:~1427-1439`). A burst can therefore straddle
|
|
16
|
+
* two windows and land up to 2× this many frames inside one arbitrary
|
|
17
|
+
* one-second span — that is expected, not a leak.
|
|
18
|
+
*
|
|
19
|
+
* Practical consequence for a watcher: coalesce ruthlessly before sending.
|
|
20
|
+
* `repo.changed` carries `coalesced` precisely so one frame can stand for many
|
|
21
|
+
* filesystem events.
|
|
22
|
+
*/
|
|
23
|
+
export declare const HOST_NOTIFICATION_MAX_PER_SEC = 20;
|
|
24
|
+
/** Zod schema for the `repo.changed` payload. */
|
|
25
|
+
export declare const RepoChangedParamsSchema: z.ZodObject<{
|
|
26
|
+
/** Absolute path to the repo's toplevel (the `git rev-parse --show-toplevel`
|
|
27
|
+
* value), which is the same key the pkg's RPC surface uses for `repo`. */
|
|
28
|
+
repo: z.ZodString;
|
|
29
|
+
/** Monotonic per-repo sequence, starting at 1, incremented once per emitted
|
|
30
|
+
* frame. Lets a consumer detect frames the relay's rate cap dropped: a gap
|
|
31
|
+
* means "you missed something, re-read the snapshot". */
|
|
32
|
+
seq: z.ZodNumber;
|
|
33
|
+
/** How many raw filesystem events this frame stands for (≥1). A large value
|
|
34
|
+
* is normal during a rebase or a branch switch. */
|
|
35
|
+
coalesced: z.ZodNumber;
|
|
36
|
+
/** `Date.now()` at emit time, in the MCP server's process. */
|
|
37
|
+
at: z.ZodNumber;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
at: number;
|
|
40
|
+
repo: string;
|
|
41
|
+
seq: number;
|
|
42
|
+
coalesced: number;
|
|
43
|
+
}, {
|
|
44
|
+
at: number;
|
|
45
|
+
repo: string;
|
|
46
|
+
seq: number;
|
|
47
|
+
coalesced: number;
|
|
48
|
+
}>;
|
|
49
|
+
/** The `repo.changed` payload — what a consumer actually wants. */
|
|
50
|
+
export type RepoChangedParams = z.infer<typeof RepoChangedParamsSchema>;
|
|
51
|
+
/** The JSON-RPC-shaped envelope the pkg's MCP server places in the logging
|
|
52
|
+
* frame's `data` field. */
|
|
53
|
+
export interface RepoChangedEnvelope {
|
|
54
|
+
method: typeof REPO_CHANGED_METHOD;
|
|
55
|
+
params: RepoChangedParams;
|
|
56
|
+
}
|
|
57
|
+
/** Zod schema for that envelope. */
|
|
58
|
+
export declare const RepoChangedEnvelopeSchema: z.ZodObject<{
|
|
59
|
+
method: z.ZodLiteral<"repo.changed">;
|
|
60
|
+
params: z.ZodObject<{
|
|
61
|
+
/** Absolute path to the repo's toplevel (the `git rev-parse --show-toplevel`
|
|
62
|
+
* value), which is the same key the pkg's RPC surface uses for `repo`. */
|
|
63
|
+
repo: z.ZodString;
|
|
64
|
+
/** Monotonic per-repo sequence, starting at 1, incremented once per emitted
|
|
65
|
+
* frame. Lets a consumer detect frames the relay's rate cap dropped: a gap
|
|
66
|
+
* means "you missed something, re-read the snapshot". */
|
|
67
|
+
seq: z.ZodNumber;
|
|
68
|
+
/** How many raw filesystem events this frame stands for (≥1). A large value
|
|
69
|
+
* is normal during a rebase or a branch switch. */
|
|
70
|
+
coalesced: z.ZodNumber;
|
|
71
|
+
/** `Date.now()` at emit time, in the MCP server's process. */
|
|
72
|
+
at: z.ZodNumber;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
at: number;
|
|
75
|
+
repo: string;
|
|
76
|
+
seq: number;
|
|
77
|
+
coalesced: number;
|
|
78
|
+
}, {
|
|
79
|
+
at: number;
|
|
80
|
+
repo: string;
|
|
81
|
+
seq: number;
|
|
82
|
+
coalesced: number;
|
|
83
|
+
}>;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
params: {
|
|
86
|
+
at: number;
|
|
87
|
+
repo: string;
|
|
88
|
+
seq: number;
|
|
89
|
+
coalesced: number;
|
|
90
|
+
};
|
|
91
|
+
method: "repo.changed";
|
|
92
|
+
}, {
|
|
93
|
+
params: {
|
|
94
|
+
at: number;
|
|
95
|
+
repo: string;
|
|
96
|
+
seq: number;
|
|
97
|
+
coalesced: number;
|
|
98
|
+
};
|
|
99
|
+
method: "repo.changed";
|
|
100
|
+
}>;
|
|
101
|
+
/**
|
|
102
|
+
* Pull the `repo.changed` params out of anything the iframe might hand us,
|
|
103
|
+
* or return `null` if this isn't a `repo.changed` frame.
|
|
104
|
+
*
|
|
105
|
+
* Accepts three shapes, so a caller can pass whatever their notification
|
|
106
|
+
* handler gave them without unwrapping first:
|
|
107
|
+
*
|
|
108
|
+
* 1. the full relayed frame — `{ method: 'notifications/message',
|
|
109
|
+
* params: { level, logger, data: <envelope> } }`
|
|
110
|
+
* 2. the logging params alone — `{ level, logger, data: <envelope> }`
|
|
111
|
+
* (this is what `setNotificationHandler(LoggingMessageNotificationSchema,
|
|
112
|
+
* n => …)` hands you as `n.params`)
|
|
113
|
+
* 3. the bare envelope — `{ method: 'repo.changed', params: {…} }`
|
|
114
|
+
*
|
|
115
|
+
* Returns `null` for anything else, including a well-formed logging frame for
|
|
116
|
+
* a different topic. Never throws.
|
|
117
|
+
*/
|
|
118
|
+
export declare function readRepoChangedParams(value: unknown): RepoChangedParams | null;
|
|
119
|
+
/**
|
|
120
|
+
* Type guard over the same three shapes `readRepoChangedParams` accepts.
|
|
121
|
+
* Narrows only to "this carries a valid `repo.changed`" — call
|
|
122
|
+
* `readRepoChangedParams` to get the payload, since the guard cannot narrow
|
|
123
|
+
* through the outer wrapper.
|
|
124
|
+
*/
|
|
125
|
+
export declare function isRepoChangedNotification(value: unknown): boolean;
|
|
126
|
+
//# sourceMappingURL=app-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-bridge.d.ts","sourceRoot":"","sources":["../src/app-bridge.ts"],"names":[],"mappings":"AAoDA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,EAAG,cAAuB,CAAC;AAE3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,6BAA6B,KAAK,CAAC;AAEhD,iDAAiD;AACjD,eAAO,MAAM,uBAAuB;IACnC;+EAC2E;;IAE3E;;8DAE0D;;IAE1D;wDACoD;;IAEpD,8DAA8D;;;;;;;;;;;;EAE7D,CAAC;AAEH,mEAAmE;AACnE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;4BAC4B;AAC5B,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,OAAO,mBAAmB,CAAC;IACnC,MAAM,EAAE,iBAAiB,CAAC;CAC1B;AAED,oCAAoC;AACpC,eAAO,MAAM,yBAAyB;;;QAzBrC;mFAC2E;;QAE3E;;kEAE0D;;QAE1D;4DACoD;;QAEpD,8DAA8D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB7D,CAAC;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,GAAG,IAAI,CAoB9E;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAEjE"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
// `repo.changed` — the push a pkg's long-lived MCP server emits so its iframe
|
|
2
|
+
// learns that a git repo moved on disk, without polling.
|
|
3
|
+
//
|
|
4
|
+
// ─── Why this file is about an MCP notification, not a sidecar event ───────
|
|
5
|
+
//
|
|
6
|
+
// An earlier draft of this module described a `host-sidecar-event` push fed by
|
|
7
|
+
// `manifest.sidecars[]`. That path does not exist. Verified in shell source:
|
|
8
|
+
//
|
|
9
|
+
// • `manifest.sidecars[]` entries are NOT supervised — `src-tauri/src/pkg/
|
|
10
|
+
// registries/sidecars.rs` only resolves their binary paths.
|
|
11
|
+
// • `host.pkgSidecarCall` → `pkg_sidecar_call` spawns a FRESH process per
|
|
12
|
+
// call; it is one-shot request/response, with no stdout event stream.
|
|
13
|
+
// • The `pkg://sidecar/{pkgId}/{name}/message` Tauri event is emitted only
|
|
14
|
+
// by the lazy-spawn `pkg_sidecar_rpc_send` path, which no `host.*` verb
|
|
15
|
+
// reaches — so nothing an iframe can call ever produces one.
|
|
16
|
+
// • The only supervised long-lived child is a `manifest.mcp[]` entry with
|
|
17
|
+
// `lifecycle: "long-lived"` (`src-tauri/src/pkg/lifecycle.rs`).
|
|
18
|
+
//
|
|
19
|
+
// So the real push channel is the MCP notification relay that already ships:
|
|
20
|
+
//
|
|
21
|
+
// pkg MCP server shell (Rust) pkg iframe
|
|
22
|
+
// ────────────── ──────────── ──────────
|
|
23
|
+
// server.sendLoggingMessage( read loop matches AppBridge
|
|
24
|
+
// { level, logger, → `notifications/message` → notification
|
|
25
|
+
// data: <envelope> }) (lifecycle.rs:160), rate- handler for
|
|
26
|
+
// caps, emits the Tauri LoggingMessage-
|
|
27
|
+
// event `pkg-mcp-notification` Notification
|
|
28
|
+
// `{pkg_id, method, params}`
|
|
29
|
+
// (lifecycle.rs:154, ~1440-1460)
|
|
30
|
+
// ↓
|
|
31
|
+
// `shell/src/components/pkg/pkg-iframe-host.tsx`
|
|
32
|
+
// Step 3b filters on `pkg_id` and forwards
|
|
33
|
+
// `{method, params}` VERBATIM onto the bridge.
|
|
34
|
+
//
|
|
35
|
+
// The relayed top-level `method` is therefore always the literal string
|
|
36
|
+
// `notifications/message` — never `repo.changed`. The MCP spec's logging
|
|
37
|
+
// params are `{ level, logger, data }`, and `data` is free-form, so the pkg's
|
|
38
|
+
// own routing discriminant has to live inside `data`. `com.ikenga.git` puts a
|
|
39
|
+
// JSON-RPC-shaped envelope there:
|
|
40
|
+
//
|
|
41
|
+
// { level: 'info', logger: 'git-mcp/watcher',
|
|
42
|
+
// data: { method: 'repo.changed',
|
|
43
|
+
// params: { repo, seq, coalesced, at } } }
|
|
44
|
+
//
|
|
45
|
+
// (Same convention Studio already uses for its render events — see
|
|
46
|
+
// `ikenga-pkgs/packages/apps/studio/mcp/src/index.ts` `sendLoggingMessage` and
|
|
47
|
+
// the demux in `studio/src/studio/bridge.ts`.)
|
|
48
|
+
//
|
|
49
|
+
// This module types that envelope and gives the iframe a guard that accepts
|
|
50
|
+
// either the whole relayed frame or a bare `data` envelope, so a consumer
|
|
51
|
+
// doesn't have to hand-write the `params.data.method` reach.
|
|
52
|
+
import { z } from 'zod';
|
|
53
|
+
/** The `method` discriminant carried inside the logging frame's `data`. */
|
|
54
|
+
export const REPO_CHANGED_METHOD = 'repo.changed';
|
|
55
|
+
/**
|
|
56
|
+
* Per-pkg relay budget enforced by the Rust supervisor's MCP read loop.
|
|
57
|
+
*
|
|
58
|
+
* Mirrors `MCP_NOTIFICATION_MAX_PER_SEC` in
|
|
59
|
+
* `shell/src-tauri/src/pkg/lifecycle.rs:166` — this is a re-declaration for
|
|
60
|
+
* pkg authors, NOT a second enforcement point. The shell drops (never queues)
|
|
61
|
+
* frames past the cap, so an over-cap burst loses the middle of the run, not
|
|
62
|
+
* the tail.
|
|
63
|
+
*
|
|
64
|
+
* The window is **TUMBLING, not rolling**: the loop resets `window_start` to
|
|
65
|
+
* `now` and zeroes the counter the first time a frame arrives ≥1s after the
|
|
66
|
+
* window opened (`lifecycle.rs:~1427-1439`). A burst can therefore straddle
|
|
67
|
+
* two windows and land up to 2× this many frames inside one arbitrary
|
|
68
|
+
* one-second span — that is expected, not a leak.
|
|
69
|
+
*
|
|
70
|
+
* Practical consequence for a watcher: coalesce ruthlessly before sending.
|
|
71
|
+
* `repo.changed` carries `coalesced` precisely so one frame can stand for many
|
|
72
|
+
* filesystem events.
|
|
73
|
+
*/
|
|
74
|
+
export const HOST_NOTIFICATION_MAX_PER_SEC = 20;
|
|
75
|
+
/** Zod schema for the `repo.changed` payload. */
|
|
76
|
+
export const RepoChangedParamsSchema = z.object({
|
|
77
|
+
/** Absolute path to the repo's toplevel (the `git rev-parse --show-toplevel`
|
|
78
|
+
* value), which is the same key the pkg's RPC surface uses for `repo`. */
|
|
79
|
+
repo: z.string().min(1),
|
|
80
|
+
/** Monotonic per-repo sequence, starting at 1, incremented once per emitted
|
|
81
|
+
* frame. Lets a consumer detect frames the relay's rate cap dropped: a gap
|
|
82
|
+
* means "you missed something, re-read the snapshot". */
|
|
83
|
+
seq: z.number().int().nonnegative(),
|
|
84
|
+
/** How many raw filesystem events this frame stands for (≥1). A large value
|
|
85
|
+
* is normal during a rebase or a branch switch. */
|
|
86
|
+
coalesced: z.number().int().positive(),
|
|
87
|
+
/** `Date.now()` at emit time, in the MCP server's process. */
|
|
88
|
+
at: z.number().int().nonnegative(),
|
|
89
|
+
});
|
|
90
|
+
/** Zod schema for that envelope. */
|
|
91
|
+
export const RepoChangedEnvelopeSchema = z.object({
|
|
92
|
+
method: z.literal(REPO_CHANGED_METHOD),
|
|
93
|
+
params: RepoChangedParamsSchema,
|
|
94
|
+
});
|
|
95
|
+
/**
|
|
96
|
+
* Pull the `repo.changed` params out of anything the iframe might hand us,
|
|
97
|
+
* or return `null` if this isn't a `repo.changed` frame.
|
|
98
|
+
*
|
|
99
|
+
* Accepts three shapes, so a caller can pass whatever their notification
|
|
100
|
+
* handler gave them without unwrapping first:
|
|
101
|
+
*
|
|
102
|
+
* 1. the full relayed frame — `{ method: 'notifications/message',
|
|
103
|
+
* params: { level, logger, data: <envelope> } }`
|
|
104
|
+
* 2. the logging params alone — `{ level, logger, data: <envelope> }`
|
|
105
|
+
* (this is what `setNotificationHandler(LoggingMessageNotificationSchema,
|
|
106
|
+
* n => …)` hands you as `n.params`)
|
|
107
|
+
* 3. the bare envelope — `{ method: 'repo.changed', params: {…} }`
|
|
108
|
+
*
|
|
109
|
+
* Returns `null` for anything else, including a well-formed logging frame for
|
|
110
|
+
* a different topic. Never throws.
|
|
111
|
+
*/
|
|
112
|
+
export function readRepoChangedParams(value) {
|
|
113
|
+
if (typeof value !== 'object' || value === null)
|
|
114
|
+
return null;
|
|
115
|
+
const v = value;
|
|
116
|
+
// Shape 3 — bare envelope.
|
|
117
|
+
const bare = RepoChangedEnvelopeSchema.safeParse(v);
|
|
118
|
+
if (bare.success)
|
|
119
|
+
return bare.data.params;
|
|
120
|
+
// Shape 1 — full frame: descend into `params` and retry as shape 2.
|
|
121
|
+
if (v.method === 'notifications/message') {
|
|
122
|
+
return readRepoChangedParams(v.params);
|
|
123
|
+
}
|
|
124
|
+
// Shape 2 — logging params: the envelope is in `data`.
|
|
125
|
+
if ('data' in v) {
|
|
126
|
+
const inner = RepoChangedEnvelopeSchema.safeParse(v.data);
|
|
127
|
+
if (inner.success)
|
|
128
|
+
return inner.data.params;
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Type guard over the same three shapes `readRepoChangedParams` accepts.
|
|
134
|
+
* Narrows only to "this carries a valid `repo.changed`" — call
|
|
135
|
+
* `readRepoChangedParams` to get the payload, since the guard cannot narrow
|
|
136
|
+
* through the outer wrapper.
|
|
137
|
+
*/
|
|
138
|
+
export function isRepoChangedNotification(value) {
|
|
139
|
+
return readRepoChangedParams(value) !== null;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=app-bridge.js.map
|
|
@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M,UAAU,yBAAyB,CAAC,KAAc;IACvD,OAAO,qBAAqB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;AAC9C,CAAC"}
|
package/dist/artifact.d.ts
CHANGED
|
@@ -332,23 +332,23 @@ export declare const FallbackSchema: z.ZodEffects<z.ZodObject<{
|
|
|
332
332
|
banner: z.ZodOptional<z.ZodString>;
|
|
333
333
|
}, "strip", z.ZodTypeAny, {
|
|
334
334
|
mode: "mock";
|
|
335
|
-
dataTag?: string | undefined;
|
|
336
335
|
data?: string | undefined;
|
|
336
|
+
dataTag?: string | undefined;
|
|
337
337
|
banner?: string | undefined;
|
|
338
338
|
}, {
|
|
339
339
|
mode: "mock";
|
|
340
|
-
dataTag?: string | undefined;
|
|
341
340
|
data?: string | undefined;
|
|
341
|
+
dataTag?: string | undefined;
|
|
342
342
|
banner?: string | undefined;
|
|
343
343
|
}>, {
|
|
344
344
|
mode: "mock";
|
|
345
|
-
dataTag?: string | undefined;
|
|
346
345
|
data?: string | undefined;
|
|
346
|
+
dataTag?: string | undefined;
|
|
347
347
|
banner?: string | undefined;
|
|
348
348
|
}, {
|
|
349
349
|
mode: "mock";
|
|
350
|
-
dataTag?: string | undefined;
|
|
351
350
|
data?: string | undefined;
|
|
351
|
+
dataTag?: string | undefined;
|
|
352
352
|
banner?: string | undefined;
|
|
353
353
|
}>;
|
|
354
354
|
export declare const PinSchema: z.ZodObject<{
|
|
@@ -829,23 +829,23 @@ export declare const ArtifactManifestSchema: z.ZodObject<{
|
|
|
829
829
|
banner: z.ZodOptional<z.ZodString>;
|
|
830
830
|
}, "strip", z.ZodTypeAny, {
|
|
831
831
|
mode: "mock";
|
|
832
|
-
dataTag?: string | undefined;
|
|
833
832
|
data?: string | undefined;
|
|
833
|
+
dataTag?: string | undefined;
|
|
834
834
|
banner?: string | undefined;
|
|
835
835
|
}, {
|
|
836
836
|
mode: "mock";
|
|
837
|
-
dataTag?: string | undefined;
|
|
838
837
|
data?: string | undefined;
|
|
838
|
+
dataTag?: string | undefined;
|
|
839
839
|
banner?: string | undefined;
|
|
840
840
|
}>, {
|
|
841
841
|
mode: "mock";
|
|
842
|
-
dataTag?: string | undefined;
|
|
843
842
|
data?: string | undefined;
|
|
843
|
+
dataTag?: string | undefined;
|
|
844
844
|
banner?: string | undefined;
|
|
845
845
|
}, {
|
|
846
846
|
mode: "mock";
|
|
847
|
-
dataTag?: string | undefined;
|
|
848
847
|
data?: string | undefined;
|
|
848
|
+
dataTag?: string | undefined;
|
|
849
849
|
banner?: string | undefined;
|
|
850
850
|
}>;
|
|
851
851
|
pin: z.ZodOptional<z.ZodObject<{
|
|
@@ -1063,8 +1063,8 @@ export declare const ArtifactManifestSchema: z.ZodObject<{
|
|
|
1063
1063
|
}>;
|
|
1064
1064
|
fallback: {
|
|
1065
1065
|
mode: "mock";
|
|
1066
|
-
dataTag?: string | undefined;
|
|
1067
1066
|
data?: string | undefined;
|
|
1067
|
+
dataTag?: string | undefined;
|
|
1068
1068
|
banner?: string | undefined;
|
|
1069
1069
|
};
|
|
1070
1070
|
description?: string | undefined;
|
|
@@ -1189,8 +1189,8 @@ export declare const ArtifactManifestSchema: z.ZodObject<{
|
|
|
1189
1189
|
}>;
|
|
1190
1190
|
fallback: {
|
|
1191
1191
|
mode: "mock";
|
|
1192
|
-
dataTag?: string | undefined;
|
|
1193
1192
|
data?: string | undefined;
|
|
1193
|
+
dataTag?: string | undefined;
|
|
1194
1194
|
banner?: string | undefined;
|
|
1195
1195
|
};
|
|
1196
1196
|
description?: string | undefined;
|
package/dist/engine/adapter.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export interface McpServerSpec {
|
|
|
72
72
|
/**
|
|
73
73
|
* Capability flags every engine adapter advertises. This is the canonical
|
|
74
74
|
* shape consumed by both the shell-side ChatAdapter layer and any pkg that
|
|
75
|
-
* needs to reason about adapter features (wizard, settings UI,
|
|
75
|
+
* needs to reason about adapter features (wizard, settings UI, sidecar health).
|
|
76
76
|
*
|
|
77
77
|
* Fields are intentionally a *superset* of what any single adapter
|
|
78
78
|
* supports — an adapter sets the ones it implements to `true` and the
|
package/dist/engine/adapter.js
CHANGED
|
@@ -16,7 +16,7 @@ import { z } from 'zod';
|
|
|
16
16
|
/**
|
|
17
17
|
* Capability flags every engine adapter advertises. This is the canonical
|
|
18
18
|
* shape consumed by both the shell-side ChatAdapter layer and any pkg that
|
|
19
|
-
* needs to reason about adapter features (wizard, settings UI,
|
|
19
|
+
* needs to reason about adapter features (wizard, settings UI, sidecar health).
|
|
20
20
|
*
|
|
21
21
|
* Fields are intentionally a *superset* of what any single adapter
|
|
22
22
|
* supports — an adapter sets the ones it implements to `true` and the
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './pa-actions.js';
|
|
|
11
11
|
export * from './window.js';
|
|
12
12
|
export * from './action-frontmatter.js';
|
|
13
13
|
export * from './host-context.js';
|
|
14
|
+
export * from './app-bridge.js';
|
|
14
15
|
/** This package's own version. */
|
|
15
16
|
export declare const CONTRACT_PACKAGE_VERSION: "0.5.0";
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAEhC,kCAAkC;AAClC,eAAO,MAAM,wBAAwB,EAAG,OAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from './pa-actions.js';
|
|
|
11
11
|
export * from './window.js';
|
|
12
12
|
export * from './action-frontmatter.js';
|
|
13
13
|
export * from './host-context.js';
|
|
14
|
+
export * from './app-bridge.js';
|
|
14
15
|
/** This package's own version. */
|
|
15
16
|
export const CONTRACT_PACKAGE_VERSION = '0.5.0';
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAEhC,kCAAkC;AAClC,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAgB,CAAC"}
|
package/dist/manifest.d.ts
CHANGED
|
@@ -298,18 +298,21 @@ export declare const SettingsFieldSchema: z.ZodObject<{
|
|
|
298
298
|
label: z.ZodString;
|
|
299
299
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
300
300
|
description: z.ZodOptional<z.ZodString>;
|
|
301
|
+
env: z.ZodOptional<z.ZodString>;
|
|
301
302
|
}, "strip", z.ZodTypeAny, {
|
|
302
303
|
type: "string" | "number" | "boolean" | "secret";
|
|
303
304
|
label: string;
|
|
304
305
|
key: string;
|
|
305
306
|
description?: string | undefined;
|
|
306
307
|
default?: unknown;
|
|
308
|
+
env?: string | undefined;
|
|
307
309
|
}, {
|
|
308
310
|
type: "string" | "number" | "boolean" | "secret";
|
|
309
311
|
label: string;
|
|
310
312
|
key: string;
|
|
311
313
|
description?: string | undefined;
|
|
312
314
|
default?: unknown;
|
|
315
|
+
env?: string | undefined;
|
|
313
316
|
}>;
|
|
314
317
|
export declare const SettingsBlockSchema: z.ZodObject<{
|
|
315
318
|
schema: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -318,18 +321,21 @@ export declare const SettingsBlockSchema: z.ZodObject<{
|
|
|
318
321
|
label: z.ZodString;
|
|
319
322
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
320
323
|
description: z.ZodOptional<z.ZodString>;
|
|
324
|
+
env: z.ZodOptional<z.ZodString>;
|
|
321
325
|
}, "strip", z.ZodTypeAny, {
|
|
322
326
|
type: "string" | "number" | "boolean" | "secret";
|
|
323
327
|
label: string;
|
|
324
328
|
key: string;
|
|
325
329
|
description?: string | undefined;
|
|
326
330
|
default?: unknown;
|
|
331
|
+
env?: string | undefined;
|
|
327
332
|
}, {
|
|
328
333
|
type: "string" | "number" | "boolean" | "secret";
|
|
329
334
|
label: string;
|
|
330
335
|
key: string;
|
|
331
336
|
description?: string | undefined;
|
|
332
337
|
default?: unknown;
|
|
338
|
+
env?: string | undefined;
|
|
333
339
|
}>, "many">>;
|
|
334
340
|
}, "strip", z.ZodTypeAny, {
|
|
335
341
|
schema: {
|
|
@@ -338,6 +344,7 @@ export declare const SettingsBlockSchema: z.ZodObject<{
|
|
|
338
344
|
key: string;
|
|
339
345
|
description?: string | undefined;
|
|
340
346
|
default?: unknown;
|
|
347
|
+
env?: string | undefined;
|
|
341
348
|
}[];
|
|
342
349
|
}, {
|
|
343
350
|
schema?: {
|
|
@@ -346,6 +353,7 @@ export declare const SettingsBlockSchema: z.ZodObject<{
|
|
|
346
353
|
key: string;
|
|
347
354
|
description?: string | undefined;
|
|
348
355
|
default?: unknown;
|
|
356
|
+
env?: string | undefined;
|
|
349
357
|
}[] | undefined;
|
|
350
358
|
}>;
|
|
351
359
|
export declare const IykeRouteSchema: z.ZodObject<{
|
|
@@ -774,18 +782,21 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
774
782
|
label: z.ZodString;
|
|
775
783
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
776
784
|
description: z.ZodOptional<z.ZodString>;
|
|
785
|
+
env: z.ZodOptional<z.ZodString>;
|
|
777
786
|
}, "strip", z.ZodTypeAny, {
|
|
778
787
|
type: "string" | "number" | "boolean" | "secret";
|
|
779
788
|
label: string;
|
|
780
789
|
key: string;
|
|
781
790
|
description?: string | undefined;
|
|
782
791
|
default?: unknown;
|
|
792
|
+
env?: string | undefined;
|
|
783
793
|
}, {
|
|
784
794
|
type: "string" | "number" | "boolean" | "secret";
|
|
785
795
|
label: string;
|
|
786
796
|
key: string;
|
|
787
797
|
description?: string | undefined;
|
|
788
798
|
default?: unknown;
|
|
799
|
+
env?: string | undefined;
|
|
789
800
|
}>, "many">>;
|
|
790
801
|
}, "strip", z.ZodTypeAny, {
|
|
791
802
|
schema: {
|
|
@@ -794,6 +805,7 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
794
805
|
key: string;
|
|
795
806
|
description?: string | undefined;
|
|
796
807
|
default?: unknown;
|
|
808
|
+
env?: string | undefined;
|
|
797
809
|
}[];
|
|
798
810
|
}, {
|
|
799
811
|
schema?: {
|
|
@@ -802,6 +814,7 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
802
814
|
key: string;
|
|
803
815
|
description?: string | undefined;
|
|
804
816
|
default?: unknown;
|
|
817
|
+
env?: string | undefined;
|
|
805
818
|
}[] | undefined;
|
|
806
819
|
}>>;
|
|
807
820
|
ui: z.ZodDefault<z.ZodObject<{
|
|
@@ -1466,6 +1479,7 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1466
1479
|
key: string;
|
|
1467
1480
|
description?: string | undefined;
|
|
1468
1481
|
default?: unknown;
|
|
1482
|
+
env?: string | undefined;
|
|
1469
1483
|
}[];
|
|
1470
1484
|
} | undefined;
|
|
1471
1485
|
iyke?: {
|
|
@@ -1597,6 +1611,7 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
1597
1611
|
key: string;
|
|
1598
1612
|
description?: string | undefined;
|
|
1599
1613
|
default?: unknown;
|
|
1614
|
+
env?: string | undefined;
|
|
1600
1615
|
}[] | undefined;
|
|
1601
1616
|
} | undefined;
|
|
1602
1617
|
ui?: {
|
|
@@ -1773,18 +1788,21 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1773
1788
|
label: z.ZodString;
|
|
1774
1789
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
1775
1790
|
description: z.ZodOptional<z.ZodString>;
|
|
1791
|
+
env: z.ZodOptional<z.ZodString>;
|
|
1776
1792
|
}, "strip", z.ZodTypeAny, {
|
|
1777
1793
|
type: "string" | "number" | "boolean" | "secret";
|
|
1778
1794
|
label: string;
|
|
1779
1795
|
key: string;
|
|
1780
1796
|
description?: string | undefined;
|
|
1781
1797
|
default?: unknown;
|
|
1798
|
+
env?: string | undefined;
|
|
1782
1799
|
}, {
|
|
1783
1800
|
type: "string" | "number" | "boolean" | "secret";
|
|
1784
1801
|
label: string;
|
|
1785
1802
|
key: string;
|
|
1786
1803
|
description?: string | undefined;
|
|
1787
1804
|
default?: unknown;
|
|
1805
|
+
env?: string | undefined;
|
|
1788
1806
|
}>, "many">>;
|
|
1789
1807
|
}, "strip", z.ZodTypeAny, {
|
|
1790
1808
|
schema: {
|
|
@@ -1793,6 +1811,7 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1793
1811
|
key: string;
|
|
1794
1812
|
description?: string | undefined;
|
|
1795
1813
|
default?: unknown;
|
|
1814
|
+
env?: string | undefined;
|
|
1796
1815
|
}[];
|
|
1797
1816
|
}, {
|
|
1798
1817
|
schema?: {
|
|
@@ -1801,6 +1820,7 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
1801
1820
|
key: string;
|
|
1802
1821
|
description?: string | undefined;
|
|
1803
1822
|
default?: unknown;
|
|
1823
|
+
env?: string | undefined;
|
|
1804
1824
|
}[] | undefined;
|
|
1805
1825
|
}>>;
|
|
1806
1826
|
ui: z.ZodDefault<z.ZodObject<{
|
|
@@ -2465,6 +2485,7 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2465
2485
|
key: string;
|
|
2466
2486
|
description?: string | undefined;
|
|
2467
2487
|
default?: unknown;
|
|
2488
|
+
env?: string | undefined;
|
|
2468
2489
|
}[];
|
|
2469
2490
|
} | undefined;
|
|
2470
2491
|
iyke?: {
|
|
@@ -2596,6 +2617,7 @@ export declare const PkgManifestSchema: z.ZodObject<{
|
|
|
2596
2617
|
key: string;
|
|
2597
2618
|
description?: string | undefined;
|
|
2598
2619
|
default?: unknown;
|
|
2620
|
+
env?: string | undefined;
|
|
2599
2621
|
}[] | undefined;
|
|
2600
2622
|
} | undefined;
|
|
2601
2623
|
ui?: {
|
package/dist/manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,kBAAkB,EAAG,CAAU,CAAC;AAC7C,eAAO,MAAM,wBAAwB,EAAG,CAAU,CAAC;AAInD,eAAO,MAAM,YAAY;;;;;;;;;EAGvB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;IAK1B,0CAA0C;;IAE1C;;0CAEsC;;IAEtC;;8BAE0B;;;;;;;;;;;;;;;;;;EAE1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,iBAAiB;IAC5B,mEAAmE;;IAEnE,iEAAiE;;IAEjE,+BAA+B;;IAE/B;4EACwE;;IAExE;6DACyD;;;;;;;;;;;;;;EAEzD,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;IAK5B;6DACyD;;IAEzD;;uDAEmD;;;IAGnD;;;0CAGsC;;;;;;;;;;;;;;;;;;;;GAE1B,CAAC;AAEf,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAMzB,CAAC;AAEH,eAAO,MAAM,aAAa;;IAExB,yDAAyD;;IAEzD,oEAAoE;;;;;;;;;;EAEpE,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAI/B,CAAC;A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AAChD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;AAInC,qFAAqF;AACrF,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED,sDAAsD;AACtD,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAIjD"}
|
package/dist/manifest.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Ikenga pkg manifest schema — mirrors the Rust schema in
|
|
2
|
-
// `
|
|
2
|
+
// `ikenga-hq/ikenga` at `src-tauri/src/pkg/manifest.rs`.
|
|
3
3
|
//
|
|
4
4
|
// Source of truth is the Rust struct. This zod schema is used by the CLI,
|
|
5
5
|
// registry, and tooling for client-side parse + validation. Field changes
|
|
@@ -112,6 +112,7 @@ export const SettingsFieldSchema = z.object({
|
|
|
112
112
|
label: z.string(),
|
|
113
113
|
default: z.unknown().optional(),
|
|
114
114
|
description: z.string().optional(),
|
|
115
|
+
env: z.string().optional(),
|
|
115
116
|
});
|
|
116
117
|
export const SettingsBlockSchema = z.object({
|
|
117
118
|
schema: z.array(SettingsFieldSchema).default([]),
|
package/dist/manifest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../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AC,EAAE,CAAC;IAElD;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAElD;;;;6EAIyE;IACzE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAGH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAGhD,gCAAgC;AAEhC,qFAAqF;AACrF,MAAM,UAAU,OAAO,CAAC,EAAU;IAChC,OAAO,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,qBAAqB,CAAC,EAAU;IAC9C,OAAO,MAAM,OAAO,CAAC,EAAE,CAAC,GAAG,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,MAAM,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACnC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IAClC,OAAO,CAAC,IAAI,wBAAwB,IAAI,CAAC,IAAI,kBAAkB,CAAC;AAClE,CAAC"}
|
package/dist/registry.d.ts
CHANGED
|
@@ -143,18 +143,21 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
143
143
|
label: z.ZodString;
|
|
144
144
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
145
145
|
description: z.ZodOptional<z.ZodString>;
|
|
146
|
+
env: z.ZodOptional<z.ZodString>;
|
|
146
147
|
}, "strip", z.ZodTypeAny, {
|
|
147
148
|
type: "string" | "number" | "boolean" | "secret";
|
|
148
149
|
label: string;
|
|
149
150
|
key: string;
|
|
150
151
|
description?: string | undefined;
|
|
151
152
|
default?: unknown;
|
|
153
|
+
env?: string | undefined;
|
|
152
154
|
}, {
|
|
153
155
|
type: "string" | "number" | "boolean" | "secret";
|
|
154
156
|
label: string;
|
|
155
157
|
key: string;
|
|
156
158
|
description?: string | undefined;
|
|
157
159
|
default?: unknown;
|
|
160
|
+
env?: string | undefined;
|
|
158
161
|
}>, "many">>;
|
|
159
162
|
}, "strip", z.ZodTypeAny, {
|
|
160
163
|
schema: {
|
|
@@ -163,6 +166,7 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
163
166
|
key: string;
|
|
164
167
|
description?: string | undefined;
|
|
165
168
|
default?: unknown;
|
|
169
|
+
env?: string | undefined;
|
|
166
170
|
}[];
|
|
167
171
|
}, {
|
|
168
172
|
schema?: {
|
|
@@ -171,6 +175,7 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
171
175
|
key: string;
|
|
172
176
|
description?: string | undefined;
|
|
173
177
|
default?: unknown;
|
|
178
|
+
env?: string | undefined;
|
|
174
179
|
}[] | undefined;
|
|
175
180
|
}>>;
|
|
176
181
|
ui: z.ZodDefault<z.ZodObject<{
|
|
@@ -774,6 +779,7 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
774
779
|
key: string;
|
|
775
780
|
description?: string | undefined;
|
|
776
781
|
default?: unknown;
|
|
782
|
+
env?: string | undefined;
|
|
777
783
|
}[];
|
|
778
784
|
} | undefined;
|
|
779
785
|
iyke?: {
|
|
@@ -905,6 +911,7 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
905
911
|
key: string;
|
|
906
912
|
description?: string | undefined;
|
|
907
913
|
default?: unknown;
|
|
914
|
+
env?: string | undefined;
|
|
908
915
|
}[] | undefined;
|
|
909
916
|
} | undefined;
|
|
910
917
|
ui?: {
|
|
@@ -1138,6 +1145,7 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
1138
1145
|
key: string;
|
|
1139
1146
|
description?: string | undefined;
|
|
1140
1147
|
default?: unknown;
|
|
1148
|
+
env?: string | undefined;
|
|
1141
1149
|
}[];
|
|
1142
1150
|
} | undefined;
|
|
1143
1151
|
iyke?: {
|
|
@@ -1280,6 +1288,7 @@ export declare const PkgVersionSchema: z.ZodObject<{
|
|
|
1280
1288
|
key: string;
|
|
1281
1289
|
description?: string | undefined;
|
|
1282
1290
|
default?: unknown;
|
|
1291
|
+
env?: string | undefined;
|
|
1283
1292
|
}[] | undefined;
|
|
1284
1293
|
} | undefined;
|
|
1285
1294
|
ui?: {
|
|
@@ -1457,18 +1466,21 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1457
1466
|
label: z.ZodString;
|
|
1458
1467
|
default: z.ZodOptional<z.ZodUnknown>;
|
|
1459
1468
|
description: z.ZodOptional<z.ZodString>;
|
|
1469
|
+
env: z.ZodOptional<z.ZodString>;
|
|
1460
1470
|
}, "strip", z.ZodTypeAny, {
|
|
1461
1471
|
type: "string" | "number" | "boolean" | "secret";
|
|
1462
1472
|
label: string;
|
|
1463
1473
|
key: string;
|
|
1464
1474
|
description?: string | undefined;
|
|
1465
1475
|
default?: unknown;
|
|
1476
|
+
env?: string | undefined;
|
|
1466
1477
|
}, {
|
|
1467
1478
|
type: "string" | "number" | "boolean" | "secret";
|
|
1468
1479
|
label: string;
|
|
1469
1480
|
key: string;
|
|
1470
1481
|
description?: string | undefined;
|
|
1471
1482
|
default?: unknown;
|
|
1483
|
+
env?: string | undefined;
|
|
1472
1484
|
}>, "many">>;
|
|
1473
1485
|
}, "strip", z.ZodTypeAny, {
|
|
1474
1486
|
schema: {
|
|
@@ -1477,6 +1489,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1477
1489
|
key: string;
|
|
1478
1490
|
description?: string | undefined;
|
|
1479
1491
|
default?: unknown;
|
|
1492
|
+
env?: string | undefined;
|
|
1480
1493
|
}[];
|
|
1481
1494
|
}, {
|
|
1482
1495
|
schema?: {
|
|
@@ -1485,6 +1498,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
1485
1498
|
key: string;
|
|
1486
1499
|
description?: string | undefined;
|
|
1487
1500
|
default?: unknown;
|
|
1501
|
+
env?: string | undefined;
|
|
1488
1502
|
}[] | undefined;
|
|
1489
1503
|
}>>;
|
|
1490
1504
|
ui: z.ZodDefault<z.ZodObject<{
|
|
@@ -2088,6 +2102,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
2088
2102
|
key: string;
|
|
2089
2103
|
description?: string | undefined;
|
|
2090
2104
|
default?: unknown;
|
|
2105
|
+
env?: string | undefined;
|
|
2091
2106
|
}[];
|
|
2092
2107
|
} | undefined;
|
|
2093
2108
|
iyke?: {
|
|
@@ -2219,6 +2234,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
2219
2234
|
key: string;
|
|
2220
2235
|
description?: string | undefined;
|
|
2221
2236
|
default?: unknown;
|
|
2237
|
+
env?: string | undefined;
|
|
2222
2238
|
}[] | undefined;
|
|
2223
2239
|
} | undefined;
|
|
2224
2240
|
ui?: {
|
|
@@ -2452,6 +2468,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
2452
2468
|
key: string;
|
|
2453
2469
|
description?: string | undefined;
|
|
2454
2470
|
default?: unknown;
|
|
2471
|
+
env?: string | undefined;
|
|
2455
2472
|
}[];
|
|
2456
2473
|
} | undefined;
|
|
2457
2474
|
iyke?: {
|
|
@@ -2594,6 +2611,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
2594
2611
|
key: string;
|
|
2595
2612
|
description?: string | undefined;
|
|
2596
2613
|
default?: unknown;
|
|
2614
|
+
env?: string | undefined;
|
|
2597
2615
|
}[] | undefined;
|
|
2598
2616
|
} | undefined;
|
|
2599
2617
|
ui?: {
|
|
@@ -2811,6 +2829,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
2811
2829
|
key: string;
|
|
2812
2830
|
description?: string | undefined;
|
|
2813
2831
|
default?: unknown;
|
|
2832
|
+
env?: string | undefined;
|
|
2814
2833
|
}[];
|
|
2815
2834
|
} | undefined;
|
|
2816
2835
|
iyke?: {
|
|
@@ -2958,6 +2977,7 @@ export declare const PkgDetailSchema: z.ZodObject<{
|
|
|
2958
2977
|
key: string;
|
|
2959
2978
|
description?: string | undefined;
|
|
2960
2979
|
default?: unknown;
|
|
2980
|
+
env?: string | undefined;
|
|
2961
2981
|
}[] | undefined;
|
|
2962
2982
|
} | undefined;
|
|
2963
2983
|
ui?: {
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,uBAAuB,EAAG,CAAU,CAAC;AAIlD;;;;GAIG;AACH,eAAO,MAAM,YAAY;IACvB,4DAA4D;;IAE5D,0DAA0D;;;;;;;;EAE1D,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB;IAC3B,4BAA4B;;IAE5B,iDAAiD;;IAEjD,yEAAyE;;IAEzE,2DAA2D;;IAE3D,mFAAmF;;IAEnF,4DAA4D
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,uBAAuB,EAAG,CAAU,CAAC;AAIlD;;;;GAIG;AACH,eAAO,MAAM,YAAY;IACvB,4DAA4D;;IAE5D,0DAA0D;;;;;;;;EAE1D,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD;;;;GAI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E,MAAM,GAAG,MAAM,CAEpD;AAED,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAErD"}
|
package/dist/registry.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Ikenga registry schema — the static JSON catalog served by
|
|
2
|
-
// `
|
|
2
|
+
// `ikenga-hq/ikenga-registry` over GitHub Pages.
|
|
3
3
|
//
|
|
4
4
|
// Shape: a small root `index.json` lists every pkg with its latest version
|
|
5
5
|
// and a pointer to a per-pkg detail file (`pkgs/<short-name>.json`).
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,iDAAiD;AACjD,EAAE;AACF,2EAA2E;AAC3E,qEAAqE;AACrE,yEAAyE;AACzE,qEAAqE;AACrE,uEAAuE;AACvE,UAAU;AACV,EAAE;AACF,2EAA2E;AAC3E,2EAA2E;AAC3E,qEAAqE;AACrE,mCAAmC;AAEnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAU,CAAC;AAElD,gEAAgE;AAEhE;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,4DAA4D;IAC5D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,0DAA0D;IAC1D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAGH;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,GAAG,EAA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
2
|
+
// `ikenga-hq/ikenga` at `src-tauri/src/window/{descriptor,events}.rs`.
|
|
3
3
|
//
|
|
4
4
|
// This is the `G-WINDOW-MODEL` freeze-gate output (plans/multi-window WP-02).
|
|
5
5
|
// It has TWO co-equal halves: the `WindowDescriptor` (what a window IS) and the
|
package/dist/window.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"window.js","sourceRoot":"","sources":["../src/window.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"window.js","sourceRoot":"","sources":["../src/window.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,uEAAuE;AACvE,EAAE;AACF,8EAA8E;AAC9E,gFAAgF;AAChF,4EAA4E;AAC5E,gFAAgF;AAChF,gFAAgF;AAChF,yEAAyE;AAEzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yEAAyE;AACzE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAU,CAAC;AAElD,yCAAyC;AAEzC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACtC,SAAS;IACT,gBAAgB;IAChB,UAAU;IACV,WAAW;CACX,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACrC,MAAM,CAAC;IACP,yEAAyE;IACzE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,IAAI,EAAE,gBAAgB;IACtB,sDAAsD;IACtD,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC5C,0EAA0E;IAC1E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAC/C;;;OAGG;IACH,UAAU,EAAE,CAAC,CAA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{
|
|
2
2
|
"name": "@ikenga/contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Shared contract for the Ikenga pkg system: manifest schema, RPC types, Engine interface, capability scopes.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/ikenga-hq/ikenga-contract.git"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"main": "./dist/index.js",
|
|
@@ -67,6 +67,10 @@
|
|
|
67
67
|
"./host-context": {
|
|
68
68
|
"types": "./dist/host-context.d.ts",
|
|
69
69
|
"import": "./dist/host-context.js"
|
|
70
|
+
},
|
|
71
|
+
"./app-bridge": {
|
|
72
|
+
"types": "./dist/app-bridge.d.ts",
|
|
73
|
+
"import": "./dist/app-bridge.js"
|
|
70
74
|
}
|
|
71
75
|
},
|
|
72
76
|
"files": [
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Atelier skill *action*'s YAML frontmatter (the block between the leading
|
|
3
3
|
// `---` fences of an `actions/*.md` file).
|
|
4
4
|
//
|
|
5
|
-
// The Rust loader in `
|
|
5
|
+
// The Rust loader in `ikenga-hq/ikenga` at
|
|
6
6
|
// `src-tauri/src/pkg/skill_actions.rs` mirrors this schema. Field changes MUST
|
|
7
7
|
// be made in lockstep with that Rust struct — same convention as
|
|
8
8
|
// manifest.ts ↔ manifest.rs.
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
// `repo.changed` — the push a pkg's long-lived MCP server emits so its iframe
|
|
2
|
+
// learns that a git repo moved on disk, without polling.
|
|
3
|
+
//
|
|
4
|
+
// ─── Why this file is about an MCP notification, not a sidecar event ───────
|
|
5
|
+
//
|
|
6
|
+
// An earlier draft of this module described a `host-sidecar-event` push fed by
|
|
7
|
+
// `manifest.sidecars[]`. That path does not exist. Verified in shell source:
|
|
8
|
+
//
|
|
9
|
+
// • `manifest.sidecars[]` entries are NOT supervised — `src-tauri/src/pkg/
|
|
10
|
+
// registries/sidecars.rs` only resolves their binary paths.
|
|
11
|
+
// • `host.pkgSidecarCall` → `pkg_sidecar_call` spawns a FRESH process per
|
|
12
|
+
// call; it is one-shot request/response, with no stdout event stream.
|
|
13
|
+
// • The `pkg://sidecar/{pkgId}/{name}/message` Tauri event is emitted only
|
|
14
|
+
// by the lazy-spawn `pkg_sidecar_rpc_send` path, which no `host.*` verb
|
|
15
|
+
// reaches — so nothing an iframe can call ever produces one.
|
|
16
|
+
// • The only supervised long-lived child is a `manifest.mcp[]` entry with
|
|
17
|
+
// `lifecycle: "long-lived"` (`src-tauri/src/pkg/lifecycle.rs`).
|
|
18
|
+
//
|
|
19
|
+
// So the real push channel is the MCP notification relay that already ships:
|
|
20
|
+
//
|
|
21
|
+
// pkg MCP server shell (Rust) pkg iframe
|
|
22
|
+
// ────────────── ──────────── ──────────
|
|
23
|
+
// server.sendLoggingMessage( read loop matches AppBridge
|
|
24
|
+
// { level, logger, → `notifications/message` → notification
|
|
25
|
+
// data: <envelope> }) (lifecycle.rs:160), rate- handler for
|
|
26
|
+
// caps, emits the Tauri LoggingMessage-
|
|
27
|
+
// event `pkg-mcp-notification` Notification
|
|
28
|
+
// `{pkg_id, method, params}`
|
|
29
|
+
// (lifecycle.rs:154, ~1440-1460)
|
|
30
|
+
// ↓
|
|
31
|
+
// `shell/src/components/pkg/pkg-iframe-host.tsx`
|
|
32
|
+
// Step 3b filters on `pkg_id` and forwards
|
|
33
|
+
// `{method, params}` VERBATIM onto the bridge.
|
|
34
|
+
//
|
|
35
|
+
// The relayed top-level `method` is therefore always the literal string
|
|
36
|
+
// `notifications/message` — never `repo.changed`. The MCP spec's logging
|
|
37
|
+
// params are `{ level, logger, data }`, and `data` is free-form, so the pkg's
|
|
38
|
+
// own routing discriminant has to live inside `data`. `com.ikenga.git` puts a
|
|
39
|
+
// JSON-RPC-shaped envelope there:
|
|
40
|
+
//
|
|
41
|
+
// { level: 'info', logger: 'git-mcp/watcher',
|
|
42
|
+
// data: { method: 'repo.changed',
|
|
43
|
+
// params: { repo, seq, coalesced, at } } }
|
|
44
|
+
//
|
|
45
|
+
// (Same convention Studio already uses for its render events — see
|
|
46
|
+
// `ikenga-pkgs/packages/apps/studio/mcp/src/index.ts` `sendLoggingMessage` and
|
|
47
|
+
// the demux in `studio/src/studio/bridge.ts`.)
|
|
48
|
+
//
|
|
49
|
+
// This module types that envelope and gives the iframe a guard that accepts
|
|
50
|
+
// either the whole relayed frame or a bare `data` envelope, so a consumer
|
|
51
|
+
// doesn't have to hand-write the `params.data.method` reach.
|
|
52
|
+
|
|
53
|
+
import { z } from 'zod';
|
|
54
|
+
|
|
55
|
+
/** The `method` discriminant carried inside the logging frame's `data`. */
|
|
56
|
+
export const REPO_CHANGED_METHOD = 'repo.changed' as const;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Per-pkg relay budget enforced by the Rust supervisor's MCP read loop.
|
|
60
|
+
*
|
|
61
|
+
* Mirrors `MCP_NOTIFICATION_MAX_PER_SEC` in
|
|
62
|
+
* `shell/src-tauri/src/pkg/lifecycle.rs:166` — this is a re-declaration for
|
|
63
|
+
* pkg authors, NOT a second enforcement point. The shell drops (never queues)
|
|
64
|
+
* frames past the cap, so an over-cap burst loses the middle of the run, not
|
|
65
|
+
* the tail.
|
|
66
|
+
*
|
|
67
|
+
* The window is **TUMBLING, not rolling**: the loop resets `window_start` to
|
|
68
|
+
* `now` and zeroes the counter the first time a frame arrives ≥1s after the
|
|
69
|
+
* window opened (`lifecycle.rs:~1427-1439`). A burst can therefore straddle
|
|
70
|
+
* two windows and land up to 2× this many frames inside one arbitrary
|
|
71
|
+
* one-second span — that is expected, not a leak.
|
|
72
|
+
*
|
|
73
|
+
* Practical consequence for a watcher: coalesce ruthlessly before sending.
|
|
74
|
+
* `repo.changed` carries `coalesced` precisely so one frame can stand for many
|
|
75
|
+
* filesystem events.
|
|
76
|
+
*/
|
|
77
|
+
export const HOST_NOTIFICATION_MAX_PER_SEC = 20;
|
|
78
|
+
|
|
79
|
+
/** Zod schema for the `repo.changed` payload. */
|
|
80
|
+
export const RepoChangedParamsSchema = z.object({
|
|
81
|
+
/** Absolute path to the repo's toplevel (the `git rev-parse --show-toplevel`
|
|
82
|
+
* value), which is the same key the pkg's RPC surface uses for `repo`. */
|
|
83
|
+
repo: z.string().min(1),
|
|
84
|
+
/** Monotonic per-repo sequence, starting at 1, incremented once per emitted
|
|
85
|
+
* frame. Lets a consumer detect frames the relay's rate cap dropped: a gap
|
|
86
|
+
* means "you missed something, re-read the snapshot". */
|
|
87
|
+
seq: z.number().int().nonnegative(),
|
|
88
|
+
/** How many raw filesystem events this frame stands for (≥1). A large value
|
|
89
|
+
* is normal during a rebase or a branch switch. */
|
|
90
|
+
coalesced: z.number().int().positive(),
|
|
91
|
+
/** `Date.now()` at emit time, in the MCP server's process. */
|
|
92
|
+
at: z.number().int().nonnegative(),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/** The `repo.changed` payload — what a consumer actually wants. */
|
|
96
|
+
export type RepoChangedParams = z.infer<typeof RepoChangedParamsSchema>;
|
|
97
|
+
|
|
98
|
+
/** The JSON-RPC-shaped envelope the pkg's MCP server places in the logging
|
|
99
|
+
* frame's `data` field. */
|
|
100
|
+
export interface RepoChangedEnvelope {
|
|
101
|
+
method: typeof REPO_CHANGED_METHOD;
|
|
102
|
+
params: RepoChangedParams;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** Zod schema for that envelope. */
|
|
106
|
+
export const RepoChangedEnvelopeSchema = z.object({
|
|
107
|
+
method: z.literal(REPO_CHANGED_METHOD),
|
|
108
|
+
params: RepoChangedParamsSchema,
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Pull the `repo.changed` params out of anything the iframe might hand us,
|
|
113
|
+
* or return `null` if this isn't a `repo.changed` frame.
|
|
114
|
+
*
|
|
115
|
+
* Accepts three shapes, so a caller can pass whatever their notification
|
|
116
|
+
* handler gave them without unwrapping first:
|
|
117
|
+
*
|
|
118
|
+
* 1. the full relayed frame — `{ method: 'notifications/message',
|
|
119
|
+
* params: { level, logger, data: <envelope> } }`
|
|
120
|
+
* 2. the logging params alone — `{ level, logger, data: <envelope> }`
|
|
121
|
+
* (this is what `setNotificationHandler(LoggingMessageNotificationSchema,
|
|
122
|
+
* n => …)` hands you as `n.params`)
|
|
123
|
+
* 3. the bare envelope — `{ method: 'repo.changed', params: {…} }`
|
|
124
|
+
*
|
|
125
|
+
* Returns `null` for anything else, including a well-formed logging frame for
|
|
126
|
+
* a different topic. Never throws.
|
|
127
|
+
*/
|
|
128
|
+
export function readRepoChangedParams(value: unknown): RepoChangedParams | null {
|
|
129
|
+
if (typeof value !== 'object' || value === null) return null;
|
|
130
|
+
const v = value as Record<string, unknown>;
|
|
131
|
+
|
|
132
|
+
// Shape 3 — bare envelope.
|
|
133
|
+
const bare = RepoChangedEnvelopeSchema.safeParse(v);
|
|
134
|
+
if (bare.success) return bare.data.params;
|
|
135
|
+
|
|
136
|
+
// Shape 1 — full frame: descend into `params` and retry as shape 2.
|
|
137
|
+
if (v.method === 'notifications/message') {
|
|
138
|
+
return readRepoChangedParams(v.params);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Shape 2 — logging params: the envelope is in `data`.
|
|
142
|
+
if ('data' in v) {
|
|
143
|
+
const inner = RepoChangedEnvelopeSchema.safeParse(v.data);
|
|
144
|
+
if (inner.success) return inner.data.params;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Type guard over the same three shapes `readRepoChangedParams` accepts.
|
|
152
|
+
* Narrows only to "this carries a valid `repo.changed`" — call
|
|
153
|
+
* `readRepoChangedParams` to get the payload, since the guard cannot narrow
|
|
154
|
+
* through the outer wrapper.
|
|
155
|
+
*/
|
|
156
|
+
export function isRepoChangedNotification(value: unknown): boolean {
|
|
157
|
+
return readRepoChangedParams(value) !== null;
|
|
158
|
+
}
|
package/src/engine/adapter.ts
CHANGED
|
@@ -60,7 +60,7 @@ export interface McpServerSpec {
|
|
|
60
60
|
/**
|
|
61
61
|
* Capability flags every engine adapter advertises. This is the canonical
|
|
62
62
|
* shape consumed by both the shell-side ChatAdapter layer and any pkg that
|
|
63
|
-
* needs to reason about adapter features (wizard, settings UI,
|
|
63
|
+
* needs to reason about adapter features (wizard, settings UI, sidecar health).
|
|
64
64
|
*
|
|
65
65
|
* Fields are intentionally a *superset* of what any single adapter
|
|
66
66
|
* supports — an adapter sets the ones it implements to `true` and the
|
package/src/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './pa-actions.js';
|
|
|
11
11
|
export * from './window.js';
|
|
12
12
|
export * from './action-frontmatter.js';
|
|
13
13
|
export * from './host-context.js';
|
|
14
|
+
export * from './app-bridge.js';
|
|
14
15
|
|
|
15
16
|
/** This package's own version. */
|
|
16
17
|
export const CONTRACT_PACKAGE_VERSION = '0.5.0' as const;
|
package/src/manifest.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Ikenga pkg manifest schema — mirrors the Rust schema in
|
|
2
|
-
// `
|
|
2
|
+
// `ikenga-hq/ikenga` at `src-tauri/src/pkg/manifest.rs`.
|
|
3
3
|
//
|
|
4
4
|
// Source of truth is the Rust struct. This zod schema is used by the CLI,
|
|
5
5
|
// registry, and tooling for client-side parse + validation. Field changes
|
|
@@ -127,6 +127,7 @@ export const SettingsFieldSchema = z.object({
|
|
|
127
127
|
label: z.string(),
|
|
128
128
|
default: z.unknown().optional(),
|
|
129
129
|
description: z.string().optional(),
|
|
130
|
+
env: z.string().optional(),
|
|
130
131
|
});
|
|
131
132
|
export const SettingsBlockSchema = z.object({
|
|
132
133
|
schema: z.array(SettingsFieldSchema).default([]),
|
package/src/registry.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Ikenga registry schema — the static JSON catalog served by
|
|
2
|
-
// `
|
|
2
|
+
// `ikenga-hq/ikenga-registry` over GitHub Pages.
|
|
3
3
|
//
|
|
4
4
|
// Shape: a small root `index.json` lists every pkg with its latest version
|
|
5
5
|
// and a pointer to a per-pkg detail file (`pkgs/<short-name>.json`).
|
package/src/window.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Multi-window contract — mirrors the Rust source-of-truth in
|
|
2
|
-
// `
|
|
2
|
+
// `ikenga-hq/ikenga` at `src-tauri/src/window/{descriptor,events}.rs`.
|
|
3
3
|
//
|
|
4
4
|
// This is the `G-WINDOW-MODEL` freeze-gate output (plans/multi-window WP-02).
|
|
5
5
|
// It has TWO co-equal halves: the `WindowDescriptor` (what a window IS) and the
|