@funnycode/myclaude 0.1.185 → 0.1.186
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/myclaude.js +16 -8
- package/dist/myclaude.mjs +16 -8
- package/package.json +1 -1
package/dist/myclaude.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// MACRO - build-time constants (injected by build.ts)
|
|
5
5
|
// MACRO injected by build script
|
|
6
6
|
globalThis.MACRO = {
|
|
7
|
-
VERSION: "0.1.
|
|
8
|
-
BUILD_TIME: "2026-08-
|
|
7
|
+
VERSION: "0.1.186",
|
|
8
|
+
BUILD_TIME: "2026-08-10T04:16:05.099Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117152,7 +117152,7 @@ var package_default;
|
|
|
117152
117152
|
var init_package = __esm(() => {
|
|
117153
117153
|
package_default = {
|
|
117154
117154
|
name: "@funnycode/myclaude",
|
|
117155
|
-
version: "0.1.
|
|
117155
|
+
version: "0.1.186",
|
|
117156
117156
|
private: false,
|
|
117157
117157
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117158
117158
|
license: "MIT",
|
|
@@ -209359,6 +209359,13 @@ function parseEventData(event) {
|
|
|
209359
209359
|
return null;
|
|
209360
209360
|
}
|
|
209361
209361
|
}
|
|
209362
|
+
function isDumpPromptsEnabled() {
|
|
209363
|
+
if (false)
|
|
209364
|
+
;
|
|
209365
|
+
if (process.env.DUMP_PROMPTS !== "1")
|
|
209366
|
+
return false;
|
|
209367
|
+
return process.env.USER_TYPE === "ant" || process.env.MYCLAUDE_ALLOW_DUMP_PROMPTS === "1";
|
|
209368
|
+
}
|
|
209362
209369
|
function hashString3(str) {
|
|
209363
209370
|
return createHash5("sha256").update(str).digest("hex");
|
|
209364
209371
|
}
|
|
@@ -209415,7 +209422,7 @@ function clearAllDumpState() {
|
|
|
209415
209422
|
dumpState.clear();
|
|
209416
209423
|
}
|
|
209417
209424
|
function addApiRequestToCache(requestData) {
|
|
209418
|
-
if (
|
|
209425
|
+
if (!isDumpPromptsEnabled())
|
|
209419
209426
|
return;
|
|
209420
209427
|
const metadata = {
|
|
209421
209428
|
timestamp: new Date().toISOString(),
|
|
@@ -209454,7 +209461,7 @@ function initFingerprint(req) {
|
|
|
209454
209461
|
async function dumpRequest(body, ts, state, filePath) {
|
|
209455
209462
|
if (false)
|
|
209456
209463
|
;
|
|
209457
|
-
if (
|
|
209464
|
+
if (!isDumpPromptsEnabled())
|
|
209458
209465
|
return;
|
|
209459
209466
|
try {
|
|
209460
209467
|
const req = jsonParse(body);
|
|
@@ -209512,7 +209519,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
209512
209519
|
trimDumpState();
|
|
209513
209520
|
let timestamp;
|
|
209514
209521
|
if (init2?.method === "POST" && init2.body) {
|
|
209515
|
-
if (
|
|
209522
|
+
if (isDumpPromptsEnabled()) {
|
|
209516
209523
|
timestamp = new Date().toISOString();
|
|
209517
209524
|
enqueueDumpRequest(agentIdOrSessionId, async () => {
|
|
209518
209525
|
await dumpRequest(init2.body, timestamp, state, filePath);
|
|
@@ -209520,7 +209527,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
209520
209527
|
}
|
|
209521
209528
|
}
|
|
209522
209529
|
const response = await globalThis.fetch(input, init2);
|
|
209523
|
-
if (timestamp && response.ok &&
|
|
209530
|
+
if (timestamp && response.ok && isDumpPromptsEnabled()) {
|
|
209524
209531
|
const cloned = response.clone();
|
|
209525
209532
|
(async () => {
|
|
209526
209533
|
try {
|
|
@@ -209624,7 +209631,7 @@ var init_dumpPrompts = __esm(() => {
|
|
|
209624
209631
|
init_debug();
|
|
209625
209632
|
init_log3();
|
|
209626
209633
|
init_async_mutex();
|
|
209627
|
-
if (
|
|
209634
|
+
if (isDumpPromptsEnabled()) {
|
|
209628
209635
|
logForDebugging("DUMP_PROMPTS is enabled. This will write full API payloads (including system prompts, user messages, and tool definitions) to the filesystem. This is intended for debugging only and should NOT be used in production.", { level: "warn" });
|
|
209629
209636
|
}
|
|
209630
209637
|
cachedApiRequests = [];
|
|
@@ -563552,6 +563559,7 @@ var init_migrateEnableAllProjectMcpServersToSettings = __esm(() => {
|
|
|
563552
563559
|
// src/migrations/migrateFennecToOpus.ts
|
|
563553
563560
|
var init_migrateFennecToOpus = __esm(() => {
|
|
563554
563561
|
init_log3();
|
|
563562
|
+
init_config();
|
|
563555
563563
|
init_providers();
|
|
563556
563564
|
init_settings2();
|
|
563557
563565
|
});
|
package/dist/myclaude.mjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
// MACRO - build-time constants (injected by build.ts)
|
|
5
5
|
// MACRO injected by build script
|
|
6
6
|
globalThis.MACRO = {
|
|
7
|
-
VERSION: "0.1.
|
|
8
|
-
BUILD_TIME: "2026-08-
|
|
7
|
+
VERSION: "0.1.186",
|
|
8
|
+
BUILD_TIME: "2026-08-10T04:16:05.099Z",
|
|
9
9
|
PACKAGE_URL: "@funnycode/myclaude",
|
|
10
10
|
NATIVE_PACKAGE_URL: "@funnycode/myclaude",
|
|
11
11
|
VERSION_CHANGELOG: '',
|
|
@@ -117152,7 +117152,7 @@ var package_default;
|
|
|
117152
117152
|
var init_package = __esm(() => {
|
|
117153
117153
|
package_default = {
|
|
117154
117154
|
name: "@funnycode/myclaude",
|
|
117155
|
-
version: "0.1.
|
|
117155
|
+
version: "0.1.186",
|
|
117156
117156
|
private: false,
|
|
117157
117157
|
description: "An open-source AI coding assistant in your terminal - powered by Claude",
|
|
117158
117158
|
license: "MIT",
|
|
@@ -209359,6 +209359,13 @@ function parseEventData(event) {
|
|
|
209359
209359
|
return null;
|
|
209360
209360
|
}
|
|
209361
209361
|
}
|
|
209362
|
+
function isDumpPromptsEnabled() {
|
|
209363
|
+
if (false)
|
|
209364
|
+
;
|
|
209365
|
+
if (process.env.DUMP_PROMPTS !== "1")
|
|
209366
|
+
return false;
|
|
209367
|
+
return process.env.USER_TYPE === "ant" || process.env.MYCLAUDE_ALLOW_DUMP_PROMPTS === "1";
|
|
209368
|
+
}
|
|
209362
209369
|
function hashString3(str) {
|
|
209363
209370
|
return createHash5("sha256").update(str).digest("hex");
|
|
209364
209371
|
}
|
|
@@ -209415,7 +209422,7 @@ function clearAllDumpState() {
|
|
|
209415
209422
|
dumpState.clear();
|
|
209416
209423
|
}
|
|
209417
209424
|
function addApiRequestToCache(requestData) {
|
|
209418
|
-
if (
|
|
209425
|
+
if (!isDumpPromptsEnabled())
|
|
209419
209426
|
return;
|
|
209420
209427
|
const metadata = {
|
|
209421
209428
|
timestamp: new Date().toISOString(),
|
|
@@ -209454,7 +209461,7 @@ function initFingerprint(req) {
|
|
|
209454
209461
|
async function dumpRequest(body, ts, state, filePath) {
|
|
209455
209462
|
if (false)
|
|
209456
209463
|
;
|
|
209457
|
-
if (
|
|
209464
|
+
if (!isDumpPromptsEnabled())
|
|
209458
209465
|
return;
|
|
209459
209466
|
try {
|
|
209460
209467
|
const req = jsonParse(body);
|
|
@@ -209512,7 +209519,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
209512
209519
|
trimDumpState();
|
|
209513
209520
|
let timestamp;
|
|
209514
209521
|
if (init2?.method === "POST" && init2.body) {
|
|
209515
|
-
if (
|
|
209522
|
+
if (isDumpPromptsEnabled()) {
|
|
209516
209523
|
timestamp = new Date().toISOString();
|
|
209517
209524
|
enqueueDumpRequest(agentIdOrSessionId, async () => {
|
|
209518
209525
|
await dumpRequest(init2.body, timestamp, state, filePath);
|
|
@@ -209520,7 +209527,7 @@ function createDumpPromptsFetch(agentIdOrSessionId) {
|
|
|
209520
209527
|
}
|
|
209521
209528
|
}
|
|
209522
209529
|
const response = await globalThis.fetch(input, init2);
|
|
209523
|
-
if (timestamp && response.ok &&
|
|
209530
|
+
if (timestamp && response.ok && isDumpPromptsEnabled()) {
|
|
209524
209531
|
const cloned = response.clone();
|
|
209525
209532
|
(async () => {
|
|
209526
209533
|
try {
|
|
@@ -209624,7 +209631,7 @@ var init_dumpPrompts = __esm(() => {
|
|
|
209624
209631
|
init_debug();
|
|
209625
209632
|
init_log3();
|
|
209626
209633
|
init_async_mutex();
|
|
209627
|
-
if (
|
|
209634
|
+
if (isDumpPromptsEnabled()) {
|
|
209628
209635
|
logForDebugging("DUMP_PROMPTS is enabled. This will write full API payloads (including system prompts, user messages, and tool definitions) to the filesystem. This is intended for debugging only and should NOT be used in production.", { level: "warn" });
|
|
209629
209636
|
}
|
|
209630
209637
|
cachedApiRequests = [];
|
|
@@ -563552,6 +563559,7 @@ var init_migrateEnableAllProjectMcpServersToSettings = __esm(() => {
|
|
|
563552
563559
|
// src/migrations/migrateFennecToOpus.ts
|
|
563553
563560
|
var init_migrateFennecToOpus = __esm(() => {
|
|
563554
563561
|
init_log3();
|
|
563562
|
+
init_config();
|
|
563555
563563
|
init_providers();
|
|
563556
563564
|
init_settings2();
|
|
563557
563565
|
});
|