@blade-hq/agent-kit 0.0.0-placeholder.0 → 0.4.4

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 (39) hide show
  1. package/README.md +66 -3
  2. package/dist/AskUserQuestionBlock-CjvG_pUY.d.ts +116 -0
  3. package/dist/SkillStatusBar-DItrW2vv.d.ts +203 -0
  4. package/dist/blade-client-nOsdVlb1.d.ts +1498 -0
  5. package/dist/client/index.d.ts +8036 -0
  6. package/dist/client/index.js +1057 -0
  7. package/dist/client/index.js.map +1 -0
  8. package/dist/licenses-Cxl1xGVy.d.ts +16 -0
  9. package/dist/projection-DIfyh6RK.d.ts +85 -0
  10. package/dist/react/api/licenses.d.ts +7 -0
  11. package/dist/react/api/licenses.js +1477 -0
  12. package/dist/react/api/licenses.js.map +1 -0
  13. package/dist/react/api/vibe-coding.d.ts +55 -0
  14. package/dist/react/api/vibe-coding.js +1503 -0
  15. package/dist/react/api/vibe-coding.js.map +1 -0
  16. package/dist/react/cards/register.d.ts +2 -0
  17. package/dist/react/cards/register.js +4367 -0
  18. package/dist/react/cards/register.js.map +1 -0
  19. package/dist/react/components/chat/index.d.ts +128 -0
  20. package/dist/react/components/chat/index.js +11389 -0
  21. package/dist/react/components/chat/index.js.map +1 -0
  22. package/dist/react/components/plan/index.d.ts +111 -0
  23. package/dist/react/components/plan/index.js +3490 -0
  24. package/dist/react/components/plan/index.js.map +1 -0
  25. package/dist/react/components/session/index.d.ts +53 -0
  26. package/dist/react/components/session/index.js +2175 -0
  27. package/dist/react/components/session/index.js.map +1 -0
  28. package/dist/react/components/workspace/index.d.ts +35 -0
  29. package/dist/react/components/workspace/index.js +2886 -0
  30. package/dist/react/components/workspace/index.js.map +1 -0
  31. package/dist/react/devtools/bridge-devtools/index.d.ts +36 -0
  32. package/dist/react/devtools/bridge-devtools/index.js +692 -0
  33. package/dist/react/devtools/bridge-devtools/index.js.map +1 -0
  34. package/dist/react/index.d.ts +1283 -0
  35. package/dist/react/index.js +14299 -0
  36. package/dist/react/index.js.map +1 -0
  37. package/dist/session-CDeiO81j.d.ts +128 -0
  38. package/package.json +73 -7
  39. package/index.js +0 -1
@@ -0,0 +1,111 @@
1
+ import { C as ChatMessage, A as AskUserAnswerData } from '../../../AskUserQuestionBlock-CjvG_pUY.js';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+ import '../../../projection-DIfyh6RK.js';
4
+
5
+ /**
6
+ * Debug logger for Plan timeline events.
7
+ * Stores events in memory with timestamps for debugging animation timing
8
+ * in real conversation environments.
9
+ *
10
+ * Events are stored in window.__planTimelineLog and can be exported as JSON.
11
+ */
12
+ interface PlanTimelineEvent {
13
+ /** ISO timestamp */
14
+ ts: string;
15
+ /** Milliseconds since first event in this session */
16
+ elapsed: number;
17
+ /** Event type */
18
+ event: string;
19
+ /** Additional data */
20
+ data?: Record<string, unknown>;
21
+ }
22
+ declare function exportPlanLog(): PlanTimelineEvent[];
23
+ declare function downloadPlanLog(): void;
24
+
25
+ declare function extractLatestPlanMessages(messages: ChatMessage[]): ChatMessage[];
26
+
27
+ interface Props$1 {
28
+ messages: ChatMessage[];
29
+ sessionStatus?: string;
30
+ onConfirmPlan?: (action: "execute" | "revise", text?: string) => void;
31
+ }
32
+ declare function PlanSummaryCard({ messages, sessionStatus, onConfirmPlan, }: Props$1): react_jsx_runtime.JSX.Element;
33
+
34
+ interface SkillInfo {
35
+ skillId: string;
36
+ displayName?: string;
37
+ description: string;
38
+ content?: string;
39
+ references?: string[];
40
+ }
41
+ interface SkillCatalogItem {
42
+ skillId: string;
43
+ displayName?: string;
44
+ }
45
+ interface PlanNode {
46
+ id: string;
47
+ label: string;
48
+ skillRef: string | null;
49
+ children: PlanNode[];
50
+ depth: number;
51
+ status: "pending" | "running" | "done" | "failed";
52
+ }
53
+ type Phase = "discovering" | "analyzing" | "generating";
54
+ interface PlanData {
55
+ intent: string;
56
+ /** All skills returned by search_skills (candidates) */
57
+ searchResults: SkillInfo[];
58
+ /** Skills selected via get_skill_content (subset of searchResults, with content populated) */
59
+ selectedSkills: SkillInfo[];
60
+ plan: {
61
+ root: PlanNode;
62
+ notes: string[];
63
+ } | null;
64
+ /** Raw plan YAML content (non-empty even if parsePlanTree yields no plan) */
65
+ hasPlanContent: boolean;
66
+ /** PLAN.yaml exists but failed to parse/validate for UI rendering */
67
+ parseError: string | null;
68
+ /** AskUserQuestion tool calls found in planning messages */
69
+ askQuestions: Array<{
70
+ toolCallId: string;
71
+ data: {
72
+ questions: Array<{
73
+ question: string;
74
+ options: Array<{
75
+ label: string;
76
+ description: string;
77
+ }>;
78
+ multiSelect?: boolean;
79
+ }>;
80
+ };
81
+ }>;
82
+ /** File paths from Read tool calls (with status) */
83
+ readFiles: Array<{
84
+ path: string;
85
+ status: "pending" | "done" | "error" | "cancelled" | "awaiting_answer";
86
+ }>;
87
+ /** The last pause-triggering tool in this phase: determines what UI to show */
88
+ lastPauseTool: "AskUserQuestion" | "ExitPlanMode" | null;
89
+ }
90
+
91
+ interface Props {
92
+ messages: ChatMessage[];
93
+ /** All skill names from the registry, used as word cloud background in Phase 1 */
94
+ allSkillNames?: SkillCatalogItem[];
95
+ onAnswer?: (answer: string, toolCallId: string, answerData: AskUserAnswerData) => void;
96
+ sessionStatus?: string;
97
+ isStreaming?: boolean;
98
+ }
99
+ declare function PlanVisualization({ messages: rawMessages, allSkillNames: rawAllSkillNames, onAnswer, sessionStatus, isStreaming, }: Props): react_jsx_runtime.JSX.Element;
100
+
101
+ /**
102
+ * Extract structured plan data from planning phase messages.
103
+ *
104
+ * Expects messages between planning_enter/exit markers containing:
105
+ * - search_skills tool calls (Phase 1)
106
+ * - get_skill_content tool calls (Phase 2)
107
+ * - Write tool call to PLAN.yaml with plan YAML (Phase 3)
108
+ */
109
+ declare function parsePlanMessages(allMessages: ChatMessage[]): PlanData;
110
+
111
+ export { type Phase, type PlanData, type PlanNode, PlanSummaryCard, PlanVisualization, type SkillCatalogItem, type SkillInfo, downloadPlanLog, exportPlanLog, extractLatestPlanMessages, parsePlanMessages };