codex-blocker 0.0.3 → 0.0.6
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/bin.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
+
DEFAULT_PORT,
|
|
3
4
|
startServer
|
|
4
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FXDFFIXM.js";
|
|
5
6
|
|
|
6
7
|
// src/bin.ts
|
|
7
8
|
import { createInterface } from "readline";
|
|
@@ -38,7 +39,6 @@ function removeCodexSetup() {
|
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
// src/bin.ts
|
|
41
|
-
import { DEFAULT_PORT } from "@claude-blocker/shared";
|
|
42
42
|
var args = process.argv.slice(2);
|
|
43
43
|
function prompt(question) {
|
|
44
44
|
const rl = createInterface({
|
|
@@ -242,15 +242,9 @@ function handleLine(line, fileState) {
|
|
|
242
242
|
if (entryType === "event_msg" && innerTypeString === "user_message") {
|
|
243
243
|
shouldMarkWorking = true;
|
|
244
244
|
}
|
|
245
|
-
if (entryType === "event_msg" &&
|
|
245
|
+
if (entryType === "event_msg" && innerTypeString === "agent_message") {
|
|
246
246
|
shouldMarkIdle = true;
|
|
247
247
|
}
|
|
248
|
-
if (entryType === "response_item" && innerTypeString === "message") {
|
|
249
|
-
const role = innerPayload && typeof innerPayload === "object" ? innerPayload.role : void 0;
|
|
250
|
-
if (role === "assistant") {
|
|
251
|
-
shouldMarkIdle = true;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
248
|
} catch {
|
|
255
249
|
}
|
|
256
250
|
state.markCodexSessionSeen(sessionId, cwd);
|
|
@@ -505,5 +499,6 @@ function startServer(port = DEFAULT_PORT) {
|
|
|
505
499
|
}
|
|
506
500
|
|
|
507
501
|
export {
|
|
502
|
+
DEFAULT_PORT,
|
|
508
503
|
startServer
|
|
509
504
|
};
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codex-blocker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Block distracting websites unless Codex is actively running inference. Forked from Theo Browne's (T3) Claude Blocker",
|
|
5
5
|
"author": "Adam Blumoff ",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"typecheck": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@claude-blocker/shared": "workspace:*",
|
|
30
29
|
"ws": "^8.18.0"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|