openhorse 0.2.22 → 0.2.24
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/dist/commands/target-command.d.ts +21 -0
- package/dist/commands/target-command.d.ts.map +1 -0
- package/dist/commands/target-command.js +81 -0
- package/dist/commands/target-command.js.map +1 -0
- package/dist/harness/capsule.d.ts +1 -0
- package/dist/harness/capsule.d.ts.map +1 -1
- package/dist/harness/capsule.js +38 -9
- package/dist/harness/capsule.js.map +1 -1
- package/dist/harness/contract.d.ts +2 -0
- package/dist/harness/contract.d.ts.map +1 -1
- package/dist/harness/contract.js +78 -14
- package/dist/harness/contract.js.map +1 -1
- package/dist/harness/index.d.ts +2 -2
- package/dist/harness/index.d.ts.map +1 -1
- package/dist/harness/index.js +4 -1
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/state.d.ts.map +1 -1
- package/dist/harness/state.js +37 -7
- package/dist/harness/state.js.map +1 -1
- package/dist/runtime/agent-runtime-controller.d.ts +5 -0
- package/dist/runtime/agent-runtime-controller.d.ts.map +1 -1
- package/dist/runtime/agent-runtime-controller.js +54 -0
- package/dist/runtime/agent-runtime-controller.js.map +1 -1
- package/dist/runtime/agent-runtime-protocol.d.ts +4 -0
- package/dist/runtime/agent-runtime-protocol.d.ts.map +1 -1
- package/dist/runtime/agent-runtime-protocol.js.map +1 -1
- package/dist/runtime/aggregate-tool-presenter.d.ts +13 -0
- package/dist/runtime/aggregate-tool-presenter.d.ts.map +1 -0
- package/dist/runtime/aggregate-tool-presenter.js +44 -0
- package/dist/runtime/aggregate-tool-presenter.js.map +1 -0
- package/dist/runtime/chat-controller.d.ts +9 -2
- package/dist/runtime/chat-controller.d.ts.map +1 -1
- package/dist/runtime/chat-controller.js +129 -17
- package/dist/runtime/chat-controller.js.map +1 -1
- package/dist/runtime/goal-coordinator.d.ts +66 -0
- package/dist/runtime/goal-coordinator.d.ts.map +1 -0
- package/dist/runtime/goal-coordinator.js +200 -0
- package/dist/runtime/goal-coordinator.js.map +1 -0
- package/dist/runtime/goals/accounting.d.ts +17 -0
- package/dist/runtime/goals/accounting.d.ts.map +1 -0
- package/dist/runtime/goals/accounting.js +45 -0
- package/dist/runtime/goals/accounting.js.map +1 -0
- package/dist/runtime/goals/completion-audit.d.ts +24 -0
- package/dist/runtime/goals/completion-audit.d.ts.map +1 -0
- package/dist/runtime/goals/completion-audit.js +48 -0
- package/dist/runtime/goals/completion-audit.js.map +1 -0
- package/dist/runtime/goals/coordinator.d.ts +42 -0
- package/dist/runtime/goals/coordinator.d.ts.map +1 -0
- package/dist/runtime/goals/coordinator.js +277 -0
- package/dist/runtime/goals/coordinator.js.map +1 -0
- package/dist/runtime/goals/prompt.d.ts +16 -0
- package/dist/runtime/goals/prompt.d.ts.map +1 -0
- package/dist/runtime/goals/prompt.js +50 -0
- package/dist/runtime/goals/prompt.js.map +1 -0
- package/dist/runtime/goals/tools.d.ts +43 -0
- package/dist/runtime/goals/tools.d.ts.map +1 -0
- package/dist/runtime/goals/tools.js +88 -0
- package/dist/runtime/goals/tools.js.map +1 -0
- package/dist/runtime/goals/types.d.ts +167 -0
- package/dist/runtime/goals/types.d.ts.map +1 -0
- package/dist/runtime/goals/types.js +72 -0
- package/dist/runtime/goals/types.js.map +1 -0
- package/dist/runtime/tool-detail-repository.d.ts +45 -0
- package/dist/runtime/tool-detail-repository.d.ts.map +1 -0
- package/dist/runtime/tool-detail-repository.js +131 -0
- package/dist/runtime/tool-detail-repository.js.map +1 -0
- package/dist/runtime/tool-output-presentation.d.ts +89 -0
- package/dist/runtime/tool-output-presentation.d.ts.map +1 -0
- package/dist/runtime/tool-output-presentation.js +329 -0
- package/dist/runtime/tool-output-presentation.js.map +1 -0
- package/dist/runtime/ui-events.d.ts +4 -0
- package/dist/runtime/ui-events.d.ts.map +1 -1
- package/dist/runtime/ui-events.js.map +1 -1
- package/dist/services/goal-sidecar.d.ts +96 -0
- package/dist/services/goal-sidecar.d.ts.map +1 -0
- package/dist/services/goal-sidecar.js +145 -0
- package/dist/services/goal-sidecar.js.map +1 -0
- package/dist/services/goal-storage.d.ts +22 -0
- package/dist/services/goal-storage.d.ts.map +1 -0
- package/dist/services/goal-storage.js +153 -0
- package/dist/services/goal-storage.js.map +1 -0
- package/dist/services/model-context.d.ts.map +1 -1
- package/dist/services/model-context.js +7 -0
- package/dist/services/model-context.js.map +1 -1
- package/dist/services/session-storage.d.ts +7 -0
- package/dist/services/session-storage.d.ts.map +1 -1
- package/dist/services/session-storage.js +64 -27
- package/dist/services/session-storage.js.map +1 -1
- package/dist/services/storage-maintenance.d.ts.map +1 -1
- package/dist/services/storage-maintenance.js +3 -2
- package/dist/services/storage-maintenance.js.map +1 -1
- package/dist/terminal-ui/editor.d.ts.map +1 -1
- package/dist/terminal-ui/editor.js +14 -3
- package/dist/terminal-ui/editor.js.map +1 -1
- package/dist/terminal-ui/launch.d.ts +19 -0
- package/dist/terminal-ui/launch.d.ts.map +1 -1
- package/dist/terminal-ui/launch.js +187 -24
- package/dist/terminal-ui/launch.js.map +1 -1
- package/dist/terminal-ui/output-queue.d.ts +43 -0
- package/dist/terminal-ui/output-queue.d.ts.map +1 -0
- package/dist/terminal-ui/output-queue.js +139 -0
- package/dist/terminal-ui/output-queue.js.map +1 -0
- package/dist/terminal-ui/raw-editor.d.ts +33 -0
- package/dist/terminal-ui/raw-editor.d.ts.map +1 -1
- package/dist/terminal-ui/raw-editor.js +142 -23
- package/dist/terminal-ui/raw-editor.js.map +1 -1
- package/dist/tools/goal.d.ts +17 -0
- package/dist/tools/goal.d.ts.map +1 -0
- package/dist/tools/goal.js +191 -0
- package/dist/tools/goal.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +133 -58
- package/dist/tools/index.js.map +1 -1
- package/dist/tui-core/input-parser.d.ts +9 -2
- package/dist/tui-core/input-parser.d.ts.map +1 -1
- package/dist/tui-core/input-parser.js +37 -2
- package/dist/tui-core/input-parser.js.map +1 -1
- package/dist/tui-ui/inline-surface.d.ts +7 -1
- package/dist/tui-ui/inline-surface.d.ts.map +1 -1
- package/dist/tui-ui/inline-surface.js +23 -2
- package/dist/tui-ui/inline-surface.js.map +1 -1
- package/dist/tui-ui/input-ownership.d.ts +46 -0
- package/dist/tui-ui/input-ownership.d.ts.map +1 -0
- package/dist/tui-ui/input-ownership.js +74 -0
- package/dist/tui-ui/input-ownership.js.map +1 -0
- package/dist/tui-ui/launch.d.ts +1 -0
- package/dist/tui-ui/launch.d.ts.map +1 -1
- package/dist/tui-ui/launch.js +104 -2
- package/dist/tui-ui/launch.js.map +1 -1
- package/dist/tui-ui/layout.d.ts +1 -0
- package/dist/tui-ui/layout.d.ts.map +1 -1
- package/dist/tui-ui/layout.js +5 -1
- package/dist/tui-ui/layout.js.map +1 -1
- package/dist/tui-ui/runner.d.ts +32 -0
- package/dist/tui-ui/runner.d.ts.map +1 -1
- package/dist/tui-ui/runner.js +553 -24
- package/dist/tui-ui/runner.js.map +1 -1
- package/dist/tui-ui/state.d.ts +65 -0
- package/dist/tui-ui/state.d.ts.map +1 -1
- package/dist/tui-ui/state.js +187 -2
- package/dist/tui-ui/state.js.map +1 -1
- package/dist/tui-ui/theme-profile.d.ts +25 -0
- package/dist/tui-ui/theme-profile.d.ts.map +1 -0
- package/dist/tui-ui/theme-profile.js +130 -0
- package/dist/tui-ui/theme-profile.js.map +1 -0
- package/dist/tui-ui/transcript-inspector-layout.d.ts +9 -0
- package/dist/tui-ui/transcript-inspector-layout.d.ts.map +1 -0
- package/dist/tui-ui/transcript-inspector-layout.js +97 -0
- package/dist/tui-ui/transcript-inspector-layout.js.map +1 -0
- package/dist/tui-ui/transcript-inspector-surface.d.ts +18 -0
- package/dist/tui-ui/transcript-inspector-surface.d.ts.map +1 -0
- package/dist/tui-ui/transcript-inspector-surface.js +88 -0
- package/dist/tui-ui/transcript-inspector-surface.js.map +1 -0
- package/dist/tui-ui/transcript-inspector.d.ts +35 -0
- package/dist/tui-ui/transcript-inspector.d.ts.map +1 -0
- package/dist/tui-ui/transcript-inspector.js +128 -0
- package/dist/tui-ui/transcript-inspector.js.map +1 -0
- package/dist/tui-ui/transcript-layout.d.ts +1 -0
- package/dist/tui-ui/transcript-layout.d.ts.map +1 -1
- package/dist/tui-ui/transcript-layout.js +44 -3
- package/dist/tui-ui/transcript-layout.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* openhorse — Goal Model Tools
|
|
4
|
+
*
|
|
5
|
+
* create_goal / update_goal / get_goal tools per v0.2.24-target-mode-plan section 11.
|
|
6
|
+
* These tools let the model report goal completion or blocking through the
|
|
7
|
+
* same tool interface as all other tools, keeping the goal lifecycle
|
|
8
|
+
* inside the agent loop rather than requiring out-of-band signals.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.GOAL_MODEL_TOOLS = exports.updateGoalTool = exports.createGoalTool = exports.getGoalTool = void 0;
|
|
12
|
+
exports.setGoalCoordinator = setGoalCoordinator;
|
|
13
|
+
exports.getGoalCoordinator = getGoalCoordinator;
|
|
14
|
+
const tool_1 = require("../framework/tool");
|
|
15
|
+
const tool_state_1 = require("../framework/tool-state");
|
|
16
|
+
// ============================================================================
|
|
17
|
+
// Shared coordinator access (set by runtime at session init)
|
|
18
|
+
// ============================================================================
|
|
19
|
+
let sharedCoordinator = null;
|
|
20
|
+
function setGoalCoordinator(coordinator) {
|
|
21
|
+
sharedCoordinator = coordinator;
|
|
22
|
+
}
|
|
23
|
+
function getGoalCoordinator() {
|
|
24
|
+
return sharedCoordinator;
|
|
25
|
+
}
|
|
26
|
+
// ============================================================================
|
|
27
|
+
// Model tool definitions
|
|
28
|
+
// ============================================================================
|
|
29
|
+
exports.getGoalTool = (0, tool_1.buildTool)({
|
|
30
|
+
name: 'get_goal',
|
|
31
|
+
description: `Get the current persistent goal/target for this session.
|
|
32
|
+
Returns the goal's objective, status, progress, and accounting information.`,
|
|
33
|
+
parameters: {
|
|
34
|
+
type: 'object',
|
|
35
|
+
properties: {},
|
|
36
|
+
},
|
|
37
|
+
execute: async () => {
|
|
38
|
+
if (!sharedCoordinator) {
|
|
39
|
+
return { success: true, output: 'No active goal system available.' };
|
|
40
|
+
}
|
|
41
|
+
const goal = sharedCoordinator.getState();
|
|
42
|
+
if (!goal) {
|
|
43
|
+
return { success: true, output: 'No goal is currently set. Use /target to create one.' };
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
success: true,
|
|
47
|
+
output: [
|
|
48
|
+
`Goal ID: ${goal.goalId}`,
|
|
49
|
+
`Status: ${goal.status}`,
|
|
50
|
+
`Objective: ${goal.objective}`,
|
|
51
|
+
goal.tokenBudget ? `Budget: ${goal.tokenBudget} tokens` : 'Budget: unlimited',
|
|
52
|
+
`Turns: ${goal.accounting.turnCount}`,
|
|
53
|
+
`Tokens: ${goal.accounting.promptTokens}P + ${goal.accounting.completionTokens}C`,
|
|
54
|
+
`Cost: $${goal.accounting.cost.toFixed(4)}`,
|
|
55
|
+
goal.blocked ? `Blocked: ${goal.blocked.reason} (${goal.blocked.consecutiveTurns} turns)` : '',
|
|
56
|
+
].filter(Boolean).join('\n'),
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
isReadOnly: () => true,
|
|
60
|
+
isConcurrencySafe: () => true,
|
|
61
|
+
checkPermissions: () => ({ behavior: 'allow', reason: 'Reading goal state is always safe' }),
|
|
62
|
+
userFacingName: () => 'Get goal',
|
|
63
|
+
});
|
|
64
|
+
exports.createGoalTool = (0, tool_1.buildTool)({
|
|
65
|
+
name: 'create_goal',
|
|
66
|
+
description: `Create a new persistent goal/target for this session.
|
|
67
|
+
Only use this when the user explicitly asks to create a goal. Do NOT create goals for
|
|
68
|
+
ordinary questions or tasks — goals are for multi-turn, persistent objectives that
|
|
69
|
+
the agent should pursue autonomously across multiple turns.
|
|
70
|
+
|
|
71
|
+
A session can only have ONE active or paused goal at a time.`,
|
|
72
|
+
parameters: {
|
|
73
|
+
type: 'object',
|
|
74
|
+
properties: {
|
|
75
|
+
objective: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
description: 'The goal objective text. Will be treated as the root objective for all goal turns.',
|
|
78
|
+
},
|
|
79
|
+
token_budget: {
|
|
80
|
+
type: 'number',
|
|
81
|
+
description: 'Optional token budget limit for the goal. Only set when the user explicitly requests it.',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
required: ['objective'],
|
|
85
|
+
},
|
|
86
|
+
execute: async (args) => {
|
|
87
|
+
if (!sharedCoordinator) {
|
|
88
|
+
return { success: false, output: '', error: 'Goal system not available.' };
|
|
89
|
+
}
|
|
90
|
+
const objective = args.objective;
|
|
91
|
+
if (typeof objective !== 'string' || !objective.trim()) {
|
|
92
|
+
return { success: false, output: '', error: 'Objective must be a non-empty string.' };
|
|
93
|
+
}
|
|
94
|
+
try {
|
|
95
|
+
const budget = typeof args.token_budget === 'number' ? args.token_budget : null;
|
|
96
|
+
const goal = sharedCoordinator.create(objective.trim(), budget);
|
|
97
|
+
(0, tool_state_1.setToolState)({ goalActive: true, goalId: goal.goalId, goalStatus: goal.status });
|
|
98
|
+
return {
|
|
99
|
+
success: true,
|
|
100
|
+
output: `Goal created: ${goal.goalId}\nStatus: ${goal.status}\nObjective: ${goal.objective}`,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
catch (err) {
|
|
104
|
+
return { success: false, output: '', error: String(err) };
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
isReadOnly: () => false,
|
|
108
|
+
checkPermissions: () => ({ behavior: 'allow', reason: 'Goal creation is a user-driven control action' }),
|
|
109
|
+
userFacingName: () => 'Create goal',
|
|
110
|
+
});
|
|
111
|
+
exports.updateGoalTool = (0, tool_1.buildTool)({
|
|
112
|
+
name: 'update_goal',
|
|
113
|
+
description: `Update the current goal's status. Use this to:
|
|
114
|
+
- mark the goal as complete (with requirement-by-requirement audit evidence)
|
|
115
|
+
- mark the goal as blocked (with the blocking reason)
|
|
116
|
+
A goal can only be marked complete when ALL requirements are
|
|
117
|
+
verified — do not mark complete if any requirement is unmet or unverified.
|
|
118
|
+
A goal should only be marked blocked after the same blocker occurs across multiple turns.`,
|
|
119
|
+
parameters: {
|
|
120
|
+
type: 'object',
|
|
121
|
+
properties: {
|
|
122
|
+
action: {
|
|
123
|
+
type: 'string',
|
|
124
|
+
description: 'The action to perform: "complete" or "block"',
|
|
125
|
+
enum: ['complete', 'block'],
|
|
126
|
+
},
|
|
127
|
+
summary: {
|
|
128
|
+
type: 'string',
|
|
129
|
+
description: 'Summary of what was accomplished or what is blocking.',
|
|
130
|
+
},
|
|
131
|
+
requirements: {
|
|
132
|
+
type: 'array',
|
|
133
|
+
description: 'For complete: requirement-by-requirement audit. Each item must have requirement, met, and evidence.',
|
|
134
|
+
},
|
|
135
|
+
reason: {
|
|
136
|
+
type: 'string',
|
|
137
|
+
description: 'For block: the reason the goal is blocked.',
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
required: ['action'],
|
|
141
|
+
},
|
|
142
|
+
execute: async (args) => {
|
|
143
|
+
if (!sharedCoordinator) {
|
|
144
|
+
return { success: false, output: '', error: 'Goal system not available.' };
|
|
145
|
+
}
|
|
146
|
+
const goal = sharedCoordinator.getState();
|
|
147
|
+
if (!goal) {
|
|
148
|
+
return { success: false, output: '', error: 'No goal is currently set.' };
|
|
149
|
+
}
|
|
150
|
+
const action = args.action;
|
|
151
|
+
if (action === 'complete') {
|
|
152
|
+
const summary = args.summary || '';
|
|
153
|
+
const requirements = args.requirements || [];
|
|
154
|
+
const allMet = requirements.every(r => r.met);
|
|
155
|
+
if (!allMet) {
|
|
156
|
+
return {
|
|
157
|
+
success: false,
|
|
158
|
+
output: '',
|
|
159
|
+
error: 'Cannot mark goal as complete: not all requirements are met. Address unmet requirements first.',
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
if (requirements.length === 0) {
|
|
163
|
+
return {
|
|
164
|
+
success: false,
|
|
165
|
+
output: '',
|
|
166
|
+
error: 'Cannot mark goal as complete: provide at least one requirement with evidence.',
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
const evidence = {
|
|
170
|
+
requirements,
|
|
171
|
+
summary,
|
|
172
|
+
proposedAt: Date.now(),
|
|
173
|
+
};
|
|
174
|
+
sharedCoordinator.markComplete(evidence);
|
|
175
|
+
(0, tool_state_1.setToolState)({ goalStatus: 'complete' });
|
|
176
|
+
return { success: true, output: `Goal marked as complete.\n${summary}` };
|
|
177
|
+
}
|
|
178
|
+
if (action === 'block') {
|
|
179
|
+
const reason = args.reason || 'Unspecified blocking reason';
|
|
180
|
+
sharedCoordinator.markBlocked(reason);
|
|
181
|
+
(0, tool_state_1.setToolState)({ goalStatus: 'blocked' });
|
|
182
|
+
return { success: true, output: `Goal marked as blocked: ${reason}` };
|
|
183
|
+
}
|
|
184
|
+
return { success: false, output: '', error: `Unknown action: ${action}. Use "complete" or "block".` };
|
|
185
|
+
},
|
|
186
|
+
isReadOnly: () => false,
|
|
187
|
+
checkPermissions: () => ({ behavior: 'allow', reason: 'Goal status updates are model-driven control actions' }),
|
|
188
|
+
userFacingName: () => 'Update goal',
|
|
189
|
+
});
|
|
190
|
+
exports.GOAL_MODEL_TOOLS = [exports.getGoalTool, exports.createGoalTool, exports.updateGoalTool];
|
|
191
|
+
//# sourceMappingURL=goal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goal.js","sourceRoot":"","sources":["../../src/tools/goal.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAiBH,gDAEC;AAED,gDAEC;AArBD,4CAAmF;AACnF,wDAAqE;AAQrE,+EAA+E;AAC/E,6DAA6D;AAC7D,+EAA+E;AAE/E,IAAI,iBAAiB,GAA2B,IAAI,CAAC;AAErD,SAAgB,kBAAkB,CAAC,WAA4B;IAC7D,iBAAiB,GAAG,WAAW,CAAC;AAClC,CAAC;AA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A2B;gBACvC,YAAY;gBACZ,OAAO;gBACP,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;aACvB,CAAC;YACF,iBAAiB,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YACzC,IAAA,yBAAY,EAAC,EAAE,UAAU,EAAE,UAAwB,EAAE,CAAC,CAAC;YACvD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,6BAA6B,OAAO,EAAE,EAAE,CAAC;QAC3E,CAAC;QAED,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;YACvB,MAAM,MAAM,GAAI,IAAI,CAAC,MAAiB,IAAI,6BAA6B,CAAC;YACxE,iBAAiB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YACtC,IAAA,yBAAY,EAAC,EAAE,UAAU,EAAE,SAAuB,EAAE,CAAC,CAAC;YACtD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,2BAA2B,MAAM,EAAE,EAAE,CAAC;QACxE,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,mBAAmB,MAAM,8BAA8B,EAAE,CAAC;IACxG,CAAC;IACD,UAAU,EAAE,GAAG,EAAE,CAAC,KAAK;IACvB,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,sDAAsD,EAAE,CAAC;IAC/G,cAAc,EAAE,GAAG,EAAE,CAAC,aAAa;CACpC,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAoB,CAAC,mBAAW,EAAE,sBAAc,EAAE,sBAAc,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAaH,OAAO,EAEL,KAAK,aAAa,EAElB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAsD3B,eAAO,MAAM,KAAK,EAAE,aAAa,EAmxBhC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,eAAe,IAAI,aAAa,EAAE,CAEjD;AAqZD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;CACvB;AAmrBD;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,WAAW,CAAC,EAAE,WAAW,EACzB,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,MAAM,CAAC,CAmDjB;AAcD;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAIrC;AAGD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gCAAgC,EAChC,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACd,KAAK,cAAc,EACnB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC"}
|