@brainervirus/workit-pi 8.12.0 → 8.12.1
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/worker.js +42 -0
- package/dist/workit.js +348 -255
- package/package.json +1 -1
package/dist/worker.js
CHANGED
|
@@ -8305,6 +8305,48 @@ var ENVELOPE = new Set([
|
|
|
8305
8305
|
"expectedWorkspaceRevision",
|
|
8306
8306
|
"judgment"
|
|
8307
8307
|
]);
|
|
8308
|
+
// packages/workit-core/src/core/logger.ts
|
|
8309
|
+
import os from "node:os";
|
|
8310
|
+
var SENSITIVE_WORDS = new Set([
|
|
8311
|
+
"token",
|
|
8312
|
+
"secret",
|
|
8313
|
+
"password",
|
|
8314
|
+
"passwd",
|
|
8315
|
+
"authorization",
|
|
8316
|
+
"credential",
|
|
8317
|
+
"credentials",
|
|
8318
|
+
"cookie",
|
|
8319
|
+
"api",
|
|
8320
|
+
"apikey",
|
|
8321
|
+
"apitoken",
|
|
8322
|
+
"accesstoken",
|
|
8323
|
+
"clientsecret",
|
|
8324
|
+
"refreshtoken",
|
|
8325
|
+
"key",
|
|
8326
|
+
"bearer",
|
|
8327
|
+
"prompt",
|
|
8328
|
+
"message",
|
|
8329
|
+
"messages",
|
|
8330
|
+
"content",
|
|
8331
|
+
"body",
|
|
8332
|
+
"args",
|
|
8333
|
+
"argument",
|
|
8334
|
+
"result",
|
|
8335
|
+
"results",
|
|
8336
|
+
"output",
|
|
8337
|
+
"issue",
|
|
8338
|
+
"description",
|
|
8339
|
+
"summary",
|
|
8340
|
+
"payload",
|
|
8341
|
+
"script",
|
|
8342
|
+
"command",
|
|
8343
|
+
"text",
|
|
8344
|
+
"query"
|
|
8345
|
+
]);
|
|
8346
|
+
var STACK_WORDS = new Set(["stack", "stacktrace", "trace"]);
|
|
8347
|
+
var escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
8348
|
+
var homePattern = new RegExp(`${escapeRegExp(os.homedir())}(?=[/\\\\]|$)|\\$HOME(?=[/\\\\]|$)`, "g");
|
|
8349
|
+
|
|
8308
8350
|
// packages/workit-core/src/host-session.ts
|
|
8309
8351
|
var OWN_CHILD_SHELL = new Set(["opencode", "pi"]);
|
|
8310
8352
|
var SESSION_UNSAFE = /[^A-Za-z0-9_.:@/+-]/g;
|