@agentdocumentformat/cli 0.7.2
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/LICENSE +21 -0
- package/README.md +45 -0
- package/dist/adf.mjs +162 -0
- package/dist/chunks/APEv2Parser-2CNNHMXV.mjs +22 -0
- package/dist/chunks/AiffParser-7BR4RL6G.mjs +162 -0
- package/dist/chunks/App-L5L37JI5.mjs +16747 -0
- package/dist/chunks/AsfParser-VVRSLFOM.mjs +538 -0
- package/dist/chunks/DsdiffParser-CMD4AX7A.mjs +156 -0
- package/dist/chunks/DsfParser-UOGZDS2M.mjs +94 -0
- package/dist/chunks/FlacParser-HB3T3CD4.mjs +23 -0
- package/dist/chunks/MP4Parser-66HBRUSX.mjs +973 -0
- package/dist/chunks/MatroskaParser-J3HUIMEW.mjs +579 -0
- package/dist/chunks/MpegParser-YW6LIUEW.mjs +442 -0
- package/dist/chunks/MusepackParser-PAUSXP7D.mjs +252 -0
- package/dist/chunks/OggParser-NUBV3GWC.mjs +359 -0
- package/dist/chunks/WavPackParser-WQAGT7TC.mjs +171 -0
- package/dist/chunks/WaveParser-EWLQVDX4.mjs +238 -0
- package/dist/chunks/adf-schema-JRU2BTOG.mjs +62 -0
- package/dist/chunks/build-QF5W473T.mjs +60 -0
- package/dist/chunks/chatgpt-subscription-BQGWYZXE.mjs +23 -0
- package/dist/chunks/chunk-2DIECGFL.mjs +6 -0
- package/dist/chunks/chunk-2NAP2ZF7.mjs +60 -0
- package/dist/chunks/chunk-3AT7IIP7.mjs +25696 -0
- package/dist/chunks/chunk-3GNIDM53.mjs +35 -0
- package/dist/chunks/chunk-3M4ZPOA3.mjs +1477 -0
- package/dist/chunks/chunk-4MQPTCXY.mjs +510 -0
- package/dist/chunks/chunk-5PO5PKRV.mjs +366 -0
- package/dist/chunks/chunk-5QU5VY7N.mjs +52 -0
- package/dist/chunks/chunk-5W7KES6P.mjs +436 -0
- package/dist/chunks/chunk-62NE4LG4.mjs +61 -0
- package/dist/chunks/chunk-64OKE4X3.mjs +45 -0
- package/dist/chunks/chunk-6GJ4QHRI.mjs +1278 -0
- package/dist/chunks/chunk-6VQEXLE2.mjs +144 -0
- package/dist/chunks/chunk-6XUV6EK6.mjs +41 -0
- package/dist/chunks/chunk-776TSXEP.mjs +43 -0
- package/dist/chunks/chunk-7CV2SA3H.mjs +285 -0
- package/dist/chunks/chunk-7MTRVW2U.mjs +3103 -0
- package/dist/chunks/chunk-7N2R2VCG.mjs +1434 -0
- package/dist/chunks/chunk-7T2YMTWL.mjs +374 -0
- package/dist/chunks/chunk-7XYNI52E.mjs +149 -0
- package/dist/chunks/chunk-APHX6HSV.mjs +7731 -0
- package/dist/chunks/chunk-APRU6PHC.mjs +40 -0
- package/dist/chunks/chunk-AUYKRQPJ.mjs +499 -0
- package/dist/chunks/chunk-DXWDD5XJ.mjs +136 -0
- package/dist/chunks/chunk-EWL5FG4I.mjs +39 -0
- package/dist/chunks/chunk-EYX2YLJW.mjs +117 -0
- package/dist/chunks/chunk-F5ELW46V.mjs +27 -0
- package/dist/chunks/chunk-G426FACA.mjs +49 -0
- package/dist/chunks/chunk-GEKSJHIV.mjs +2472 -0
- package/dist/chunks/chunk-HBUENVQL.mjs +570 -0
- package/dist/chunks/chunk-HPVFJYXR.mjs +112 -0
- package/dist/chunks/chunk-HWLWPXQ7.mjs +721 -0
- package/dist/chunks/chunk-I2HJYHFT.mjs +665 -0
- package/dist/chunks/chunk-I3UYSITV.mjs +68 -0
- package/dist/chunks/chunk-IC4JDZCI.mjs +3864 -0
- package/dist/chunks/chunk-IHDDCZBS.mjs +112 -0
- package/dist/chunks/chunk-IIGMZHQQ.mjs +10416 -0
- package/dist/chunks/chunk-KWFOS5WC.mjs +41 -0
- package/dist/chunks/chunk-LAZIXV2F.mjs +5290 -0
- package/dist/chunks/chunk-LFMB4PAA.mjs +10814 -0
- package/dist/chunks/chunk-M2RX3S2T.mjs +49 -0
- package/dist/chunks/chunk-M3WPIJYM.mjs +65 -0
- package/dist/chunks/chunk-NBTUWMGP.mjs +263 -0
- package/dist/chunks/chunk-NGK6PVSF.mjs +2676 -0
- package/dist/chunks/chunk-NZ7JTHEO.mjs +85 -0
- package/dist/chunks/chunk-OQN33RGQ.mjs +52 -0
- package/dist/chunks/chunk-RIX34QHC.mjs +2935 -0
- package/dist/chunks/chunk-SGUTYISF.mjs +16 -0
- package/dist/chunks/chunk-SLJ5L7PY.mjs +1473 -0
- package/dist/chunks/chunk-SLUKGXKH.mjs +68 -0
- package/dist/chunks/chunk-TMT32MXT.mjs +419 -0
- package/dist/chunks/chunk-UYY5M2PB.mjs +151 -0
- package/dist/chunks/chunk-VAUOM3IN.mjs +298 -0
- package/dist/chunks/chunk-VMHTYDH4.mjs +172 -0
- package/dist/chunks/chunk-VZS54AA5.mjs +200 -0
- package/dist/chunks/chunk-WFQUVXML.mjs +295 -0
- package/dist/chunks/chunk-X34PDRUH.mjs +809 -0
- package/dist/chunks/chunk-XNPZBLYL.mjs +33 -0
- package/dist/chunks/chunk-XX7OSWTO.mjs +157 -0
- package/dist/chunks/chunk-XYTWGHFS.mjs +600 -0
- package/dist/chunks/chunk-XYV3VCIX.mjs +336 -0
- package/dist/chunks/chunk-Y5ZLKFLE.mjs +1469 -0
- package/dist/chunks/chunk-ZJKXHM4Q.mjs +230 -0
- package/dist/chunks/cli-TCMBNZF6.mjs +1030 -0
- package/dist/chunks/commands-DTEKM4ZL.mjs +20 -0
- package/dist/chunks/daemon-ZC3FZ2P4.mjs +112449 -0
- package/dist/chunks/daemon-control-WDX7PMTC.mjs +300 -0
- package/dist/chunks/daemon-token-WRSULP7G.mjs +23 -0
- package/dist/chunks/devtools-H7CI2ZVG.mjs +85 -0
- package/dist/chunks/discord-IWDQJA7A.mjs +70588 -0
- package/dist/chunks/dist-C57KYFS2.mjs +4952 -0
- package/dist/chunks/dist-I3XBAGDL.mjs +11 -0
- package/dist/chunks/email-V4Q4VJON.mjs +58679 -0
- package/dist/chunks/environment-NX277MQG.mjs +15 -0
- package/dist/chunks/grok-subscription-4PYX7TBF.mjs +19 -0
- package/dist/chunks/layout-EPJQNFAI.mjs +22 -0
- package/dist/chunks/lib-N7FCZWKH.mjs +4038 -0
- package/dist/chunks/open-OTQDGDH5.mjs +36 -0
- package/dist/chunks/parser-JVY2PWSM.mjs +19 -0
- package/dist/chunks/pipeline-executor-BHBSJX2K.mjs +19 -0
- package/dist/chunks/react-IUIDQ5LX.mjs +11 -0
- package/dist/chunks/screen-54BUTYCW.mjs +27 -0
- package/dist/chunks/slack-3L5QTDZX.mjs +8113 -0
- package/dist/chunks/store-WR7TZJZS.mjs +32 -0
- package/dist/chunks/telegram-5ISVFBV3.mjs +14918 -0
- package/dist/chunks/terminal-O5WO7C5U.mjs +48 -0
- package/dist/chunks/theme-NORU4J74.mjs +20 -0
- package/dist/chunks/themes-F2FKU7CP.mjs +23 -0
- package/dist/chunks/token-6G3HCMNX.mjs +54 -0
- package/dist/chunks/token-util-UXYSDQIW.mjs +12 -0
- package/dist/chunks/tui-ODVYUIMT.mjs +197 -0
- package/dist/chunks/welcome-XHXFV7SH.mjs +32 -0
- package/dist/chunks/whatsapp-XSAMNGPJ.mjs +85412 -0
- package/dist/chunks/xterm-headless-YF53XWXE.mjs +3353 -0
- package/package.json +53 -0
- package/resources/wasm/coreutils.LICENSE +18 -0
- package/resources/wasm/coreutils.wasm +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createRequire as __adfCreateRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __adfFileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __adfDirname } from 'node:path';
|
|
4
|
+
const require = __adfCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __adfFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __adfDirname(__filename);
|
|
7
|
+
|
|
8
|
+
// node_modules/music-metadata/lib/matroska/types.js
|
|
9
|
+
var TargetType = {
|
|
10
|
+
10: "shot",
|
|
11
|
+
20: "scene",
|
|
12
|
+
30: "track",
|
|
13
|
+
40: "part",
|
|
14
|
+
50: "album",
|
|
15
|
+
60: "edition",
|
|
16
|
+
70: "collection"
|
|
17
|
+
}, TrackType = {
|
|
18
|
+
video: 1,
|
|
19
|
+
audio: 2,
|
|
20
|
+
complex: 3,
|
|
21
|
+
logo: 4,
|
|
22
|
+
subtitle: 17,
|
|
23
|
+
button: 18,
|
|
24
|
+
control: 32
|
|
25
|
+
}, TrackTypeValueToKeyMap = {
|
|
26
|
+
[TrackType.video]: "video",
|
|
27
|
+
[TrackType.audio]: "audio",
|
|
28
|
+
[TrackType.complex]: "complex",
|
|
29
|
+
[TrackType.logo]: "logo",
|
|
30
|
+
[TrackType.subtitle]: "subtitle",
|
|
31
|
+
[TrackType.button]: "button",
|
|
32
|
+
[TrackType.control]: "control"
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
TargetType,
|
|
37
|
+
TrackType,
|
|
38
|
+
TrackTypeValueToKeyMap
|
|
39
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { createRequire as __adfCreateRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __adfFileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __adfDirname } from 'node:path';
|
|
4
|
+
const require = __adfCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __adfFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __adfDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
require_react
|
|
9
|
+
} from "./chunk-6GJ4QHRI.mjs";
|
|
10
|
+
import {
|
|
11
|
+
__toESM
|
|
12
|
+
} from "./chunk-M2RX3S2T.mjs";
|
|
13
|
+
|
|
14
|
+
// src/main/tui/app/theme.ts
|
|
15
|
+
var import_react = __toESM(require_react(), 1), ADF_COLORS = {
|
|
16
|
+
text: "#D9D4C7",
|
|
17
|
+
muted: "#9A9384",
|
|
18
|
+
dim: "#5F5A50",
|
|
19
|
+
accent: "#E3A857",
|
|
20
|
+
live: "#4DB6AC",
|
|
21
|
+
loop: "#A98BE3",
|
|
22
|
+
user: "#E3A857",
|
|
23
|
+
assistant: "#D9D4C7",
|
|
24
|
+
thinking: "#7F7A6E",
|
|
25
|
+
tool: "#6FA8DC",
|
|
26
|
+
success: "#8CC084",
|
|
27
|
+
warn: "#E0B050",
|
|
28
|
+
error: "#E06C6C",
|
|
29
|
+
info: "#6FA8DC",
|
|
30
|
+
border: "#4A463E",
|
|
31
|
+
borderFocus: "#E3A857",
|
|
32
|
+
selectionFg: "#1B1A17",
|
|
33
|
+
selectionBg: "#E3A857",
|
|
34
|
+
surface: "#23211D",
|
|
35
|
+
overlay: "#2B2823"
|
|
36
|
+
}, MONO_COLORS = Object.fromEntries(
|
|
37
|
+
Object.keys(ADF_COLORS).map((key) => [key, void 0])
|
|
38
|
+
), UNICODE_GLYPHS = {
|
|
39
|
+
wordmark: "\u25C6",
|
|
40
|
+
dot: "\u25CF",
|
|
41
|
+
ring: "\u25CB",
|
|
42
|
+
pointer: "\u203A",
|
|
43
|
+
bullet: "\u2022",
|
|
44
|
+
check: "\u2713",
|
|
45
|
+
cross: "\u2717",
|
|
46
|
+
warn: "!",
|
|
47
|
+
arrow: "\u2192",
|
|
48
|
+
loop: "\u21BB",
|
|
49
|
+
sep: "\xB7",
|
|
50
|
+
vbar: "\u2502",
|
|
51
|
+
mark: "\u258C",
|
|
52
|
+
hbar: "\u2500",
|
|
53
|
+
ellipsis: "\u2026",
|
|
54
|
+
collapsed: "\u25B8",
|
|
55
|
+
expanded: "\u25BE",
|
|
56
|
+
spinner: ["\u280B", "\u2819", "\u2839", "\u2838", "\u283C", "\u2834", "\u2826", "\u2827", "\u2807", "\u280F"]
|
|
57
|
+
}, ASCII_GLYPHS = {
|
|
58
|
+
wordmark: "#",
|
|
59
|
+
dot: "*",
|
|
60
|
+
ring: "o",
|
|
61
|
+
pointer: ">",
|
|
62
|
+
bullet: "-",
|
|
63
|
+
check: "v",
|
|
64
|
+
cross: "x",
|
|
65
|
+
warn: "!",
|
|
66
|
+
arrow: "->",
|
|
67
|
+
loop: "@",
|
|
68
|
+
sep: "|",
|
|
69
|
+
vbar: "|",
|
|
70
|
+
mark: ">",
|
|
71
|
+
hbar: "-",
|
|
72
|
+
ellipsis: "...",
|
|
73
|
+
collapsed: "+",
|
|
74
|
+
expanded: "-",
|
|
75
|
+
spinner: ["|", "/", "-", "\\"]
|
|
76
|
+
};
|
|
77
|
+
function createTheme(options = {}) {
|
|
78
|
+
let env = options.env ?? process.env, mono = options.mono ?? (env.NO_COLOR !== void 0 || env.TERM === "dumb"), ascii = options.ascii ?? (env.ADF_TUI_ASCII === "1" || env.TERM === "dumb");
|
|
79
|
+
return {
|
|
80
|
+
name: mono ? "adf-mono" : "adf",
|
|
81
|
+
mono,
|
|
82
|
+
ascii,
|
|
83
|
+
color: mono ? MONO_COLORS : ADF_COLORS,
|
|
84
|
+
glyph: ascii ? ASCII_GLYPHS : UNICODE_GLYPHS
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
var ThemeContext = (0, import_react.createContext)(createTheme({ mono: !0 }));
|
|
88
|
+
function useTheme() {
|
|
89
|
+
return (0, import_react.useContext)(ThemeContext);
|
|
90
|
+
}
|
|
91
|
+
function stateColor(theme, state) {
|
|
92
|
+
switch (state) {
|
|
93
|
+
case "thinking":
|
|
94
|
+
case "tool_use":
|
|
95
|
+
case "active":
|
|
96
|
+
return theme.color.live;
|
|
97
|
+
case "awaiting_approval":
|
|
98
|
+
case "awaiting_ask":
|
|
99
|
+
case "suspended":
|
|
100
|
+
return theme.color.warn;
|
|
101
|
+
case "error":
|
|
102
|
+
return theme.color.error;
|
|
103
|
+
case "stopped":
|
|
104
|
+
case "off":
|
|
105
|
+
case "hibernate":
|
|
106
|
+
return theme.color.dim;
|
|
107
|
+
default:
|
|
108
|
+
return theme.color.success;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export {
|
|
113
|
+
createTheme,
|
|
114
|
+
ThemeContext,
|
|
115
|
+
useTheme,
|
|
116
|
+
stateColor
|
|
117
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRequire as __adfCreateRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __adfFileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __adfDirname } from 'node:path';
|
|
4
|
+
const require = __adfCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __adfFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __adfDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
require_extension,
|
|
9
|
+
require_permessage_deflate,
|
|
10
|
+
require_receiver,
|
|
11
|
+
require_sender,
|
|
12
|
+
require_stream,
|
|
13
|
+
require_subprotocol,
|
|
14
|
+
require_websocket,
|
|
15
|
+
require_websocket_server
|
|
16
|
+
} from "./chunk-NGK6PVSF.mjs";
|
|
17
|
+
import {
|
|
18
|
+
__toESM
|
|
19
|
+
} from "./chunk-M2RX3S2T.mjs";
|
|
20
|
+
|
|
21
|
+
// node_modules/ws/wrapper.mjs
|
|
22
|
+
var import_stream = __toESM(require_stream(), 1), import_extension = __toESM(require_extension(), 1), import_permessage_deflate = __toESM(require_permessage_deflate(), 1), import_receiver = __toESM(require_receiver(), 1), import_sender = __toESM(require_sender(), 1), import_subprotocol = __toESM(require_subprotocol(), 1), import_websocket = __toESM(require_websocket(), 1), import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
23
|
+
var wrapper_default = import_websocket.default;
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
wrapper_default
|
|
27
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { createRequire as __adfCreateRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __adfFileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __adfDirname } from 'node:path';
|
|
4
|
+
const require = __adfCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __adfFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __adfDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
daemonSettingsDir,
|
|
9
|
+
readDaemonToken
|
|
10
|
+
} from "./chunk-IHDDCZBS.mjs";
|
|
11
|
+
import {
|
|
12
|
+
__export
|
|
13
|
+
} from "./chunk-M2RX3S2T.mjs";
|
|
14
|
+
|
|
15
|
+
// src/main/cli/daemon-url.ts
|
|
16
|
+
var daemon_url_exports = {};
|
|
17
|
+
__export(daemon_url_exports, {
|
|
18
|
+
DEFAULT_DAEMON_URL: () => DEFAULT_DAEMON_URL,
|
|
19
|
+
localDaemonToken: () => localDaemonToken,
|
|
20
|
+
resolveDaemonToken: () => resolveDaemonToken,
|
|
21
|
+
resolveDaemonUrl: () => resolveDaemonUrl
|
|
22
|
+
});
|
|
23
|
+
var DEFAULT_DAEMON_URL = "http://127.0.0.1:7385";
|
|
24
|
+
function resolveDaemonUrl(explicit, env = process.env) {
|
|
25
|
+
return (explicit ?? env.ADF_DAEMON_URL ?? DEFAULT_DAEMON_URL).replace(/\/+$/, "");
|
|
26
|
+
}
|
|
27
|
+
function isLoopbackUrl(url) {
|
|
28
|
+
try {
|
|
29
|
+
let host = new URL(url).hostname.replace(/^\[|\]$/g, "").toLowerCase();
|
|
30
|
+
return host === "localhost" || host === "::1" || /^127\./.test(host);
|
|
31
|
+
} catch {
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function localDaemonToken(url, env = process.env) {
|
|
36
|
+
if (isLoopbackUrl(url))
|
|
37
|
+
return readDaemonToken(daemonSettingsDir(env)) ?? void 0;
|
|
38
|
+
}
|
|
39
|
+
function resolveDaemonToken(explicit, env = process.env, url) {
|
|
40
|
+
let token = explicit ?? env.ADF_DAEMON_TOKEN;
|
|
41
|
+
return token || (url ? localDaemonToken(url, env) : void 0);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export {
|
|
45
|
+
DEFAULT_DAEMON_URL,
|
|
46
|
+
resolveDaemonUrl,
|
|
47
|
+
resolveDaemonToken,
|
|
48
|
+
daemon_url_exports
|
|
49
|
+
};
|