@tiangong-ai/cli 0.0.33 → 0.0.35
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 +9 -2
- package/README.md +84 -2
- package/dist/research/commands.js +58 -1
- package/dist/research/commands.js.map +1 -1
- package/dist/research/orchestration.js +366 -9
- package/dist/research/orchestration.js.map +1 -1
- package/dist/research/workspace/constants.d.ts +1 -0
- package/dist/research/workspace/constants.js +4 -2
- package/dist/research/workspace/constants.js.map +1 -1
- package/dist/research/workspace/context.js +106 -11
- package/dist/research/workspace/context.js.map +1 -1
- package/dist/research/workspace/input-plan.js +27 -1
- package/dist/research/workspace/input-plan.js.map +1 -1
- package/dist/research/workspace/projects.d.ts +6 -3
- package/dist/research/workspace/projects.js +21 -2
- package/dist/research/workspace/projects.js.map +1 -1
- package/dist/research/workspace/publication-workflow.d.ts +146 -0
- package/dist/research/workspace/publication-workflow.js +992 -0
- package/dist/research/workspace/publication-workflow.js.map +1 -0
- package/dist/research/workspace/publication.d.ts +110 -0
- package/dist/research/workspace/publication.js +246 -0
- package/dist/research/workspace/publication.js.map +1 -0
- package/dist/research/workspace/research-policy-wizard.d.ts +40 -0
- package/dist/research/workspace/research-policy-wizard.js +167 -0
- package/dist/research/workspace/research-policy-wizard.js.map +1 -0
- package/dist/research/workspace/research-policy.d.ts +70 -0
- package/dist/research/workspace/research-policy.js +886 -0
- package/dist/research/workspace/research-policy.js.map +1 -0
- package/dist/research/workspace/runtime.d.ts +17 -0
- package/dist/research/workspace/runtime.js +81 -2
- package/dist/research/workspace/runtime.js.map +1 -1
- package/dist/research/workspace/setup-catalog.js +5 -5
- package/dist/research/workspace/setup-invocation.d.ts +11 -0
- package/dist/research/workspace/setup-invocation.js +34 -0
- package/dist/research/workspace/setup-invocation.js.map +1 -0
- package/dist/research/workspace/setup-wizard.d.ts +18 -1
- package/dist/research/workspace/setup-wizard.js +1 -1
- package/dist/research/workspace/setup-wizard.js.map +1 -1
- package/dist/research/workspace/setup.d.ts +52 -6
- package/dist/research/workspace/setup.js +598 -22
- package/dist/research/workspace/setup.js.map +1 -1
- package/dist/research/workspace/types.d.ts +52 -0
- package/package.json +6 -3
|
@@ -149,8 +149,11 @@ export interface ProjectInput {
|
|
|
149
149
|
dimensions?: string[];
|
|
150
150
|
fullText?: boolean;
|
|
151
151
|
publicationDate?: string | null;
|
|
152
|
+
trustStatus?: ProjectInputTrustStatus;
|
|
153
|
+
independentlyReproduced?: boolean;
|
|
152
154
|
addedAt: string;
|
|
153
155
|
}
|
|
156
|
+
export type ProjectInputTrustStatus = "verified-owner-input" | "unverified-owner-input" | "reference-only" | "replication-candidate";
|
|
154
157
|
export interface ProjectInputLineRange {
|
|
155
158
|
startLine: number;
|
|
156
159
|
endLine: number;
|
|
@@ -164,6 +167,8 @@ export interface ProjectInputPlanEntry {
|
|
|
164
167
|
sourceType: string;
|
|
165
168
|
fullText: boolean;
|
|
166
169
|
publicationDate: string | null;
|
|
170
|
+
trustStatus?: ProjectInputTrustStatus;
|
|
171
|
+
independentlyReproduced?: boolean;
|
|
167
172
|
}
|
|
168
173
|
export interface ProjectInputPlan {
|
|
169
174
|
schemaVersion: 1;
|
|
@@ -193,6 +198,31 @@ export interface ProjectEvidenceRequirements {
|
|
|
193
198
|
publicationDateFrom: string | null;
|
|
194
199
|
publicationDateTo: string | null;
|
|
195
200
|
}
|
|
201
|
+
export type ResearchVerdictCeiling = "top-journal-feasibility-complete" | "top-journal-candidate" | "top-journal-class-ready" | "target-journal-submission-ready";
|
|
202
|
+
export interface ResearchPolicyBinding {
|
|
203
|
+
goal: "top-journal";
|
|
204
|
+
projectId: string;
|
|
205
|
+
articleType: string;
|
|
206
|
+
field: string;
|
|
207
|
+
journalClass: string;
|
|
208
|
+
targetJournal: string | null;
|
|
209
|
+
resolvedPolicySha256: string;
|
|
210
|
+
approvalSha256: string;
|
|
211
|
+
verdictCeiling: ResearchVerdictCeiling;
|
|
212
|
+
documents: Array<{
|
|
213
|
+
id: string;
|
|
214
|
+
kind: string;
|
|
215
|
+
logicalPath: string;
|
|
216
|
+
sha256: string;
|
|
217
|
+
sourceClass: "bundled-default" | "human-customized";
|
|
218
|
+
objectLocator: string;
|
|
219
|
+
}>;
|
|
220
|
+
resolvedRules: string[];
|
|
221
|
+
resolvedConstraints?: Record<string, boolean | number | string | string[]>;
|
|
222
|
+
requiredReviewers: string[];
|
|
223
|
+
approvedAt: string;
|
|
224
|
+
expiresAt: string;
|
|
225
|
+
}
|
|
196
226
|
export interface WorkPackage {
|
|
197
227
|
id: string;
|
|
198
228
|
stage: "discover" | "acquire" | "analyze" | "synthesize" | "review" | "close";
|
|
@@ -227,6 +257,7 @@ export interface ProjectState {
|
|
|
227
257
|
budgetConfirmedAt: string | null;
|
|
228
258
|
inputs: ProjectInput[];
|
|
229
259
|
evidenceRequirements: ProjectEvidenceRequirements;
|
|
260
|
+
publicationPolicy?: ResearchPolicyBinding | null;
|
|
230
261
|
packages: WorkPackage[];
|
|
231
262
|
usage: ProjectUsage;
|
|
232
263
|
lineage: {
|
|
@@ -337,6 +368,27 @@ export interface ContextInspection {
|
|
|
337
368
|
code: string;
|
|
338
369
|
message: string;
|
|
339
370
|
}>;
|
|
371
|
+
setup?: {
|
|
372
|
+
status: "pending" | "applying" | "partially-ready" | "ready" | "blocked";
|
|
373
|
+
currentStep: string | null;
|
|
374
|
+
blocker: {
|
|
375
|
+
code: string;
|
|
376
|
+
step: string;
|
|
377
|
+
reason: string;
|
|
378
|
+
minimumAction: string;
|
|
379
|
+
retryCommand: string;
|
|
380
|
+
diagnostics?: Record<string, unknown>;
|
|
381
|
+
} | null;
|
|
382
|
+
runtime: {
|
|
383
|
+
packageName: "@tiangong-ai/cli";
|
|
384
|
+
packageVersion: string;
|
|
385
|
+
source: "runtime-lock" | "setup-plan";
|
|
386
|
+
};
|
|
387
|
+
next: {
|
|
388
|
+
action: "apply" | "retry" | "doctor" | "inspect";
|
|
389
|
+
retryCommand: string;
|
|
390
|
+
} | null;
|
|
391
|
+
};
|
|
340
392
|
}
|
|
341
393
|
export interface DoctorCheck {
|
|
342
394
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiangong-ai/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"description": "Tiangong AI command-line interface.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,8 +30,10 @@
|
|
|
30
30
|
"typecheck": "tsc --noEmit",
|
|
31
31
|
"test": "npm run build && node --import tsx --test test/*.test.ts",
|
|
32
32
|
"test:coverage": "npm run build && node ./scripts/run-test-coverage.cjs",
|
|
33
|
+
"test:container": "node ./scripts/assert-clean-container.mjs && npm run lint && npm run test:coverage",
|
|
34
|
+
"test:clean": "sh ./scripts/test-clean-container.sh",
|
|
33
35
|
"audit:research-setup-pins": "npm run build && node ./scripts/audit-research-setup-pins.mjs",
|
|
34
|
-
"prepush:gate": "npm run
|
|
36
|
+
"prepush:gate": "npm run test:clean && docpact validate-config --root . --strict && docpact lint --root . --worktree --mode enforce",
|
|
35
37
|
"lint": "npm run lint:format && npm run lint:coverage-guards",
|
|
36
38
|
"lint:format": "prettier --check \"{src,test,bin,scripts}/**/*.{ts,js,cjs,mjs}\" \"*.{md,json}\" \"docs/**/*.md\" \".docpact/**/*.yaml\" \".github/**/*.yml\"",
|
|
37
39
|
"lint:coverage-guards": "node ./scripts/assert-no-coverage-ignore.cjs",
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
"@aws-sdk/client-s3": "^3.1056.0",
|
|
61
63
|
"ajv": "8.20.0",
|
|
62
64
|
"pdf-lib": "^1.17.1",
|
|
63
|
-
"sharp": "^0.35.3"
|
|
65
|
+
"sharp": "^0.35.3",
|
|
66
|
+
"yaml": "2.9.0"
|
|
64
67
|
}
|
|
65
68
|
}
|