@piagent/platform 1.5.2 → 1.5.4
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 +54 -1
- package/README.md +8 -2
- package/README.vi.md +23 -1
- package/benchmarks/capability-v1/DESIGN.md +30 -0
- package/benchmarks/capability-v1/coverage.json +23 -1
- package/benchmarks/capability-v1/grade.mjs +246 -0
- package/benchmarks/capability-v1/project/apps/web/src/control-view.js +3 -0
- package/benchmarks/capability-v1/project/apps/web/src/timeline-view.js +3 -0
- package/benchmarks/capability-v1/project/packages/session/src/admission.js +7 -0
- package/benchmarks/capability-v1/project/packages/session/src/runtime-route.js +3 -0
- package/benchmarks/capability-v1/project/packages/timeline/src/checkpoint.js +7 -0
- package/benchmarks/capability-v1/project/packages/timeline/src/project.js +7 -0
- package/benchmarks/capability-v1/project/test/smoke.test.js +19 -1
- package/benchmarks/capability-v1/prompts/causal-timeline-recovery.md +47 -0
- package/benchmarks/capability-v1/prompts/durable-session-control-plane.md +47 -0
- package/benchmarks/capability-v1/references/causal-timeline-recovery/apps/web/src/timeline-view.js +9 -0
- package/benchmarks/capability-v1/references/causal-timeline-recovery/packages/timeline/src/checkpoint.js +22 -0
- package/benchmarks/capability-v1/references/causal-timeline-recovery/packages/timeline/src/project.js +77 -0
- package/benchmarks/capability-v1/references/durable-session-control-plane/apps/web/src/control-view.js +4 -0
- package/benchmarks/capability-v1/references/durable-session-control-plane/packages/session/src/admission.js +52 -0
- package/benchmarks/capability-v1/references/durable-session-control-plane/packages/session/src/runtime-route.js +27 -0
- package/benchmarks/capability-v1/rubric.json +26 -0
- package/benchmarks/capability-v1/suite.json +32 -4
- package/benchmarks/capability-v1/variant.mjs +11 -0
- package/benchmarks/deep-logic-v1/grade.mjs +165 -0
- package/benchmarks/deep-logic-v1/project/README.md +3 -0
- package/benchmarks/deep-logic-v1/project/package.json +6 -0
- package/benchmarks/deep-logic-v1/project/src/config-transaction.js +3 -0
- package/benchmarks/deep-logic-v1/project/src/context-pack.js +3 -0
- package/benchmarks/deep-logic-v1/project/src/event-reconcile.js +3 -0
- package/benchmarks/deep-logic-v1/project/src/policy.js +3 -0
- package/benchmarks/deep-logic-v1/project/src/scheduler.js +3 -0
- package/benchmarks/deep-logic-v1/project/src/stream.js +3 -0
- package/benchmarks/deep-logic-v1/project/test/smoke.test.js +20 -0
- package/benchmarks/deep-logic-v1/prompts/budgeted-context-graph.md +13 -0
- package/benchmarks/deep-logic-v1/prompts/fair-dependency-scheduler.md +13 -0
- package/benchmarks/deep-logic-v1/prompts/layered-policy-resolution.md +14 -0
- package/benchmarks/deep-logic-v1/prompts/resumable-stream-assembly.md +13 -0
- package/benchmarks/deep-logic-v1/prompts/revision-event-reconciliation.md +14 -0
- package/benchmarks/deep-logic-v1/prompts/transactional-config-merge.md +13 -0
- package/benchmarks/deep-logic-v1/suite.json +95 -0
- package/benchmarks/deep-logic-v1/variant.mjs +28 -0
- package/docs/command-reference-vietnamese.md +5 -2
- package/docs/distribution-standard.md +7 -7
- package/docs/languages.json +2 -2
- package/docs/operator-manual-vietnamese.md +7 -7
- package/docs/publishing-for-teams.md +7 -0
- package/docs/quality-benchmark.md +49 -10
- package/docs/release-install-policy.md +6 -6
- package/docs/security-threat-model.md +1 -1
- 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/context-engine.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/index.html +1 -1
- 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 +1 -1
- package/docs-site/en/workflows.html +1 -1
- package/docs-site/index.html +1 -1
- 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 +1 -1
- package/docs-site/workflows.html +1 -1
- package/evals/fixtures/benchmark-assurance-evidence.invalid.json +2 -2
- package/evals/fixtures/benchmark-assurance-evidence.valid.json +2 -2
- package/evals/fixtures/piagent-webui/runtime-command-v1.invalid.json +12 -0
- package/evals/fixtures/piagent-webui/runtime-command-v1.valid.json +11 -0
- package/evals/fs4-readiness-matrix.v1.json +2 -2
- package/evals/fs5-causal-arm.v1.json +1 -1
- package/evals/fs5-pilot-protocol.v1.json +1 -1
- package/evals/fs5-pilot-protocol.v4.json +1 -1
- package/evals/fs5-pilot-protocol.v5.json +1 -1
- package/evals/private-holdout-v1/public-exposure.v1.json +3 -3
- package/evals/real-task-taxonomy.v1.json +5 -1
- package/package.json +3 -1
- package/packages/piagent-core/benchmark/benchmark-bootstrap.js +3 -2
- package/packages/piagent-core/benchmark/benchmark-cli.js +5 -1
- package/packages/piagent-core/benchmark/benchmark-matrix.js +1 -1
- package/packages/piagent-core/benchmark/benchmark-suite-runtime.js +1 -0
- package/packages/piagent-core/extensions/acceptance-boundary-guidance.js +64 -0
- package/packages/piagent-core/extensions/acceptance-contract-semantics.js +3 -2
- package/packages/piagent-core/package.json +1 -1
- package/packages/piagent-core/runtime/quality/performance-assurance.ts +6 -4
- package/packages/piagent-core/runtime/registration/task-start-tool.ts +2 -2
- package/packages/piagent-core/runtime/workflows/webui-runtime-command.ts +89 -0
- package/packages/piagent-core/runtime/workflows/webui-workflow.ts +51 -0
- package/packages/piagent-webui/dist/client/assets/{MarkdownMessage-CbUK4gg2.js → MarkdownMessage-rD9WJKxs.js} +1 -1
- package/packages/piagent-webui/dist/client/assets/index-BZRFw1u6.js +174 -0
- package/packages/piagent-webui/dist/client/index.html +1 -1
- package/packages/piagent-webui/gateway/gateway-service.ts +3 -0
- package/packages/piagent-webui/gateway/gateway-session-stream.ts +10 -0
- package/packages/piagent-webui/gateway/rpc-ui-context.ts +28 -0
- package/packages/piagent-webui/gateway/runtime-command-controller.ts +126 -0
- package/packages/piagent-webui/gateway/runtime-session-controls.ts +29 -0
- package/packages/piagent-webui/gateway/session-command-controller.ts +23 -7
- package/packages/piagent-webui/gateway/session-inspection-registry.ts +22 -1
- package/packages/piagent-webui/gateway/session-operation-start.ts +34 -0
- package/packages/piagent-webui/gateway/session-runtime-supervisor.ts +24 -42
- package/packages/piagent-webui/package.json +2 -1
- package/packages/piagent-webui/server/loopback-server.ts +17 -0
- package/schemas/piagent-webui/catalog-v1.json +9 -0
- package/schemas/piagent-webui/runtime-command-v1.schema.json +70 -0
- package/schemas/piagent-webui/session-command-v1.schema.json +8 -0
- package/packages/piagent-webui/dist/client/assets/index-CNbYWd-R.js +0 -174
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://piagent.io.vn/schemas/piagent-webui/runtime-command-v1.schema.json",
|
|
4
|
+
"title": "Piagent WebUI typed runtime command and receipt v1",
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{ "$ref": "#/$defs/command" },
|
|
7
|
+
{ "$ref": "#/$defs/receipt" }
|
|
8
|
+
],
|
|
9
|
+
"$defs": {
|
|
10
|
+
"action": {
|
|
11
|
+
"enum": [
|
|
12
|
+
"runtime.status", "runtime.inspector", "runtime.commands", "orchestration.status",
|
|
13
|
+
"usage.live", "usage.history", "usage.logs", "usage.efficiency", "usage.preflight",
|
|
14
|
+
"onboarding.status", "onboarding.profile", "onboarding.tech",
|
|
15
|
+
"profile.status", "profile.options", "profile.tech-options", "profile.apply", "profile.auto",
|
|
16
|
+
"context.status", "context.rebuild", "context.search", "context.pack", "context.impact", "context.efficiency", "context.preflight", "context.compact",
|
|
17
|
+
"memory.status",
|
|
18
|
+
"mcp.status", "mcp.doctor", "mcp.detail", "mcp.approve", "mcp.reject", "mcp.reset"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"effect": { "enum": ["read-only", "workspace-write", "model-assisted"] },
|
|
22
|
+
"output": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": false,
|
|
25
|
+
"required": ["customType", "content", "truncated", "redacted"],
|
|
26
|
+
"properties": {
|
|
27
|
+
"customType": { "type": "string", "minLength": 1, "maxLength": 120, "pattern": "^[A-Za-z0-9._-]+$" },
|
|
28
|
+
"content": { "type": "string", "maxLength": 12000, "pattern": "^[^\\u0000]*$" },
|
|
29
|
+
"truncated": { "type": "boolean" },
|
|
30
|
+
"redacted": { "type": "boolean" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"command": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["schemaVersion", "version", "messageType", "requestId", "sessionRef", "expectedSessionRevision", "action", "argument", "confirmed"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"schemaVersion": { "const": 1 },
|
|
39
|
+
"version": { "const": "piagent-runtime-command-v1" },
|
|
40
|
+
"messageType": { "const": "command" },
|
|
41
|
+
"requestId": { "$ref": "common-v1.schema.json#/$defs/opaqueRef" },
|
|
42
|
+
"sessionRef": { "$ref": "common-v1.schema.json#/$defs/opaqueRef" },
|
|
43
|
+
"expectedSessionRevision": { "$ref": "common-v1.schema.json#/$defs/revisionToken" },
|
|
44
|
+
"action": { "$ref": "#/$defs/action" },
|
|
45
|
+
"argument": { "type": ["string", "null"], "maxLength": 2048, "pattern": "^[^\\u0000]*$" },
|
|
46
|
+
"confirmed": { "type": "boolean" }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"receipt": {
|
|
50
|
+
"type": "object",
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"required": ["schemaVersion", "version", "messageType", "requestId", "sessionRef", "action", "state", "resultCode", "effect", "modelCallObserved", "outputs", "sessionRevisionAfter", "reasonCode"],
|
|
53
|
+
"properties": {
|
|
54
|
+
"schemaVersion": { "const": 1 },
|
|
55
|
+
"version": { "const": "piagent-runtime-receipt-v1" },
|
|
56
|
+
"messageType": { "const": "receipt" },
|
|
57
|
+
"requestId": { "$ref": "common-v1.schema.json#/$defs/opaqueRef" },
|
|
58
|
+
"sessionRef": { "$ref": "common-v1.schema.json#/$defs/opaqueRef" },
|
|
59
|
+
"action": { "$ref": "#/$defs/action" },
|
|
60
|
+
"state": { "enum": ["settled", "rejected", "uncertain"] },
|
|
61
|
+
"resultCode": { "enum": ["completed", "stale-revision", "confirmation-required", "runtime-busy", "invalid-command", "effect-unknown", "unavailable"] },
|
|
62
|
+
"effect": { "$ref": "#/$defs/effect" },
|
|
63
|
+
"modelCallObserved": { "type": "boolean" },
|
|
64
|
+
"outputs": { "type": "array", "maxItems": 8, "items": { "$ref": "#/$defs/output" } },
|
|
65
|
+
"sessionRevisionAfter": { "$ref": "common-v1.schema.json#/$defs/nullableRevisionToken" },
|
|
66
|
+
"reasonCode": { "$ref": "common-v1.schema.json#/$defs/nullableReasonCode" }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"thinkingLevel": { "enum": ["off", "minimal", "low", "medium", "high", "xhigh", "max"] },
|
|
17
17
|
"permissionMode": { "enum": ["read-only", "workspace-write", "trusted-full-access"] },
|
|
18
|
+
"workflow": { "enum": ["task", "scout", "be-to-fe", "discuss", "plan", "review", "commit", "pr", "onboard", "platform-improve"] },
|
|
18
19
|
"baseCommandProperties": {
|
|
19
20
|
"type": "object",
|
|
20
21
|
"additionalProperties": false,
|
|
@@ -55,6 +56,8 @@
|
|
|
55
56
|
"placeRef": { "$ref": "common-v1.schema.json#/$defs/opaqueRef" },
|
|
56
57
|
"modelRef": { "$ref": "common-v1.schema.json#/$defs/nullableOpaqueRef" },
|
|
57
58
|
"thinkingLevel": { "$ref": "#/$defs/thinkingLevel" },
|
|
59
|
+
"permissionMode": { "$ref": "#/$defs/permissionMode" },
|
|
60
|
+
"workflow": { "$ref": "#/$defs/workflow" },
|
|
58
61
|
"message": { "type": "string", "minLength": 1, "maxLength": 32768, "pattern": "^[^\\u0000]*$" },
|
|
59
62
|
"messageRequestId": { "$ref": "common-v1.schema.json#/$defs/opaqueRef" },
|
|
60
63
|
"deferInitialMessage": {
|
|
@@ -82,6 +85,7 @@
|
|
|
82
85
|
"required": ["delivery", "message", "messageRequestId", "expectedOperationRef", "attachmentRefs"],
|
|
83
86
|
"properties": {
|
|
84
87
|
"delivery": { "enum": ["new-operation", "follow-up", "steer"] },
|
|
88
|
+
"workflow": { "$ref": "#/$defs/workflow" },
|
|
85
89
|
"message": { "type": "string", "minLength": 1, "maxLength": 32768, "pattern": "^[^\\u0000]*$" },
|
|
86
90
|
"messageRequestId": { "$ref": "common-v1.schema.json#/$defs/opaqueRef" },
|
|
87
91
|
"expectedOperationRef": { "$ref": "common-v1.schema.json#/$defs/nullableOpaqueRef" },
|
|
@@ -101,6 +105,10 @@
|
|
|
101
105
|
{
|
|
102
106
|
"if": { "properties": { "delivery": { "const": "new-operation" } }, "required": ["delivery"] },
|
|
103
107
|
"then": { "properties": { "expectedOperationRef": { "type": "null" } } }
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"if": { "properties": { "workflow": { "$ref": "#/$defs/workflow" } }, "required": ["workflow"] },
|
|
111
|
+
"then": { "properties": { "delivery": { "const": "new-operation" } } }
|
|
104
112
|
}
|
|
105
113
|
]
|
|
106
114
|
}
|