@tiangong-ai/cli 0.0.34 → 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 +4 -2
- package/README.md +63 -0
- package/dist/research/orchestration.js +366 -9
- package/dist/research/orchestration.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 +2 -2
- 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 +1 -0
- package/dist/research/workspace/setup.js +55 -0
- package/dist/research/workspace/setup.js.map +1 -1
- package/dist/research/workspace/types.d.ts +31 -0
- package/package.json +3 -2
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { type TopJournalAssessmentResult } from "./publication.js";
|
|
2
|
+
import type { AgentKind, ResearchPolicyBinding } from "./types.js";
|
|
3
|
+
export type PublicationReviewRole = "evidence" | "methods-reproducibility" | "domain-novelty" | "journal-editor";
|
|
4
|
+
export type PublicationReadinessVerdict = "independent-review-incomplete" | "revision-required" | "top-journal-candidate" | "top-journal-class-ready" | "target-journal-submission-ready";
|
|
5
|
+
interface FrozenFile {
|
|
6
|
+
logicalName: string;
|
|
7
|
+
sha256: string;
|
|
8
|
+
bytes: number;
|
|
9
|
+
objectLocator: string;
|
|
10
|
+
}
|
|
11
|
+
interface PublicationGeneration {
|
|
12
|
+
schemaVersion: 1;
|
|
13
|
+
kind: "tiangong-publication-generation";
|
|
14
|
+
projectId: string;
|
|
15
|
+
generationSha256: string;
|
|
16
|
+
frozenAt: string;
|
|
17
|
+
producer: {
|
|
18
|
+
agent: AgentKind;
|
|
19
|
+
sessionSha256: string;
|
|
20
|
+
};
|
|
21
|
+
policy: {
|
|
22
|
+
projectId: string;
|
|
23
|
+
resolvedPolicySha256: string;
|
|
24
|
+
approvalSha256: string;
|
|
25
|
+
verdictCeiling: ResearchPolicyBinding["verdictCeiling"];
|
|
26
|
+
targetJournal: string | null;
|
|
27
|
+
};
|
|
28
|
+
evidenceSnapshot: {
|
|
29
|
+
id: string;
|
|
30
|
+
sha256: string;
|
|
31
|
+
object: FrozenFile;
|
|
32
|
+
};
|
|
33
|
+
baseResearch: {
|
|
34
|
+
closure: FrozenFile;
|
|
35
|
+
analysis: FrozenFile;
|
|
36
|
+
report: FrozenFile;
|
|
37
|
+
};
|
|
38
|
+
manuscript: FrozenFile;
|
|
39
|
+
assessment: FrozenFile;
|
|
40
|
+
supplements: FrozenFile[];
|
|
41
|
+
assessmentResult: TopJournalAssessmentResult;
|
|
42
|
+
requiredReviewRoles: PublicationReviewRole[];
|
|
43
|
+
}
|
|
44
|
+
export interface PublicationReviewPacket {
|
|
45
|
+
schemaVersion: 1;
|
|
46
|
+
kind: "tiangong-publication-review-packet";
|
|
47
|
+
projectId: string;
|
|
48
|
+
generationSha256: string;
|
|
49
|
+
role: PublicationReviewRole;
|
|
50
|
+
reviewer: {
|
|
51
|
+
agent: AgentKind;
|
|
52
|
+
sessionSha256: string;
|
|
53
|
+
};
|
|
54
|
+
preparedAt: string;
|
|
55
|
+
policy: PublicationGeneration["policy"] & {
|
|
56
|
+
documents: ResearchPolicyBinding["documents"];
|
|
57
|
+
resolvedRules: string[];
|
|
58
|
+
resolvedConstraints: ResearchPolicyBinding["resolvedConstraints"];
|
|
59
|
+
};
|
|
60
|
+
evidenceSnapshot: {
|
|
61
|
+
id: string;
|
|
62
|
+
sha256: string;
|
|
63
|
+
objectLocator: string;
|
|
64
|
+
};
|
|
65
|
+
baseResearch: PublicationGeneration["baseResearch"];
|
|
66
|
+
manuscript: FrozenFile;
|
|
67
|
+
assessment: FrozenFile;
|
|
68
|
+
supplements: FrozenFile[];
|
|
69
|
+
mechanicalAssessment: TopJournalAssessmentResult;
|
|
70
|
+
instructions: string[];
|
|
71
|
+
packetSha256: string;
|
|
72
|
+
}
|
|
73
|
+
export interface PublicationStatus {
|
|
74
|
+
schemaVersion: 1;
|
|
75
|
+
projectId: string;
|
|
76
|
+
generationSha256: string | null;
|
|
77
|
+
manuscriptSha256: string | null;
|
|
78
|
+
generationStatus: "waiting-for-base-research" | "not-started" | "manuscript-frozen" | "invalid";
|
|
79
|
+
reviewState: "not-started" | "partial" | "complete";
|
|
80
|
+
requiredReviewRoles: PublicationReviewRole[];
|
|
81
|
+
completedReviewRoles: PublicationReviewRole[];
|
|
82
|
+
missingReviewRoles: PublicationReviewRole[];
|
|
83
|
+
mechanicalIssues: string[];
|
|
84
|
+
pivotOptions: string[];
|
|
85
|
+
readinessVerdict: PublicationReadinessVerdict;
|
|
86
|
+
boundedStatement: string;
|
|
87
|
+
closureSha256: string | null;
|
|
88
|
+
}
|
|
89
|
+
export interface PublicationClosure {
|
|
90
|
+
schemaVersion: 1;
|
|
91
|
+
kind: "tiangong-publication-closure";
|
|
92
|
+
projectId: string;
|
|
93
|
+
generationSha256: string;
|
|
94
|
+
closedAt: string;
|
|
95
|
+
policy: PublicationGeneration["policy"];
|
|
96
|
+
evidenceSnapshot: PublicationGeneration["evidenceSnapshot"];
|
|
97
|
+
baseResearch: PublicationGeneration["baseResearch"];
|
|
98
|
+
manuscript: FrozenFile;
|
|
99
|
+
assessment: FrozenFile;
|
|
100
|
+
supplements: FrozenFile[];
|
|
101
|
+
reviews: Array<{
|
|
102
|
+
role: PublicationReviewRole;
|
|
103
|
+
packetSha256: string;
|
|
104
|
+
reviewSha256: string;
|
|
105
|
+
reviewerSessionSha256: string;
|
|
106
|
+
decision: string;
|
|
107
|
+
}>;
|
|
108
|
+
mechanicalIssues: string[];
|
|
109
|
+
pivotOptions: string[];
|
|
110
|
+
readinessVerdict: PublicationReadinessVerdict;
|
|
111
|
+
boundedStatement: string;
|
|
112
|
+
closureSha256: string;
|
|
113
|
+
}
|
|
114
|
+
export declare function publicationAssessmentSchema(): Record<string, unknown>;
|
|
115
|
+
export declare function publicationReviewSchema(role: PublicationReviewRole): Record<string, unknown>;
|
|
116
|
+
export declare function freezePublicationManuscript(input: {
|
|
117
|
+
root: string;
|
|
118
|
+
projectId: string;
|
|
119
|
+
manuscriptPath: string;
|
|
120
|
+
assessmentPath: string;
|
|
121
|
+
supplementPaths: string[];
|
|
122
|
+
producerAgent: AgentKind;
|
|
123
|
+
producerSessionId: string;
|
|
124
|
+
}): Promise<PublicationGeneration & {
|
|
125
|
+
status: "manuscript-frozen";
|
|
126
|
+
}>;
|
|
127
|
+
export declare function preparePublicationReview(input: {
|
|
128
|
+
root: string;
|
|
129
|
+
projectId: string;
|
|
130
|
+
role: PublicationReviewRole;
|
|
131
|
+
reviewerAgent: AgentKind;
|
|
132
|
+
reviewerSessionId: string;
|
|
133
|
+
}): Promise<PublicationReviewPacket>;
|
|
134
|
+
export declare function submitPublicationReview(input: {
|
|
135
|
+
root: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
role: PublicationReviewRole;
|
|
138
|
+
reviewPath: string;
|
|
139
|
+
}): Promise<{
|
|
140
|
+
role: PublicationReviewRole;
|
|
141
|
+
reviewSha256: string;
|
|
142
|
+
decision: string;
|
|
143
|
+
}>;
|
|
144
|
+
export declare function inspectPublicationStatus(root: string, projectId: string): Promise<PublicationStatus>;
|
|
145
|
+
export declare function closePublication(root: string, projectId: string): Promise<PublicationClosure>;
|
|
146
|
+
export {};
|