@intentic/claude-plugin 1.333.0 → 1.333.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "intentic",
3
3
  "displayName": "Intentic",
4
- "version": "1.333.0",
4
+ "version": "1.333.1",
5
5
  "description": "Cheaper, sharper Claude Code sessions: Bash output trimmed before Claude reads it, a project map and this project's field notes at session start, iq code search and fileq document reading taught, and /intentic:stats to show what each one saved. Every mechanism is a switch in /config.",
6
6
  "author": {
7
7
  "name": "intentic"
package/dist/fileq.mjs CHANGED
@@ -61223,8 +61223,9 @@ var init_async = __esm({
61223
61223
 
61224
61224
  // ../../_tools/base/src/node/process.ts
61225
61225
  import { spawn, spawnSync } from "node:child_process";
61226
+ import { readdirSync, readFileSync } from "node:fs";
61226
61227
  import { StringDecoder } from "node:string_decoder";
61227
- var DEFAULT_MAX_OUTPUT, PIPE_QUIET_MS, PIPE_LINGER_MS, PIPE_POLL_MS, KILL_GRACE_MS, textCollector, delay, signalGroup, GROUP_POLL_MS, groupAlive, stopProcessTree, spawnOptions, start, stopperFor, drain, run2, runBounded, ProcessError, execBounded;
61228
+ var DEFAULT_MAX_OUTPUT, PIPE_QUIET_MS, PIPE_LINGER_MS, PIPE_POLL_MS, KILL_GRACE_MS, textCollector, delay, signalGroup, GROUP_POLL_MS, EXITED_STATES, NUMERIC, procStatOf, groupHasLivingMember, groupAlive, stopProcessTree, spawnOptions, start, stopperFor, drain, run2, runBounded, ProcessError, execBounded;
61228
61229
  var init_process = __esm({
61229
61230
  "../../_tools/base/src/node/process.ts"() {
61230
61231
  "use strict";
@@ -61271,13 +61272,49 @@ ${tail}`, dropped };
61271
61272
  }
61272
61273
  };
61273
61274
  GROUP_POLL_MS = 25;
61275
+ EXITED_STATES = /* @__PURE__ */ new Set(["Z", "X", "x"]);
61276
+ NUMERIC = /^\d+$/;
61277
+ procStatOf = (pid) => {
61278
+ let stat3;
61279
+ try {
61280
+ stat3 = readFileSync(`/proc/${pid}/stat`, "utf8");
61281
+ } catch (error2) {
61282
+ const code = errnoCode(error2);
61283
+ if (code === "ENOENT" || code === "ESRCH") {
61284
+ return "gone";
61285
+ }
61286
+ throw error2;
61287
+ }
61288
+ const fields = stat3.slice(stat3.lastIndexOf(")") + 2).split(" ");
61289
+ return { state: fields[0] ?? "", group: Number(fields[2]) };
61290
+ };
61291
+ groupHasLivingMember = (pgid) => {
61292
+ let names;
61293
+ try {
61294
+ names = readdirSync("/proc").filter((name) => NUMERIC.test(name));
61295
+ } catch {
61296
+ return void 0;
61297
+ }
61298
+ for (const name of names.toReversed()) {
61299
+ let stat3;
61300
+ try {
61301
+ stat3 = procStatOf(name);
61302
+ } catch {
61303
+ return void 0;
61304
+ }
61305
+ if (stat3 !== "gone" && stat3.group === pgid && !EXITED_STATES.has(stat3.state)) {
61306
+ return true;
61307
+ }
61308
+ }
61309
+ return false;
61310
+ };
61274
61311
  groupAlive = (pid) => {
61275
61312
  try {
61276
61313
  process.kill(-pid, 0);
61277
- return true;
61278
61314
  } catch (error2) {
61279
61315
  return errnoCode(error2) !== "ESRCH";
61280
61316
  }
61317
+ return process.platform === "linux" ? groupHasLivingMember(pid) ?? true : true;
61281
61318
  };
61282
61319
  stopProcessTree = async (child, killGraceMs = KILL_GRACE_MS) => {
61283
61320
  const pid = child.pid;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentic/claude-plugin",
3
- "version": "1.333.0",
3
+ "version": "1.333.1",
4
4
  "description": "The intentic Claude Code plugin: trimmed Bash output, a project map and field notes at session start, iq search and fileq teaching, and a /intentic:stats report of what each saved",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,9 +40,9 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@intentic/agent-context": "0.0.0",
43
- "@intentic/base": "1.333.0",
44
- "@intentic/fileq": "1.333.0",
45
- "@intentic/iq": "1.333.0",
43
+ "@intentic/base": "1.333.1",
44
+ "@intentic/fileq": "1.333.1",
45
+ "@intentic/iq": "1.333.1",
46
46
  "@intentic/output-cleaners": "0.0.0",
47
47
  "@intentic/testing": "0.0.0",
48
48
  "@intentic/tsconfig": "0.0.0",