personal-agent-protocol 0.3.0__tar.gz → 0.3.2__tar.gz
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.
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/build.yaml +1 -1
- personal_agent_protocol-0.3.2/.github/workflows/docs.yaml +49 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/py-code-style.yaml +2 -2
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/py-tests.yaml +3 -3
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/py-typing.yaml +2 -2
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/release.yaml +3 -3
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/typescript.yaml +7 -6
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.gitignore +0 -3
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/Makefile +1 -1
- personal_agent_protocol-0.3.2/PKG-INFO +366 -0
- personal_agent_protocol-0.3.2/README.md +303 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/RELEASE.md +3 -3
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/.gitignore +0 -1
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/concepts/architecture.mdx +11 -6
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/contributing/sdk-design.mdx +3 -2
- personal_agent_protocol-0.3.2/docs/docs/examples/agent-identity.mdx +46 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/browser-session.mdx +77 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/company-discovery.mdx +49 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/conversation-events.mdx +58 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/conversation-messages.mdx +45 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/direct-sign-in-boundary.mdx +47 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/direct-sign-in-lifecycle.mdx +59 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/dpop-proof.mdx +51 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/dpop-transport.mdx +64 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/index.mdx +37 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/session-assertion.mdx +48 -0
- personal_agent_protocol-0.3.2/docs/docs/examples/session-lifecycle.mdx +52 -0
- personal_agent_protocol-0.3.2/docs/docs/guides/agent-runtimes.mdx +101 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/guides/cli.mdx +29 -7
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/guides/conformance.mdx +2 -2
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/guides/cryptography.mdx +18 -5
- personal_agent_protocol-0.3.2/docs/docs/guides/direct-sign-in.mdx +141 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/guides/personal-agent.mdx +22 -13
- personal_agent_protocol-0.3.2/docs/docs/guides/pydantic-ai.mdx +54 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/guides/sessions.mdx +34 -2
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/index.mdx +31 -19
- personal_agent_protocol-0.3.2/docs/docs/protocol/open-topics.mdx +61 -0
- personal_agent_protocol-0.3.2/docs/docs/protocol/status.mdx +91 -0
- personal_agent_protocol-0.3.2/docs/docs/sdk/python-api.mdx +108 -0
- personal_agent_protocol-0.3.2/docs/docs/sdk/python.mdx +198 -0
- personal_agent_protocol-0.3.2/docs/docs/sdk/typescript-api.mdx +159 -0
- personal_agent_protocol-0.3.2/docs/docs/sdk/typescript.mdx +215 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/security/index.mdx +29 -8
- personal_agent_protocol-0.3.2/docs/docs/studio/integration.mdx +207 -0
- personal_agent_protocol-0.3.2/docs/sidebars.js +91 -0
- personal_agent_protocol-0.3.2/examples/README.md +19 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/README.md +35 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/agent-identity/README.md +12 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/agent-identity/app.py +56 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/browser-session/README.md +15 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/browser-session/app.py +145 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/company-discovery/README.md +10 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/company-discovery/app.py +70 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/conversation-events/README.md +9 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/conversation-events/app.py +117 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/conversation-messages/README.md +8 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/conversation-messages/app.py +92 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/direct-sign-in-boundary/README.md +14 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/direct-sign-in-boundary/app.py +81 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/direct-sign-in-lifecycle/README.md +17 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/direct-sign-in-lifecycle/app.py +206 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/dpop-proof/README.md +12 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/dpop-proof/app.py +123 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/dpop-transport/README.md +13 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/dpop-transport/app.py +137 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/session-assertion/README.md +14 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/session-assertion/app.py +105 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/session-lifecycle/README.md +13 -0
- personal_agent_protocol-0.3.2/examples/pydantic-ai/session-lifecycle/app.py +152 -0
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/package.json +14 -5
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/__init__.py +67 -0
- personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__/test_auth.py +302 -0
- personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__/test_browser.py +161 -0
- {personal_agent_protocol-0.3.0/tests → personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__}/test_cli.py +42 -1
- personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__/test_conversations.py +249 -0
- {personal_agent_protocol-0.3.0/tests → personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__}/test_crypto.py +4 -9
- {personal_agent_protocol-0.3.0/tests → personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__}/test_discovery.py +1 -1
- personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__/test_identity.py +110 -0
- {personal_agent_protocol-0.3.0/tests → personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__}/test_models.py +1 -1
- personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__/test_pairwise.py +120 -0
- {personal_agent_protocol-0.3.0/tests → personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__}/test_reactor.py +54 -0
- {personal_agent_protocol-0.3.0/tests → personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__}/test_sessions.py +1 -1
- personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__/test_transport.py +131 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/__version__.py +1 -1
- personal_agent_protocol-0.3.2/personal_agent_protocol/auth.py +531 -0
- personal_agent_protocol-0.3.2/personal_agent_protocol/browser.py +263 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/cli_plugin.py +93 -3
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/config.py +1 -3
- personal_agent_protocol-0.3.2/personal_agent_protocol/conversations.py +321 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/crypto.py +4 -4
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/errors.py +16 -0
- personal_agent_protocol-0.3.2/personal_agent_protocol/identity.py +157 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/models.py +45 -5
- personal_agent_protocol-0.3.2/personal_agent_protocol/pairwise.py +145 -0
- personal_agent_protocol-0.3.2/personal_agent_protocol/py.typed +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/reactor.py +47 -3
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/sessions.py +1 -3
- personal_agent_protocol-0.3.2/personal_agent_protocol/transport.py +142 -0
- personal_agent_protocol-0.3.2/protocol/fixtures/jwks-valid.json +13 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/protocol/requirements.yaml +11 -11
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/pyproject.toml +3 -1
- personal_agent_protocol-0.3.2/scripts/generate_api_reference.py +187 -0
- personal_agent_protocol-0.3.2/scripts/validate_pydantic_ai_examples.py +33 -0
- personal_agent_protocol-0.3.2/src/__tests__/auth.test.mjs +313 -0
- personal_agent_protocol-0.3.2/src/__tests__/browser.test.mjs +109 -0
- personal_agent_protocol-0.3.2/src/__tests__/conversations.test.mjs +208 -0
- {personal_agent_protocol-0.3.0/packages/typescript/test → personal_agent_protocol-0.3.2/src/__tests__}/crypto.test.mjs +2 -3
- {personal_agent_protocol-0.3.0/packages/typescript/test → personal_agent_protocol-0.3.2/src/__tests__}/discovery.test.mjs +21 -2
- personal_agent_protocol-0.3.2/src/__tests__/identity.test.mjs +124 -0
- {personal_agent_protocol-0.3.0/packages/typescript/test → personal_agent_protocol-0.3.2/src/__tests__}/reactor.test.mjs +31 -1
- personal_agent_protocol-0.3.2/src/__tests__/server.test.mjs +66 -0
- {personal_agent_protocol-0.3.0/packages/typescript/test → personal_agent_protocol-0.3.2/src/__tests__}/sessions.test.mjs +11 -3
- personal_agent_protocol-0.3.2/src/__tests__/transport.test.mjs +118 -0
- personal_agent_protocol-0.3.2/src/auth.ts +588 -0
- personal_agent_protocol-0.3.2/src/browser-server.ts +92 -0
- personal_agent_protocol-0.3.2/src/browser.ts +152 -0
- personal_agent_protocol-0.3.2/src/conversations.ts +410 -0
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/src/crypto.ts +2 -3
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/src/discovery.ts +5 -0
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/src/errors.ts +64 -4
- personal_agent_protocol-0.3.2/src/identity.ts +187 -0
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/src/index.ts +49 -7
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/src/models.ts +85 -0
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/src/reactor.ts +31 -2
- personal_agent_protocol-0.3.2/src/secret.ts +25 -0
- personal_agent_protocol-0.3.2/src/server.ts +108 -0
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/src/sessions.ts +19 -23
- personal_agent_protocol-0.3.2/src/transport.ts +171 -0
- personal_agent_protocol-0.3.0/.github/workflows/docs.yaml +0 -30
- personal_agent_protocol-0.3.0/PKG-INFO +0 -191
- personal_agent_protocol-0.3.0/README.md +0 -130
- personal_agent_protocol-0.3.0/docs/docs/guides/direct-sign-in.mdx +0 -89
- personal_agent_protocol-0.3.0/docs/docs/protocol/status.mdx +0 -66
- personal_agent_protocol-0.3.0/docs/docs/sdk/python.mdx +0 -144
- personal_agent_protocol-0.3.0/docs/docs/sdk/typescript.mdx +0 -113
- personal_agent_protocol-0.3.0/docs/docs/studio/integration.mdx +0 -102
- personal_agent_protocol-0.3.0/docs/sidebars.js +0 -67
- personal_agent_protocol-0.3.0/examples/README.md +0 -1
- personal_agent_protocol-0.3.0/package.json +0 -14
- personal_agent_protocol-0.3.0/packages/README.md +0 -9
- personal_agent_protocol-0.3.0/packages/typescript/README.md +0 -22
- personal_agent_protocol-0.3.0/packages/typescript/src/auth.ts +0 -227
- personal_agent_protocol-0.3.0/packages/typescript/test/auth.test.mjs +0 -119
- personal_agent_protocol-0.3.0/personal_agent_protocol/auth.py +0 -199
- personal_agent_protocol-0.3.0/personal_agent_protocol/py.typed +0 -1
- personal_agent_protocol-0.3.0/tests/test_auth.py +0 -116
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/reusable-python.yaml +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.licenserc.yaml +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.pre-commit-config.yaml +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.vscode/settings.json +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/CHANGELOG.md +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/Dockerfile +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/LICENSE +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/LICENSE +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/Makefile +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/README.md +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/concepts/glossary.mdx +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/concepts/protocol-tour.mdx +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/getting-started/index.mdx +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/guides/company.mdx +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/guides/extensions.mdx +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docs/protocol/coverage.mdx +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/docusaurus.config.js +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/package.json +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/src/css/custom.css +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/src/pages/index.module.css +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/bricks.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/building-construction.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/cloud-sun.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/cloud.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/collaboration.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/copy-left.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/datalayer/logo.png +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/datalayer/logo.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/datalayer/personas/business.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/datalayer/personas/data-scientist.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/datalayer/personas/devops.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/datalayer/project/project-line.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/favicon.ico +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/jupyter.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/open-source.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/react-js.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/react-js2.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/ringed-planet.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/robot.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/rocket.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/shield.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/sparkles.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/streamlit.gif +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/super-hero.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/target.svg +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/docs/static/img/thumbs-up.svg +0 -0
- {personal_agent_protocol-0.3.0/tests → personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__}/__init__.py +0 -0
- {personal_agent_protocol-0.3.0/tests → personal_agent_protocol-0.3.2/personal_agent_protocol/__tests__}/conftest.py +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/cli.py +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/discovery.py +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/personal_agent_protocol/json.py +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/protocol/UPSTREAM.md +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/protocol/fixtures/client-metadata-valid.json +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/protocol/fixtures/conversation-events-valid.json +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/protocol/fixtures/discovery-valid.json +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/protocol/fixtures/oauth-metadata-valid.json +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/protocol/fixtures/operation-valid.json +0 -0
- {personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/protocol/fixtures/session-token-valid.json +0 -0
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/src/json.ts +0 -0
- {personal_agent_protocol-0.3.0/packages/typescript → personal_agent_protocol-0.3.2}/tsconfig.json +0 -0
{personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/build.yaml
RENAMED
|
@@ -18,6 +18,6 @@ jobs:
|
|
|
18
18
|
python-version: ${{ matrix.python-version }}
|
|
19
19
|
install-extras: test,typing
|
|
20
20
|
run-tests: true
|
|
21
|
-
test-command: pytest
|
|
21
|
+
test-command: pytest personal_agent_protocol/__tests__/ --cov=personal_agent_protocol --cov-report term-missing
|
|
22
22
|
run-mypy: true
|
|
23
23
|
mypy-target: personal_agent_protocol
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Documentation
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, develop]
|
|
6
|
+
paths:
|
|
7
|
+
- 'docs/**'
|
|
8
|
+
- 'personal_agent_protocol/**'
|
|
9
|
+
- 'src/**'
|
|
10
|
+
- 'scripts/generate_api_reference.py'
|
|
11
|
+
- '.github/workflows/docs.yaml'
|
|
12
|
+
pull_request:
|
|
13
|
+
branches: [main, develop]
|
|
14
|
+
paths:
|
|
15
|
+
- 'docs/**'
|
|
16
|
+
- 'personal_agent_protocol/**'
|
|
17
|
+
- 'src/**'
|
|
18
|
+
- 'scripts/generate_api_reference.py'
|
|
19
|
+
- '.github/workflows/docs.yaml'
|
|
20
|
+
workflow_dispatch:
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
secrets:
|
|
24
|
+
runs-on: ubuntu-latest
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v6
|
|
27
|
+
with:
|
|
28
|
+
fetch-depth: 0
|
|
29
|
+
- name: Scan repository history for secrets
|
|
30
|
+
uses: docker://ghcr.io/gitleaks/gitleaks:v8.30.1
|
|
31
|
+
with:
|
|
32
|
+
args: detect --source=/github/workspace --verbose --redact --no-banner
|
|
33
|
+
|
|
34
|
+
build:
|
|
35
|
+
runs-on: ubuntu-latest
|
|
36
|
+
defaults:
|
|
37
|
+
run:
|
|
38
|
+
working-directory: docs
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v6
|
|
41
|
+
- uses: actions/setup-node@v6
|
|
42
|
+
with:
|
|
43
|
+
node-version: 22
|
|
44
|
+
- uses: actions/setup-python@v6
|
|
45
|
+
with:
|
|
46
|
+
python-version: '3.12'
|
|
47
|
+
- run: python ../scripts/generate_api_reference.py --check
|
|
48
|
+
- run: npm install --no-package-lock
|
|
49
|
+
- run: npm run build
|
{personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/py-code-style.yaml
RENAMED
|
@@ -7,7 +7,7 @@ on:
|
|
|
7
7
|
- develop
|
|
8
8
|
paths:
|
|
9
9
|
- 'personal_agent_protocol/**/*.py'
|
|
10
|
-
- '
|
|
10
|
+
- 'personal_agent_protocol/__tests__/**/*.py'
|
|
11
11
|
- 'pyproject.toml'
|
|
12
12
|
- 'setup.py'
|
|
13
13
|
- '.pre-commit-config.yaml'
|
|
@@ -21,7 +21,7 @@ on:
|
|
|
21
21
|
- develop
|
|
22
22
|
paths:
|
|
23
23
|
- 'personal_agent_protocol/**/*.py'
|
|
24
|
-
- '
|
|
24
|
+
- 'personal_agent_protocol/__tests__/**/*.py'
|
|
25
25
|
- 'pyproject.toml'
|
|
26
26
|
- 'setup.py'
|
|
27
27
|
- '.pre-commit-config.yaml'
|
{personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/py-tests.yaml
RENAMED
|
@@ -6,7 +6,7 @@ on:
|
|
|
6
6
|
- main
|
|
7
7
|
paths:
|
|
8
8
|
- 'personal_agent_protocol/**'
|
|
9
|
-
- '
|
|
9
|
+
- 'personal_agent_protocol/__tests__/**'
|
|
10
10
|
- 'pyproject.toml'
|
|
11
11
|
- 'setup.py'
|
|
12
12
|
- 'requirements*.txt'
|
|
@@ -18,7 +18,7 @@ on:
|
|
|
18
18
|
- main
|
|
19
19
|
paths:
|
|
20
20
|
- 'personal_agent_protocol/**'
|
|
21
|
-
- '
|
|
21
|
+
- 'personal_agent_protocol/__tests__/**'
|
|
22
22
|
- 'pyproject.toml'
|
|
23
23
|
- 'setup.py'
|
|
24
24
|
- 'requirements*.txt'
|
|
@@ -39,4 +39,4 @@ jobs:
|
|
|
39
39
|
python-version: ${{ matrix.python-version }}
|
|
40
40
|
install-extras: test
|
|
41
41
|
run-tests: true
|
|
42
|
-
test-command: pytest
|
|
42
|
+
test-command: pytest personal_agent_protocol/__tests__/ --cov=personal_agent_protocol --cov-report term-missing
|
{personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/py-typing.yaml
RENAMED
|
@@ -7,7 +7,7 @@ on:
|
|
|
7
7
|
- develop
|
|
8
8
|
paths:
|
|
9
9
|
- 'personal_agent_protocol/**/*.py'
|
|
10
|
-
- '
|
|
10
|
+
- 'personal_agent_protocol/__tests__/**/*.py'
|
|
11
11
|
- 'pyproject.toml'
|
|
12
12
|
- 'setup.py'
|
|
13
13
|
- 'mypy.ini'
|
|
@@ -20,7 +20,7 @@ on:
|
|
|
20
20
|
- develop
|
|
21
21
|
paths:
|
|
22
22
|
- 'personal_agent_protocol/**/*.py'
|
|
23
|
-
- '
|
|
23
|
+
- 'personal_agent_protocol/__tests__/**/*.py'
|
|
24
24
|
- 'pyproject.toml'
|
|
25
25
|
- 'setup.py'
|
|
26
26
|
- 'mypy.ini'
|
{personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/release.yaml
RENAMED
|
@@ -47,7 +47,7 @@ jobs:
|
|
|
47
47
|
set -euo pipefail
|
|
48
48
|
tag="${GITHUB_REF_NAME#v}"
|
|
49
49
|
python_version="$(python -c "import re;print(re.search(r'__version__\s*=\s*[\"\']([^\"\']+)', open('personal_agent_protocol/__version__.py').read())[1])")"
|
|
50
|
-
typescript_version="$(node -p "require('./
|
|
50
|
+
typescript_version="$(node -p "require('./package.json').version")"
|
|
51
51
|
echo "tag=$tag python=$python_version typescript=$typescript_version"
|
|
52
52
|
test "$tag" = "$python_version"
|
|
53
53
|
test "$tag" = "$typescript_version"
|
|
@@ -94,7 +94,7 @@ jobs:
|
|
|
94
94
|
npm install --no-package-lock
|
|
95
95
|
npm test
|
|
96
96
|
mkdir -p npm-dist
|
|
97
|
-
npm pack
|
|
97
|
+
npm pack . --pack-destination npm-dist
|
|
98
98
|
ls -la npm-dist
|
|
99
99
|
|
|
100
100
|
- uses: actions/upload-artifact@v4
|
|
@@ -141,7 +141,7 @@ jobs:
|
|
|
141
141
|
name: npm
|
|
142
142
|
path: npm-dist
|
|
143
143
|
- name: Publish with npm trusted publishing
|
|
144
|
-
run: npm publish npm-dist/*.tgz --access public
|
|
144
|
+
run: npm publish ./npm-dist/*.tgz --access public
|
|
145
145
|
|
|
146
146
|
release:
|
|
147
147
|
name: GitHub release
|
{personal_agent_protocol-0.3.0 → personal_agent_protocol-0.3.2}/.github/workflows/typescript.yaml
RENAMED
|
@@ -4,18 +4,20 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
branches: [main, develop]
|
|
6
6
|
paths:
|
|
7
|
-
- '
|
|
7
|
+
- 'src/**'
|
|
8
|
+
- 'src/__tests__/**'
|
|
9
|
+
- 'tsconfig.json'
|
|
8
10
|
- 'protocol/fixtures/**'
|
|
9
11
|
- 'package.json'
|
|
10
|
-
- 'package-lock.json'
|
|
11
12
|
- '.github/workflows/typescript.yaml'
|
|
12
13
|
pull_request:
|
|
13
14
|
branches: [main, develop]
|
|
14
15
|
paths:
|
|
15
|
-
- '
|
|
16
|
+
- 'src/**'
|
|
17
|
+
- 'src/__tests__/**'
|
|
18
|
+
- 'tsconfig.json'
|
|
16
19
|
- 'protocol/fixtures/**'
|
|
17
20
|
- 'package.json'
|
|
18
|
-
- 'package-lock.json'
|
|
19
21
|
- '.github/workflows/typescript.yaml'
|
|
20
22
|
workflow_dispatch:
|
|
21
23
|
|
|
@@ -27,7 +29,6 @@ jobs:
|
|
|
27
29
|
- uses: actions/setup-node@v6
|
|
28
30
|
with:
|
|
29
31
|
node-version: 22
|
|
30
|
-
|
|
31
|
-
- run: npm ci
|
|
32
|
+
- run: npm install --no-package-lock
|
|
32
33
|
- run: npm run typecheck
|
|
33
34
|
- run: npm test
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: personal-agent-protocol
|
|
3
|
+
Version: 0.3.2
|
|
4
|
+
Summary: Python SDK for Personal Agent Protocol
|
|
5
|
+
Project-URL: Home, https://github.com/datalayer/personal-agent-protocol
|
|
6
|
+
Project-URL: Documentation, https://personalagentprotocol.org/docs
|
|
7
|
+
Project-URL: Specification, https://personalagentprotocol.org/docs/spec
|
|
8
|
+
Author-email: Datalayer <info@datalayer.io>
|
|
9
|
+
License: BSD 3-Clause License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2025, Datalayer
|
|
12
|
+
All rights reserved.
|
|
13
|
+
|
|
14
|
+
Redistribution and use in source and binary forms, with or without
|
|
15
|
+
modification, are permitted provided that the following conditions are met:
|
|
16
|
+
|
|
17
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
18
|
+
list of conditions and the following disclaimer.
|
|
19
|
+
|
|
20
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
21
|
+
this list of conditions and the following disclaimer in the documentation
|
|
22
|
+
and/or other materials provided with the distribution.
|
|
23
|
+
|
|
24
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
25
|
+
contributors may be used to endorse or promote products derived from
|
|
26
|
+
this software without specific prior written permission.
|
|
27
|
+
|
|
28
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
29
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
30
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
31
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
32
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
33
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
34
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
35
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
36
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
37
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
38
|
+
License-File: LICENSE
|
|
39
|
+
Keywords: AI,Agents,MCP,OAuth,Personal Agent Protocol
|
|
40
|
+
Classifier: Intended Audience :: Developers
|
|
41
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
42
|
+
Classifier: Programming Language :: Python
|
|
43
|
+
Classifier: Programming Language :: Python :: 3
|
|
44
|
+
Requires-Python: >=3.10
|
|
45
|
+
Requires-Dist: datalayer-reactor<2,>=1.0.5
|
|
46
|
+
Requires-Dist: httpx<1,>=0.27
|
|
47
|
+
Requires-Dist: pydantic<3,>=2.10
|
|
48
|
+
Requires-Dist: pyjwt[crypto]<3,>=2.13
|
|
49
|
+
Requires-Dist: typer<1,>=0.12
|
|
50
|
+
Provides-Extra: examples
|
|
51
|
+
Requires-Dist: pydantic-ai-slim[openai]<3,>=2.35.0; extra == 'examples'
|
|
52
|
+
Provides-Extra: lint
|
|
53
|
+
Requires-Dist: mdformat-gfm>=0.3.5; extra == 'lint'
|
|
54
|
+
Requires-Dist: mdformat>0.7; extra == 'lint'
|
|
55
|
+
Requires-Dist: ruff; extra == 'lint'
|
|
56
|
+
Provides-Extra: test
|
|
57
|
+
Requires-Dist: pytest-asyncio>=0.21; extra == 'test'
|
|
58
|
+
Requires-Dist: pytest-cov>=4.1; extra == 'test'
|
|
59
|
+
Requires-Dist: pytest>=7.0; extra == 'test'
|
|
60
|
+
Provides-Extra: typing
|
|
61
|
+
Requires-Dist: mypy>=0.990; extra == 'typing'
|
|
62
|
+
Description-Content-Type: text/markdown
|
|
63
|
+
|
|
64
|
+
<!--
|
|
65
|
+
~ Copyright (c) 2025-2026 Datalayer, Inc.
|
|
66
|
+
~
|
|
67
|
+
~ BSD 3-Clause License
|
|
68
|
+
-->
|
|
69
|
+
|
|
70
|
+
[](https://datalayer.ai)
|
|
71
|
+
|
|
72
|
+
# 🤖 🌸 Personal Agent Protocol
|
|
73
|
+
|
|
74
|
+

|
|
75
|
+
|
|
76
|
+
Python and TypeScript SDKs for the
|
|
77
|
+
[Personal Agent Protocol](https://personalagentprotocol.org), currently
|
|
78
|
+
targeting [draft 0.1](https://personalagentprotocol.org/docs/spec).
|
|
79
|
+
|
|
80
|
+
PAP lets a personal agent discover and talk to a company's agent on behalf of
|
|
81
|
+
a person. The company remains responsible for its identity, authorization,
|
|
82
|
+
data, and actions; the personal agent does not need the person's company
|
|
83
|
+
password or a copy of their account data.
|
|
84
|
+
|
|
85
|
+
## Understand PAP in one minute
|
|
86
|
+
|
|
87
|
+
A typical interaction has five parts:
|
|
88
|
+
|
|
89
|
+
1. **Discover** — the personal agent reads the company's public
|
|
90
|
+
`/.well-known/poppy.json` document.
|
|
91
|
+
1. **Start a Session** — the two agents establish a pairwise, initially
|
|
92
|
+
signed-out relationship.
|
|
93
|
+
1. **Converse** — the personal agent can ask questions without disclosing the
|
|
94
|
+
person's company identity.
|
|
95
|
+
1. **Sign in when required** — the company opens its own authorization page.
|
|
96
|
+
Credentials remain between the person and the company.
|
|
97
|
+
1. **Continue safely** — the same conversation resumes with proof-bound access
|
|
98
|
+
and the scopes the person approved.
|
|
99
|
+
|
|
100
|
+
```mermaid
|
|
101
|
+
sequenceDiagram
|
|
102
|
+
actor Person
|
|
103
|
+
participant PA as Personal agent
|
|
104
|
+
participant Company as Company agent
|
|
105
|
+
participant Auth as Company authorization server
|
|
106
|
+
|
|
107
|
+
PA->>Company: Discover /.well-known/poppy.json
|
|
108
|
+
Company-->>PA: Agent, Session, and authorization endpoints
|
|
109
|
+
PA->>Auth: Start a signed-out Session
|
|
110
|
+
Auth-->>PA: DPoP-bound Session Token
|
|
111
|
+
PA->>Company: Start a conversation
|
|
112
|
+
Company-->>PA: Sign-in required for account data
|
|
113
|
+
PA-->>Person: Open the company's sign-in page
|
|
114
|
+
Person->>Auth: Sign in and approve scopes
|
|
115
|
+
Auth-->>PA: Signed-in Session
|
|
116
|
+
PA->>Company: Continue the same conversation
|
|
117
|
+
Company-->>PA: Account-aware response
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
The SDKs implement these protocol and security mechanics. They do not decide
|
|
121
|
+
what an agent should say, which model it should use, or whether a proposed
|
|
122
|
+
action is appropriate for a person.
|
|
123
|
+
|
|
124
|
+
## Install and discover a company
|
|
125
|
+
|
|
126
|
+
### Python
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
python -m pip install personal-agent-protocol
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
```python
|
|
133
|
+
import asyncio
|
|
134
|
+
|
|
135
|
+
from personal_agent_protocol import DiscoveryClient
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
async def main() -> None:
|
|
139
|
+
async with DiscoveryClient() as client:
|
|
140
|
+
company = await client.discover("example.com")
|
|
141
|
+
print(company.document.organization.name)
|
|
142
|
+
print(company.document.agent.protocols)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
asyncio.run(main())
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### TypeScript
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
npm install @datalayer/personal-agent-protocol
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
```typescript
|
|
155
|
+
import { discoverCompany } from '@datalayer/personal-agent-protocol';
|
|
156
|
+
|
|
157
|
+
const company = await discoverCompany('example.com');
|
|
158
|
+
console.log(company.document.organization.name);
|
|
159
|
+
console.log(company.document.agent.protocols);
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Discovery is deliberately a small first example. Production Session,
|
|
163
|
+
sign-in, and conversation flows also require host-owned signing keys, DPoP
|
|
164
|
+
proof generation, token storage, and browser handoff. Those capabilities are
|
|
165
|
+
provided through Reactor rather than hidden global state.
|
|
166
|
+
|
|
167
|
+
## Reactor is the extension foundation
|
|
168
|
+
|
|
169
|
+
Both SDKs are built on
|
|
170
|
+
[Datalayer Reactor](https://github.com/datalayer/reactor), a typed plugin and
|
|
171
|
+
contribution system. An application assembles a PAP host from explicit
|
|
172
|
+
contributions for:
|
|
173
|
+
|
|
174
|
+
- discovery transport and URL-safety policy;
|
|
175
|
+
- protocol profiles and extension handlers;
|
|
176
|
+
- clocks and cryptographic randomness;
|
|
177
|
+
- signing, protected keys, and DPoP proofs;
|
|
178
|
+
- pairwise identity, token storage, and caching;
|
|
179
|
+
- browser handoff and authorization-state storage;
|
|
180
|
+
- CLI commands supplied by PAP or third-party extensions.
|
|
181
|
+
|
|
182
|
+
This architecture keeps the protocol core portable while allowing a desktop
|
|
183
|
+
application, browser application, server, or test harness to provide the
|
|
184
|
+
security and platform behavior appropriate to its environment. Missing or
|
|
185
|
+
ambiguous security contributions fail closed.
|
|
186
|
+
|
|
187
|
+
Python accepts a host-assembled Reactor `PluginPlatform`:
|
|
188
|
+
|
|
189
|
+
```python
|
|
190
|
+
from reactor import PluginManifest
|
|
191
|
+
|
|
192
|
+
from personal_agent_protocol import DiscoveryClient, build_pap_reactor
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
async def discover_with_host() -> None:
|
|
196
|
+
platform, owned_http = build_pap_reactor(
|
|
197
|
+
plugins=[
|
|
198
|
+
(PluginManifest(name="my-security", version="1"), my_security_plugin)
|
|
199
|
+
]
|
|
200
|
+
)
|
|
201
|
+
try:
|
|
202
|
+
async with DiscoveryClient(reactor=platform) as client:
|
|
203
|
+
company = await client.discover("example.com")
|
|
204
|
+
print(company.document.organization.name)
|
|
205
|
+
finally:
|
|
206
|
+
platform.stop()
|
|
207
|
+
if owned_http is not None:
|
|
208
|
+
await owned_http.aclose()
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
TypeScript can build a host or receive an existing `ReactorPlatformView`:
|
|
212
|
+
|
|
213
|
+
```typescript
|
|
214
|
+
import {
|
|
215
|
+
buildPapReactor,
|
|
216
|
+
discoverCompany,
|
|
217
|
+
} from '@datalayer/personal-agent-protocol';
|
|
218
|
+
|
|
219
|
+
const reactor = buildPapReactor({}, [mySecurityPlugin]);
|
|
220
|
+
const company = await discoverCompany('example.com', { reactor });
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
See the [Reactor repository](https://github.com/datalayer/reactor) for the
|
|
224
|
+
plugin model and contribution lifecycle.
|
|
225
|
+
|
|
226
|
+
## What is implemented
|
|
227
|
+
|
|
228
|
+
Python and TypeScript share fixtures and cover the same principal protocol
|
|
229
|
+
surface:
|
|
230
|
+
|
|
231
|
+
| Area | Current support |
|
|
232
|
+
| --------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
233
|
+
| Models | Forward-compatible discovery, OAuth metadata, client metadata, messages, events, and Operations v1 models |
|
|
234
|
+
| Discovery | `poppy.json`, company-domain and issuer validation, `poppy_domains`, bounded responses, and redirect controls |
|
|
235
|
+
| Sessions | Pairwise user IDs, PAP 4.2 assertions, signed-out start and renewal, redacted tokens, and DPoP nonce retry |
|
|
236
|
+
| Cryptography | ES256/RS256 JOSE, RFC 9449 DPoP creation and verification, freshness, token hash, nonce, and replay checks |
|
|
237
|
+
| Direct Sign-In | State, S256 PKCE, callback validation, browser handoff, and one-use token exchange orchestration |
|
|
238
|
+
| Browser Session | Assertion creation, controlled form POST, replay-safe verification, and company-domain return validation |
|
|
239
|
+
| Transport | Host-owned authorization headers, fresh redirect-bound proofs, one nonce retry, and cross-origin credential isolation |
|
|
240
|
+
| Conversations | Start and continue, random user-global message IDs, ordered long polling, cursor recovery, duplicate suppression, and safe errors |
|
|
241
|
+
| Extensibility | Reactor contribution points for platform, security, protocol, storage, and CLI behavior |
|
|
242
|
+
| CLI | Non-secret profiles, company verification, extension diagnostics, and versioned JSON output |
|
|
243
|
+
|
|
244
|
+
Python additionally provides a SQLite pairwise-identity reference provider.
|
|
245
|
+
The portable TypeScript entry rejects obvious local and private literal
|
|
246
|
+
addresses. Its explicit server entry adds `NodeUrlSafetyPolicy`, `JoseSigner`,
|
|
247
|
+
and DPoP verification with A/AAAA resolution checks:
|
|
248
|
+
|
|
249
|
+
```typescript
|
|
250
|
+
import {
|
|
251
|
+
JoseSigner,
|
|
252
|
+
NodeUrlSafetyPolicy,
|
|
253
|
+
} from '@datalayer/personal-agent-protocol/server';
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
Duplicate JSON members are rejected at Python and TypeScript trust boundaries.
|
|
257
|
+
|
|
258
|
+
## What is not implemented yet
|
|
259
|
+
|
|
260
|
+
The following work remains before the SDKs cover the complete planned PAP
|
|
261
|
+
surface:
|
|
262
|
+
|
|
263
|
+
- managed key custody and durable replay storage;
|
|
264
|
+
- Account Token exchange;
|
|
265
|
+
- resource-bound MCP Bearer transport;
|
|
266
|
+
- device and mediated sign-in;
|
|
267
|
+
- conversation SSE streaming, handoff, and explicit close requests;
|
|
268
|
+
- the Operations client and server;
|
|
269
|
+
- transport-level address pinning to close the DNS-rebinding interval.
|
|
270
|
+
|
|
271
|
+
Models for Operations v1 exist, but a complete Operations workflow does not.
|
|
272
|
+
Applications should not infer client support from model availability alone.
|
|
273
|
+
|
|
274
|
+
## Security boundary
|
|
275
|
+
|
|
276
|
+
PAP credentials belong to the host, not to an agent model or tool call.
|
|
277
|
+
|
|
278
|
+
- Session Tokens, Account Tokens, proofs, nonces, authorization codes, and
|
|
279
|
+
pairwise identifiers must not enter prompts or model-visible tool results.
|
|
280
|
+
- Direct Sign-In requires host-provided state storage, browser handoff,
|
|
281
|
+
signing, and DPoP contributions.
|
|
282
|
+
- Session requests fail closed until suitable signer and DPoP providers are
|
|
283
|
+
installed.
|
|
284
|
+
- Redirects receive fresh, target-bound proofs; caller-supplied
|
|
285
|
+
`Authorization` and `DPoP` headers are rejected.
|
|
286
|
+
- CLI profiles store configuration only—never tokens or private keys.
|
|
287
|
+
|
|
288
|
+
The guides explain these boundaries at each flow rather than treating them as
|
|
289
|
+
application conventions.
|
|
290
|
+
|
|
291
|
+
## Command line
|
|
292
|
+
|
|
293
|
+
The Python distribution installs an extensible `pap` command. Its command
|
|
294
|
+
groups use Reactor's `datalayer.reactor.cli` entry-point contract.
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
pap config set domain example.com --profile work
|
|
298
|
+
pap config show --profile work --json
|
|
299
|
+
pap company verify --profile work --json
|
|
300
|
+
pap extensions list --profile work
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
See the [CLI guide](https://personalagentprotocol.org/docs/guides/cli) for
|
|
304
|
+
configuration precedence, security boundaries, machine-readable output, and
|
|
305
|
+
third-party extensions.
|
|
306
|
+
|
|
307
|
+
## Examples and first consumer
|
|
308
|
+
|
|
309
|
+
The [`examples/pydantic-ai`](./examples/pydantic-ai/) directory contains small,
|
|
310
|
+
focused Python examples. Each example teaches one feature—discovery, identity,
|
|
311
|
+
Sessions, Direct Sign-In, Browser Session, cryptography, conversations, or
|
|
312
|
+
proof-bound transport—without giving protocol secrets to the model.
|
|
313
|
+
|
|
314
|
+
[Datalayer Agent Runtimes](https://github.com/datalayer/agent-runtimes) is the
|
|
315
|
+
first consumer of these SDKs. Its Personal Agent Protocol gallery turns the
|
|
316
|
+
same features into interactive Reactor/Loop applications, including a guided
|
|
317
|
+
person-to-company journey rendered with the runtime's real message UI. The
|
|
318
|
+
gallery's local company simulators are deterministic and clearly identified;
|
|
319
|
+
the PAP clients, transports, validation, and parsed exchanges are real.
|
|
320
|
+
|
|
321
|
+
Each implemented feature should have all three learning layers:
|
|
322
|
+
|
|
323
|
+
1. a focused SDK example in this repository;
|
|
324
|
+
1. a Docusaurus guide with an explanation and Mermaid sequence diagram;
|
|
325
|
+
1. an interactive Agent Runtimes example when a UI materially clarifies the
|
|
326
|
+
flow.
|
|
327
|
+
|
|
328
|
+
## Develop the SDKs
|
|
329
|
+
|
|
330
|
+
Clone the repository, then install the dependencies for the SDK you are
|
|
331
|
+
changing.
|
|
332
|
+
|
|
333
|
+
### Python
|
|
334
|
+
|
|
335
|
+
```bash
|
|
336
|
+
python -m pip install -e '.[test,lint,typing,examples]'
|
|
337
|
+
python -m pytest personal_agent_protocol/__tests__
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### TypeScript
|
|
341
|
+
|
|
342
|
+
The TypeScript package is at the repository root. Sources and tests live under
|
|
343
|
+
`src/`; published JavaScript and declarations are emitted to `lib/`.
|
|
344
|
+
|
|
345
|
+
```bash
|
|
346
|
+
npm install
|
|
347
|
+
npm test
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
The shared fixtures are in `fixtures/`. Documentation is a Docusaurus site in
|
|
351
|
+
`docs/`.
|
|
352
|
+
|
|
353
|
+
## Learn more
|
|
354
|
+
|
|
355
|
+
- [Documentation](https://personalagentprotocol.org/docs)
|
|
356
|
+
- [Overview](https://personalagentprotocol.org/docs/overview)
|
|
357
|
+
- [Specification](https://personalagentprotocol.org/docs/spec)
|
|
358
|
+
- [Implementation guides](https://personalagentprotocol.org/docs/guides)
|
|
359
|
+
- [Extensions](https://personalagentprotocol.org/docs/extensions)
|
|
360
|
+
- [Open topics](https://personalagentprotocol.org/docs/open-topics)
|
|
361
|
+
- [Datalayer Reactor](https://github.com/datalayer/reactor)
|
|
362
|
+
- [Datalayer Agent Runtimes](https://github.com/datalayer/agent-runtimes)
|
|
363
|
+
|
|
364
|
+
## License
|
|
365
|
+
|
|
366
|
+
BSD 3-Clause. See [`LICENSE`](./LICENSE).
|