@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.
- package/README.md +66 -3
- package/dist/AskUserQuestionBlock-CjvG_pUY.d.ts +116 -0
- package/dist/SkillStatusBar-DItrW2vv.d.ts +203 -0
- package/dist/blade-client-nOsdVlb1.d.ts +1498 -0
- package/dist/client/index.d.ts +8036 -0
- package/dist/client/index.js +1057 -0
- package/dist/client/index.js.map +1 -0
- package/dist/licenses-Cxl1xGVy.d.ts +16 -0
- package/dist/projection-DIfyh6RK.d.ts +85 -0
- package/dist/react/api/licenses.d.ts +7 -0
- package/dist/react/api/licenses.js +1477 -0
- package/dist/react/api/licenses.js.map +1 -0
- package/dist/react/api/vibe-coding.d.ts +55 -0
- package/dist/react/api/vibe-coding.js +1503 -0
- package/dist/react/api/vibe-coding.js.map +1 -0
- package/dist/react/cards/register.d.ts +2 -0
- package/dist/react/cards/register.js +4367 -0
- package/dist/react/cards/register.js.map +1 -0
- package/dist/react/components/chat/index.d.ts +128 -0
- package/dist/react/components/chat/index.js +11389 -0
- package/dist/react/components/chat/index.js.map +1 -0
- package/dist/react/components/plan/index.d.ts +111 -0
- package/dist/react/components/plan/index.js +3490 -0
- package/dist/react/components/plan/index.js.map +1 -0
- package/dist/react/components/session/index.d.ts +53 -0
- package/dist/react/components/session/index.js +2175 -0
- package/dist/react/components/session/index.js.map +1 -0
- package/dist/react/components/workspace/index.d.ts +35 -0
- package/dist/react/components/workspace/index.js +2886 -0
- package/dist/react/components/workspace/index.js.map +1 -0
- package/dist/react/devtools/bridge-devtools/index.d.ts +36 -0
- package/dist/react/devtools/bridge-devtools/index.js +692 -0
- package/dist/react/devtools/bridge-devtools/index.js.map +1 -0
- package/dist/react/index.d.ts +1283 -0
- package/dist/react/index.js +14299 -0
- package/dist/react/index.js.map +1 -0
- package/dist/session-CDeiO81j.d.ts +128 -0
- package/package.json +73 -7
- package/index.js +0 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import * as arktype_internal_variants_object_ts from 'arktype/internal/variants/object.ts';
|
|
2
|
+
import * as arktype_internal_variants_string_ts from 'arktype/internal/variants/string.ts';
|
|
3
|
+
|
|
4
|
+
declare enum LayoutType {
|
|
5
|
+
Default = "default",
|
|
6
|
+
SkillEditor = "skill-editor",
|
|
7
|
+
BladeCoa = "blade-coa"
|
|
8
|
+
}
|
|
9
|
+
interface Solution {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
version: string;
|
|
13
|
+
description?: string | null;
|
|
14
|
+
layout_type: LayoutType | string;
|
|
15
|
+
initial_mode?: "planning" | "executing" | string | null;
|
|
16
|
+
initial_message?: string | null;
|
|
17
|
+
roles?: BizRole[] | null;
|
|
18
|
+
data?: Record<string, unknown> | null;
|
|
19
|
+
}
|
|
20
|
+
interface BizRole {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
description?: string | null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare const SessionStatus: arktype_internal_variants_string_ts.StringType<"running" | "failed" | "completed" | "interrupted" | "created" | "waiting_for_input", {}>;
|
|
27
|
+
type SessionStatus = typeof SessionStatus.infer;
|
|
28
|
+
type TemplateId = "default" | "skill_editor" | "vibe_coding" | "ship_attack";
|
|
29
|
+
type SkillEditorTemplateId = "skill_editor";
|
|
30
|
+
type ModeId = "planning" | "executing";
|
|
31
|
+
interface ReplayState {
|
|
32
|
+
source_session_id?: string;
|
|
33
|
+
status?: "replay" | "autonomous";
|
|
34
|
+
speed?: 1 | 2 | 5;
|
|
35
|
+
next_source_entry_id?: string | null;
|
|
36
|
+
ended_at?: string | null;
|
|
37
|
+
autonomous_reason?: string | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 列表搜索时单条会话的命中信息。
|
|
41
|
+
* - field='title':关键词出现在 intent 里,snippet 为 null(标题本身就在 UI 上)
|
|
42
|
+
* - field='content':关键词出现在历史消息里,snippet 含截窗预览与角色
|
|
43
|
+
*/
|
|
44
|
+
interface SessionSearchMatch {
|
|
45
|
+
field: "title" | "content";
|
|
46
|
+
snippet: {
|
|
47
|
+
role: string;
|
|
48
|
+
text: string;
|
|
49
|
+
} | null;
|
|
50
|
+
}
|
|
51
|
+
declare const SessionInfo: arktype_internal_variants_object_ts.ObjectType<{
|
|
52
|
+
id: string;
|
|
53
|
+
intent: string;
|
|
54
|
+
status: "running" | "failed" | "completed" | "interrupted" | "created" | "waiting_for_input";
|
|
55
|
+
created_at: string;
|
|
56
|
+
updated_at: string;
|
|
57
|
+
shared?: boolean | undefined;
|
|
58
|
+
memory_enabled?: boolean | undefined;
|
|
59
|
+
viewer_role?: "owner" | "viewer" | undefined;
|
|
60
|
+
template_id?: string | null | undefined;
|
|
61
|
+
model?: string | null | undefined;
|
|
62
|
+
solution_id?: string | null | undefined;
|
|
63
|
+
biz_role_id?: string | null | undefined;
|
|
64
|
+
solution?: unknown;
|
|
65
|
+
plan_summary?: string | null | undefined;
|
|
66
|
+
primary_skill_id?: string | null | undefined;
|
|
67
|
+
bound_skill_id?: string | null | undefined;
|
|
68
|
+
replay_state?: unknown;
|
|
69
|
+
is_pinned?: boolean | undefined;
|
|
70
|
+
pinned_at?: string | null | undefined;
|
|
71
|
+
is_example?: boolean | undefined;
|
|
72
|
+
match?: unknown;
|
|
73
|
+
}, {}>;
|
|
74
|
+
type SessionInfo = Omit<typeof SessionInfo.infer, "template_id" | "solution" | "match"> & {
|
|
75
|
+
shared?: boolean;
|
|
76
|
+
memory_enabled?: boolean;
|
|
77
|
+
viewer_role?: "owner" | "viewer";
|
|
78
|
+
template_id?: TemplateId | null;
|
|
79
|
+
model?: string | null;
|
|
80
|
+
solution_id?: string | null;
|
|
81
|
+
biz_role_id?: string | null;
|
|
82
|
+
solution?: Solution | null;
|
|
83
|
+
primary_skill_id?: string | null;
|
|
84
|
+
bound_skill_id?: string | null;
|
|
85
|
+
replay_state?: ReplayState | null;
|
|
86
|
+
is_pinned?: boolean;
|
|
87
|
+
pinned_at?: string | null;
|
|
88
|
+
is_example?: boolean;
|
|
89
|
+
/** 仅在带 q 搜索的列表响应中出现;普通列表里此字段缺省。 */
|
|
90
|
+
match?: SessionSearchMatch | null;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* 主 skill 配置快照(v2)。创建 session 时从 SKILL.md frontmatter 抽出并
|
|
94
|
+
* 固化到 session_root/.blade/primary-skill.json;ship-attack 页面骨架的唯
|
|
95
|
+
* 一数据源。
|
|
96
|
+
*/
|
|
97
|
+
interface PrimarySkillStepSpec {
|
|
98
|
+
n: number;
|
|
99
|
+
label: string;
|
|
100
|
+
}
|
|
101
|
+
interface PrimarySkillStageSpec {
|
|
102
|
+
id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
steps: PrimarySkillStepSpec[];
|
|
105
|
+
}
|
|
106
|
+
interface PrimarySkillParallelMode {
|
|
107
|
+
id: string;
|
|
108
|
+
name: string;
|
|
109
|
+
prompt_hint: string;
|
|
110
|
+
}
|
|
111
|
+
interface PrimarySkillSnapshot {
|
|
112
|
+
version: number;
|
|
113
|
+
skill_id: string;
|
|
114
|
+
title: string;
|
|
115
|
+
description: string;
|
|
116
|
+
stages: PrimarySkillStageSpec[];
|
|
117
|
+
parallel_modes: PrimarySkillParallelMode[];
|
|
118
|
+
captured_at: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* 单 session detail(GET /api/sessions/:id)。列表接口返回 SessionInfo,
|
|
122
|
+
* detail 在此基础上附加 primary_skill_snapshot。
|
|
123
|
+
*/
|
|
124
|
+
interface SessionDetail extends SessionInfo {
|
|
125
|
+
primary_skill_snapshot?: PrimarySkillSnapshot | null;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { type BizRole as B, LayoutType as L, type ModeId as M, type PrimarySkillParallelMode as P, SessionInfo as S, type TemplateId as T, SessionStatus as a, type SessionDetail as b, type Solution as c, type PrimarySkillSnapshot as d, type PrimarySkillStageSpec as e, type PrimarySkillStepSpec as f, type SkillEditorTemplateId as g };
|
package/package.json
CHANGED
|
@@ -1,14 +1,80 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blade-hq/agent-kit",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Placeholder package for configuring trusted publishing. Do not use this version.",
|
|
3
|
+
"version": "0.4.4",
|
|
5
4
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
5
|
+
"main": "./dist/react/index.js",
|
|
6
|
+
"types": "./dist/react/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./client": {
|
|
9
|
+
"types": "./dist/client/index.d.ts",
|
|
10
|
+
"import": "./dist/client/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./react": {
|
|
13
|
+
"types": "./dist/react/index.d.ts",
|
|
14
|
+
"import": "./dist/react/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./chat": "./dist/react/components/chat/index.js",
|
|
17
|
+
"./plan": "./dist/react/components/plan/index.js",
|
|
18
|
+
"./session": "./dist/react/components/session/index.js",
|
|
19
|
+
"./workspace": "./dist/react/components/workspace/index.js",
|
|
20
|
+
"./api/licenses": "./dist/react/api/licenses.js",
|
|
21
|
+
"./api/vibe-coding": "./dist/react/api/vibe-coding.js",
|
|
22
|
+
"./cards/register": "./dist/react/cards/register.js",
|
|
23
|
+
"./devtools/bridge-devtools": "./dist/react/devtools/bridge-devtools/index.js",
|
|
24
|
+
"./components/session": "./dist/react/components/session/index.js",
|
|
25
|
+
"./components/workspace": "./dist/react/components/workspace/index.js"
|
|
9
26
|
},
|
|
10
27
|
"files": [
|
|
11
|
-
"
|
|
28
|
+
"dist",
|
|
12
29
|
"README.md"
|
|
13
|
-
]
|
|
30
|
+
],
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
|
37
|
+
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
38
|
+
"@shikijs/langs": "^4.0.1",
|
|
39
|
+
"@shikijs/themes": "^4.0.1",
|
|
40
|
+
"@streamdown/cjk": "^1.0.3",
|
|
41
|
+
"@streamdown/math": "^1.0.2",
|
|
42
|
+
"@streamdown/mermaid": "^1.0.2",
|
|
43
|
+
"@tiptap/extension-mention": "^3.20.4",
|
|
44
|
+
"@tiptap/pm": "^3.20.4",
|
|
45
|
+
"@tiptap/react": "^3.20.4",
|
|
46
|
+
"@tiptap/starter-kit": "^3.20.4",
|
|
47
|
+
"@tiptap/suggestion": "^3.20.4",
|
|
48
|
+
"arktype": "^2.1.0",
|
|
49
|
+
"clsx": "^2.1.0",
|
|
50
|
+
"js-yaml": "^4.1.0",
|
|
51
|
+
"lucide-react": "^0.468.0",
|
|
52
|
+
"motion": "^12.38.0",
|
|
53
|
+
"radix-ui": "^1.4.3",
|
|
54
|
+
"shiki": "^4.0.1",
|
|
55
|
+
"socket.io-client": "^4.8.0",
|
|
56
|
+
"streamdown": "^2.0.0",
|
|
57
|
+
"tailwind-merge": "^2.6.0",
|
|
58
|
+
"zustand": "^5.0.0"
|
|
59
|
+
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"@tanstack/react-query": "^5.0.0",
|
|
62
|
+
"react": "^19.0.0",
|
|
63
|
+
"react-dom": "^19.0.0",
|
|
64
|
+
"sonner": "^2.0.7"
|
|
65
|
+
},
|
|
66
|
+
"peerDependenciesMeta": {
|
|
67
|
+
"@tanstack/react-query": {
|
|
68
|
+
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"react": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"react-dom": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"sonner": {
|
|
77
|
+
"optional": true
|
|
78
|
+
}
|
|
79
|
+
}
|
|
14
80
|
}
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|