@datalayer/agent-runtimes 1.5.1 → 1.5.3
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-embed/chunks/{ChatView-Dc1x4aBR.js → ChatView-B3QqHhAP.js} +4 -4
- package/dist-embed/datalayer-app-main.js +3 -3
- package/lib/apps/core/index.d.ts +16 -0
- package/lib/apps/index.d.ts +1 -1
- package/lib/apps/plugins/chat/ChatView.js +13 -1
- package/lib/apps/shell/LoopWorkspace.d.ts +8 -1
- package/lib/apps/shell/LoopWorkspace.js +5 -3
- package/lib/chat/header/ChatHeaderBase.d.ts +3 -1
- package/lib/chat/header/ChatHeaderBase.js +2 -2
- package/lib/chat/header/ChatViewModeToggle.d.ts +7 -1
- package/lib/chat/header/ChatViewModeToggle.js +5 -2
- package/lib/examples/pap/PapTraceView.d.ts +2 -0
- package/lib/examples/pap/PapTraceView.js +3 -1
- package/lib/examples/pap/traces/account-tokens.json +88 -825
- package/lib/examples/pap/traces/conversation-control.json +45 -131
- package/lib/examples/pap/traces/conversation-streaming.json +27 -127
- package/lib/examples/pap/traces/mediated-sign-in.json +22 -122
- package/lib/examples/pap/traces/operations.json +65 -412
- package/lib/examples/pap/traces/two-companies.json +233 -720
- package/lib/examples/pap/traces/user-with-a-company.json +95 -532
- package/lib/protocols/agentProtocols.js +3 -1
- package/lib/protocols/pap/index.d.ts +4 -0
- package/lib/protocols/pap/index.js +41 -0
- package/package.json +2 -2
|
@@ -15,6 +15,7 @@ import { AgenticCommercePlugin } from './agentic-commerce';
|
|
|
15
15
|
import { ProtocolsCorePlugin } from './core';
|
|
16
16
|
import { McpPlugin } from './mcp';
|
|
17
17
|
import { PactPlugin } from './pact';
|
|
18
|
+
import { PapPlugin } from './pap';
|
|
18
19
|
import { UcpPlugin } from './ucp';
|
|
19
20
|
import { WebBotAuthPlugin } from './web-bot-auth';
|
|
20
21
|
export const AGENT_PROTOCOLS_EXTENSION = 'agent-protocols';
|
|
@@ -22,7 +23,7 @@ export const AgentProtocolsExtension = defineExtension({
|
|
|
22
23
|
name: AGENT_PROTOCOLS_EXTENSION,
|
|
23
24
|
version: '1.0.0',
|
|
24
25
|
displayName: 'Agent protocols',
|
|
25
|
-
description: 'MCP, A2A, Web Bot Auth, UCP, the Agentic Commerce Protocol and
|
|
26
|
+
description: 'MCP, A2A, Web Bot Auth, UCP, the Agentic Commerce Protocol, PACT and PAP, each a plugin; their extensions its contribution points.',
|
|
26
27
|
plugins: [
|
|
27
28
|
ProtocolsCorePlugin,
|
|
28
29
|
McpPlugin,
|
|
@@ -31,6 +32,7 @@ export const AgentProtocolsExtension = defineExtension({
|
|
|
31
32
|
UcpPlugin,
|
|
32
33
|
AgenticCommercePlugin,
|
|
33
34
|
PactPlugin,
|
|
35
|
+
PapPlugin,
|
|
34
36
|
],
|
|
35
37
|
});
|
|
36
38
|
/**
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const PAP_PLUGIN = "agent-runtimes.protocols.pap";
|
|
2
|
+
/** The PAP draft the SDK implements (its `PROTOCOL_PROFILE`; Python reads it from the SDK). */
|
|
3
|
+
export declare const PAP_PROTOCOL_PROFILE = "0.1";
|
|
4
|
+
export declare const PapPlugin: import("@datalayer/reactor").ReactorPlugin<Record<string, never>, unknown, unknown>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
|
+
* Distributed under the terms of the Modified BSD License.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* The Personal Agent Protocol as a Reactor Plugin of the `agent-protocols`
|
|
7
|
+
* Extension. PAP's own plugins and points (`pap.*`, `pap.company.*`) come
|
|
8
|
+
* with its SDK, registered on the PAP Reactor a personal agent or a company
|
|
9
|
+
* builds; this plugin says what a runtime implements of PAP on
|
|
10
|
+
* `protocols.description`. It declares no point here: the one the Python
|
|
11
|
+
* runtime adds, `pap.company.operationTickets`, is where a perform turn
|
|
12
|
+
* redeems its ticket, and a TypeScript runtime performs no company
|
|
13
|
+
* operation. The twin of `agent_runtimes.protocols.pap`.
|
|
14
|
+
*
|
|
15
|
+
* @module protocols/pap
|
|
16
|
+
*/
|
|
17
|
+
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
18
|
+
import { DEFAULT_ORDER, ProtocolDescriptions } from '../core';
|
|
19
|
+
export const PAP_PLUGIN = 'agent-runtimes.protocols.pap';
|
|
20
|
+
/** The PAP draft the SDK implements (its `PROTOCOL_PROFILE`; Python reads it from the SDK). */
|
|
21
|
+
export const PAP_PROTOCOL_PROFILE = '0.1';
|
|
22
|
+
export const PapPlugin = definePlugin({
|
|
23
|
+
name: PAP_PLUGIN,
|
|
24
|
+
version: '1.0.0',
|
|
25
|
+
description: "Personal Agent Protocol: a person's agent at companies, and an application as a company, over the PAP SDK.",
|
|
26
|
+
contributionPoints: [],
|
|
27
|
+
contributes: [
|
|
28
|
+
contribution(ProtocolDescriptions, {
|
|
29
|
+
id: 'pap',
|
|
30
|
+
name: 'Personal Agent Protocol',
|
|
31
|
+
layer: 'consent',
|
|
32
|
+
version: PAP_PROTOCOL_PROFILE,
|
|
33
|
+
roles: ['personal-agent', 'company'],
|
|
34
|
+
status: 'implemented',
|
|
35
|
+
specification: 'https://personalagentprotocol.org/docs/spec',
|
|
36
|
+
plugin: PAP_PLUGIN,
|
|
37
|
+
catalogue: 'pap',
|
|
38
|
+
points: [],
|
|
39
|
+
}, { id: 'pap', order: DEFAULT_ORDER }),
|
|
40
|
+
],
|
|
41
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datalayer/agent-runtimes",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"workspaces": [
|
|
6
6
|
".",
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
"@datalayer/lexical-loro": "^1.0.6",
|
|
161
161
|
"@datalayer/primer-addons": "^1.0.39",
|
|
162
162
|
"@datalayer/primer-rjsf": "^1.0.3",
|
|
163
|
-
"@datalayer/personal-agent-protocol": "^0.
|
|
163
|
+
"@datalayer/personal-agent-protocol": "^0.15.0",
|
|
164
164
|
"@datalayer/reactor": "^1.3.0",
|
|
165
165
|
"@datalayer/reactor-commands": "^1.0.4",
|
|
166
166
|
"@datalayer/reactor-manager": "^1.0.4",
|