@tiangong-ai/cli 0.0.30 → 0.0.32

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 (38) hide show
  1. package/AGENTS.md +2 -2
  2. package/README.md +127 -97
  3. package/dist/edge-search.js +57 -16
  4. package/dist/edge-search.js.map +1 -1
  5. package/dist/http.js +17 -1
  6. package/dist/http.js.map +1 -1
  7. package/dist/research/orchestration.js +153 -4
  8. package/dist/research/orchestration.js.map +1 -1
  9. package/dist/research/workspace/broker.d.ts +5 -0
  10. package/dist/research/workspace/broker.js +130 -19
  11. package/dist/research/workspace/broker.js.map +1 -1
  12. package/dist/research/workspace/companion-readiness.d.ts +11 -0
  13. package/dist/research/workspace/companion-readiness.js +75 -0
  14. package/dist/research/workspace/companion-readiness.js.map +1 -0
  15. package/dist/research/workspace/external-skills.d.ts +95 -0
  16. package/dist/research/workspace/external-skills.js +79 -25
  17. package/dist/research/workspace/external-skills.js.map +1 -1
  18. package/dist/research/workspace/preflight.d.ts +22 -0
  19. package/dist/research/workspace/preflight.js +54 -5
  20. package/dist/research/workspace/preflight.js.map +1 -1
  21. package/dist/research/workspace/projects.js +27 -0
  22. package/dist/research/workspace/projects.js.map +1 -1
  23. package/dist/research/workspace/runtime.d.ts +68 -2
  24. package/dist/research/workspace/runtime.js +652 -14
  25. package/dist/research/workspace/runtime.js.map +1 -1
  26. package/dist/research/workspace/setup-catalog.d.ts +20 -2
  27. package/dist/research/workspace/setup-catalog.js +202 -5
  28. package/dist/research/workspace/setup-catalog.js.map +1 -1
  29. package/dist/research/workspace/setup-wizard.js +35 -13
  30. package/dist/research/workspace/setup-wizard.js.map +1 -1
  31. package/dist/research/workspace/setup.d.ts +30 -5
  32. package/dist/research/workspace/setup.js +500 -114
  33. package/dist/research/workspace/setup.js.map +1 -1
  34. package/dist/research/workspace/types.d.ts +9 -0
  35. package/dist/research/workspace/workspace.d.ts +2 -0
  36. package/dist/research/workspace/workspace.js +83 -20
  37. package/dist/research/workspace/workspace.js.map +1 -1
  38. package/package.json +2 -1
@@ -1,9 +1,11 @@
1
1
  import { EXTERNAL_SKILL_CONTEXT_PROFILE, EXTERNAL_SKILL_MEDIA_PROFILE, EXTERNAL_SKILL_PROFILE } from "./external-skills.js";
2
2
  import { RESEARCH_SETUP_INSTALLER, type ResearchSetupAgent, type ResearchSetupCredential, type ResearchSetupScope, type ResearchSetupSkill } from "./setup-catalog.js";
3
- import type { AgentPricing, ResearchMode } from "./types.js";
3
+ import type { AgentKind, AgentPricing, ResearchMode } from "./types.js";
4
4
  import { type DoctorOptions } from "./workspace.js";
5
5
  export type ResearchSetupEvidenceProfile = "none" | typeof EXTERNAL_SKILL_PROFILE | typeof EXTERNAL_SKILL_CONTEXT_PROFILE | typeof EXTERNAL_SKILL_MEDIA_PROFILE;
