@rosetears/aili-pi 0.1.8 → 0.1.10

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.
Files changed (63) hide show
  1. package/README.md +7 -7
  2. package/THIRD_PARTY_NOTICES.md +12 -12
  3. package/docs/persistent-agents.md +114 -0
  4. package/extensions/matrix/index.ts +24 -8
  5. package/extensions/zentui/config.ts +13 -13
  6. package/extensions/zentui/format.ts +15 -1
  7. package/extensions/zentui/gradient.ts +22 -13
  8. package/extensions/zentui/tool-execution.ts +7 -4
  9. package/manifests/adapter-evidence.json +53 -20
  10. package/manifests/capabilities.json +3 -3
  11. package/manifests/live-verification.json +18 -19
  12. package/manifests/provenance.json +12 -12
  13. package/manifests/roles.json +270 -57
  14. package/manifests/sbom.json +1 -128
  15. package/manifests/skill-compatibility.json +57 -61
  16. package/manifests/subagent-provenance.json +8 -15
  17. package/package.json +3 -3
  18. package/roles/agent-evaluator.md +8 -3
  19. package/roles/ai-regression-scout.md +8 -3
  20. package/roles/browser-qa-runner.md +8 -3
  21. package/roles/code-reviewer.md +8 -3
  22. package/roles/code-scout.md +8 -3
  23. package/roles/convergence-reviewer.md +8 -3
  24. package/roles/doc-researcher.md +8 -3
  25. package/roles/e2e-artifact-runner.md +8 -3
  26. package/roles/general.md +49 -0
  27. package/roles/implementer.md +8 -3
  28. package/roles/opensource-sanitizer.md +8 -3
  29. package/roles/plan-auditor.md +8 -3
  30. package/roles/pr-test-analyzer.md +8 -3
  31. package/roles/security-auditor.md +8 -3
  32. package/roles/silent-failure-reviewer.md +8 -3
  33. package/roles/spec-miner.md +8 -3
  34. package/roles/test-coverage-reviewer.md +8 -3
  35. package/roles/test-engineer.md +8 -3
  36. package/roles/web-performance-auditor.md +8 -3
  37. package/roles/web-researcher.md +8 -3
  38. package/scripts/sync-roles.ts +186 -24
  39. package/src/runtime/doctor.ts +38 -10
  40. package/src/runtime/global-resources.ts +5 -1
  41. package/src/runtime/index.ts +2 -2
  42. package/src/runtime/persistent-agents/hub.ts +429 -0
  43. package/src/runtime/persistent-agents/model-selection.ts +363 -0
  44. package/src/runtime/persistent-agents/output-delivery.ts +356 -0
  45. package/src/runtime/persistent-agents/permission.ts +223 -0
  46. package/src/runtime/persistent-agents/policy.ts +311 -0
  47. package/src/runtime/persistent-agents/production.ts +569 -0
  48. package/src/runtime/persistent-agents/runtime.ts +164 -0
  49. package/src/runtime/persistent-agents/sandbox.ts +68 -0
  50. package/src/runtime/persistent-agents/scheduler.ts +190 -0
  51. package/src/runtime/persistent-agents/session-factory.ts +184 -0
  52. package/src/runtime/persistent-agents/storage.ts +775 -0
  53. package/src/runtime/persistent-agents/task-coordinator.ts +460 -0
  54. package/src/runtime/persistent-agents/task-schema.ts +141 -0
  55. package/src/runtime/persistent-agents/types.ts +134 -0
  56. package/src/runtime/persistent-agents/workspace.ts +335 -0
  57. package/src/runtime/registry.ts +28 -32
  58. package/src/runtime/roles.ts +211 -18
  59. package/src/runtime/rose-context.ts +1 -1
  60. package/templates/APPEND_SYSTEM.md +1 -1
  61. package/themes/rose-cyberdeck.json +5 -9
  62. package/upstream/opencode-global-agents.lock.json +1 -1
  63. package/src/runtime/subagents.ts +0 -249
