@swmansion/argent 0.26.1-next.1 → 0.26.1-next.10
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/bin/argent-android-devtools-0.1.0.apk +0 -0
- package/bin/darwin/ax-service +0 -0
- package/bin/darwin/tvos-ax-service +0 -0
- package/bin/darwin/tvos-hid-daemon +0 -0
- package/bin/tcp/ax-service +0 -0
- package/dist/cli-cmds.mjs +2 -2
- package/dist/client.d.ts +35 -0
- package/dist/client.js +2274 -0
- package/dist/installer.mjs +1 -1
- package/dist/tool-server.cjs +153 -64
- package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/libKeyboardPatch.dylib +0 -0
- package/dylibs/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/tcp/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tcp/libKeyboardPatch.dylib +0 -0
- package/dylibs/tcp/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/tvos/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tvos/libKeyboardPatch.dylib +0 -0
- package/dylibs/tvos/libNativeDevtoolsIos.dylib +0 -0
- package/package.json +8 -1
|
Binary file
|
package/bin/darwin/ax-service
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/tcp/ax-service
CHANGED
|
Binary file
|
package/dist/cli-cmds.mjs
CHANGED
|
@@ -21877,7 +21877,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
21877
21877
|
var SESSION_ID2 = randomUUID5();
|
|
21878
21878
|
function readCliVersion() {
|
|
21879
21879
|
if (true) {
|
|
21880
|
-
return "0.26.1-next.
|
|
21880
|
+
return "0.26.1-next.10";
|
|
21881
21881
|
}
|
|
21882
21882
|
return "0.0.0";
|
|
21883
21883
|
}
|
|
@@ -23416,7 +23416,7 @@ function renderFailedFlows(failed) {
|
|
|
23416
23416
|
var SAFE_ARTIFACT_NAME = FLOW_NAME_PATTERN;
|
|
23417
23417
|
var SAFE_FLOW_NAME = FLOW_NAME_PATTERN;
|
|
23418
23418
|
var FLOWS_DIR = path14.join(".argent", "flows");
|
|
23419
|
-
var SHELL_SAFE_ARG = /^[A-Za-z0-9_@%+=:,./-]+$/;
|
|
23419
|
+
var SHELL_SAFE_ARG = /^(?!=)[A-Za-z0-9_@%+=:,./-]+$/;
|
|
23420
23420
|
function shellQuoteArg(arg) {
|
|
23421
23421
|
if (SHELL_SAFE_ARG.test(arg)) return arg;
|
|
23422
23422
|
return `'${arg.replaceAll("'", "'\\''")}'`;
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface ArgentTool {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
/** JSON Schema of the tool's arguments. */
|
|
5
|
+
inputSchema: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
export interface ArgentToolResult<T = unknown> {
|
|
8
|
+
/** The tool's result. Artifacts (screenshots, recordings) are local file paths. */
|
|
9
|
+
data: T;
|
|
10
|
+
/** Optional advisory note the tool attached to the result. */
|
|
11
|
+
note?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CallToolOptions {
|
|
14
|
+
/** Receive progress events while a long-running tool works. */
|
|
15
|
+
onProgress?: (event: unknown) => void;
|
|
16
|
+
}
|
|
17
|
+
/** The tool-server rejected or failed a call. */
|
|
18
|
+
export declare class ArgentToolError extends Error {
|
|
19
|
+
/** Stable failure code, when the server sent one. */
|
|
20
|
+
readonly code?: string;
|
|
21
|
+
/** Failure category, e.g. "subprocess", when the server sent one. */
|
|
22
|
+
readonly kind?: string;
|
|
23
|
+
/** Schema issues of a rejected argument object; set only on a validation failure. */
|
|
24
|
+
readonly issues?: readonly unknown[];
|
|
25
|
+
constructor(message: string, details?: {
|
|
26
|
+
code?: string;
|
|
27
|
+
kind?: string;
|
|
28
|
+
issues?: readonly unknown[];
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export interface ArgentClient {
|
|
32
|
+
listTools(): Promise<ArgentTool[]>;
|
|
33
|
+
callTool<T = unknown>(name: string, args?: Record<string, unknown>, options?: CallToolOptions): Promise<ArgentToolResult<T>>;
|
|
34
|
+
}
|
|
35
|
+
export declare function createArgentClient(): ArgentClient;
|