@cogit/cli 0.19.0 → 0.19.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": "cogit",
3
3
  "displayName": "cogit",
4
- "version": "0.19.0",
4
+ "version": "0.19.1",
5
5
  "description": "Git remembers what changed. cogit remembers why.",
6
6
  "author": {
7
7
  "name": "Eren Sertkaya"
@@ -20844,6 +20844,15 @@ var PLUGIN_ID = "cogit@cogit";
20844
20844
  var MARKETPLACE = "cogit";
20845
20845
  var MARKETPLACE_REPO = "erensrtky/cogit";
20846
20846
  var INSTALL_COMMAND = `claude plugin install cogit --marketplace ${MARKETPLACE_REPO}`;
20847
+ async function readPluginInstalled(env) {
20848
+ const base = env.CLAUDE_CONFIG_DIR ?? join5(homedir2(), ".claude");
20849
+ const read = await readJson(join5(base, "plugins", "installed_plugins.json"));
20850
+ if (!read.found || "error" in read) return void 0;
20851
+ const plugins = isObject2(read.value) ? read.value.plugins : void 0;
20852
+ if (!isObject2(plugins)) return void 0;
20853
+ const entries = plugins[PLUGIN_ID];
20854
+ return Array.isArray(entries) && entries.length > 0;
20855
+ }
20847
20856
  function liveDir() {
20848
20857
  return join5(tmpdir(), "cogit-live");
20849
20858
  }
@@ -21231,6 +21240,7 @@ var claude = {
21231
21240
  name: DEFAULT_AGENT,
21232
21241
  skill: "/cogit:record",
21233
21242
  skillRule: SKILL_RULE,
21243
+ installCommand: INSTALL_COMMAND,
21234
21244
  projectDirEnv: "CLAUDE_PROJECT_DIR",
21235
21245
  pluginRootEnv: "CLAUDE_PLUGIN_ROOT",
21236
21246
  sessionIdEnv: "CLAUDE_SESSION_ID",
@@ -21249,6 +21259,7 @@ var claude = {
21249
21259
  parseHookInput,
21250
21260
  additionalContext,
21251
21261
  readRetention,
21262
+ readPluginInstalled,
21252
21263
  readSkillAllowed,
21253
21264
  setRetention,
21254
21265
  allowSkill,