@@ -1,40 +1,39 @@
1
1
  {
2
- "schemaVersion": 2,
2
+ "schemaVersion": 3,
3
3
  "platform": "linux",
4
4
  "piVersion": "0.81.1",
5
- "subagentVersion": "0.4.8",
5
+ "runtime": "aili-persistent-agents-v1",
6
6
  "status": "passed",
7
- "approvedScope": "On 2026-07-24, the user authorized two bounded live probes after repository-local compatibility verification: an omitted-backend, agentless child restricted to reading package.json, and an explicit-headless credential guard child restricted to a disposable .env sentinel. Both probes used only their declared temporary artifact roots and completed without business-file changes.",
7
+ "approvedScope": "On 2026-07-25 the user authorized the local workspace provider probes, disposable external Git lifecycle test, release-only Persistent Agent worktree, positive child sandbox implementation/verification, version 0.1.10, commit, push to origin/main, and npm publication. Earlier @agwab/pi-subagent evidence is not reused.",
8
8
  "probes": [
9
9
  {
10
- "id": "generic-subagent-fixtures",
11
- "command": "npx vitest run tests/unit/subagents.test.ts tests/integration/generic-subagent.test.ts",
10
+ "id": "provider-turn",
12
11
  "status": "passed",
13
12
  "changedFiles": 0,
14
- "backendRequest": "matrix",
15
- "resolvedBackend": "headless"
13
+ "evidence": "artifacts/test-results/persistent-agent-framework/live-smoke-2026-07-25.json",
14
+ "reason": "Refreshed local-package runtime completed synchronous, persistent follow-up, and asynchronous official Pi AgentSession turns through openai-codex/gpt-5.6-sol."
16
15
  },
17
16
  {
18
- "id": "generic-agentless-default-path",
19
- "command": "AILI_LIVE_GENERIC_SUBAGENT_PROBE=1 npx vitest run tests/integration/live-subagent.test.ts",
17
+ "id": "child-sandbox",
20
18
  "status": "passed",
21
19
  "changedFiles": 0,
22
- "backendRequest": "omitted",
23
- "resolvedBackend": "headless"
20
+ "reason": "The child Bash definition reused the parent-initialized pi-permission-modes SandboxManager with a child-cwd-specific profile. A Bubblewrap live fixture allowed an in-scope write and denied both an out-of-scope write and a configured denyRead path; unavailable/worktree-incompatible executors remain fail closed.",
21
+ "verification": "AILI_RUN_CHILD_SANDBOX_LIVE=1 npx vitest run tests/integration/persistent-agent-live-gated.test.ts"
24
22
  },
25
23
  {
26
- "id": "generic-credential-guard-explicit-headless",
27
- "command": "AILI_LIVE_CREDENTIAL_GUARD_PROBE=1 npx vitest run tests/integration/live-subagent.test.ts",
24
+ "id": "external-workspace-lifecycle",
28
25
  "status": "passed",
29
26
  "changedFiles": 0,
30
- "backendRequest": "explicit-headless",
31
- "resolvedBackend": "headless"
27
+ "evidence": "artifacts/test-results/persistent-agent-framework/live-smoke-2026-07-25.json",
28
+ "reason": "An authorized disposable OS-temp Git repository passed dirty-baseline projection, isolated branch/worktree, child-only patch, unchanged main HEAD/status, cleanup, and no-revive assertions."
32
29
  }
33
30
  ],
34
31
  "implementation": {
35
- "src/runtime/subagents.ts": "9f09e0e8a380d026d82b0842f2c687da2f3529b43a7ef6d1a6aad47d71190d48",
36
- "tests/unit/subagents.test.ts": "16fc1fbd1759befeed03a2428294c28d662022622c61a6444e23b365dc7447aa",
37
- "tests/integration/live-subagent.test.ts": "b88750f74b203cdbdb9d0e453e16f720ff4d8e4591ca140e0a3c7e1d8428868c"
32
+ "src/runtime/persistent-agents/production.ts": "312ac2a3cd32b298550caedc09d74d97d279ef9380a7e03ca32a424b70121ee1",
33
+ "src/runtime/persistent-agents/runtime.ts": "fbf90c6c4ba573b64bca98e775aeb036ba8f28788e3919d0beebe52c36ef58de",
34
+ "src/runtime/persistent-agents/sandbox.ts": "8385b3f0ee85e29f52d294fc8c458157041fe93ac367a0b7af0cf44a845063ed",
35
+ "src/runtime/persistent-agents/permission.ts": "48b30508491bca7fcd04d82b30d9dde1423499c2f02c014074c3f030c7ebd8ba",
36
+ "src/runtime/persistent-agents/workspace.ts": "a39438c52708f0104ee9cb11d7fa4dcf8fe72db548decb2cc3f96995f94fa475"
38
37
  },
39
- "credentialHandling": "The explicit-headless credential guard probe used only a disposable .env sentinel. It completed with changedFiles=0; the sentinel was absent from the model-visible result and every temporary artifact before cleanup."
38
+ "credentialHandling": "Deterministic permission/output/history tests enforce fail-closed credential denial and redaction. The live provider probe consumed existing Pi authentication through the official child AgentSession; no credential values were read, exported, or copied into the sanitized evidence artifact."
40
39
  }
