@piagent/platform 1.21.0 → 1.21.1
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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/README.vi.md +1 -1
- package/docs/command-reference-vietnamese.md +2 -2
- package/docs/distribution-standard.md +6 -6
- package/docs/languages.json +2 -2
- package/docs/operator-manual-vietnamese.md +7 -7
- package/docs/publishing-for-teams.md +1 -0
- package/docs/release-install-policy.md +2 -2
- package/docs/team-onboarding.md +2 -2
- package/docs-site/architecture.html +1 -1
- package/docs-site/benchmark.html +1 -1
- package/docs-site/commands.html +1 -1
- package/docs-site/content/en/index.html +4 -4
- package/docs-site/content/en/whats-new.html +6 -0
- package/docs-site/content/index.html +4 -4
- package/docs-site/content/whats-new.html +6 -0
- package/docs-site/context-engine.html +1 -1
- package/docs-site/ecosystem.html +1 -1
- package/docs-site/en/architecture.html +1 -1
- package/docs-site/en/benchmark.html +1 -1
- package/docs-site/en/commands.html +1 -1
- package/docs-site/en/context-engine.html +1 -1
- package/docs-site/en/ecosystem.html +1 -1
- package/docs-site/en/index.html +5 -5
- package/docs-site/en/mcp-approval.html +1 -1
- package/docs-site/en/mcp-auth.html +1 -1
- package/docs-site/en/mcp-servers.html +1 -1
- package/docs-site/en/mcp.html +1 -1
- package/docs-site/en/permissions.html +1 -1
- package/docs-site/en/profiles.html +1 -1
- package/docs-site/en/quickstart.html +1 -1
- package/docs-site/en/runtime.html +1 -1
- package/docs-site/en/scope.html +1 -1
- package/docs-site/en/security.html +1 -1
- package/docs-site/en/team.html +1 -1
- package/docs-site/en/whats-new.html +7 -1
- package/docs-site/en/windows.html +1 -1
- package/docs-site/en/workflows.html +1 -1
- package/docs-site/index.html +5 -5
- package/docs-site/mcp-approval.html +1 -1
- package/docs-site/mcp-auth.html +1 -1
- package/docs-site/mcp-servers.html +1 -1
- package/docs-site/mcp.html +1 -1
- package/docs-site/permissions.html +1 -1
- package/docs-site/profiles.html +1 -1
- package/docs-site/quickstart.html +1 -1
- package/docs-site/runtime.html +1 -1
- package/docs-site/scope.html +1 -1
- package/docs-site/security.html +1 -1
- package/docs-site/team.html +1 -1
- package/docs-site/whats-new.html +7 -1
- package/docs-site/windows.html +1 -1
- package/docs-site/workflows.html +1 -1
- package/evals/private-holdout-v1/public-exposure.v2.json +1 -1
- package/package.json +1 -1
- package/packages/piagent-core/package.json +1 -1
- package/packages/piagent-webui/dist/client/assets/{MarkdownMessage-gIQf0oYL.js → MarkdownMessage-B8LT9b1N.js} +1 -1
- package/packages/piagent-webui/dist/client/assets/index-DgcAGoYc.js +231 -0
- package/packages/piagent-webui/dist/client/index.html +1 -1
- package/packages/piagent-webui/gateway/runtime-session-controls.ts +2 -1
- package/packages/piagent-webui/gateway/session-runtime-supervisor.ts +1 -1
- package/packages/piagent-webui/dist/client/assets/index-C86-7gi8.js +0 -231
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="csp-nonce" content="__PIAGENT_CSP_NONCE__" />
|
|
8
8
|
<meta name="piagent-webui-mode" content="__PIAGENT_WEBUI_MODE__" />
|
|
9
9
|
<title>Piagent WebUI</title>
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-DgcAGoYc.js"></script>
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/assets/index-ZLemRWyJ.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
@@ -16,7 +16,8 @@ type RuntimeCommandOutput = {
|
|
|
16
16
|
export async function executePermissionCommand(session: any,
|
|
17
17
|
permissionMode: "read-only" | "workspace-write" | "trusted-full-access"): Promise<void> {
|
|
18
18
|
// A company conversation: "Ask first" or "Bypass" (no read-only mode); the
|
|
19
|
-
// runtime keeps the choice in the conversation
|
|
19
|
+
// runtime keeps the choice in the conversation and reads it at each command,
|
|
20
|
+
// so it may change while a turn runs (the supervisor lets it).
|
|
20
21
|
if (session.managedExecution) {
|
|
21
22
|
if (typeof session.managedSetPermission !== "function" || permissionMode === "read-only") throw new Error("managed-permission-unavailable");
|
|
22
23
|
session.managedSetPermission(permissionMode);
|
|
@@ -369,7 +369,7 @@ export class SessionRuntimeSupervisor {
|
|
|
369
369
|
await this.acquire(sessionRef);
|
|
370
370
|
const active = this.#active.get(sessionRef), session = active?.runtime.session;
|
|
371
371
|
if (!active || !session) throw new Error("session-runtime-unavailable");
|
|
372
|
-
if (active.operationRef || !session.isIdle) throw new Error("session-runtime-busy");
|
|
372
|
+
if (!session.managedExecution && (active.operationRef || !session.isIdle)) throw new Error("session-runtime-busy");
|
|
373
373
|
await executePermissionCommand(session, permissionMode);
|
|
374
374
|
this.#touchCreated(sessionRef);
|
|
375
375
|
return "permission-changed";
|