@piagent/platform 1.9.0 → 1.9.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 +35 -1
- 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 +15 -0
- package/docs-site/content/index.html +4 -4
- package/docs-site/content/whats-new.html +15 -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 +16 -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 +16 -1
- package/docs-site/workflows.html +1 -1
- package/evals/private-holdout-v1/public-exposure.v2.json +2 -2
- package/package.json +1 -1
- package/packages/piagent-core/managed/client-agent.mjs +6 -0
- package/packages/piagent-core/managed/helper-roles.mjs +57 -0
- package/packages/piagent-core/managed/request-stream.mjs +2 -1
- package/packages/piagent-core/managed/session.mjs +45 -24
- package/packages/piagent-core/managed/tool-boundary.mjs +44 -12
- package/packages/piagent-core/managed/web-search.mjs +38 -3
- package/packages/piagent-core/managed/workflow.mjs +29 -2
- package/packages/piagent-core/package.json +1 -1
- package/packages/piagent-core/runtime/managed-failure.d.mts +1 -1
- package/packages/piagent-core/runtime/managed-failure.mjs +5 -3
- package/packages/piagent-webui/dist/client/assets/{MarkdownMessage-Dd9wPk-v.js → MarkdownMessage-BRPIMCRh.js} +1 -1
- package/packages/piagent-webui/dist/client/assets/{index-7I-50Q2U.js → index-DNJ1vH5d.js} +3 -3
- package/packages/piagent-webui/dist/client/index.html +1 -1
- package/packages/piagent-webui/server/transcript-projection.ts +1 -1
- package/schemas/piagent-webui/transcript-v1.schema.json +1 -1
- package/scripts/init-project.sh +0 -2
- package/scripts/install-global.sh +3 -2
- package/scripts/setup.sh +10 -6
|
@@ -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-DNJ1vH5d.js"></script>
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/assets/index-DgSmcnP8.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
@@ -100,7 +100,7 @@ function userMessageProjection(message: any): { text: string; attachments: Trans
|
|
|
100
100
|
}
|
|
101
101
|
// A company request fails with Studio's (or Agent Watch's) own code: who
|
|
102
102
|
// failed, which kind of failure, and Studio's request id. Text is never shown.
|
|
103
|
-
export type CompanyFailure = { role: "main" | "research" | "review"; reasonCode: string; code: string; requestRef: string | null; local: boolean };
|
|
103
|
+
export type CompanyFailure = { role: "main" | "scout" | "research" | "verify" | "review"; reasonCode: string; code: string; requestRef: string | null; local: boolean };
|
|
104
104
|
export function companyFailure(text: unknown): CompanyFailure | null {
|
|
105
105
|
const parsed = parseFailure(text);
|
|
106
106
|
if (!parsed || !/^[A-Za-z0-9][A-Za-z0-9_:.-]{0,79}$/.test(parsed.code)) return null;
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"additionalProperties": false,
|
|
192
192
|
"required": ["role", "reasonCode", "code", "requestRef", "local"],
|
|
193
193
|
"properties": {
|
|
194
|
-
"role": { "enum": ["main", "research", "review"] },
|
|
194
|
+
"role": { "enum": ["main", "scout", "research", "verify", "review"] },
|
|
195
195
|
"reasonCode": { "$ref": "common-v1.schema.json#/$defs/reasonCode" },
|
|
196
196
|
"code": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9_:.-]{0,79}$" },
|
|
197
197
|
"requestRef": { "anyOf": [{ "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, { "type": "null" }] },
|
package/scripts/init-project.sh
CHANGED
|
@@ -315,8 +315,6 @@ echo "Next:"
|
|
|
315
315
|
echo " cd \"$PROJECT_PATH\""
|
|
316
316
|
echo " pi"
|
|
317
317
|
echo " /login # first time only"
|
|
318
|
-
echo " /onboard # open onboarding menu/status"
|
|
319
|
-
echo " /onboard run # first project-read after model selection"
|
|
320
318
|
echo " /mcp # MCP servers come from the global install, not from this project"
|
|
321
319
|
echo " /context index # inspect compact project context index"
|
|
322
320
|
echo " /memory # inspect project memory policy when needed"
|
|
@@ -780,5 +780,6 @@ echo " /scoped-models # optional: edit Ctrl+P model cycle scope"
|
|
|
780
780
|
if [[ "$WITH_MCP" == true ]]; then
|
|
781
781
|
echo " /mcp # inspect MCP servers; authenticate approved remote servers only when needed"
|
|
782
782
|
fi
|
|
783
|
-
|
|
784
|
-
echo " /
|
|
783
|
+
if [[ "$WITH_SUBAGENTS" == true ]]; then
|
|
784
|
+
echo " /subagents-doctor"
|
|
785
|
+
fi
|
package/scripts/setup.sh
CHANGED
|
@@ -495,15 +495,19 @@ echo " /login # first time only"
|
|
|
495
495
|
if [[ "$DO_PROJECT" == true ]]; then
|
|
496
496
|
echo " /model # or Ctrl+L: select provider/model from Pi selector"
|
|
497
497
|
echo " /scoped-models # optional: edit Ctrl+P model cycle scope"
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
498
|
+
# Only commands this run installed: Pi sends an unknown slash command to the
|
|
499
|
+
# model as a message, which starts a paid turn.
|
|
500
|
+
if [[ "$DO_GLOBAL" == true && "$WITH_MCP" == true ]]; then
|
|
501
|
+
echo " /mcp # inspect MCP servers; run /mcp setup for guided changes"
|
|
502
|
+
fi
|
|
503
|
+
if [[ "$DO_GLOBAL" == true && "$WITH_SUBAGENTS" == true ]]; then
|
|
504
|
+
echo " /subagents-doctor # inspect subagent setup"
|
|
505
|
+
fi
|
|
506
|
+
echo " /memory # inspect project memory policy when needed"
|
|
503
507
|
fi
|
|
504
508
|
echo
|
|
505
509
|
echo "Daily flow after setup:"
|
|
506
510
|
echo " herdr # optional"
|
|
507
511
|
echo " cd <project>"
|
|
508
512
|
echo " pi"
|
|
509
|
-
echo "
|
|
513
|
+
echo " then say what you want in plain language, e.g. Implement <task>"
|