@@ -21,18 +21,6 @@
21
21
  ],
22
22
  "verification": ["npm run verify:skills", "npm run verify:roles", "tests/unit/global-resources.test.ts"]
23
23
  },
24
- {
25
- "name": "@agwab/pi-subagent",
26
- "repository": "https://github.com/AgwaB/pi-subagent.git",
27
- "revision": "daa7b83819116a62008ad17aa65fcd50fefbafd0",
28
- "version": "0.4.8",
29
- "license": "MIT",
30
- "status": "dependency",
31
- "sourceFiles": ["src/index.ts", "src/api.ts", "src/runners/headless-model.ts", "src/artifacts/result.ts"],
32
- "symbols": ["subagent tool renderCall", "runSubagent API", "headless lifecycle", "artifact envelope"],
33
- "localChanges": ["AILI registers the full pinned upstream subagent tool schema, prepends a sanitized bounded requested-Agent heading, injects a non-removable credential guard, normalizes ordinary omitted/auto runs to headless for the Pi 0.81.1 compatibility window, and rejects explicit inline before model startup; no upstream source is copied"],
34
- "verification": ["tests/unit/subagents.test.ts", "tests/integration/generic-subagent.test.ts", "tests/integration/live-subagent.test.ts", "tests/integration/package-runtime.test.ts"]
35
- },
36
24
  {
37
25
  "name": "pi-permission-modes",
38
26
  "repository": "https://github.com/wynainfo/pi-permission-modes.git",
@@ -115,6 +103,18 @@
115
103
  "symbols": ["header", "matrix animation", "Zentui footer", "fixed editor compositor"],
116
104
  "localChanges": ["registered as three additional Pi Package Extensions", "Rose header loads a package-owned renamed artwork asset without changing upstream identity", "Rose Shimmer, Rose Code Rain, and Zentui use the Rose-owned palette and gradient", "overflowing Matrix tracks remain deterministic across the complete terminal width with the 96-track budget, while each rain row receives a structural blank-row repair", "relative import specifiers and session lifecycle event are adapted for this package's NodeNext TypeScript contract"],
117
105
  "verification": ["tests/unit/matrix.test.ts", "tests/unit/zentui-gradient.test.ts", "npm run typecheck", "npm test", "npm pack --dry-run --json"]
106
+ },
107
+ {
108
+ "name": "Oh My Pi reference",
109
+ "repository": "https://github.com/can1357/oh-my-pi.git",
110
+ "revision": "59619623e1eeb7c290649eeaf3a269284ce8adef",
111
+ "version": "17.1.3",
112
+ "license": "MIT",
113
+ "status": "reference-only",
114
+ "sourceFiles": [],
115
+ "symbols": [],
116
+ "localChanges": [],
117
+ "verification": ["tests/integration/persistent-agent-runtime.test.ts", "tests/unit/persistent-agent-output-delivery.test.ts", "manual no-copy provenance inspection"]
118
118
  }
119
119
  ]
120
120
  }