forked from retoor/devplacepy
Update
This commit is contained in:
@@ -13,6 +13,13 @@ Run supervised container instances for a project. There is no in-app image build
|
||||
runs one shared prebuilt image (`ppy:latest`) with the project's workspace mounted at `/app`. Every
|
||||
endpoint is **administrator only** (docker socket access is root-equivalent). Mutations flip desired
|
||||
state; a single reconciler converges containers to it.
|
||||
|
||||
Containers are additionally **isolated per user**. The primary administrator (the first Admin account)
|
||||
sees and manages every instance, including those attached to private projects. Any other administrator
|
||||
sees instances on public projects plus their own; instances attached to another user's private project
|
||||
are invisible. Managing an instance (edit, lifecycle, exec, terminal, sync, delete, schedules) is
|
||||
restricted to the instance owner (its creator or the owner of its project) and the primary
|
||||
administrator; a non-owner administrator receives `403` on mutations and a view-only detail page.
|
||||
""",
|
||||
"endpoints": [
|
||||
endpoint(
|
||||
@@ -20,7 +27,7 @@ state; a single reconciler converges containers to it.
|
||||
method="GET",
|
||||
path="/projects/{project_slug}/containers",
|
||||
title="Container manager page",
|
||||
summary="The admin per-project container manager UI (instance creation and lifecycle). Returns 404 for an administrator who is not the owner of an administrator-hidden project.",
|
||||
summary="The admin per-project container manager UI (instance creation and lifecycle). Returns 404 for an administrator when the project is another user's private project (the primary administrator always has access).",
|
||||
auth="admin",
|
||||
interactive=True,
|
||||
params=[
|
||||
@@ -39,7 +46,7 @@ state; a single reconciler converges containers to it.
|
||||
method="GET",
|
||||
path="/admin/containers",
|
||||
title="Admin containers list",
|
||||
summary="The admin Containers section: every instance across all projects, each linking to its detail page. Instances attached to another administrator's hidden project are excluded, and per-instance actions return 404 for a non-owner administrator.",
|
||||
summary="The admin Containers section, scoped per viewer: the primary administrator sees every instance; other administrators see instances on public projects plus their own. Rows the viewer cannot manage are view-only, and mutations on them return 403.",
|
||||
auth="admin",
|
||||
interactive=True,
|
||||
),
|
||||
@@ -48,7 +55,7 @@ state; a single reconciler converges containers to it.
|
||||
method="GET",
|
||||
path="/admin/containers/data",
|
||||
title="Admin containers list data",
|
||||
summary="JSON of every instance across all projects (decorated with project title/slug) for polling.",
|
||||
summary="JSON of the viewer-visible instances (decorated with project title/slug and a per-row can_manage flag) for polling.",
|
||||
auth="admin",
|
||||
sample_response={
|
||||
"instances": [
|
||||
|
||||
@@ -207,7 +207,7 @@ status and report.
|
||||
method="GET",
|
||||
path="/tools/deepsearch/{uid}/session",
|
||||
title="DeepSearch report",
|
||||
summary="Full cited research report: summary, findings, gaps, sources and metrics. Negotiates HTML or JSON.",
|
||||
summary="Full cited research report: summary, findings, sources and metrics. Negotiates HTML or JSON.",
|
||||
auth="public",
|
||||
params=[
|
||||
field("uid", "path", "string", True, "DEEPSEARCH_JOB_UID", "DeepSearch job uid of a finished run."),
|
||||
@@ -225,7 +225,6 @@ status and report.
|
||||
"findings": [
|
||||
{"title": "Invention", "detail": "...", "confidence": 0.8, "citations": [1]}
|
||||
],
|
||||
"gaps": ["Limited coverage of later MOSFET developments."],
|
||||
"sources": [{"url": "https://example.com", "title": "Example", "source": "httpx"}],
|
||||
"chat_ws_url": "/tools/deepsearch/DEEPSEARCH_JOB_UID/chat",
|
||||
"export_md_url": "/tools/deepsearch/DEEPSEARCH_JOB_UID/export.md",
|
||||
|
||||
Reference in New Issue
Block a user