@tiangong-ai/cli 0.0.36 → 0.0.38
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/AGENTS.md +2 -2
- package/README.md +46 -5
- package/dist/research/orchestration.js +36 -1
- package/dist/research/orchestration.js.map +1 -1
- package/dist/research/workspace/acquisition-routes.d.ts +14 -0
- package/dist/research/workspace/acquisition-routes.js +45 -0
- package/dist/research/workspace/acquisition-routes.js.map +1 -0
- package/dist/research/workspace/broker.js +54 -10
- package/dist/research/workspace/broker.js.map +1 -1
- package/dist/research/workspace/downloads.d.ts +6 -0
- package/dist/research/workspace/downloads.js +32 -8
- package/dist/research/workspace/downloads.js.map +1 -1
- package/dist/research/workspace/evidence-exhaustion.d.ts +45 -0
- package/dist/research/workspace/evidence-exhaustion.js +365 -0
- package/dist/research/workspace/evidence-exhaustion.js.map +1 -0
- package/dist/research/workspace/native-activity.d.ts +6 -0
- package/dist/research/workspace/native-activity.js +24 -7
- package/dist/research/workspace/native-activity.js.map +1 -1
- package/dist/research/workspace/preflight.js +18 -2
- package/dist/research/workspace/preflight.js.map +1 -1
- package/dist/research/workspace/projects.js +52 -0
- package/dist/research/workspace/projects.js.map +1 -1
- package/dist/research/workspace/research-policy.d.ts +16 -0
- package/dist/research/workspace/research-policy.js +73 -11
- package/dist/research/workspace/research-policy.js.map +1 -1
- package/dist/research/workspace/runtime.d.ts +151 -3
- package/dist/research/workspace/runtime.js +176 -5
- package/dist/research/workspace/runtime.js.map +1 -1
- package/dist/research/workspace/scientific-design.d.ts +23 -0
- package/dist/research/workspace/scientific-design.js +176 -0
- package/dist/research/workspace/scientific-design.js.map +1 -1
- package/dist/research/workspace/setup-catalog.js +2 -2
- package/dist/research/workspace/setup.js +15 -0
- package/dist/research/workspace/setup.js.map +1 -1
- package/dist/research/workspace/types.d.ts +27 -0
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ import { inspectResearchContext } from "./context.js";
|
|
|
10
10
|
import { inspectCapabilityCredentialEnvironment, loadCapabilityCredentialMapForIds, reconcileCapabilityCredentialEnvironment, setCapabilityCredentialValue, } from "./credentials.js";
|
|
11
11
|
import { configureExternalSkillProfile, configureTiangongDatabaseCapability, doctorExternalCapabilities, EXTERNAL_SKILL_CONTEXT_PROFILE, EXTERNAL_SKILL_MEDIA_PROFILE, EXTERNAL_SKILL_PROFILE, reconcileSetupManagedCapabilities, } from "./external-skills.js";
|
|
12
12
|
import { appendJournalEvent } from "./journal.js";
|
|
13
|
+
import { validateResearchPolicyPack } from "./research-policy.js";
|
|
13
14
|
import { configuredResearchSecrets, isSensitiveEnvironmentName, sanitizeResearchRecord, sanitizeResearchText, } from "./sanitization.js";
|
|
14
15
|
import { inspectResearchSetupCatalog, RESEARCH_SETUP_CREDENTIALS, RESEARCH_SETUP_INSTALLER, RESEARCH_SETUP_SETTINGS, RESEARCH_SETUP_SKILLS, resolveSetupSkills, setupSkill, setupSource, setupTargetRoot, verifyResearchSetupRuntimeContract, } from "./setup-catalog.js";
|
|
15
16
|
import { acquireFileLock, canonicalJson, ensureDirectory, fileSize, hashRegularTree, isObject, pathExists, REGULAR_TREE_HASH_ALGORITHM, readJsonFile, sha256File, sha256Text, workspacePaths, writeJsonAtomic, writeTextAtomic, } from "./storage.js";
|
|
@@ -1299,6 +1300,18 @@ export async function doctorResearchSetup(workspace, options = {}) {
|
|
|
1299
1300
|
: "Restore the pinned Skill bytes; setup will not overwrite a drifted or symlinked directory.",
|
|
1300
1301
|
});
|
|
1301
1302
|
}
|
|
1303
|
+
for (const installation of installations.filter((candidate) => candidate.skillId === "tiangong.auto-research")) {
|
|
1304
|
+
await setupDoctorCheck(checks, `top-journal-policy-pack.${installation.agent}`, "publication-policy", async () => {
|
|
1305
|
+
if (installation.status !== "installed" || !installation.observedTreeSha256) {
|
|
1306
|
+
throw new Error(`The pinned Auto Research orchestrator is ${installation.status}; its Policy pack cannot be validated.`);
|
|
1307
|
+
}
|
|
1308
|
+
const validation = await validateResearchPolicyPack(installation.path);
|
|
1309
|
+
if (validation.sourceTreeSha256 !== installation.observedTreeSha256) {
|
|
1310
|
+
throw new Error("The validated Policy pack does not match the installed orchestrator tree hash.");
|
|
1311
|
+
}
|
|
1312
|
+
return `${validation.templateCount} pinned Top-Journal Policy templates are compatible with this CLI.`;
|
|
1313
|
+
}, "Restore the CLI-compatible pinned Auto Research Policy pack, then rerun setup doctor; do not edit locked Skill bytes.");
|
|
1314
|
+
}
|
|
1302
1315
|
const provenance = await inspectSetupProvenance(plan, installations, environment);
|
|
1303
1316
|
for (const conflict of provenance.ambientSkillConflicts) {
|
|
1304
1317
|
const projectInstallation = installations.find((installation) => installation.agent === conflict.agent && installation.skillId === conflict.skillId);
|
|
@@ -3319,6 +3332,8 @@ function normalizeSetupDoctorCheck(check, selected) {
|
|
|
3319
3332
|
function setupCheckComponentIds(check, selected) {
|
|
3320
3333
|
if (check.id === "live.semantic-scholar")
|
|
3321
3334
|
return ["tiangong.academic-paper-download"];
|
|
3335
|
+
if (check.id.startsWith("top-journal-policy-pack."))
|
|
3336
|
+
return ["tiangong.auto-research"];
|
|
3322
3337
|
if (check.id === "live.tiangong-unstructure") {
|
|
3323
3338
|
return ["tiangong.document-granular-decompose"];
|
|
3324
3339
|
}
|