cwtools-shared 0.3.0 → 0.5.0

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 (52) hide show
  1. package/dist/catalog.d.ts +17 -0
  2. package/dist/catalog.js +30 -0
  3. package/dist/debug/zz.d.ts +1 -0
  4. package/dist/debug/zz.js +12 -0
  5. package/dist/generated/mcpTools.d.ts +4 -4
  6. package/dist/generated/mcpTools.js +4 -4
  7. package/dist/host/capabilities.js +4 -0
  8. package/dist/host/diagnostics.d.ts +3 -0
  9. package/dist/host/filesystem.d.ts +2 -0
  10. package/dist/host/hostServices.d.ts +42 -0
  11. package/dist/host/indexing.d.ts +3 -0
  12. package/dist/host/readiness.js +10 -0
  13. package/dist/index.d.ts +12 -1
  14. package/dist/index.js +18 -1
  15. package/dist/knowledge/interfaceKnowledge.d.ts +8 -0
  16. package/dist/knowledge/interfaceKnowledge.js +222 -0
  17. package/dist/project/descriptor.d.ts +12 -0
  18. package/dist/project/descriptor.js +69 -0
  19. package/dist/project/init.d.ts +11 -0
  20. package/dist/project/init.js +356 -0
  21. package/dist/project/knowledge.d.ts +6 -0
  22. package/dist/project/knowledge.js +20 -8
  23. package/dist/project/profile.d.ts +62 -7
  24. package/dist/project/profile.js +4 -3
  25. package/dist/project/profileBuilder.d.ts +31 -0
  26. package/dist/project/profileBuilder.js +989 -0
  27. package/dist/tools/archetypeArtifacts.d.ts +29 -0
  28. package/dist/tools/archetypeArtifacts.js +136 -0
  29. package/dist/tools/archetypeSlots.d.ts +32 -0
  30. package/dist/tools/archetypeSlots.js +257 -0
  31. package/dist/tools/archetypeTools.d.ts +4 -0
  32. package/dist/tools/archetypeTools.js +118 -0
  33. package/dist/tools/callHandler.js +11 -7
  34. package/dist/tools/catalog.d.ts +4094 -0
  35. package/dist/tools/catalog.js +5031 -0
  36. package/dist/tools/domainTools.d.ts +8 -0
  37. package/dist/tools/domainTools.js +222 -0
  38. package/dist/tools/mcpSchema.d.ts +8 -11
  39. package/dist/tools/mcpSchema.js +28 -8
  40. package/dist/tools/mediaWrites.d.ts +52 -0
  41. package/dist/tools/mediaWrites.js +322 -0
  42. package/dist/tools/names.d.ts +4 -4
  43. package/dist/tools/names.js +13 -0
  44. package/dist/tools/pdxWriteCore.d.ts +51 -0
  45. package/dist/tools/pdxWriteCore.js +628 -0
  46. package/dist/tools/pdxWrites.d.ts +88 -0
  47. package/dist/tools/pdxWrites.js +629 -0
  48. package/dist/tools/scopeBridge.d.ts +36 -0
  49. package/dist/tools/scopeBridge.js +173 -0
  50. package/dist/tools/symbols.js +22 -2
  51. package/dist/tools/toolHandlers.js +98 -8
  52. package/package.json +12 -1
@@ -0,0 +1,31 @@
1
+ import type { ProjectProfile, ProjectGuidanceCard, QueryProjectProfileArgs } from './profile';
2
+ interface QueryProjectProfileResult {
3
+ status: 'ready' | 'missing' | 'error';
4
+ profilePath: string;
5
+ generatedAt?: string;
6
+ section?: string;
7
+ profile?: ProjectProfile;
8
+ summary?: string;
9
+ data?: unknown;
10
+ guidanceCard?: string;
11
+ _hint?: string;
12
+ error?: string;
13
+ }
14
+ export declare const PROJECT_PROFILE_RELATIVE_PATH: string;
15
+ export declare function getProjectProfilePath(workspaceRoot: string): string;
16
+ /** Validate the generated profile before it reaches prompts, LSP, or MCP paths. */
17
+ export declare function isProjectProfile(value: unknown): value is ProjectProfile;
18
+ export declare function readProjectProfile(workspaceRoot: string): ProjectProfile | null;
19
+ export declare function writeProjectProfile(workspaceRoot: string, profile: ProjectProfile): string;
20
+ export declare function buildProjectProfile(workspaceRoot: string): ProjectProfile;
21
+ export declare function queryProjectProfile(workspaceRoot: string, args?: QueryProjectProfileArgs): QueryProjectProfileResult;
22
+ export declare function getGuidanceCard(profile: ProjectProfile, guidance: ProjectGuidanceCard): string;
23
+ export declare function buildProfileSummary(profile: ProjectProfile): string;
24
+ /** Merge evidence that is available only after the coherent CWTools knowledge
25
+ * export. This keeps quick /init scanning cheap while still classifying
26
+ * definition-stack overrides and unresolved external identifiers. */
27
+ export declare function mergeDeepCompatibilityEvidence(profile: ProjectProfile, evidence: {
28
+ unresolved?: Array<Record<string, unknown>>;
29
+ definitionStacks?: Array<Record<string, unknown>>;
30
+ }): void;
31
+ export {};