@yaklabs-ai/plugin-protocol 0.55.4 → 0.55.6
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 +1 -1
- package/THIRD-PARTY-INVENTORY.json +1 -1
- package/dist/index.d.ts +121 -2
- package/dist/index.js +437 -363
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -4138,6 +4138,9 @@ export declare function isKayPluginCompatibilityRefusal(code: string): code is K
|
|
|
4138
4138
|
/** Whether `name` can name a declared event: the shape above, and not the journal's own family. */
|
|
4139
4139
|
export declare function isPluginProductEventName(name: string): boolean;
|
|
4140
4140
|
|
|
4141
|
+
/** Whether a custom entry type is a plugin state entry's. */
|
|
4142
|
+
export declare function isPluginStateEntryCustomType(customType: string): boolean;
|
|
4143
|
+
|
|
4141
4144
|
/** Whether only plugins the release carries may hold `claim` ({@link PRIVATE_PLUGIN_CAPABILITY_SLUGS}). */
|
|
4142
4145
|
export declare function isPrivateCapabilityClaim(claim: PluginCapabilityClaimV1): boolean;
|
|
4143
4146
|
|
|
@@ -4968,8 +4971,19 @@ export declare const KAY_PLUGIN_PROTOCOL_VERSION: "kay.plugin.v1";
|
|
|
4968
4971
|
* of the installed, enabled plugins, with the plugin's id and display name and whether the person
|
|
4969
4972
|
* has connected it. No account, identity or scope. Built-ins hold the claim; any other plugin needs
|
|
4970
4973
|
* a grant. Additive; plugins calling it declare ^0.55.4.
|
|
4974
|
+
*
|
|
4975
|
+
* 0.55.5 adds `app.sessions.readState()` and `writeState()` under the new `sessions.state` claim:
|
|
4976
|
+
* a plugin keeps its own state entries in a session's transcript, stored as `plugin-state:<pluginId>:<name>`,
|
|
4977
|
+
* and each write names the newest entry it was computed from, so a write from a stale base is
|
|
4978
|
+
* answered with the newest one instead of landing (compaction plan, phase 2). Additive; plugins
|
|
4979
|
+
* calling them declare ^0.55.5.
|
|
4980
|
+
*
|
|
4981
|
+
* 0.55.6 adds the `contributes.resetText { entry }` manifest field under the new private
|
|
4982
|
+
* `compaction.reset-text` claim, and the `ResetTextEntry` shape the declared state entry holds: the
|
|
4983
|
+
* working state a reset may use in place of the summary (compaction plan, phase 2). Additive; a
|
|
4984
|
+
* plugin declaring it declares ^0.55.6.
|
|
4971
4985
|
*/
|
|
4972
|
-
export declare const KAY_PLUGIN_SDK_VERSION: "0.55.
|
|
4986
|
+
export declare const KAY_PLUGIN_SDK_VERSION: "0.55.6";
|
|
4973
4987
|
|
|
4974
4988
|
export declare const KAY_PLUGIN_TARGET_NAMES: readonly ["kay.agent", "kay.app", "kay.ui"];
|
|
4975
4989
|
|
|
@@ -5816,6 +5830,9 @@ export declare const KayAppTargetManifest: z.ZodObject<{
|
|
|
5816
5830
|
displayName: z.ZodOptional<z.ZodString>;
|
|
5817
5831
|
description: z.ZodOptional<z.ZodString>;
|
|
5818
5832
|
}, z.core.$strict>>>;
|
|
5833
|
+
resetText: z.ZodOptional<z.ZodObject<{
|
|
5834
|
+
entry: z.ZodString;
|
|
5835
|
+
}, z.core.$strict>>;
|
|
5819
5836
|
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5820
5837
|
url: z.ZodString;
|
|
5821
5838
|
auth: z.ZodOptional<z.ZodEnum<{
|
|
@@ -6785,6 +6802,9 @@ export declare const KayPluginManifestV1: z.ZodObject<{
|
|
|
6785
6802
|
displayName: z.ZodOptional<z.ZodString>;
|
|
6786
6803
|
description: z.ZodOptional<z.ZodString>;
|
|
6787
6804
|
}, z.core.$strict>>>;
|
|
6805
|
+
resetText: z.ZodOptional<z.ZodObject<{
|
|
6806
|
+
entry: z.ZodString;
|
|
6807
|
+
}, z.core.$strict>>;
|
|
6788
6808
|
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6789
6809
|
url: z.ZodString;
|
|
6790
6810
|
auth: z.ZodOptional<z.ZodEnum<{
|
|
@@ -8791,7 +8811,7 @@ export declare function parseSemver(value: string): ParsedSemver | undefined;
|
|
|
8791
8811
|
export declare function parseWhere(source: string, keyTypes?: WhereKeyTypes): WhereParseResult;
|
|
8792
8812
|
|
|
8793
8813
|
/** Every capability slug {@link PluginCapabilityClaimV1} can express, for exhaustive table checks. */
|
|
8794
|
-
export declare const PLUGIN_CAPABILITY_SLUGS: readonly ["sessions.run", "network.connect", "web-session.request", "web-session.download", "process.spawn", "sessions.read", "signals.read", "uri.call", "endpoints.invoke", "skills.read", "skills.write", "skills.share", "plugins.set-enabled", "plugins.read", "sessions.assign-project", "artifacts.resolve-file", "process.run", "sessions.annotate", "sessions.compact", "soul.write", "tools.describe", "workspace.command", "sessions.create", "sessions.update", "models.complete", "systemOne.use", "automations.write", "automations.run", "workflows.define", "workflows.signals", "session-events.subscribe", "agents.run", "dynamic-context.register", "app-data.register", "app-data.read", "knowledge-source.register", "artifacts.read", "session-artifacts.read", "session-artifacts.create", "account.assert", "account.update", "agents.permissions", "tool-interception.register", "interaction.surface", "config.declare-section", "auth.own-service", "auth.shared-identity", "cli.bind", "mcp.host-server", "prompt.resident", "skills.declared-source", "family-folder.root", "whiteboard.discover", "whiteboard.read", "whiteboard.create", "whiteboard.update", "whiteboard.remove", "model-selection.register", "system-prompt.register"];
|
|
8814
|
+
export declare const PLUGIN_CAPABILITY_SLUGS: readonly ["sessions.run", "network.connect", "web-session.request", "web-session.download", "process.spawn", "sessions.read", "signals.read", "uri.call", "endpoints.invoke", "skills.read", "skills.write", "skills.share", "plugins.set-enabled", "plugins.read", "sessions.assign-project", "artifacts.resolve-file", "process.run", "sessions.annotate", "sessions.compact", "sessions.state", "compaction.reset-text", "soul.write", "tools.describe", "workspace.command", "sessions.create", "sessions.update", "models.complete", "systemOne.use", "automations.write", "automations.run", "workflows.define", "workflows.signals", "session-events.subscribe", "agents.run", "dynamic-context.register", "app-data.register", "app-data.read", "knowledge-source.register", "artifacts.read", "session-artifacts.read", "session-artifacts.create", "account.assert", "account.update", "agents.permissions", "tool-interception.register", "interaction.surface", "config.declare-section", "auth.own-service", "auth.shared-identity", "cli.bind", "mcp.host-server", "prompt.resident", "skills.declared-source", "family-folder.root", "whiteboard.discover", "whiteboard.read", "whiteboard.create", "whiteboard.update", "whiteboard.remove", "model-selection.register", "system-prompt.register"];
|
|
8795
8815
|
|
|
8796
8816
|
/** Diagnostic messages carry plugin-controlled text (parse errors, module errors); bound it so a
|
|
8797
8817
|
* hostile or accidental multi-megabyte error can never blow up a log line or a render surface. */
|
|
@@ -8846,6 +8866,25 @@ export declare const PLUGIN_SIGNAL_SNIPPET_MAX = 500;
|
|
|
8846
8866
|
|
|
8847
8867
|
export declare const PLUGIN_SIGNAL_TITLE_MAX = 300;
|
|
8848
8868
|
|
|
8869
|
+
/**
|
|
8870
|
+
* The most one entry may hold, as serialized UTF-8 JSON: 256 KiB, a quarter of what one
|
|
8871
|
+
* `session/readCustomEntries` read returns, so the newest entry is always read back whole.
|
|
8872
|
+
*/
|
|
8873
|
+
export declare const PLUGIN_STATE_ENTRY_MAX_BYTES: number;
|
|
8874
|
+
|
|
8875
|
+
/** The deepest nesting of arrays and objects one entry may hold. */
|
|
8876
|
+
export declare const PLUGIN_STATE_ENTRY_MAX_DEPTH = 64;
|
|
8877
|
+
|
|
8878
|
+
/** A plugin's own entry name: a local contribution id (lowercase letters, digits, dashes), at most 64 characters. */
|
|
8879
|
+
export declare const PLUGIN_STATE_ENTRY_NAME_PATTERN: RegExp;
|
|
8880
|
+
|
|
8881
|
+
/**
|
|
8882
|
+
* The prefix of every plugin state entry's custom type. Its own namespace, apart from herd's
|
|
8883
|
+
* `ext:<extensionId>:` for an extension's own entries, so the host can tell a plugin's state
|
|
8884
|
+
* from every other entry: it is no activity, and a snapshot carries only its newest entry.
|
|
8885
|
+
*/
|
|
8886
|
+
export declare const PLUGIN_STATE_ENTRY_TYPE_PREFIX = "plugin-state:";
|
|
8887
|
+
|
|
8849
8888
|
export declare const PluginAgentDefinitionPermissionRule: z.ZodObject<{
|
|
8850
8889
|
effect: z.ZodEnum<{
|
|
8851
8890
|
allow: "allow";
|
|
@@ -9529,6 +9568,14 @@ export declare const PluginCapabilityClaimInputV1: z.ZodCustom<{
|
|
|
9529
9568
|
target: "kay.app";
|
|
9530
9569
|
slug: "sessions.compact";
|
|
9531
9570
|
envelope: Record<string, never>;
|
|
9571
|
+
} | {
|
|
9572
|
+
target: "kay.app";
|
|
9573
|
+
slug: "sessions.state";
|
|
9574
|
+
envelope: Record<string, never>;
|
|
9575
|
+
} | {
|
|
9576
|
+
target: "kay.app";
|
|
9577
|
+
slug: "compaction.reset-text";
|
|
9578
|
+
envelope: Record<string, never>;
|
|
9532
9579
|
} | {
|
|
9533
9580
|
target: "kay.app";
|
|
9534
9581
|
slug: "soul.write";
|
|
@@ -9823,6 +9870,14 @@ export declare const PluginCapabilityClaimInputV1: z.ZodCustom<{
|
|
|
9823
9870
|
target: "kay.app";
|
|
9824
9871
|
slug: "sessions.compact";
|
|
9825
9872
|
envelope: Record<string, never>;
|
|
9873
|
+
} | {
|
|
9874
|
+
target: "kay.app";
|
|
9875
|
+
slug: "sessions.state";
|
|
9876
|
+
envelope: Record<string, never>;
|
|
9877
|
+
} | {
|
|
9878
|
+
target: "kay.app";
|
|
9879
|
+
slug: "compaction.reset-text";
|
|
9880
|
+
envelope: Record<string, never>;
|
|
9826
9881
|
} | {
|
|
9827
9882
|
target: "kay.app";
|
|
9828
9883
|
slug: "soul.write";
|
|
@@ -10127,6 +10182,14 @@ export declare const PluginCapabilityClaimV1: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
10127
10182
|
target: z.ZodLiteral<"kay.app">;
|
|
10128
10183
|
slug: z.ZodLiteral<"sessions.compact">;
|
|
10129
10184
|
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
10185
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10186
|
+
target: z.ZodLiteral<"kay.app">;
|
|
10187
|
+
slug: z.ZodLiteral<"sessions.state">;
|
|
10188
|
+
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
10189
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10190
|
+
target: z.ZodLiteral<"kay.app">;
|
|
10191
|
+
slug: z.ZodLiteral<"compaction.reset-text">;
|
|
10192
|
+
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
10130
10193
|
}, z.core.$strict>, z.ZodObject<{
|
|
10131
10194
|
target: z.ZodLiteral<"kay.app">;
|
|
10132
10195
|
slug: z.ZodLiteral<"soul.write">;
|
|
@@ -10477,6 +10540,14 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
10477
10540
|
target: z.ZodLiteral<"kay.app">;
|
|
10478
10541
|
slug: z.ZodLiteral<"sessions.compact">;
|
|
10479
10542
|
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
10543
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10544
|
+
target: z.ZodLiteral<"kay.app">;
|
|
10545
|
+
slug: z.ZodLiteral<"sessions.state">;
|
|
10546
|
+
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
10547
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10548
|
+
target: z.ZodLiteral<"kay.app">;
|
|
10549
|
+
slug: z.ZodLiteral<"compaction.reset-text">;
|
|
10550
|
+
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
10480
10551
|
}, z.core.$strict>, z.ZodObject<{
|
|
10481
10552
|
target: z.ZodLiteral<"kay.app">;
|
|
10482
10553
|
slug: z.ZodLiteral<"soul.write">;
|
|
@@ -10826,6 +10897,14 @@ export declare const PluginCapabilityDecisionV1: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
10826
10897
|
target: z.ZodLiteral<"kay.app">;
|
|
10827
10898
|
slug: z.ZodLiteral<"sessions.compact">;
|
|
10828
10899
|
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
10900
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10901
|
+
target: z.ZodLiteral<"kay.app">;
|
|
10902
|
+
slug: z.ZodLiteral<"sessions.state">;
|
|
10903
|
+
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
10904
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10905
|
+
target: z.ZodLiteral<"kay.app">;
|
|
10906
|
+
slug: z.ZodLiteral<"compaction.reset-text">;
|
|
10907
|
+
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
10829
10908
|
}, z.core.$strict>, z.ZodObject<{
|
|
10830
10909
|
target: z.ZodLiteral<"kay.app">;
|
|
10831
10910
|
slug: z.ZodLiteral<"soul.write">;
|
|
@@ -11209,6 +11288,14 @@ export declare const PluginCapabilityRefusalV1: z.ZodObject<{
|
|
|
11209
11288
|
target: z.ZodLiteral<"kay.app">;
|
|
11210
11289
|
slug: z.ZodLiteral<"sessions.compact">;
|
|
11211
11290
|
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
11291
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11292
|
+
target: z.ZodLiteral<"kay.app">;
|
|
11293
|
+
slug: z.ZodLiteral<"sessions.state">;
|
|
11294
|
+
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
11295
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11296
|
+
target: z.ZodLiteral<"kay.app">;
|
|
11297
|
+
slug: z.ZodLiteral<"compaction.reset-text">;
|
|
11298
|
+
envelope: z.ZodObject<{}, z.core.$strict>;
|
|
11212
11299
|
}, z.core.$strict>, z.ZodObject<{
|
|
11213
11300
|
target: z.ZodLiteral<"kay.app">;
|
|
11214
11301
|
slug: z.ZodLiteral<"soul.write">;
|
|
@@ -12695,6 +12782,14 @@ export declare const PluginSourceClass: z.ZodEnum<{
|
|
|
12695
12782
|
|
|
12696
12783
|
export declare type PluginSourceClass = z.infer<typeof PluginSourceClass>;
|
|
12697
12784
|
|
|
12785
|
+
/**
|
|
12786
|
+
* The custom entry type a plugin's entry `name` is stored under: `plugin-state:<pluginId>:<name>`.
|
|
12787
|
+
* A plugin id holds no `:`, and the name grammar holds no `.`, `:` or `_`, so no kernel or daemon
|
|
12788
|
+
* type (`herd.permission_rules`, `session_steward`, ...) and no other plugin's entry can be
|
|
12789
|
+
* reached. Returns `undefined` for a name outside the grammar.
|
|
12790
|
+
*/
|
|
12791
|
+
export declare function pluginStateEntryCustomType(pluginId: string, name: string): string | undefined;
|
|
12792
|
+
|
|
12698
12793
|
export declare const PluginStorageManifest: z.ZodObject<{
|
|
12699
12794
|
sqlite: z.ZodOptional<z.ZodObject<{
|
|
12700
12795
|
enabled: z.ZodBoolean;
|
|
@@ -13137,6 +13232,30 @@ export declare const RENAMED_PLUGIN_CAPABILITY_SLUGS: {
|
|
|
13137
13232
|
*/
|
|
13138
13233
|
export declare const RESERVED_DIRECTORY_PLUGIN_ID_PREFIXES: readonly ["herd.", "kay."];
|
|
13139
13234
|
|
|
13235
|
+
/**
|
|
13236
|
+
* The longest text an entry may hold, in characters: herd's 6,000 estimated tokens at its three
|
|
13237
|
+
* characters per token for ASCII. Herd also counts the tokens, so denser text is refused sooner.
|
|
13238
|
+
*/
|
|
13239
|
+
export declare const RESET_TEXT_MAX_CHARS = 18000;
|
|
13240
|
+
|
|
13241
|
+
/** The `contributes.resetText` declaration: which of the plugin's state entries holds it. */
|
|
13242
|
+
export declare const ResetTextContribution: z.ZodObject<{
|
|
13243
|
+
entry: z.ZodString;
|
|
13244
|
+
}, z.core.$strict>;
|
|
13245
|
+
|
|
13246
|
+
export declare type ResetTextContribution = z.infer<typeof ResetTextContribution>;
|
|
13247
|
+
|
|
13248
|
+
export declare const ResetTextEntry: z.ZodObject<{
|
|
13249
|
+
version: z.ZodLiteral<1>;
|
|
13250
|
+
coveredThrough: z.ZodObject<{
|
|
13251
|
+
sessionId: z.ZodString;
|
|
13252
|
+
entryId: z.ZodString;
|
|
13253
|
+
}, z.core.$strict>;
|
|
13254
|
+
text: z.ZodString;
|
|
13255
|
+
}, z.core.$strict>;
|
|
13256
|
+
|
|
13257
|
+
export declare type ResetTextEntry = z.infer<typeof ResetTextEntry>;
|
|
13258
|
+
|
|
13140
13259
|
/**
|
|
13141
13260
|
* Resolves the runtime selection key for a provider-shaped contribution - the
|
|
13142
13261
|
* value an *adapter binding* names to make one implementation live.
|