@palettelab/cli 0.3.75 → 0.3.77
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 +37 -5
- package/backend-sdk/palette_sdk/__init__.py +1 -1
- package/backend-sdk/palette_sdk/agent_routes.py +28 -2
- package/backend-sdk/palette_sdk/apps.py +16 -1
- package/backend-sdk/palette_sdk/connections_generated.py +27 -0
- package/backend-sdk/palette_sdk/data_rooms.py +59 -0
- package/backend-sdk/palette_sdk/manifest.py +10 -0
- package/backend-sdk/palette_sdk/mcp.py +11 -2
- package/backend-sdk/palette_sdk/platform_services.py +81 -15
- package/backend-sdk/palette_sdk/tool_definition.py +21 -1
- package/backend-sdk/pyproject.toml +1 -1
- package/docs/connectors.md +154 -0
- package/docs/python-backend-sdk.md +113 -4
- package/lib/bundler.js +5 -2
- package/lib/cli.js +2 -2
- package/lib/commands/capabilities.js +30 -9
- package/lib/commands/check.js +7 -0
- package/lib/commands/package.js +5 -1
- package/lib/commands/publish.js +17 -0
- package/lib/commands/test.js +15 -3
- package/lib/connection-catalog.json +167 -0
- package/lib/connector.js +148 -0
- package/lib/manifest.js +22 -1
- package/package.json +1 -1
- package/template-fallback/backend/api/main.py +4 -2
- package/template-fallback/backend/tools/example_tool.py +4 -0
- package/template-fallback/package.json +1 -1
- package/template-fallback/palette-plugin.json +4 -0
- package/template-fallback/templates/agent-tool/README.md +3 -0
- package/template-fallback/templates/agent-tool/palette-plugin.json +4 -0
- package/template-fallback/templates/agent-tool/skills/echo-check/SKILL.md +15 -0
- package/template-fallback/templates/consumer-app/backend/api/main.py +3 -2
- package/template-fallback/templates/consumer-app/package.json +1 -1
- package/template-fallback/templates/consumer-app/palette-plugin.json +4 -0
- package/template-fallback/templates/dashboard/backend/api/main.py +2 -2
- package/template-fallback/templates/dashboard/package.json +1 -1
- package/template-fallback/templates/dashboard/palette-plugin.json +4 -0
- package/template-fallback/templates/database/backend/api/main.py +3 -3
- package/template-fallback/templates/database/package.json +1 -1
- package/template-fallback/templates/database/palette-plugin.json +4 -0
- package/template-fallback/templates/external-service/backend/api/main.py +3 -2
- package/template-fallback/templates/external-service/package.json +1 -1
- package/template-fallback/templates/external-service/palette-plugin.json +4 -0
- package/template-fallback/templates/frontend-only/package.json +1 -1
- package/template-fallback/templates/frontend-only/palette-plugin.json +4 -0
- package/template-fallback/templates/next/package.json +1 -1
- package/template-fallback/templates/next/palette-plugin.json +4 -0
- package/template-fallback/templates/palette-app/backend/api/main.py +2 -2
- package/template-fallback/templates/palette-app/package.json +1 -1
- package/template-fallback/templates/palette-app/palette-plugin.json +4 -0
- package/template-fallback/templates/provider-app/backend/api/main.py +2 -2
- package/template-fallback/templates/provider-app/package.json +1 -1
- package/template-fallback/templates/provider-app/palette-plugin.json +5 -0
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"category": "Productivity",
|
|
9
9
|
"tagline": "Calls a third-party API",
|
|
10
10
|
"description": "Demonstrates declared external_network access and a scoped per-org config token.",
|
|
11
|
+
"agent": {
|
|
12
|
+
"summary": "Checks the connection to an external service.",
|
|
13
|
+
"instructions": "Use the proxy route to check that the external service answers. It only reads. If the API token is not configured, tell the member to ask an admin to set it; never ask the member for the token."
|
|
14
|
+
},
|
|
11
15
|
"icon": "CloudArrowUp",
|
|
12
16
|
"gradient": { "bg": "linear-gradient(135deg, #10B981, #06B6D4)", "text": "#fff" },
|
|
13
17
|
"sdk": { "frontend": "^0.1.16", "backend": "^0.1.8" },
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"category": "Productivity",
|
|
9
9
|
"tagline": "A pure-frontend widget",
|
|
10
10
|
"description": "A frontend-only plugin — renders inside the platform iframe sandbox with no backend.",
|
|
11
|
+
"agent": {
|
|
12
|
+
"summary": "A widget members open on screen.",
|
|
13
|
+
"instructions": "This app has no actions an assistant can call. Offer to open it when the member asks for it."
|
|
14
|
+
},
|
|
11
15
|
"icon": "Puzzle",
|
|
12
16
|
"gradient": { "bg": "linear-gradient(135deg, #6366F1, #8B5CF6)", "text": "#fff" },
|
|
13
17
|
"sdk": { "frontend": "^0.1.16" },
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"category": "Productivity",
|
|
9
9
|
"tagline": "A native Palette app with Next-compatible frontend config",
|
|
10
10
|
"description": "Uses frontend.framework=next so pltt reads frontend/next.config.ts while still publishing a native Palette module.",
|
|
11
|
+
"agent": {
|
|
12
|
+
"summary": "A screen members open inside Palette.",
|
|
13
|
+
"instructions": "This app has no actions an assistant can call. Offer to open it when the member asks for it."
|
|
14
|
+
},
|
|
11
15
|
"icon": "Puzzle",
|
|
12
16
|
"gradient": { "bg": "linear-gradient(135deg, #0F766E, #2563EB)", "text": "#fff" },
|
|
13
17
|
"sdk": { "frontend": "^0.1.16" },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
from fastapi import APIRouter
|
|
2
|
-
from palette_sdk import require_permission
|
|
2
|
+
from palette_sdk import agent_route, require_permission
|
|
3
3
|
|
|
4
4
|
router = APIRouter()
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
@router.get("/health", dependencies=[require_permission("data_rooms:read")])
|
|
7
|
+
@router.get("/health", dependencies=[require_permission("data_rooms:read")], openapi_extra=agent_route("hidden"))
|
|
8
8
|
async def health():
|
|
9
9
|
return {"ok": True}
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"category": "Productivity",
|
|
9
9
|
"tagline": "A routed Palette OS app",
|
|
10
10
|
"description": "Uses Palette-native app-directory routing while publishing as a safe frontend bundle.",
|
|
11
|
+
"agent": {
|
|
12
|
+
"summary": "A routed app with a meetings screen.",
|
|
13
|
+
"instructions": "This app has no actions an assistant can call yet. Offer to open it when the member asks about their meetings."
|
|
14
|
+
},
|
|
11
15
|
"icon": "PanelTop",
|
|
12
16
|
"gradient": { "bg": "linear-gradient(135deg, #0F766E, #2563EB)", "text": "#fff" },
|
|
13
17
|
"sdk": { "frontend": "^0.1.16", "backend": "^0.1.8" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from fastapi import Depends
|
|
2
|
-
from palette_sdk import PluginContext, PluginRouter, get_plugin_context, service
|
|
2
|
+
from palette_sdk import PluginContext, PluginRouter, agent_route, get_plugin_context, require_permission, service
|
|
3
3
|
|
|
4
4
|
router = PluginRouter()
|
|
5
5
|
|
|
@@ -20,6 +20,6 @@ async def approval_chain(ctx: PluginContext, payload: dict) -> dict:
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
@router.get("/health")
|
|
23
|
+
@router.get("/health", dependencies=[require_permission("resources:read")], openapi_extra=agent_route("hidden"))
|
|
24
24
|
async def health(ctx: PluginContext = Depends(get_plugin_context)):
|
|
25
25
|
return {"ok": True, "plugin_id": ctx.plugin_id}
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
"category": "Productivity",
|
|
9
9
|
"tagline": "Expose governed services to other apps",
|
|
10
10
|
"description": "Example provider app exposing employee hierarchy through the OS broker.",
|
|
11
|
+
"agent": {
|
|
12
|
+
"summary": "Answers who approves a request for an employee.",
|
|
13
|
+
"instructions": "Other apps ask this app for an employee's approval chain through the OS broker. It only reads. It raises hierarchy.updated when a reporting line changes."
|
|
14
|
+
},
|
|
11
15
|
"icon": "UsersThree",
|
|
12
16
|
"gradient": {
|
|
13
17
|
"bg": "linear-gradient(135deg, #0F766E, #2563EB)",
|
|
@@ -43,6 +47,7 @@
|
|
|
43
47
|
{
|
|
44
48
|
"topic": "hierarchy.updated",
|
|
45
49
|
"version": "v1",
|
|
50
|
+
"description": "An employee's reporting line changed.",
|
|
46
51
|
"schema": "schemas/hierarchy.updated.json"
|
|
47
52
|
}
|
|
48
53
|
]
|