@mmmbuto/qwen-code-termux 0.16.1-termux → 0.18.0-termux
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 +79 -109
- package/bundled/new-app/SKILL.md +22 -0
- package/bundled/qc-helper/SKILL.md +29 -24
- package/bundled/qc-helper/docs/_meta.ts +1 -0
- package/bundled/qc-helper/docs/configuration/_meta.ts +0 -3
- package/bundled/qc-helper/docs/configuration/settings.md +37 -31
- package/bundled/qc-helper/docs/configuration/themes.md +39 -0
- package/bundled/qc-helper/docs/features/_meta.ts +1 -3
- package/bundled/qc-helper/docs/features/approval-mode.md +35 -35
- package/bundled/qc-helper/docs/features/auto-mode.md +54 -9
- package/bundled/qc-helper/docs/features/channels/_meta.ts +1 -0
- package/bundled/qc-helper/docs/features/channels/feishu.md +170 -0
- package/bundled/qc-helper/docs/features/commands.md +115 -35
- package/bundled/qc-helper/docs/features/followup-suggestions.md +2 -2
- package/bundled/qc-helper/docs/features/headless.md +32 -0
- package/bundled/qc-helper/docs/features/markdown-rendering.md +21 -1
- package/bundled/qc-helper/docs/features/memory.md +22 -5
- package/bundled/qc-helper/docs/features/scheduled-tasks.md +1 -1
- package/bundled/qc-helper/docs/features/status-line.md +168 -32
- package/bundled/qc-helper/docs/features/sub-agents.md +60 -0
- package/bundled/qc-helper/docs/features/worktree.md +345 -0
- package/bundled/qc-helper/docs/overview.md +4 -4
- package/bundled/qc-helper/docs/quickstart.md +4 -4
- package/bundled/qc-helper/docs/qwen-serve-deploy-local.md +221 -0
- package/bundled/qc-helper/docs/qwen-serve.md +234 -24
- package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +16 -0
- package/bundled/qc-helper/docs/support/Uninstall.md +19 -1
- package/bundled/qc-helper/docs/support/troubleshooting.md +2 -1
- package/bundled/simplify/SKILL.md +123 -0
- package/chunks/agent-IDS4HMOX.js +56 -0
- package/chunks/agent-headless-5Q2EUSPS.js +50 -0
- package/chunks/{anthropicContentGenerator-SSGKR6DO.js → anthropicContentGenerator-2HBRNQ3B.js} +52 -9
- package/chunks/{askUserQuestion-PJWUUXKN.js → askUserQuestion-75TDJVK2.js} +45 -3
- package/chunks/{ca-UZ7BANMN.js → ca-BARBRL6N.js} +89 -5
- package/chunks/{chunk-GGNTZ2NH.js → chunk-2Y5SYSD3.js} +368 -597
- package/chunks/{chunk-2LA2TREA.js → chunk-3AA2DK35.js} +1448 -207
- package/chunks/{chunk-I2V5WXHJ.js → chunk-3AUHFMSK.js} +80 -38
- package/chunks/chunk-3DHXZ6EV.js +241 -0
- package/chunks/{chunk-PR4T27R7.js → chunk-3HTIVKZE.js} +42 -8
- package/chunks/chunk-3HX5LZ6R.js +1798 -0
- package/chunks/chunk-3PJXIDKI.js +2517 -0
- package/chunks/{chunk-MYAKAFEC.js → chunk-55ZMG67I.js} +7451 -3517
- package/chunks/{chunk-66CXYE4B.js → chunk-5IFG2VC4.js} +293 -242
- package/chunks/chunk-64WXLC72.js +98 -0
- package/chunks/{chunk-C6WMLUNB.js → chunk-72LDN5PP.js} +1 -1
- package/chunks/{chunk-F23NCRJ2.js → chunk-A7B4ISQP.js} +1 -1
- package/chunks/chunk-B7HXHOHU.js +393 -0
- package/chunks/{chunk-XEGHDASV.js → chunk-D3RHSPAS.js} +435 -540
- package/chunks/{chunk-XKS5KBFJ.js → chunk-EYENRK4D.js} +694 -384
- package/chunks/chunk-H6BD2ELD.js +36 -0
- package/chunks/{chunk-XP27SJMH.js → chunk-HR7SV7AY.js} +79 -48
- package/chunks/{chunk-D5NTAHYL.js → chunk-IDX6COTE.js} +7 -2
- package/chunks/{chunk-SHT4VJWU.js → chunk-IWKSG2AR.js} +2 -2
- package/chunks/chunk-J37FGIOA.js +1623 -0
- package/chunks/chunk-J5MDQKJL.js +2230 -0
- package/chunks/{chunk-USE2VQ5P.js → chunk-JTQAQBTV.js} +21 -0
- package/chunks/{chunk-NCTLV2NB.js → chunk-KQJMQJPI.js} +1 -1
- package/chunks/{chunk-5FBA5XC2.js → chunk-KRIHGKNA.js} +1 -1
- package/chunks/chunk-LD2XBG6Z.js +102 -0
- package/chunks/{chunk-MAY32HXD.js → chunk-M6VTDSVR.js} +3 -1
- package/chunks/chunk-MRO43B25.js +30 -0
- package/chunks/{chunk-N4WOREMD.js → chunk-NVFMZBX2.js} +43 -3
- package/chunks/chunk-OHEGWO4L.js +264 -0
- package/chunks/{chunk-K6O2NBMF.js → chunk-OQ7NJIY7.js} +4604 -6397
- package/chunks/chunk-QQDPRDVW.js +25 -0
- package/chunks/{chunk-KXZ4TJB4.js → chunk-SEGYWKIH.js} +1 -1
- package/chunks/chunk-SKBPNJEW.js +45 -0
- package/chunks/{chunk-4AOCVI6J.js → chunk-SNGELLWX.js} +52 -6
- package/chunks/{chunk-3OCRHZA3.js → chunk-TD4OPI4T.js} +56742 -44104
- package/chunks/{chunk-DQ4QTG7E.js → chunk-VV4F63BD.js} +11 -11
- package/chunks/chunk-XBY7E2FX.js +605 -0
- package/chunks/{chunk-JKMBWLFB.js → chunk-YILFYI5W.js} +48 -26
- package/chunks/chunk-YOGAOMYB.js +159 -0
- package/chunks/{chunk-QWSRH265.js → chunk-Z2Z3GUXZ.js} +777 -776
- package/chunks/{chunk-SDHRQFOS.js → chunk-ZTZ4DDQE.js} +2 -2
- package/chunks/computer-use-W2TYQNEE.js +825 -0
- package/chunks/contextCommand-6FGX3A7J.js +52 -0
- package/chunks/{cron-create-3ZBBN7WB.js → cron-create-APL5LU6I.js} +3 -3
- package/chunks/{cron-delete-NAGKKIIG.js → cron-delete-4SBJSCN4.js} +3 -3
- package/chunks/{cron-list-PAGRXNAI.js → cron-list-2AMGOMVO.js} +3 -3
- package/chunks/{de-V4IE2OOZ.js → de-YGKK2BC4.js} +89 -5
- package/chunks/{devtools-TWVXEJQB.js → devtools-FM6GJPYG.js} +2 -1
- package/chunks/{dist-4L54HRX2.js → dist-4LXD6L6X.js} +24 -5
- package/chunks/dist-H6ONXVLG.js +94146 -0
- package/chunks/{dist-XKWIWPWQ.js → dist-KAZ3SEBX.js} +1083 -3856
- package/chunks/{dist-BXDUQ2QY.js → dist-PK7DFCAW.js} +1 -1
- package/chunks/{edit-NVO3FOAK.js → edit-ZCEZC264.js} +30 -22
- package/chunks/{en-HGJ2SPLM.js → en-DHGYHIHX.js} +127 -6
- package/chunks/{enter-worktree-UEBG4WFC.js → enter-worktree-BBHCFCHG.js} +30 -20
- package/chunks/enterPlanMode-3M6KTD3B.js +158 -0
- package/chunks/{exit-worktree-UZ3MAQZN.js → exit-worktree-73YPIEQO.js} +27 -19
- package/chunks/exitPlanMode-TYZM6BAE.js +703 -0
- package/chunks/{fr-CJULI7ZX.js → fr-JXBKPJKQ.js} +89 -5
- package/chunks/{geminiContentGenerator-3UZFXGNT.js → geminiContentGenerator-7N2V3VW2.js} +8 -6
- package/chunks/{getMachineId-bsd-JXOSIJV2.js → getMachineId-bsd-4CASPIU4.js} +4 -4
- package/chunks/{getMachineId-darwin-TE4QRR42.js → getMachineId-darwin-HPQPEMZR.js} +4 -4
- package/chunks/{getMachineId-linux-S3OL52XK.js → getMachineId-linux-AUARKYHL.js} +3 -3
- package/chunks/{getMachineId-unsupported-DWUSBAPX.js → getMachineId-unsupported-S32ZDA2T.js} +3 -3
- package/chunks/{getMachineId-win-AAC5P3AP.js → getMachineId-win-4EFLHYIJ.js} +4 -4
- package/chunks/{glob-KNHSFFFG.js → glob-5XBCPQ2A.js} +27 -19
- package/chunks/{grep-LACWDZW4.js → grep-VIUU3A7X.js} +30 -19
- package/chunks/{ja-L7CHRQEW.js → ja-TGPZSP2B.js} +89 -5
- package/chunks/{keychain-token-storage-335UOLJ6.js → keychain-token-storage-6IU6ORQN.js} +3 -3
- package/chunks/{ls-AGXQOKSG.js → ls-JRGYIGLY.js} +4 -4
- package/chunks/{lsp-UDMUHNPA.js → lsp-SHMKFOAC.js} +3 -3
- package/chunks/{monitor-ETKWPJEH.js → monitor-6R4LIJL5.js} +40 -25
- package/chunks/{multipart-parser-3QWGTLK3.js → multipart-parser-AJ4WASWR.js} +2 -2
- package/chunks/{notebook-edit-QJJLPNYT.js → notebook-edit-5E7ULDVQ.js} +28 -20
- package/chunks/{openaiContentGenerator-CNNN424U.js → openaiContentGenerator-ZVHFKM3O.js} +17 -14
- package/chunks/{pt-M6JULLEQ.js → pt-TIBG6BIO.js} +89 -5
- package/chunks/{qwenContentGenerator-BOLCGK3R.js → qwenContentGenerator-B2VTVSPJ.js} +31 -23
- package/chunks/{qwenOAuth2-EEJGROP7.js → qwenOAuth2-2KCKWDCF.js} +6 -4
- package/chunks/read-file-GIT7BCDR.js +27 -0
- package/chunks/ripGrep-MWKFVYMS.js +48 -0
- package/chunks/{ru-QILM4HBC.js → ru-JBCHCK4L.js} +89 -5
- package/chunks/scheduler-5VOOYGBH.js +308 -0
- package/chunks/send-message-4QNWQJF4.js +244 -0
- package/chunks/{serve-OLSI7WSR.js → serve-MN6HZBWN.js} +14262 -7414
- package/chunks/shell-NQZQGFM2.js +56 -0
- package/chunks/{skill-D6YRHTTI.js → skill-WCFW4644.js} +145 -119
- package/chunks/{src-TMOD5X6F.js → src-7XL4G4DC.js} +88 -46
- package/chunks/{src-4QH4FZ6I.js → src-IHA6DTUV.js} +452 -62
- package/chunks/{syntheticOutput-5PVFDDJ4.js → syntheticOutput-YTYS2ZMQ.js} +4 -4
- package/chunks/task-create-MPORPYN6.js +19 -0
- package/chunks/task-list-R2YDYPZT.js +151 -0
- package/chunks/{task-stop-AJKPSR6R.js → task-stop-SYWJYBCM.js} +3 -3
- package/chunks/task-update-E4NSLKMQ.js +408 -0
- package/chunks/team-create-7R7KA5IP.js +314 -0
- package/chunks/team-delete-25OIWUPN.js +116 -0
- package/chunks/{todoWrite-VLAUG4CA.js → todoWrite-4YHMIF4X.js} +16 -5
- package/chunks/{tool-search-MZGHUUKD.js → tool-search-YBRVZCLI.js} +29 -11
- package/chunks/{tts-notification-K3X7X7MN.js → tts-notification-7SOEMQK4.js} +5 -4
- package/chunks/{web-fetch-OILB464A.js → web-fetch-MFIRHIHI.js} +5 -5
- package/chunks/workflow-5RIKVCIE.js +960 -0
- package/chunks/{write-file-BIQAA57V.js → write-file-DMQTJZOM.js} +32 -24
- package/chunks/{zh-PWL2NKY3.js → zh-7H5OQC4I.js} +135 -11
- package/chunks/{zh-TW-S3YGWICZ.js → zh-TW-P4IDHD3M.js} +128 -11
- package/cli.js +45402 -20570
- package/examples/agent/agents/diary.md +86 -0
- package/examples/agent/qwen-extension.json +5 -0
- package/examples/commands/commands/fs/grep-code.md +3 -0
- package/examples/commands/qwen-extension.json +5 -0
- package/examples/context/QWEN.md +8 -0
- package/examples/context/qwen-extension.json +5 -0
- package/examples/mcp-server/example.ts +60 -0
- package/examples/mcp-server/package.json +18 -0
- package/examples/mcp-server/qwen-extension.json +12 -0
- package/examples/mcp-server/tsconfig.json +13 -0
- package/examples/skills/qwen-extension.json +5 -0
- package/examples/skills/skills/synonyms/SKILL.md +48 -0
- package/examples/starter/QWEN.md +30 -0
- package/examples/starter/README.md +59 -0
- package/examples/starter/agents/diary.md +86 -0
- package/examples/starter/commands/writing/polish.md +13 -0
- package/examples/starter/example.ts +64 -0
- package/examples/starter/package.json +18 -0
- package/examples/starter/qwen-extension.json +12 -0
- package/examples/starter/skills/synonyms/SKILL.md +48 -0
- package/examples/starter/tsconfig.json +13 -0
- package/fzfWorker.js +1083 -0
- package/locales/ca.js +118 -5
- package/locales/de.js +117 -5
- package/locales/en.js +169 -7
- package/locales/fr.js +119 -5
- package/locales/ja.js +114 -5
- package/locales/pt.js +117 -5
- package/locales/ru.js +116 -5
- package/locales/zh-TW.js +161 -12
- package/locales/zh.js +169 -12
- package/package.json +4 -2
- package/scripts/postinstall.cjs +2 -1
- package/bundled/qc-helper/docs/features/checkpointing.md +0 -77
- package/chunks/agent-7ZN3CRHR.js +0 -48
- package/chunks/chunk-6PCB2DEF.js +0 -434
- package/chunks/chunk-EM6ETG2K.js +0 -60
- package/chunks/chunk-G7YTSRES.js +0 -150
- package/chunks/contextCommand-7IBASARL.js +0 -44
- package/chunks/exitPlanMode-PZAMWIRW.js +0 -227
- package/chunks/multipart-parser-IXGBIOIN.js +0 -384
- package/chunks/read-file-CCUEUFG2.js +0 -24
- package/chunks/ripGrep-TADOH2HK.js +0 -40
- package/chunks/send-message-YL44UZFC.js +0 -151
- package/chunks/shell-7KKKC5G7.js +0 -48
- package/chunks/src-IPWIHNMI.js +0 -1406
- package/chunks/undici-F6ZOXSS5.js +0 -8
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Force strict mode and setup for ESM
|
|
2
|
+
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
require_extension,
|
|
5
|
+
require_permessage_deflate,
|
|
6
|
+
require_receiver,
|
|
7
|
+
require_sender,
|
|
8
|
+
require_stream,
|
|
9
|
+
require_subprotocol,
|
|
10
|
+
require_websocket,
|
|
11
|
+
require_websocket_server
|
|
12
|
+
} from "./chunk-5IFG2VC4.js";
|
|
13
|
+
import {
|
|
14
|
+
init_esbuild_shims
|
|
15
|
+
} from "./chunk-A4BMJM77.js";
|
|
16
|
+
import {
|
|
17
|
+
__toESM
|
|
18
|
+
} from "./chunk-J2S4EL5Y.js";
|
|
19
|
+
|
|
20
|
+
// node_modules/ws/wrapper.mjs
|
|
21
|
+
init_esbuild_shims();
|
|
22
|
+
var import_stream = __toESM(require_stream(), 1);
|
|
23
|
+
var import_extension = __toESM(require_extension(), 1);
|
|
24
|
+
var import_permessage_deflate = __toESM(require_permessage_deflate(), 1);
|
|
25
|
+
var import_receiver = __toESM(require_receiver(), 1);
|
|
26
|
+
var import_sender = __toESM(require_sender(), 1);
|
|
27
|
+
var import_subprotocol = __toESM(require_subprotocol(), 1);
|
|
28
|
+
var import_websocket = __toESM(require_websocket(), 1);
|
|
29
|
+
var import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
30
|
+
var wrapper_default = import_websocket.default;
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
import_websocket,
|
|
34
|
+
import_websocket_server,
|
|
35
|
+
wrapper_default
|
|
36
|
+
};
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
import {
|
|
4
4
|
init_esm,
|
|
5
|
+
isSpanContextValid,
|
|
5
6
|
trace
|
|
6
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z2Z3GUXZ.js";
|
|
7
8
|
import {
|
|
8
9
|
init_esbuild_shims
|
|
9
10
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -135,6 +136,14 @@ var FatalToolExecutionError = class extends FatalError {
|
|
|
135
136
|
super(message, 54);
|
|
136
137
|
}
|
|
137
138
|
};
|
|
139
|
+
var FatalBudgetExceededError = class extends FatalError {
|
|
140
|
+
static {
|
|
141
|
+
__name(this, "FatalBudgetExceededError");
|
|
142
|
+
}
|
|
143
|
+
constructor(message) {
|
|
144
|
+
super(message, 55);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
138
147
|
var FatalCancellationError = class extends FatalError {
|
|
139
148
|
static {
|
|
140
149
|
__name(this, "FatalCancellationError");
|
|
@@ -199,7 +208,7 @@ function _resetValidatePathCacheForTest() {
|
|
|
199
208
|
isDirectoryCache.clear();
|
|
200
209
|
}
|
|
201
210
|
__name(_resetValidatePathCacheForTest, "_resetValidatePathCacheForTest");
|
|
202
|
-
var SHELL_SPECIAL_CHARS = /[ \t()[\]{};|*?$`'"
|
|
211
|
+
var SHELL_SPECIAL_CHARS = /[ \t()[\]{};|*?$`'"#&<>!~,]/;
|
|
203
212
|
var PATH_ARG_KEYS = [
|
|
204
213
|
"file_path",
|
|
205
214
|
"path",
|
|
@@ -640,12 +649,6 @@ var Storage = class _Storage {
|
|
|
640
649
|
getProjectRoot() {
|
|
641
650
|
return this.targetDir;
|
|
642
651
|
}
|
|
643
|
-
getHistoryDir() {
|
|
644
|
-
const hash = getProjectHash(this.getProjectRoot());
|
|
645
|
-
const historyDir = path2.join(_Storage.getRuntimeBaseDir(), "history");
|
|
646
|
-
const targetDir = path2.join(historyDir, hash);
|
|
647
|
-
return targetDir;
|
|
648
|
-
}
|
|
649
652
|
getWorkspaceSettingsPath() {
|
|
650
653
|
return path2.join(this.getQwenDir(), "settings.json");
|
|
651
654
|
}
|
|
@@ -721,13 +724,9 @@ async function updateSymlink(linkPath, targetPath, options) {
|
|
|
721
724
|
}
|
|
722
725
|
__name(updateSymlink, "updateSymlink");
|
|
723
726
|
|
|
724
|
-
// packages/core/src/
|
|
727
|
+
// packages/core/src/telemetry/trace-context.ts
|
|
725
728
|
init_esbuild_shims();
|
|
726
729
|
init_esm();
|
|
727
|
-
import { promises as fs4 } from "node:fs";
|
|
728
|
-
import path4 from "node:path";
|
|
729
|
-
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
730
|
-
import util from "node:util";
|
|
731
730
|
|
|
732
731
|
// packages/core/src/telemetry/session-context.ts
|
|
733
732
|
init_esbuild_shims();
|
|
@@ -747,7 +746,63 @@ function getCurrentSessionId() {
|
|
|
747
746
|
}
|
|
748
747
|
__name(getCurrentSessionId, "getCurrentSessionId");
|
|
749
748
|
|
|
749
|
+
// packages/core/src/telemetry/trace-context.ts
|
|
750
|
+
function extractTraceContext(span) {
|
|
751
|
+
const ctx = span?.spanContext();
|
|
752
|
+
if (ctx && isSpanContextValid(ctx)) {
|
|
753
|
+
return {
|
|
754
|
+
traceId: ctx.traceId,
|
|
755
|
+
spanId: ctx.spanId,
|
|
756
|
+
traceFlags: ctx.traceFlags
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
return null;
|
|
760
|
+
}
|
|
761
|
+
__name(extractTraceContext, "extractTraceContext");
|
|
762
|
+
function getActiveSpanTraceContext() {
|
|
763
|
+
try {
|
|
764
|
+
return extractTraceContext(trace.getActiveSpan());
|
|
765
|
+
} catch {
|
|
766
|
+
return null;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
__name(getActiveSpanTraceContext, "getActiveSpanTraceContext");
|
|
770
|
+
function getSessionRootTraceContext() {
|
|
771
|
+
try {
|
|
772
|
+
const sessionCtx = getSessionContext();
|
|
773
|
+
return extractTraceContext(
|
|
774
|
+
sessionCtx ? trace.getSpan(sessionCtx) : void 0
|
|
775
|
+
);
|
|
776
|
+
} catch {
|
|
777
|
+
return null;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
__name(getSessionRootTraceContext, "getSessionRootTraceContext");
|
|
781
|
+
function getTraceContext() {
|
|
782
|
+
return getActiveSpanTraceContext() ?? getSessionRootTraceContext();
|
|
783
|
+
}
|
|
784
|
+
__name(getTraceContext, "getTraceContext");
|
|
785
|
+
function formatTraceparent(ctx) {
|
|
786
|
+
const flags = (ctx.traceFlags & 255).toString(16).padStart(2, "0");
|
|
787
|
+
return `00-${ctx.traceId}-${ctx.spanId}-${flags}`;
|
|
788
|
+
}
|
|
789
|
+
__name(formatTraceparent, "formatTraceparent");
|
|
790
|
+
var shellTracePropagationEnabled = false;
|
|
791
|
+
function setShellTracePropagation(enabled) {
|
|
792
|
+
shellTracePropagationEnabled = enabled;
|
|
793
|
+
}
|
|
794
|
+
__name(setShellTracePropagation, "setShellTracePropagation");
|
|
795
|
+
function isShellTracePropagationEnabled() {
|
|
796
|
+
return shellTracePropagationEnabled;
|
|
797
|
+
}
|
|
798
|
+
__name(isShellTracePropagationEnabled, "isShellTracePropagationEnabled");
|
|
799
|
+
|
|
750
800
|
// packages/core/src/utils/debugLogger.ts
|
|
801
|
+
init_esbuild_shims();
|
|
802
|
+
import { promises as fs4 } from "node:fs";
|
|
803
|
+
import path4 from "node:path";
|
|
804
|
+
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
805
|
+
import util from "node:util";
|
|
751
806
|
var ensureDebugDirPromise = null;
|
|
752
807
|
var ensuredDebugDirPath = null;
|
|
753
808
|
var hasWriteFailure = false;
|
|
@@ -786,40 +841,6 @@ function formatArgs(args) {
|
|
|
786
841
|
}).map((arg) => typeof arg === "string" ? arg : util.inspect(arg)).join(" ");
|
|
787
842
|
}
|
|
788
843
|
__name(formatArgs, "formatArgs");
|
|
789
|
-
var ZERO_TRACE_ID = "00000000000000000000000000000000";
|
|
790
|
-
function getActiveSpanTraceContext() {
|
|
791
|
-
try {
|
|
792
|
-
const activeSpan = trace.getActiveSpan();
|
|
793
|
-
if (activeSpan) {
|
|
794
|
-
const ctx = activeSpan.spanContext();
|
|
795
|
-
if (ctx.traceId !== ZERO_TRACE_ID) {
|
|
796
|
-
return { traceId: ctx.traceId, spanId: ctx.spanId };
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
return null;
|
|
800
|
-
} catch {
|
|
801
|
-
return null;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
__name(getActiveSpanTraceContext, "getActiveSpanTraceContext");
|
|
805
|
-
function getSessionRootTraceContext() {
|
|
806
|
-
try {
|
|
807
|
-
const sessionContext2 = getSessionContext();
|
|
808
|
-
const sessionSpan = sessionContext2 ? trace.getSpan(sessionContext2) : null;
|
|
809
|
-
const ctx = sessionSpan?.spanContext();
|
|
810
|
-
if (ctx && ctx.traceId !== ZERO_TRACE_ID) {
|
|
811
|
-
return { traceId: ctx.traceId, spanId: ctx.spanId };
|
|
812
|
-
}
|
|
813
|
-
return null;
|
|
814
|
-
} catch {
|
|
815
|
-
return null;
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
__name(getSessionRootTraceContext, "getSessionRootTraceContext");
|
|
819
|
-
function getTraceContext() {
|
|
820
|
-
return getActiveSpanTraceContext() ?? getSessionRootTraceContext();
|
|
821
|
-
}
|
|
822
|
-
__name(getTraceContext, "getTraceContext");
|
|
823
844
|
function buildLogLine(level, message, tag, traceCtx) {
|
|
824
845
|
const timestamp = (/* @__PURE__ */ new Date()).toISOString();
|
|
825
846
|
const tagPart = tag ? ` [${tag}]` : "";
|
|
@@ -876,6 +897,7 @@ function runWithDebugLogSession(session, fn) {
|
|
|
876
897
|
__name(runWithDebugLogSession, "runWithDebugLogSession");
|
|
877
898
|
function createDebugLogger(tag) {
|
|
878
899
|
return {
|
|
900
|
+
isEnabled: /* @__PURE__ */ __name(() => getActiveSession() !== null, "isEnabled"),
|
|
879
901
|
debug: /* @__PURE__ */ __name((...args) => {
|
|
880
902
|
const session = getActiveSession();
|
|
881
903
|
if (!session) return;
|
|
@@ -913,6 +935,7 @@ export {
|
|
|
913
935
|
FatalConfigError,
|
|
914
936
|
FatalTurnLimitedError,
|
|
915
937
|
FatalToolExecutionError,
|
|
938
|
+
FatalBudgetExceededError,
|
|
916
939
|
FatalCancellationError,
|
|
917
940
|
ForbiddenError,
|
|
918
941
|
UnauthorizedError,
|
|
@@ -940,8 +963,11 @@ export {
|
|
|
940
963
|
Storage,
|
|
941
964
|
updateSymlink,
|
|
942
965
|
setSessionContext,
|
|
943
|
-
getSessionContext,
|
|
944
966
|
getCurrentSessionId,
|
|
967
|
+
getTraceContext,
|
|
968
|
+
formatTraceparent,
|
|
969
|
+
setShellTracePropagation,
|
|
970
|
+
isShellTracePropagationEnabled,
|
|
945
971
|
isDebugLoggingDegraded,
|
|
946
972
|
resetDebugLoggingState,
|
|
947
973
|
setDebugLogSession,
|
|
@@ -958,3 +984,8 @@ export {
|
|
|
958
984
|
* Copyright 2025 Qwen Code
|
|
959
985
|
* SPDX-License-Identifier: Apache-2.0
|
|
960
986
|
*/
|
|
987
|
+
/**
|
|
988
|
+
* @license
|
|
989
|
+
* Copyright 2025 Qwen
|
|
990
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
991
|
+
*/
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
+
import {
|
|
4
|
+
atomicWriteFileSync
|
|
5
|
+
} from "./chunk-B7HXHOHU.js";
|
|
3
6
|
import {
|
|
4
7
|
Storage,
|
|
5
8
|
createDebugLogger
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HR7SV7AY.js";
|
|
7
10
|
import {
|
|
8
11
|
init_esbuild_shims
|
|
9
12
|
} from "./chunk-A4BMJM77.js";
|
|
@@ -36,7 +39,9 @@ var InstallationManager = class {
|
|
|
36
39
|
const installationIdFile = this.getInstallationIdPath();
|
|
37
40
|
const dir = path.dirname(installationIdFile);
|
|
38
41
|
fs.mkdirSync(dir, { recursive: true });
|
|
39
|
-
|
|
42
|
+
atomicWriteFileSync(installationIdFile, installationId, {
|
|
43
|
+
encoding: "utf-8"
|
|
44
|
+
});
|
|
40
45
|
}
|
|
41
46
|
/**
|
|
42
47
|
* Retrieves the installation ID from a file, creating it if it doesn't exist.
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
__require
|
|
9
9
|
} from "./chunk-J2S4EL5Y.js";
|
|
10
10
|
|
|
11
|
-
//
|
|
11
|
+
// node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js
|
|
12
12
|
var require_execAsync = __commonJS({
|
|
13
|
-
"
|
|
13
|
+
"node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/execAsync.js"(exports) {
|
|
14
14
|
"use strict";
|
|
15
15
|
init_esbuild_shims();
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|