@ikenga/contract 0.12.0 → 0.14.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/dist/action-frontmatter.d.ts +389 -0
- package/dist/action-frontmatter.d.ts.map +1 -0
- package/dist/action-frontmatter.js +215 -0
- package/dist/action-frontmatter.js.map +1 -0
- package/dist/artifact.d.ts +110 -110
- package/dist/browser.d.ts +2 -2
- package/dist/engine/adapter.d.ts +6 -6
- package/dist/host-context.d.ts +42 -0
- package/dist/host-context.d.ts.map +1 -0
- package/dist/host-context.js +22 -0
- package/dist/host-context.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +175 -150
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +5 -0
- package/dist/manifest.js.map +1 -1
- package/dist/registry.d.ts +301 -285
- package/dist/registry.d.ts.map +1 -1
- package/dist/window.d.ts +8 -8
- package/package.json +11 -2
- package/src/action-frontmatter.test.ts +219 -0
- package/src/action-frontmatter.ts +250 -0
- package/src/host-context.test.ts +24 -0
- package/src/host-context.ts +39 -0
- package/src/index.ts +2 -0
- package/src/manifest.ts +5 -0
package/dist/browser.d.ts
CHANGED
|
@@ -531,13 +531,13 @@ export declare const BrowserWaitForInputSchema: z.ZodObject<{
|
|
|
531
531
|
/** Default 10_000ms; clamped to [100, 60_000] by the server. */
|
|
532
532
|
timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
533
533
|
}, "strip", z.ZodTypeAny, {
|
|
534
|
-
id: string & z.BRAND<"BrowserPaneId">;
|
|
535
534
|
kind: "url" | "ref" | "text" | "selector" | "gone-text" | "gone-selector" | "idle";
|
|
535
|
+
id: string & z.BRAND<"BrowserPaneId">;
|
|
536
536
|
value?: string | undefined;
|
|
537
537
|
timeout_ms?: number | undefined;
|
|
538
538
|
}, {
|
|
539
|
-
id: string;
|
|
540
539
|
kind: "url" | "ref" | "text" | "selector" | "gone-text" | "gone-selector" | "idle";
|
|
540
|
+
id: string;
|
|
541
541
|
value?: string | undefined;
|
|
542
542
|
timeout_ms?: number | undefined;
|
|
543
543
|
}>;
|
package/dist/engine/adapter.d.ts
CHANGED
|
@@ -105,8 +105,8 @@ export declare const AgentCapabilitiesSchema: z.ZodObject<{
|
|
|
105
105
|
/** Can resume a prior session by id. */
|
|
106
106
|
sessionResume: z.ZodBoolean;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
mcp: boolean;
|
|
109
108
|
streaming: boolean;
|
|
109
|
+
mcp: boolean;
|
|
110
110
|
toolUse: boolean;
|
|
111
111
|
thinking: boolean;
|
|
112
112
|
artifacts: boolean;
|
|
@@ -118,8 +118,8 @@ export declare const AgentCapabilitiesSchema: z.ZodObject<{
|
|
|
118
118
|
agenticTools: boolean;
|
|
119
119
|
sessionResume: boolean;
|
|
120
120
|
}, {
|
|
121
|
-
mcp: boolean;
|
|
122
121
|
streaming: boolean;
|
|
122
|
+
mcp: boolean;
|
|
123
123
|
toolUse: boolean;
|
|
124
124
|
thinking: boolean;
|
|
125
125
|
artifacts: boolean;
|
|
@@ -202,8 +202,8 @@ export declare const EngineProvidesSchema: z.ZodObject<{
|
|
|
202
202
|
/** Can resume a prior session by id. */
|
|
203
203
|
sessionResume: z.ZodBoolean;
|
|
204
204
|
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
mcp: boolean;
|
|
206
205
|
streaming: boolean;
|
|
206
|
+
mcp: boolean;
|
|
207
207
|
toolUse: boolean;
|
|
208
208
|
thinking: boolean;
|
|
209
209
|
artifacts: boolean;
|
|
@@ -215,8 +215,8 @@ export declare const EngineProvidesSchema: z.ZodObject<{
|
|
|
215
215
|
agenticTools: boolean;
|
|
216
216
|
sessionResume: boolean;
|
|
217
217
|
}, {
|
|
218
|
-
mcp: boolean;
|
|
219
218
|
streaming: boolean;
|
|
219
|
+
mcp: boolean;
|
|
220
220
|
toolUse: boolean;
|
|
221
221
|
thinking: boolean;
|
|
222
222
|
artifacts: boolean;
|
|
@@ -254,8 +254,8 @@ export declare const EngineProvidesSchema: z.ZodObject<{
|
|
|
254
254
|
}>>;
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
256
|
capabilities: {
|
|
257
|
-
mcp: boolean;
|
|
258
257
|
streaming: boolean;
|
|
258
|
+
mcp: boolean;
|
|
259
259
|
toolUse: boolean;
|
|
260
260
|
thinking: boolean;
|
|
261
261
|
artifacts: boolean;
|
|
@@ -277,8 +277,8 @@ export declare const EngineProvidesSchema: z.ZodObject<{
|
|
|
277
277
|
display?: string | undefined;
|
|
278
278
|
}, {
|
|
279
279
|
capabilities: {
|
|
280
|
-
mcp: boolean;
|
|
281
280
|
streaming: boolean;
|
|
281
|
+
mcp: boolean;
|
|
282
282
|
toolUse: boolean;
|
|
283
283
|
thinking: boolean;
|
|
284
284
|
artifacts: boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Identity of the human operating the shell, injected into `hostContext` at
|
|
4
|
+
* the AppBridge handshake (`buildHostContext()` in
|
|
5
|
+
* `shell/src/lib/pkg/host-context.ts`, cast in alongside `royaltiSuite` /
|
|
6
|
+
* `supabase` / `secrets`). Host-injected, not pkg-declared — there is no
|
|
7
|
+
* manifest capability gate for it.
|
|
8
|
+
*
|
|
9
|
+
* Currently sourced from the free-text onboarding `userName` (shell store),
|
|
10
|
+
* falling back to the OS username when unset. Treat `id` as a stable
|
|
11
|
+
* display label, NOT a durable account id or an auth subject.
|
|
12
|
+
*/
|
|
13
|
+
export declare const OperatorIdentitySchema: z.ZodObject<{
|
|
14
|
+
/** Stable-enough identifier for the operator (today: `userName` or an
|
|
15
|
+
* OS-username fallback). Not an auth subject. */
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
/** Human-friendly label, when it differs from `id`. */
|
|
18
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, "strict", z.ZodTypeAny, {
|
|
20
|
+
id: string;
|
|
21
|
+
displayName?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
id: string;
|
|
24
|
+
displayName?: string | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export type OperatorIdentity = z.infer<typeof OperatorIdentitySchema>;
|
|
27
|
+
/**
|
|
28
|
+
* hostContext fields Ikenga casts onto the MCP-UI-Apps `McpUiHostContext`
|
|
29
|
+
* base type (imported from `@modelcontextprotocol/ext-apps/app-bridge` —
|
|
30
|
+
* this package does not redefine that base type, only the Ikenga-specific
|
|
31
|
+
* extensions layered onto it).
|
|
32
|
+
*
|
|
33
|
+
* `operator` is OPTIONAL: older shells and the initial handshake before the
|
|
34
|
+
* onboarding step has run won't send it. A consumer MUST treat an absent
|
|
35
|
+
* `operator` as an UNKNOWN operator and fail SAFE — e.g. use a confirming
|
|
36
|
+
* `ux_mode` ('confirm') rather than auto-approving an operator-scoped
|
|
37
|
+
* action — never assume a default identity.
|
|
38
|
+
*/
|
|
39
|
+
export interface IkengaHostContextExtensions {
|
|
40
|
+
operator?: OperatorIdentity;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=host-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-context.d.ts","sourceRoot":"","sources":["../src/host-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB;IAE/B;sDACkD;;IAElD,uDAAuD;;;;;;;;EAGhD,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,EAAE,gBAAgB,CAAC;CAC7B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Identity of the human operating the shell, injected into `hostContext` at
|
|
4
|
+
* the AppBridge handshake (`buildHostContext()` in
|
|
5
|
+
* `shell/src/lib/pkg/host-context.ts`, cast in alongside `royaltiSuite` /
|
|
6
|
+
* `supabase` / `secrets`). Host-injected, not pkg-declared — there is no
|
|
7
|
+
* manifest capability gate for it.
|
|
8
|
+
*
|
|
9
|
+
* Currently sourced from the free-text onboarding `userName` (shell store),
|
|
10
|
+
* falling back to the OS username when unset. Treat `id` as a stable
|
|
11
|
+
* display label, NOT a durable account id or an auth subject.
|
|
12
|
+
*/
|
|
13
|
+
export const OperatorIdentitySchema = z
|
|
14
|
+
.object({
|
|
15
|
+
/** Stable-enough identifier for the operator (today: `userName` or an
|
|
16
|
+
* OS-username fallback). Not an auth subject. */
|
|
17
|
+
id: z.string(),
|
|
18
|
+
/** Human-friendly label, when it differs from `id`. */
|
|
19
|
+
displayName: z.string().optional(),
|
|
20
|
+
})
|
|
21
|
+
.strict();
|
|
22
|
+
//# sourceMappingURL=host-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-context.js","sourceRoot":"","sources":["../src/host-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC;KACpC,MAAM,CAAC;IACN;sDACkD;IAClD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,uDAAuD;IACvD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './registry.js';
|
|
|
9
9
|
export * from './browser.js';
|
|
10
10
|
export * from './pa-actions.js';
|
|
11
11
|
export * from './window.js';
|
|
12
|
+
export * from './action-frontmatter.js';
|
|
13
|
+
export * from './host-context.js';
|
|
12
14
|
/** This package's own version. */
|
|
13
15
|
export declare const CONTRACT_PACKAGE_VERSION: "0.5.0";
|
|
14
16
|
//# 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;
|
|
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;AAElC,kCAAkC;AAClC,eAAO,MAAM,wBAAwB,EAAG,OAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,8 @@ export * from './registry.js';
|
|
|
9
9
|
export * from './browser.js';
|
|
10
10
|
export * from './pa-actions.js';
|
|
11
11
|
export * from './window.js';
|
|
12
|
+
export * from './action-frontmatter.js';
|
|
13
|
+
export * from './host-context.js';
|
|
12
14
|
/** This package's own version. */
|
|
13
15
|
export const CONTRACT_PACKAGE_VERSION = '0.5.0';
|
|
14
16
|
//# 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;
|
|
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;AAElC,kCAAkC;AAClC,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAgB,CAAC"}
|