psyclaw 0.33.1 → 0.34.0-preview.2
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/dist/apps/panel/index.html +16 -16
- package/dist/src/adapters/pi/arg-repair.d.ts +27 -0
- package/dist/src/adapters/pi/arg-repair.js +177 -0
- package/dist/src/adapters/pi/arg-repair.js.map +1 -0
- package/dist/src/adapters/pi/extension.js +1497 -540
- package/dist/src/adapters/pi/extension.js.map +1 -1
- package/dist/src/adapters/pi/observation-mask.d.ts +19 -0
- package/dist/src/adapters/pi/observation-mask.js +105 -2
- package/dist/src/adapters/pi/observation-mask.js.map +1 -1
- package/dist/src/adapters/pi/session.js +1 -1
- package/dist/src/adapters/pi/session.js.map +1 -1
- package/dist/src/analysis/decision-points.d.ts +4 -9
- package/dist/src/analysis/decision-points.js +20 -74
- package/dist/src/analysis/decision-points.js.map +1 -1
- package/dist/src/analysis/estimand.d.ts +127 -0
- package/dist/src/analysis/estimand.js +526 -0
- package/dist/src/analysis/estimand.js.map +1 -0
- package/dist/src/analysis/method-rules.d.ts +6 -0
- package/dist/src/analysis/method-rules.js +20 -3
- package/dist/src/analysis/method-rules.js.map +1 -1
- package/dist/src/analysis/package-net.d.ts +106 -0
- package/dist/src/analysis/package-net.js +277 -0
- package/dist/src/analysis/package-net.js.map +1 -0
- package/dist/src/analysis/plan.d.ts +6 -2
- package/dist/src/analysis/plan.js +34 -17
- package/dist/src/analysis/plan.js.map +1 -1
- package/dist/src/analysis/runtime-tools.d.ts +0 -6
- package/dist/src/analysis/runtime-tools.js +0 -156
- package/dist/src/analysis/runtime-tools.js.map +1 -1
- package/dist/src/analysis/shell-timeout.d.ts +21 -0
- package/dist/src/analysis/shell-timeout.js +87 -1
- package/dist/src/analysis/shell-timeout.js.map +1 -1
- package/dist/src/analysis/stats-router.d.ts +4 -8
- package/dist/src/analysis/stats-router.js +21 -23
- package/dist/src/analysis/stats-router.js.map +1 -1
- package/dist/src/ars/academic-router.d.ts +8 -8
- package/dist/src/ars/academic-router.js +22 -35
- package/dist/src/ars/academic-router.js.map +1 -1
- package/dist/src/ars/doctor.js +1 -2
- package/dist/src/ars/doctor.js.map +1 -1
- package/dist/src/ars/mode-editor.d.ts +7 -2
- package/dist/src/ars/mode-editor.js +15 -16
- package/dist/src/ars/mode-editor.js.map +1 -1
- package/dist/src/branding.d.ts +10 -0
- package/dist/src/branding.js +40 -33
- package/dist/src/branding.js.map +1 -1
- package/dist/src/chat.d.ts +1 -1
- package/dist/src/chat.js +12 -2
- package/dist/src/chat.js.map +1 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.js +1 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/install/installer.js +0 -5
- package/dist/src/install/installer.js.map +1 -1
- package/dist/src/integrations/mcp-format.d.ts +6 -0
- package/dist/src/integrations/mcp-format.js +52 -0
- package/dist/src/integrations/mcp-format.js.map +1 -0
- package/dist/src/orchestration/research-agents.js +1 -1
- package/dist/src/orchestration/research-agents.js.map +1 -1
- package/dist/src/orchestration/runner.d.ts +0 -1
- package/dist/src/orchestration/runner.js +0 -3
- package/dist/src/orchestration/runner.js.map +1 -1
- package/dist/src/orchestration/scheduler.js +0 -31
- package/dist/src/orchestration/scheduler.js.map +1 -1
- package/dist/src/panel/server.js +3 -4
- package/dist/src/panel/server.js.map +1 -1
- package/dist/src/project/hitl.js +3 -3
- package/dist/src/project/hitl.js.map +1 -1
- package/dist/src/project/workspace.js +8 -20
- package/dist/src/project/workspace.js.map +1 -1
- package/dist/src/research/decisions.d.ts +115 -0
- package/dist/src/research/decisions.js +284 -0
- package/dist/src/research/decisions.js.map +1 -0
- package/dist/src/research/intent.d.ts +90 -0
- package/dist/src/research/intent.js +175 -0
- package/dist/src/research/intent.js.map +1 -0
- package/dist/src/research/plan-message.d.ts +117 -0
- package/dist/src/research/plan-message.js +187 -0
- package/dist/src/research/plan-message.js.map +1 -0
- package/dist/src/research/practice.d.ts +33 -0
- package/dist/src/research/practice.js +160 -0
- package/dist/src/research/practice.js.map +1 -0
- package/dist/src/router/decision-model.d.ts +54 -0
- package/dist/src/router/decision-model.js +129 -0
- package/dist/src/router/decision-model.js.map +1 -0
- package/dist/src/rules/user-rules.js.map +1 -1
- package/dist/src/safety/data-access.js +4 -4
- package/dist/src/safety/data-access.js.map +1 -1
- package/dist/src/safety/secret-marks.d.ts +44 -0
- package/dist/src/safety/secret-marks.js +88 -0
- package/dist/src/safety/secret-marks.js.map +1 -0
- package/dist/src/session/continuously-work.js +1 -1
- package/dist/src/session/continuously-work.js.map +1 -1
- package/dist/src/session/help.js +29 -38
- package/dist/src/session/help.js.map +1 -1
- package/dist/src/session/modes.d.ts +24 -21
- package/dist/src/session/modes.js +81 -130
- package/dist/src/session/modes.js.map +1 -1
- package/dist/src/session/skill-invoke.d.ts +54 -0
- package/dist/src/session/skill-invoke.js +177 -0
- package/dist/src/session/skill-invoke.js.map +1 -0
- package/dist/src/session/skill-reference.d.ts +15 -0
- package/dist/src/session/skill-reference.js +35 -0
- package/dist/src/session/skill-reference.js.map +1 -0
- package/dist/src/skills/recommended.js +0 -2
- package/dist/src/skills/recommended.js.map +1 -1
- package/dist/src/skills/user-skills.js +11 -0
- package/dist/src/skills/user-skills.js.map +1 -1
- package/dist/src/style/cli-ui.js +15 -13
- package/dist/src/style/cli-ui.js.map +1 -1
- package/dist/src/tui/biosignal-wizard.js +1 -1
- package/dist/src/tui/biosignal-wizard.js.map +1 -1
- package/dist/src/tui/wake-options.d.ts +2 -2
- package/dist/src/tui/wake-options.js +8 -5
- package/dist/src/tui/wake-options.js.map +1 -1
- package/dist/src/updates/check.js +4 -2
- package/dist/src/updates/check.js.map +1 -1
- package/dist/src/updates/registry.d.ts +2 -1
- package/dist/src/updates/registry.js +2 -2
- package/dist/src/updates/registry.js.map +1 -1
- package/dist/src/updates/status.d.ts +9 -2
- package/dist/src/updates/status.js +43 -6
- package/dist/src/updates/status.js.map +1 -1
- package/dist/src/updates/update.js +7 -3
- package/dist/src/updates/update.js.map +1 -1
- package/dist/src/verify/checklist.d.ts +1 -1
- package/dist/src/verify/checklist.js +5 -5
- package/dist/src/verify/checklist.js.map +1 -1
- package/dist/src/wake-options/runtime.d.ts +9 -0
- package/dist/src/wake-options/runtime.js +39 -1
- package/dist/src/wake-options/runtime.js.map +1 -1
- package/dist/src/workflows/academic-export.js.map +1 -1
- package/dist/src/workflows/meta-analysis.js +1 -1
- package/dist/src/workflows/meta-analysis.js.map +1 -1
- package/package.json +2 -1
- package/skills/core/academic-grill/SKILL.md +3 -3
- package/skills/core/analysis-plan/SKILL.md +35 -32
- package/skills/core/manifest.json +12 -4
- package/skills/core/package-install/SKILL.md +35 -0
- package/skills/core/package-install/pkgnet.py +178 -0
- package/skills/recommended/mcp-catalog.json +1 -1
- package/dist/src/analysis/prior/apply.d.ts +0 -15
- package/dist/src/analysis/prior/apply.js +0 -98
- package/dist/src/analysis/prior/apply.js.map +0 -1
- package/dist/src/analysis/prior/checks.d.ts +0 -21
- package/dist/src/analysis/prior/checks.js +0 -233
- package/dist/src/analysis/prior/checks.js.map +0 -1
- package/dist/src/analysis/prior/constants.d.ts +0 -33
- package/dist/src/analysis/prior/constants.js +0 -117
- package/dist/src/analysis/prior/constants.js.map +0 -1
- package/dist/src/analysis/prior/gate.d.ts +0 -14
- package/dist/src/analysis/prior/gate.js +0 -93
- package/dist/src/analysis/prior/gate.js.map +0 -1
- package/dist/src/analysis/prior/memory.d.ts +0 -8
- package/dist/src/analysis/prior/memory.js +0 -46
- package/dist/src/analysis/prior/memory.js.map +0 -1
- package/dist/src/analysis/prior/reflect.d.ts +0 -6
- package/dist/src/analysis/prior/reflect.js +0 -48
- package/dist/src/analysis/prior/reflect.js.map +0 -1
- package/dist/src/analysis/prior/render.d.ts +0 -20
- package/dist/src/analysis/prior/render.js +0 -159
- package/dist/src/analysis/prior/render.js.map +0 -1
- package/dist/src/analysis/prior/submit.d.ts +0 -32
- package/dist/src/analysis/prior/submit.js +0 -213
- package/dist/src/analysis/prior/submit.js.map +0 -1
- package/dist/src/analysis/prior/tools.d.ts +0 -6
- package/dist/src/analysis/prior/tools.js +0 -38
- package/dist/src/analysis/prior/tools.js.map +0 -1
- package/dist/src/research/choice.d.ts +0 -16
- package/dist/src/research/choice.js +0 -25
- package/dist/src/research/choice.js.map +0 -1
- package/dist/src/skills/registry.d.ts +0 -28
- package/dist/src/skills/registry.js +0 -550
- package/dist/src/skills/registry.js.map +0 -1
- package/skills/core/prior-plan/SKILL.md +0 -53
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"academic-export.js","sourceRoot":"","sources":["../../../src/workflows/academic-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"academic-export.js","sourceRoot":"","sources":["../../../src/workflows/academic-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAMnE,iHAAiH;AACjH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,IAAY;IACvD,MAAM,QAAQ,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC;IAC5C,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE;QAAE,MAAM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AE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC3G,MAAM,UAAU,GAAG,MAAM,UAAU,CAAC,MAAM,CAAC,CAAC;IAC5C,MAAM,eAAe,CAAC,MAAM,qBAAqB,CAAC,IAAI,EAAE,sCAAsC,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC;QACjH,aAAa,EAAE,mCAAmC;QAClD,YAAY,EAAE,QAAQ,CAAC,IAAI;QAC3B,QAAQ;QACR,UAAU;QACV,cAAc,EAAE,yCAAyC;QACzD,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KACrC,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IACjB,OAAO;QACL,IAAI,EAAE,iBAAiB;QACvB,YAAY,EAAE,QAAQ,CAAC,IAAI;QAC3B,QAAQ;QACR,UAAU;QACV,MAAM,EAAE,gDAAgD;KACzD,CAAC;AACJ,CAAC"}
|
|
@@ -123,7 +123,7 @@ export function metaforScript(datasetPath) {
|
|
|
123
123
|
*/
|
|
124
124
|
export async function runMetaAnalysis(root, options) {
|
|
125
125
|
const runner = options.runner ?? createStageRunner();
|
|
126
|
-
|
|
126
|
+
await readProject(root); // fails early when the project is missing
|
|
127
127
|
const gates = [];
|
|
128
128
|
const studies = await runner.stage("intake", `检索 OpenAlex 数据库并提取 "${options.target}" 的实证研究`, async () => searchOpenAlex(options.target, options.nStudies, options.fetchFn ?? fetch), (found) => `命中 ${found.length} 项研究,登记为证据账本条目`);
|
|
129
129
|
if (studies.length < 2) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta-analysis.js","sourceRoot":"","sources":["../../../src/workflows/meta-analysis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;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,EAAE,CAAC;IACjE,CAAC,EACD,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,MAAM,CAAC,OAAO,eAAe,CAChD,CAAC;IAEF,OAAO,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,EAAE;QAC9C,KAAK;QACL,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,EAAE,oBAAoB,OAAO,CAAC,MAAM,2CAA2C,EAAE;YACrH,EAAE,IAAI,EAAE,oBAAoB,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;SAChK;QACD,SAAS,EAAE,CAAC,mBAAmB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,gBAAgB,CAAC;KACjG,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "psyclaw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0-preview.2",
|
|
4
4
|
"description": "A standalone, evidence-grounded social-science research agent with research contracts, evidence gates, and recoverable workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "CC-BY-NC-4.0",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"rebrand": "node scripts/rebrand-pi.mjs",
|
|
82
82
|
"check:branding": "node scripts/check-branding.mjs",
|
|
83
83
|
"release:push": "node scripts/release-push.mjs",
|
|
84
|
+
"release:preview": "node scripts/release-push.mjs --preview",
|
|
84
85
|
"prepublishOnly": "pnpm check:branding && pnpm build"
|
|
85
86
|
},
|
|
86
87
|
"dependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: academic-grill
|
|
3
|
-
description: Stress-test an academic research question, proposal, study design, analysis plan, manuscript claim, review protocol, or AI research project through a one-question-at-a-time interview until its consequential decisions, evidence boundaries, and reporting commitments are explicit. Use when the user invokes /grill or asks for rigorous academic questioning. For open-ended ideation without pressure-testing, use /brainstorm instead.
|
|
3
|
+
description: Stress-test an academic research question, proposal, study design, analysis plan, manuscript claim, review protocol, or AI research project through a one-question-at-a-time interview until its consequential decisions, evidence boundaries, and reporting commitments are explicit. Use when the user invokes /ars grill or asks for rigorous academic questioning. For open-ended ideation without pressure-testing, use /ars brainstorm instead.
|
|
4
4
|
license: MIT
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -72,9 +72,9 @@ After the interview is complete, update the initialized project without asking f
|
|
|
72
72
|
- `.psyclaw/project.json`: keep its schema and identity fields; update only the goal and paradigm when the confirmed specification changed them;
|
|
73
73
|
- `notes/goal.md`: confirmed purpose, research question, scope, population or corpus, and exclusions;
|
|
74
74
|
- `notes/research-spec.md`: the complete confirmed research specification and claims boundary;
|
|
75
|
-
- `notes/decisions.md
|
|
75
|
+
- decisions: record each consequential decision with `psyclaw_decide` (who settled it, and the quote or the reason). Code writes `notes/decisions.md` from that record; do not edit it by hand;
|
|
76
76
|
- `notes/plan.md`: dependency-ordered tasks derived from the confirmed specification, with inputs, outputs, approvals, status, and stop conditions;
|
|
77
|
-
-
|
|
77
|
+
- unresolved substantive research trade-offs that meet the decision threshold above: put each to the researcher with `psyclaw_ask`; it stays open in the decision record until answered.
|
|
78
78
|
|
|
79
79
|
When no qualifying trade-off remains, set the status in `notes/research-spec.md` and `notes/plan.md` to `ready-for-run`. Do not use `awaiting-human-approval` as a routine completion state.
|
|
80
80
|
|
|
@@ -10,8 +10,12 @@ Use this skill only in **analysis** mode. Do not start academic/ARS writing from
|
|
|
10
10
|
|
|
11
11
|
## Stages
|
|
12
12
|
|
|
13
|
-
1. **
|
|
14
|
-
|
|
13
|
+
1. **The researcher's intent first (required)** — Before profiling in depth or planning, ask the researcher openly, with no options: what they want to find out, which outcome matters most, and how they themselves planned to analyse it. Several questions in one message are fine; asking more here is better than guessing later.
|
|
14
|
+
- Restate it with `psyclaw_intent` action=restate: one item per point (field `question`, `outcome`, `approach`, `hypothesis`, `data` or `scope`; label such as RQ1), each with the researcher's or the materials' words as the quote; leave the quote out for what you infer, and code lists those apart for the researcher to check. Give `flow`: `theory` (hypotheses and predictions first, then data) or `data` (explore first, then literature, written up as exploratory).
|
|
15
|
+
- Post the message it returns and wait. Record the reply with `psyclaw_intent` action=confirm; restate again if they correct something substantial. `psyclaw_plan` action=submit waits for the confirmed intent.
|
|
16
|
+
- Then inspect `data/clean` once and write a compact profile.
|
|
17
|
+
- No clear research question (no stated question, hypothesis, outcome or comparison)? Do not build a plan yet. Ask with `psyclaw_ask`: brainstorm 2-4 answerable questions from the data (recommended when there is none yet), grill a rough idea one point at a time, or a short exploratory profile only. For the first two, load `academic-grill` with `psyclaw_skill` and follow it; come back to stage 2 once a question is chosen.
|
|
18
|
+
2. **From hypotheses to models (required table)** — Before submitting the plan, fill in the table under "Hypotheses to models" in `analysis/plans/plan.md` (the workspace template already has its header; keep the columns), one row per hypothesis and one per exploratory variable:
|
|
15
19
|
|
|
16
20
|
| ID | Scope as worded | Outcome | Focal term | Implied tests | Status |
|
|
17
21
|
| --- | --- | --- | --- | --- | --- |
|
|
@@ -20,45 +24,44 @@ Use this skill only in **analysis** mode. Do not start academic/ARS writing from
|
|
|
20
24
|
- **Implied tests** follow the standing method rules in the plan template. Detail for change scores, interactions, mediation, multilevel models, SEM, and reporting is injected from the matching method skill. Do not treat this process skill as that reference.
|
|
21
25
|
- **Status**: `confirmatory` or `exploratory`; every implied test enters the multiplicity plan.
|
|
22
26
|
|
|
23
|
-
Re-read the table before writing the report and state, for each implied test, the result or why it was not run. These tests
|
|
24
|
-
2b. **Decision points and verdict rules (required, before any outcome model)** —
|
|
25
|
-
- One
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
- Verdict rules
|
|
29
|
-
3. **
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
6. **Crosscheck / verify (human-gated)** — Do **not** start `/crosscheck` or `/verify` automatically. After scripts (or before a costly pass), ask whether to open that block; only run it after an explicit yes. Skipping must mark **「未经核对」**.
|
|
48
|
-
7. **Execute** — Local reproducible scripts under `analysis/scripts/` by default; MCP only for special backends or explicit request.
|
|
49
|
-
8. **Handoff** — Update `analysis/HANDOFF.md` before academic mode. Final Panel「核实」remains required for completion.
|
|
27
|
+
Re-read the table before writing the report and state, for each implied test, the result or why it was not run. These tests belong in the plan message, and the table goes into the plan you submit.
|
|
28
|
+
2b. **Decision points and verdict rules (required, before any outcome model)** — Every analytic fork is one decision in the project's decision record. Code writes `notes/decisions.md` and the plan's Decisions section from it; do not write decision tables by hand.
|
|
29
|
+
- One decision per analytic fork: sample and exclusion rules, coding and scoring keys, unit of analysis, groups analysed separately or pooled, model family and estimator, random effects and covariates, missing data, alpha, multiplicity family and method, criteria for support.
|
|
30
|
+
- Who settles it: the brief (by `brief`, with the quote), a convention almost any competent analyst would choose (by `analyst`, with the reason), or the researcher when the brief and data leave it open and reasonable analysts differ (open, with options and your recommendation). A standing method rule or an injected method skill is a default, not a settlement: when the brief does not settle a fork that such a rule covers, leave it open. Alpha, tails, multiplicity, and support rules are declarations, not questions: settle them by `analyst`.
|
|
31
|
+
- With no one to ask (unattended), make the option closest to the brief's wording primary, run the main alternative as a labelled sensitivity analysis, and report both when their conclusions differ.
|
|
32
|
+
- Verdict rules are locked before the first outcome model. A later change is a deviation: record it with `psyclaw_decide` (same id) and its reason.
|
|
33
|
+
3. **The whole plan in one message (required)** — Give every point its `impact`: `key` when the choice changes the answer to a research question or the conclusion, with `why` (one line on what changes; at most 4 key points are shown in full), `intent` when it depends on what the researcher wants, `convention` when the field settles it. Open points get 2-3 options. Only a convention can be settled by `analyst`; code puts a research-intent decision (sample, coding, primary outcome, model, covariates, missing data, inference rules) to the researcher with your choice as the recommendation. Analyses you add beyond the request go into `agentAdditions` with the reason; the message lists them as 我打算补的分析. Submit the plan with `psyclaw_plan` action=submit, every decision point in `decisions` (with its `rq` label). Code numbers them D1…Dn and returns one message: post it as your whole reply, unchanged, and stop. Do not ask cards before the researcher's reply.
|
|
34
|
+
- For each research question, offer the analyses a reviewer would expect (the tests the hypotheses-to-models table implies, standard breakdowns and sensitivity analyses) as points or as listed analyses; the message asks the researcher to name what is missing.
|
|
35
|
+
4. **The researcher's reply (required unless `/plan auto`)** — Record it with one `psyclaw_plan` action=answers call: the reply as `quote`, one answer per point it names (option number, or their own approach as text), `rest` = recommended when it accepts the recommendations for the rest, `approved` when it approves, `additions` for the analyses it says are missing. Code records each decision and approves the plan once nothing is open.
|
|
36
|
+
- Ask a `psyclaw_ask` card only for a point the reply leaves unclear, one card per point, the same id. If they answer in text, record it with `psyclaw_decide` (by `researcher`, their words as the quote, the same id).
|
|
37
|
+
- Once every point is settled, a plain yes (可以 / 批准 / ok) approves the plan.
|
|
38
|
+
5. **Auto mode** — If the researcher ran `/plan auto`, proceed without ritual, but every report/script summary must state **「未经人审批」**.
|
|
39
|
+
6. **Crosscheck / verify (human-gated)** — Do **not** start `/check quick` or `/check full` automatically. After scripts (or before a costly pass), ask whether to open that block; only run it after an explicit yes. Skipping must mark **「未经核对」**.
|
|
40
|
+
7. **Execute: decoupled steps, checked as you go**
|
|
41
|
+
- If the researcher named a tool ("用 MNE MCP", a package, a backend), use it.
|
|
42
|
+
- If an MCP server is configured that can run this analysis (`psyclaw_mcp action=list`: e.g. MNE for EEG/MEG/fNIRS, a stats backend), use it: work in its session, which keeps data in memory between calls. Fall back to local scripts only when no configured MCP fits or it fails.
|
|
43
|
+
- Without a fitting MCP, still work one step at a time and look at each result before the next step: run short exploration scripts on saved intermediate files.
|
|
44
|
+
- Check each step, not only whether it ran: which criterion removed trials, whether projections are active, whether the whitened baseline is near 1 and why not, whether a peak sits where the modality predicts, whether an effect is large enough to matter.
|
|
45
|
+
- Keep the pipeline decoupled: one module per step (load, prepare, each analysis, figures, export) under `analysis/scripts/` (or the path the researcher named), plus a thin entrypoint that runs them in order. Do not put everything in one script.
|
|
46
|
+
- Every module runs on its own: it reads its inputs from the files the previous step saved (`.fif`, `.npy`, `.csv`, `.parquet`, `.json`) and writes its outputs to disk. No state passes in memory between modules, so a module can be run, checked and fixed by itself (for example `python analysis/scripts/s06_roi.py`).
|
|
47
|
+
- When a step has a problem, fix that module and rerun only that module (and the modules after it that read its output). Never rerun from step 1 to test a fix.
|
|
48
|
+
- Run the whole pipeline through the entrypoint once at the end to confirm it reproduces (twice at most).
|
|
49
|
+
8. **做法对照 (required before the report)** — An analysis added during execution: `psyclaw_decide` action=add with the reason. A change to what the researcher or the brief settled: `psyclaw_decide` action=change (id, what instead, why), and tell the researcher in your next message. Before the final report, call `psyclaw_plan` action=compare with one check per item the researcher asked for (`done` + the file that shows it + `evidence` copied verbatim from that file, `changed` + `to` and `note`, `not-done` + `note`); if the file does not do what was decided, the item is `changed`, not `done` and put the section it returns at the top of the report, unchanged.
|
|
50
|
+
9. **Handoff** — Update `analysis/HANDOFF.md` before academic mode. Final Panel「核实」remains required for completion.
|
|
50
51
|
|
|
51
52
|
## Volume rule
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
While building the plan, never tell the user “分析方法已经足够了” as a closing statement; the plan message itself asks the researcher what is missing.
|
|
55
|
+
|
|
56
|
+
Once the deliverables the request names are done, do not open cards for further analyses or checks. If a time budget is set and time is left, complete the analysis in the same deliverables first (standard sensitivity analyses, every model term, the usual breakdowns), without asking; then name the most useful extension in one sentence and stop.
|
|
54
57
|
|
|
55
58
|
## Persistence
|
|
56
59
|
|
|
57
|
-
Keep state
|
|
60
|
+
Keep state with `psyclaw_plan` (submit / status); the researcher can type `/plan auto` or `/plan human`. Soft「可以」acknowledges a node; the typed ritual authorizes run when `approvalMode=human`.
|
|
58
61
|
|
|
59
62
|
## Boundaries
|
|
60
63
|
|
|
61
64
|
- Never overwrite `data/raw`.
|
|
62
65
|
- No novel stats algorithms in PsyClaw core.
|
|
63
66
|
- Do not merge with ARS planning.
|
|
64
|
-
- Model **proposes** crosschecks after asking; humans mark items — do not expect users to invent `/
|
|
67
|
+
- Model **proposes** crosschecks after asking; humans mark items — do not expect users to invent `/check full` ids themselves.
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"method-mediation",
|
|
14
14
|
"method-multilevel",
|
|
15
15
|
"method-sem",
|
|
16
|
-
"report-checklist"
|
|
16
|
+
"report-checklist",
|
|
17
|
+
"package-install"
|
|
17
18
|
],
|
|
18
19
|
"enabledByDefault": [
|
|
19
20
|
"academic-grill",
|
|
@@ -26,9 +27,16 @@
|
|
|
26
27
|
"method-mediation",
|
|
27
28
|
"method-multilevel",
|
|
28
29
|
"method-sem",
|
|
29
|
-
"report-checklist"
|
|
30
|
+
"report-checklist",
|
|
31
|
+
"package-install"
|
|
30
32
|
],
|
|
31
|
-
"source": {
|
|
32
|
-
|
|
33
|
+
"source": {
|
|
34
|
+
"kind": "workspace",
|
|
35
|
+
"ref": "initial-mvp"
|
|
36
|
+
},
|
|
37
|
+
"license": {
|
|
38
|
+
"spdx": "MIT",
|
|
39
|
+
"evidenceRef": "../../LICENSE"
|
|
40
|
+
},
|
|
33
41
|
"dependencyStatus": "ready"
|
|
34
42
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: package-install
|
|
3
|
+
description: Installing Python, R or conda packages without stalling — check size and download speed first, switch to a faster mirror for that one command, ask the researcher before large or slow installs, and never sleep-poll a download.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Package install
|
|
8
|
+
|
|
9
|
+
Use this before any `pip install`, `uv pip install`, `uv add`, `conda/mamba install`, `install.packages()` or `BiocManager::install()`, and whenever an install is slow, timed out or failed on the network.
|
|
10
|
+
|
|
11
|
+
## 1. Do you need it?
|
|
12
|
+
|
|
13
|
+
- An optional extra (a nicer 3D render, a faster backend) is not worth a long install. If the analysis already has a working fallback, keep the fallback and mention the extra in the summary.
|
|
14
|
+
- Check first whether the package is already importable in the interpreter the analysis uses.
|
|
15
|
+
|
|
16
|
+
## 2. pip and uv: PsyClaw picks the route
|
|
17
|
+
|
|
18
|
+
For `pip install`, `python -m pip install` and `uv pip install`, PsyClaw measures PyPI and the mirrors (tuna, aliyun, ustc; via the proxy and direct) before the command runs, and runs it through the fastest one for that command only. The tool result says which route was used. When the install would take more than 5 minutes (or is 300 MB or more), PsyClaw asks the researcher itself. You do not need to add `-i` or a mirror yourself; if you do, PsyClaw leaves the command alone.
|
|
19
|
+
|
|
20
|
+
An install expected to take a minute or more runs in the background: the shell call returns at once and PsyClaw sends a message when it finishes. Meanwhile do the work that does not need those packages; do not import them, re-run the install or wait with `sleep`.
|
|
21
|
+
|
|
22
|
+
If the result says the researcher skipped the install or will install it later, do not try again: continue with the fallback and note it in the summary.
|
|
23
|
+
|
|
24
|
+
To check sizes or speeds by hand: `python3 <this skill's directory>/pkgnet.py --python /path/to/target/python pkg1 pkg2`.
|
|
25
|
+
|
|
26
|
+
## 3. Running the install
|
|
27
|
+
|
|
28
|
+
- Run it in the foreground. For pip and uv PsyClaw sets the time limit from the measured speed.
|
|
29
|
+
- Do **not** start it in the background and check with `sleep` loops. Each check is a model request that costs money and adds nothing.
|
|
30
|
+
- Do **not** kill a download that is making progress: uv and pip do not resume partial downloads, so a restart begins from zero. If it timed out, tell the researcher instead of re-running it unchanged.
|
|
31
|
+
- After it finishes, import the package once to confirm, then continue.
|
|
32
|
+
|
|
33
|
+
## 4. R and conda
|
|
34
|
+
|
|
35
|
+
PsyClaw routes these too. An `install.packages()` / `BiocManager::install()` call without its own `repos=` runs with CRAN at the fastest of cloud.r-project.org and the tuna, ustc and aliyun mirrors (your ~/.Rprofile is still read). A `conda`/`mamba install` that names `-c conda-forge` or `-c bioconda` uses that channel's mirror when it is faster; the channel itself does not change. Ask the researcher first when an install would take more than 5 minutes.
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Before a Python package install: how big is it, which download route is fastest, how long will it take.
|
|
3
|
+
|
|
4
|
+
usage: python3 pkgnet.py [--python /path/to/target/python] [--json] PACKAGE [PACKAGE ...]
|
|
5
|
+
|
|
6
|
+
Looks up each package's wheel for the target interpreter on PyPI, then downloads the first
|
|
7
|
+
~1 MB of that file from PyPI and a few well-known mirrors (through the proxy in the
|
|
8
|
+
environment, and directly when a proxy is set). Prints size, speed per route, the estimated
|
|
9
|
+
time, and the install command for the fastest route. Downloads nothing beyond the probe
|
|
10
|
+
bytes and installs nothing. Standard library only.
|
|
11
|
+
"""
|
|
12
|
+
import argparse
|
|
13
|
+
import concurrent.futures
|
|
14
|
+
import json
|
|
15
|
+
import os
|
|
16
|
+
import subprocess
|
|
17
|
+
import sys
|
|
18
|
+
import time
|
|
19
|
+
import urllib.parse
|
|
20
|
+
import urllib.request
|
|
21
|
+
|
|
22
|
+
# Only these indexes are probed. Never add an index taken from a web page or a README.
|
|
23
|
+
INDEXES = [
|
|
24
|
+
("pypi", "https://pypi.org/simple", "https://files.pythonhosted.org/packages/"),
|
|
25
|
+
("tuna", "https://pypi.tuna.tsinghua.edu.cn/simple", "https://pypi.tuna.tsinghua.edu.cn/packages/"),
|
|
26
|
+
("aliyun", "https://mirrors.aliyun.com/pypi/simple", "https://mirrors.aliyun.com/pypi/packages/"),
|
|
27
|
+
("ustc", "https://mirrors.ustc.edu.cn/pypi/simple", "https://mirrors.ustc.edu.cn/pypi/packages/"),
|
|
28
|
+
]
|
|
29
|
+
PROBE_BYTES = 1_000_000
|
|
30
|
+
PROBE_SECONDS = 12
|
|
31
|
+
ASK_MB = 300 # at or above this size (disk space), ask the researcher first
|
|
32
|
+
ASK_MINUTES = 5 # or when the best route needs longer than this
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def target_tags(python):
|
|
36
|
+
"""(cpXY, platform words) of the interpreter that will receive the install."""
|
|
37
|
+
code = "import sys,sysconfig;print('cp%d%d'%sys.version_info[:2]);print(sysconfig.get_platform())"
|
|
38
|
+
try:
|
|
39
|
+
out = subprocess.run([python, "-c", code], capture_output=True, text=True, timeout=20).stdout.split()
|
|
40
|
+
cp, plat = out[0], out[1].lower()
|
|
41
|
+
except Exception:
|
|
42
|
+
cp, plat = "cp%d%d" % sys.version_info[:2], sys.platform
|
|
43
|
+
if plat.startswith("macosx") or plat == "darwin":
|
|
44
|
+
arch = "arm64" if "arm64" in plat or os.uname().machine == "arm64" else "x86_64"
|
|
45
|
+
words = ["macosx", arch]
|
|
46
|
+
elif plat.startswith("win"):
|
|
47
|
+
words = ["win_amd64"] if "amd64" in plat else ["win32"]
|
|
48
|
+
else:
|
|
49
|
+
arch = "aarch64" if "aarch64" in plat or "arm" in plat else "x86_64"
|
|
50
|
+
words = ["linux", arch]
|
|
51
|
+
return cp, words
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def pick_file(files, cp, words):
|
|
55
|
+
"""The wheel pip/uv would most likely take for this interpreter; sdist as a fallback."""
|
|
56
|
+
def fits_platform(name):
|
|
57
|
+
if "none-any" in name:
|
|
58
|
+
return True
|
|
59
|
+
if "macosx" in words:
|
|
60
|
+
return "macosx" in name and (words[1] in name or "universal2" in name)
|
|
61
|
+
return all(w in name for w in words)
|
|
62
|
+
|
|
63
|
+
wheels = [f for f in files if f["filename"].endswith(".whl") and fits_platform(f["filename"])]
|
|
64
|
+
exact = [f for f in wheels if f"-{cp}-" in f["filename"]]
|
|
65
|
+
abi3 = [f for f in wheels if "abi3" in f["filename"]]
|
|
66
|
+
pure = [f for f in wheels if "none-any" in f["filename"]]
|
|
67
|
+
for group in (exact, abi3, pure):
|
|
68
|
+
if group:
|
|
69
|
+
return group[0]
|
|
70
|
+
sdists = [f for f in files if f["packagetype"] == "sdist"]
|
|
71
|
+
return sdists[0] if sdists else None
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
def opener(direct):
|
|
75
|
+
if direct:
|
|
76
|
+
return urllib.request.build_opener(urllib.request.ProxyHandler({}))
|
|
77
|
+
return urllib.request.build_opener()
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def lookup(package, cp, words):
|
|
81
|
+
with opener(False).open(f"https://pypi.org/pypi/{urllib.parse.quote(package)}/json", timeout=20) as r:
|
|
82
|
+
data = json.load(r)
|
|
83
|
+
f = pick_file(data.get("urls") or [], cp, words)
|
|
84
|
+
return data["info"]["version"], f
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def probe(url, direct):
|
|
88
|
+
"""Bytes per second for the first PROBE_BYTES of url, or None."""
|
|
89
|
+
req = urllib.request.Request(url, headers={"Range": f"bytes=0-{PROBE_BYTES - 1}", "User-Agent": "pkgnet-probe"})
|
|
90
|
+
start = time.time()
|
|
91
|
+
got = 0
|
|
92
|
+
try:
|
|
93
|
+
with opener(direct).open(req, timeout=PROBE_SECONDS) as r:
|
|
94
|
+
while got < PROBE_BYTES and time.time() - start < PROBE_SECONDS:
|
|
95
|
+
chunk = r.read(65536)
|
|
96
|
+
if not chunk:
|
|
97
|
+
break
|
|
98
|
+
got += len(chunk)
|
|
99
|
+
except Exception:
|
|
100
|
+
return None
|
|
101
|
+
elapsed = time.time() - start
|
|
102
|
+
return got / elapsed if got >= 64 * 1024 and elapsed > 0 else None
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
def main():
|
|
106
|
+
ap = argparse.ArgumentParser()
|
|
107
|
+
ap.add_argument("packages", nargs="*")
|
|
108
|
+
ap.add_argument("--python", default=sys.executable)
|
|
109
|
+
ap.add_argument("--json", action="store_true")
|
|
110
|
+
args = ap.parse_args()
|
|
111
|
+
|
|
112
|
+
proxy = any(os.environ.get(k) for k in ("HTTPS_PROXY", "https_proxy", "ALL_PROXY", "all_proxy"))
|
|
113
|
+
cp, words = target_tags(args.python)
|
|
114
|
+
files = []
|
|
115
|
+
for pkg in args.packages:
|
|
116
|
+
try:
|
|
117
|
+
version, f = lookup(pkg, cp, words)
|
|
118
|
+
except Exception as e:
|
|
119
|
+
files.append({"package": pkg, "error": f"PyPI lookup failed: {e}"})
|
|
120
|
+
continue
|
|
121
|
+
if not f:
|
|
122
|
+
files.append({"package": pkg, "version": version, "error": "no file found"})
|
|
123
|
+
continue
|
|
124
|
+
files.append({"package": pkg, "version": version, "filename": f["filename"], "mb": f["size"] / 1e6, "url": f["url"]})
|
|
125
|
+
|
|
126
|
+
sized = [f for f in files if "url" in f]
|
|
127
|
+
total_mb = sum(f["mb"] for f in sized)
|
|
128
|
+
routes = []
|
|
129
|
+
probe_url = max(sized, key=lambda f: f["mb"])["url"] if sized else None
|
|
130
|
+
if probe_url is None:
|
|
131
|
+
# Package names unknown (e.g. -r requirements.txt): measure the routes on pip's own wheel.
|
|
132
|
+
try:
|
|
133
|
+
probe_url = lookup("pip", cp, words)[1]["url"]
|
|
134
|
+
except Exception:
|
|
135
|
+
probe_url = None
|
|
136
|
+
if probe_url:
|
|
137
|
+
path = probe_url.split("/packages/", 1)[1]
|
|
138
|
+
jobs = []
|
|
139
|
+
for name, index, base in INDEXES:
|
|
140
|
+
for direct in ([False, True] if proxy else [False]):
|
|
141
|
+
label = f"{name}{' (direct)' if direct else (' (proxy)' if proxy else '')}"
|
|
142
|
+
jobs.append((label, name, index, base + path, direct))
|
|
143
|
+
with concurrent.futures.ThreadPoolExecutor(len(jobs)) as pool:
|
|
144
|
+
speeds = list(pool.map(lambda j: probe(j[3], j[4]), jobs))
|
|
145
|
+
for (label, name, index, _url, direct), bps in zip(jobs, speeds):
|
|
146
|
+
routes.append({"route": label, "index": index, "direct": direct, "kb_s": round(bps / 1024) if bps else None,
|
|
147
|
+
"minutes": round(total_mb * 1e6 / bps / 60, 1) if bps and total_mb else None})
|
|
148
|
+
ok = sorted([r for r in routes if r["kb_s"]], key=lambda r: -r["kb_s"])
|
|
149
|
+
best = ok[0] if ok else None
|
|
150
|
+
ask = bool(best is None or total_mb >= ASK_MB or (best["minutes"] or 0) > ASK_MINUTES)
|
|
151
|
+
|
|
152
|
+
pkgs = " ".join(args.packages)
|
|
153
|
+
command = None
|
|
154
|
+
if best:
|
|
155
|
+
prefix = "env -u HTTPS_PROXY -u HTTP_PROXY -u https_proxy -u http_proxy -u ALL_PROXY -u all_proxy " if best["direct"] else ""
|
|
156
|
+
index = "" if best["index"] == INDEXES[0][1] else f" --index-url {best['index']}"
|
|
157
|
+
command = f"{prefix}uv pip install --python {args.python}{index} {pkgs}"
|
|
158
|
+
result = {"target": {"python": args.python, "tag": cp, "platform": words}, "files": files, "total_mb": round(total_mb, 1),
|
|
159
|
+
"routes": routes, "best": best, "ask_researcher_first": ask, "command": command}
|
|
160
|
+
if args.json:
|
|
161
|
+
print(json.dumps(result, ensure_ascii=False, indent=2))
|
|
162
|
+
return
|
|
163
|
+
print(f"target: {args.python} ({cp}, {' '.join(words)})")
|
|
164
|
+
for f in files:
|
|
165
|
+
print(f" {f['package']}: " + (f"{f['version']} {f['filename']} {f['mb']:.1f} MB" if "mb" in f else f.get("error", "")))
|
|
166
|
+
print(f"total (named packages only; dependencies come on top): {total_mb:.1f} MB")
|
|
167
|
+
for r in routes:
|
|
168
|
+
print(f" {r['route']:<16} " + (f"{r['kb_s']:>6} KB/s ~{r['minutes']} min" if r["kb_s"] else " failed or too slow"))
|
|
169
|
+
if best:
|
|
170
|
+
print(f"fastest: {best['route']} ~{best['minutes']} min")
|
|
171
|
+
print(f"command: {command}")
|
|
172
|
+
else:
|
|
173
|
+
print("no route worked: report this to the researcher; do not start the install")
|
|
174
|
+
print("ask the researcher first: " + ("YES" if ask else "no"))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
if __name__ == "__main__":
|
|
178
|
+
main()
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"id": "mne-mcp",
|
|
119
119
|
"name": "MNE MCP",
|
|
120
120
|
"stage": "神经生理",
|
|
121
|
-
"description": "为 EEG、MEG、iEEG、fNIRS 等 MNE-Python 分析提供受控工具;也可经 /biosignal 能力包与配套 Skill 一并安装配置。",
|
|
121
|
+
"description": "为 EEG、MEG、iEEG、fNIRS 等 MNE-Python 分析提供受控工具;也可经 /mcp biosignal 能力包与配套 Skill 一并安装配置。",
|
|
122
122
|
"sourceRef": "https://github.com/Exekiel179/MNE-MCP",
|
|
123
123
|
"transport": "stdio",
|
|
124
124
|
"risk": "local-data-and-compute",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface ChoiceLike {
|
|
2
|
-
prompt: string;
|
|
3
|
-
originalResponse: string;
|
|
4
|
-
selectedIds: string[];
|
|
5
|
-
selectedLabels: string[];
|
|
6
|
-
context?: string;
|
|
7
|
-
}
|
|
8
|
-
/** Later records win. A token is applied only when exactly one candidate constant lists it. */
|
|
9
|
-
export declare function updatesFromChoices(source: string, records: readonly ChoiceLike[]): Map<string, string>;
|
|
10
|
-
export declare function applyConstantValues(source: string, updates: ReadonlyMap<string, string>): string;
|
|
11
|
-
export declare function readChoiceRecords(root: string): Promise<ChoiceLike[]>;
|
|
12
|
-
export declare function rewriteScriptFromChoices(root: string, scriptRelative: string, source: string): Promise<{
|
|
13
|
-
source: string;
|
|
14
|
-
changes: string[];
|
|
15
|
-
}>;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Write the researcher's confirmed option into each @intent constant, then
|
|
3
|
-
* re-render the plan so the script that runs is the one they approved.
|
|
4
|
-
*/
|
|
5
|
-
import { readFile } from "node:fs/promises";
|
|
6
|
-
import { join } from "node:path";
|
|
7
|
-
import { atomicWriteFile } from "../../project/jsonl.js";
|
|
8
|
-
import { assertSafeProjectPath } from "../../project/paths.js";
|
|
9
|
-
import { optionIds, parseConstants } from "./constants.js";
|
|
10
|
-
import { renderPriorPlan } from "./render.js";
|
|
11
|
-
const PRIOR_PLAN_REL = "analysis/plans/plan.md";
|
|
12
|
-
const ASSIGN = /^([A-Z][A-Z0-9_]*)(\s*(?:=|<-)\s*)(.*)$/;
|
|
13
|
-
function literal(value) {
|
|
14
|
-
return /^-?\d+(?:\.\d+)?$/.test(value) ? value : JSON.stringify(value);
|
|
15
|
-
}
|
|
16
|
-
/** Later records win. A token is applied only when exactly one candidate constant lists it. */
|
|
17
|
-
export function updatesFromChoices(source, records) {
|
|
18
|
-
const constants = parseConstants(source).filter((constant) => constant.label === "intent");
|
|
19
|
-
const updates = new Map();
|
|
20
|
-
for (const record of records) {
|
|
21
|
-
const named = constants.filter((constant) => new RegExp(`\\b${constant.name}\\b`).test(`${record.prompt}\n${record.context ?? ""}`));
|
|
22
|
-
const pool = named.length > 0 ? named : constants;
|
|
23
|
-
const tokens = [...record.selectedIds, ...record.selectedLabels, record.originalResponse.trim()];
|
|
24
|
-
for (const token of tokens) {
|
|
25
|
-
const value = token.trim();
|
|
26
|
-
if (!value)
|
|
27
|
-
continue;
|
|
28
|
-
const hits = pool.filter((constant) => optionIds(constant).includes(value));
|
|
29
|
-
if (hits.length === 1 && hits[0])
|
|
30
|
-
updates.set(hits[0].name, value);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return updates;
|
|
34
|
-
}
|
|
35
|
-
export function applyConstantValues(source, updates) {
|
|
36
|
-
const newline = source.endsWith("\n") ? "\n" : "";
|
|
37
|
-
const lines = source.replace(/\n$/, "").split(/\r?\n/).map((line) => {
|
|
38
|
-
if (line.startsWith(" ") || line.startsWith("\t"))
|
|
39
|
-
return line;
|
|
40
|
-
const match = ASSIGN.exec(line);
|
|
41
|
-
if (!match)
|
|
42
|
-
return line;
|
|
43
|
-
const name = match[1] ?? "";
|
|
44
|
-
const next = updates.get(name);
|
|
45
|
-
if (next === undefined)
|
|
46
|
-
return line;
|
|
47
|
-
const rhs = match[3] ?? "";
|
|
48
|
-
const hash = rhs.indexOf("#");
|
|
49
|
-
const comment = hash < 0 ? "" : rhs.slice(hash).trim();
|
|
50
|
-
return `${name}${match[2] ?? " = "}${literal(next)}${comment ? ` ${comment}` : ""}`;
|
|
51
|
-
});
|
|
52
|
-
return `${lines.join("\n")}${newline || "\n"}`;
|
|
53
|
-
}
|
|
54
|
-
export async function readChoiceRecords(root) {
|
|
55
|
-
let text = "";
|
|
56
|
-
try {
|
|
57
|
-
text = await readFile(join(root, ".psyclaw/choices.jsonl"), "utf8");
|
|
58
|
-
}
|
|
59
|
-
catch {
|
|
60
|
-
return [];
|
|
61
|
-
}
|
|
62
|
-
const records = [];
|
|
63
|
-
for (const line of text.split(/\r?\n/)) {
|
|
64
|
-
if (!line.trim())
|
|
65
|
-
continue;
|
|
66
|
-
try {
|
|
67
|
-
const parsed = JSON.parse(line);
|
|
68
|
-
if (typeof parsed.prompt !== "string" || typeof parsed.originalResponse !== "string")
|
|
69
|
-
continue;
|
|
70
|
-
records.push({
|
|
71
|
-
prompt: parsed.prompt,
|
|
72
|
-
originalResponse: parsed.originalResponse,
|
|
73
|
-
selectedIds: Array.isArray(parsed.selectedIds) ? parsed.selectedIds.filter((item) => typeof item === "string") : [],
|
|
74
|
-
selectedLabels: Array.isArray(parsed.selectedLabels) ? parsed.selectedLabels.filter((item) => typeof item === "string") : [],
|
|
75
|
-
...(typeof parsed.context === "string" ? { context: parsed.context } : {}),
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
catch { /* skip a broken line */ }
|
|
79
|
-
}
|
|
80
|
-
return records;
|
|
81
|
-
}
|
|
82
|
-
export async function rewriteScriptFromChoices(root, scriptRelative, source) {
|
|
83
|
-
const updates = updatesFromChoices(source, await readChoiceRecords(root));
|
|
84
|
-
const constants = new Map(parseConstants(source).map((constant) => [constant.name, constant]));
|
|
85
|
-
const changes = [];
|
|
86
|
-
for (const [name, value] of updates) {
|
|
87
|
-
if (constants.get(name)?.value === value)
|
|
88
|
-
continue;
|
|
89
|
-
changes.push(`${name} = ${value}`);
|
|
90
|
-
}
|
|
91
|
-
if (changes.length === 0)
|
|
92
|
-
return { source, changes };
|
|
93
|
-
const next = applyConstantValues(source, updates);
|
|
94
|
-
await atomicWriteFile(await assertSafeProjectPath(root, scriptRelative), next);
|
|
95
|
-
await atomicWriteFile(await assertSafeProjectPath(root, PRIOR_PLAN_REL), renderPriorPlan(next).markdown);
|
|
96
|
-
return { source: next, changes };
|
|
97
|
-
}
|
|
98
|
-
//# sourceMappingURL=apply.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply.js","sourceRoot":"","sources":["../../../../src/analysis/prior/apply.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAsB,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,cAAc,GAAG,wBAAwB,CAAC;AAUhD,MAAM,MAAM,GAAG,yCAAyC,CAAC;AAEzD,SAAS,OAAO,CAAC,KAAa;IAC5B,OAAO,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACzE,CAAC;AAED,+FAA+F;AAC/F,MAAM,UAAU,kBAAkB,CAAC,MAAc,EAAE,OAA8B;IAC/E,MAAM,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC;IAC3F,MAAM,OAAO,GAAG,IAAI,GAAG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