6
6
  export interface ResearchSetupAgentRoutePlan {
7
+ producerAgent: AgentKind;
8
+ reviewerAgent: AgentKind;
7
9
  producerModel: string | null;
8
10
  reviewerModel: string | null;
9
11
  producerPricing: AgentPricing | null;
@@ -177,7 +179,12 @@ export declare function applyResearchSetupPlan(planPath: string, options?: Apply
177
179
  plan: ResearchSetupPlan;
178
180
  state: ResearchSetupState;
179
181
  report: Record<string, unknown> & {
180
- readiness: "READY" | "PARTIALLY_READY" | "BLOCKED";
182
+ readiness: "READY" | "BLOCKED";
183
+ researchReadiness: "READY" | "BLOCKED";
184
+ preprocessingReadiness: SetupDomainReadiness;
185
+ acquisitionReadiness: SetupDomainReadiness;
186
+ authoringReadiness: SetupDomainReadiness;
187
+ overallReadiness: "READY" | "PARTIALLY_READY" | "BLOCKED";
181
188
  };
182
189
  }>;
183
190
  export declare function inspectResearchSetupStatus(workspace: string, environment?: NodeJS.ProcessEnv): Promise<{
@@ -256,7 +263,12 @@ export declare function doctorResearchSetup(workspace: string, options?: {
256
263
  sleeper?: (milliseconds: number) => Promise<unknown>;
257
264
  executor?: DoctorOptions["executor"];
258
265
  }): Promise<Record<string, unknown> & {
259
- readiness: "READY" | "PARTIALLY_READY" | "BLOCKED";
266
+ readiness: "READY" | "BLOCKED";
267
+ researchReadiness: "READY" | "BLOCKED";
268
+ preprocessingReadiness: SetupDomainReadiness;
269
+ acquisitionReadiness: SetupDomainReadiness;
270
+ authoringReadiness: SetupDomainReadiness;
271
+ overallReadiness: "READY" | "PARTIALLY_READY" | "BLOCKED";
260
272
  }>;
261
273
  export declare function retryResearchSetup(input: {
262
274
  workspace: string;
@@ -273,7 +285,12 @@ export declare function retryResearchSetup(input: {
273
285
  plan: ResearchSetupPlan;
274
286
  state: ResearchSetupState;
275
287
  report: Record<string, unknown> & {
276
- readiness: "READY" | "PARTIALLY_READY" | "BLOCKED";
288
+ readiness: "READY" | "BLOCKED";
289
+ researchReadiness: "READY" | "BLOCKED";
290
+ preprocessingReadiness: SetupDomainReadiness;
291
+ acquisitionReadiness: SetupDomainReadiness;
292
+ authoringReadiness: SetupDomainReadiness;
293
+ overallReadiness: "READY" | "PARTIALLY_READY" | "BLOCKED";
277
294
  };
278
295
  }>;
279
296
  export declare function checkResearchSetupUpdates(workspace: string, environment?: NodeJS.ProcessEnv): Promise<{
@@ -352,7 +369,13 @@ export declare function checkResearchSetupUpdates(workspace: string, environment
352
369
  dependencies: import("./setup-catalog.js").ResearchSetupDependency[];
353
370
  license: import("./setup-catalog.js").ResearchSetupLicense;
354
371
  conflictGroup: string | null;
355
- capabilityKind: "brave-public-internet" | "tiangong-sci" | null;
372
+ capabilityKind: "brave-public-internet" | "tiangong-sci" | "tiangong-report" | "tiangong-patent" | null;
373
+ runtimeContract?: {
374
+ mode: "workspace-lock";
375
+ resolverRelativePath: string;
376
+ exactCliVersionLiterals: "forbidden";
377
+ };
378
+ standaloneTestedCliVersion?: string;
356
379
  bundled: false;
357
380
  userInitiatedOnly: true;
358
381
  }[];
@@ -482,4 +505,6 @@ declare function runAcademicPaperCompanion(input: {
482
505
  sourcesTried?: never;
483
506
  error?: never;
484
507
  }>;
508
+ export type SetupDoctorScope = "research-core" | "evidence" | "preprocessing" | "acquisition" | "authoring" | "review";
509
+ export type SetupDomainReadiness = "READY" | "DEGRADED" | "BLOCKED" | "NOT_REQUIRED";
485
510
  export {};