codiedev 0.10.0-beta.1 → 0.10.0-beta.11
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/README.md +11 -5
- package/assets/opencode-plugin.mjs +6 -0
- package/assets/session-key.mjs +48 -0
- package/assets/tui-brand-plugin.tsx +73 -0
- package/dist/backup/cache.js +1 -5
- package/dist/backup/match.js +0 -6
- package/dist/backup/run.js +3 -35
- package/dist/captureExclusions.js +0 -12
- package/dist/captureLog.js +0 -28
- package/dist/captureReadiness.js +0 -58
- package/dist/captureSignals.js +184 -0
- package/dist/cli.js +135 -72
- package/dist/cliSession.js +456 -0
- package/dist/codexHookTrust.js +125 -6
- package/dist/codexLimitScan.js +359 -0
- package/dist/codie.js +77 -130
- package/dist/codieBrandInstall.js +80 -0
- package/dist/codieLauncher.js +76 -79
- package/dist/codieRuntime.js +19 -23
- package/dist/codieRuntimeInstall.js +108 -23
- package/dist/codieUsage.js +181 -0
- package/dist/commands/agentTemplates.generated.js +136 -0
- package/dist/commands/agents.js +1101 -0
- package/dist/commands/agentsSdk.generated.js +7 -0
- package/dist/commands/ask.js +0 -3
- package/dist/commands/capture.js +0 -2
- package/dist/commands/createTicket.js +0 -10
- package/dist/commands/doctor.js +53 -120
- package/dist/commands/evals.js +187 -0
- package/dist/commands/inbox.js +0 -2
- package/dist/commands/library.js +0 -3
- package/dist/commands/pack.js +573 -0
- package/dist/commands/ping.js +0 -2
- package/dist/commands/pull.js +6 -10
- package/dist/commands/push.js +2 -12
- package/dist/commands/search.js +0 -4
- package/dist/commands/send.js +0 -5
- package/dist/commands/share.js +0 -4
- package/dist/commands/shared.js +0 -35
- package/dist/commands/traces.js +344 -0
- package/dist/commands/tracesLabel.js +348 -0
- package/dist/configDir.js +18 -11
- package/dist/connect.js +55 -118
- package/dist/connectFlow.js +35 -9
- package/dist/copilotHooks.js +391 -0
- package/dist/copilotInstallation.js +64 -0
- package/dist/cursorHooks.js +38 -30
- package/dist/cursorLifecycle.js +109 -0
- package/dist/detection.js +0 -30
- package/dist/harnessDirs.js +77 -0
- package/dist/hook.js +256 -445
- package/dist/inboxFormat.js +0 -24
- package/dist/launchContext.js +150 -0
- package/dist/launcher.js +168 -0
- package/dist/limitEvent.js +44 -13
- package/dist/limitEventReporter.js +1 -1
- package/dist/managedPi.js +256 -0
- package/dist/mcp.js +5 -384
- package/dist/nativeSteering.js +24 -0
- package/dist/packs/codie.js +182 -0
- package/dist/packs/harnesses.js +411 -0
- package/dist/packs/hookGate.js +256 -0
- package/dist/packs/install.js +286 -0
- package/dist/packs/manifest.js +126 -0
- package/dist/packs/paths.js +81 -0
- package/dist/packs/shim.js +214 -0
- package/dist/packs/store.js +155 -0
- package/dist/packs/sync.js +170 -0
- package/dist/piHooks.js +216 -0
- package/dist/piRuntime.js +120 -0
- package/dist/repoResolver.js +0 -19
- package/dist/secret.js +0 -3
- package/dist/selfUpdate.js +376 -0
- package/dist/skillMarker.js +23 -0
- package/dist/subagents.js +135 -0
- package/dist/teamSkillContext.js +10 -0
- package/dist/transcriptModels.js +205 -0
- package/dist/upgradeNudge.js +0 -30
- package/dist/utils.js +502 -828
- package/dist/version.js +0 -10
- package/dist/versionCheck.js +0 -33
- package/package.json +8 -9
- package/dist/backup/cache.d.ts +0 -14
- package/dist/backup/match.d.ts +0 -2
- package/dist/backup/run.d.ts +0 -25
- package/dist/captureExclusions.d.ts +0 -30
- package/dist/captureLog.d.ts +0 -20
- package/dist/captureReadiness.d.ts +0 -65
- package/dist/cli.d.ts +0 -16
- package/dist/codexHookTrust.d.ts +0 -34
- package/dist/codie.d.ts +0 -2
- package/dist/codieLauncher.d.ts +0 -53
- package/dist/codieRuntime.d.ts +0 -29
- package/dist/codieRuntimeInstall.d.ts +0 -28
- package/dist/codieStartup.d.ts +0 -26
- package/dist/codieStartup.js +0 -30
- package/dist/commands/ask.d.ts +0 -1
- package/dist/commands/capture.d.ts +0 -14
- package/dist/commands/createTicket.d.ts +0 -27
- package/dist/commands/delete.d.ts +0 -1
- package/dist/commands/doctor.d.ts +0 -1
- package/dist/commands/inbox.d.ts +0 -3
- package/dist/commands/library.d.ts +0 -2
- package/dist/commands/note.d.ts +0 -1
- package/dist/commands/ping.d.ts +0 -1
- package/dist/commands/promote.d.ts +0 -1
- package/dist/commands/promote.js +0 -53
- package/dist/commands/pull.d.ts +0 -2
- package/dist/commands/push.d.ts +0 -33
- package/dist/commands/react.d.ts +0 -2
- package/dist/commands/react.js +0 -40
- package/dist/commands/reverseTicket.d.ts +0 -2
- package/dist/commands/reverseTicket.js +0 -477
- package/dist/commands/search.d.ts +0 -2
- package/dist/commands/security.d.ts +0 -1
- package/dist/commands/security.js +0 -156
- package/dist/commands/send.d.ts +0 -2
- package/dist/commands/share.d.ts +0 -2
- package/dist/commands/shared.d.ts +0 -64
- package/dist/configDir.d.ts +0 -1
- package/dist/connect.d.ts +0 -1
- package/dist/connectFlow.d.ts +0 -13
- package/dist/cursorHooks.d.ts +0 -23
- package/dist/detection.d.ts +0 -30
- package/dist/hook.d.ts +0 -6
- package/dist/inboxFormat.d.ts +0 -38
- package/dist/limitEvent.d.ts +0 -16
- package/dist/limitEventReporter.d.ts +0 -21
- package/dist/mcp.d.ts +0 -12
- package/dist/prUrl.d.ts +0 -9
- package/dist/prUrl.js +0 -33
- package/dist/repoResolver.d.ts +0 -17
- package/dist/secret.d.ts +0 -1
- package/dist/security.d.ts +0 -102
- package/dist/security.js +0 -437
- package/dist/securityDeepScan.d.ts +0 -41
- package/dist/securityDeepScan.js +0 -248
- package/dist/securityDoctor.d.ts +0 -32
- package/dist/securityDoctor.js +0 -63
- package/dist/securityFeature.d.ts +0 -5
- package/dist/securityFeature.js +0 -7
- package/dist/securityInstall.d.ts +0 -63
- package/dist/securityInstall.js +0 -239
- package/dist/securityInventory.d.ts +0 -54
- package/dist/securityInventory.js +0 -556
- package/dist/securityPilot.d.ts +0 -19
- package/dist/securityPilot.js +0 -61
- package/dist/securityPolicy.d.ts +0 -33
- package/dist/securityPolicy.js +0 -188
- package/dist/securitySession.d.ts +0 -6
- package/dist/securitySession.js +0 -72
- package/dist/upgradeNudge.d.ts +0 -25
- package/dist/utils.d.ts +0 -342
- package/dist/version.d.ts +0 -1
- package/dist/versionCheck.d.ts +0 -68
package/dist/detection.js
CHANGED
|
@@ -1,44 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Pure detection helpers — runtime probes (fs / PATH lookup) live in utils.ts
|
|
3
|
-
// and feed these. Splitting them out makes the truth-table testable without
|
|
4
|
-
// mocking fs or process.
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.detectClaudeCode = detectClaudeCode;
|
|
7
4
|
exports.isCodiedevHookCommand = isCodiedevHookCommand;
|
|
8
|
-
/**
|
|
9
|
-
* Claude Code is "installed" if either ~/.claude exists (the user has
|
|
10
|
-
* launched the app at least once) OR the `claude` binary is on PATH (the
|
|
11
|
-
* user installed via npm/brew but hasn't launched yet). Either signal is
|
|
12
|
-
* sufficient — we want to wire up the hook the moment the user has
|
|
13
|
-
* obviously committed to the tool.
|
|
14
|
-
*/
|
|
15
5
|
function detectClaudeCode(probe) {
|
|
16
6
|
return probe.dirExists || probe.binOnPath;
|
|
17
7
|
}
|
|
18
|
-
/**
|
|
19
|
-
* True iff `cmd` looks like a hook command codiedev itself wrote. Used
|
|
20
|
-
* both by the install filter (so `connect` replaces the existing entry
|
|
21
|
-
* instead of stacking another one) and by `codiedev doctor` (so it can
|
|
22
|
-
* grade whether the hook is wired up).
|
|
23
|
-
*
|
|
24
|
-
* Must match every form codiedev can write:
|
|
25
|
-
* - Legacy `npx codiedev-hook <subcommand>`
|
|
26
|
-
* - Absolute path from npm-registry install:
|
|
27
|
-
* `<node> /.../node_modules/codiedev/dist/hook.js <subcommand>`
|
|
28
|
-
* - Absolute path from `npm link` dev install (the monorepo folder
|
|
29
|
-
* is named `codiedev-cli`, not `codiedev`):
|
|
30
|
-
* `<node> /.../codiedev-cli/dist/hook.js <subcommand>`
|
|
31
|
-
*
|
|
32
|
-
* The `codiedev[^/\\]*` allows the trailing `-cli` (or any future suffix)
|
|
33
|
-
* without matching unrelated paths like `notcodiedev/dist/hook.js`.
|
|
34
|
-
*/
|
|
35
8
|
function isCodiedevHookCommand(cmd) {
|
|
36
9
|
if (!cmd)
|
|
37
10
|
return false;
|
|
38
11
|
if (cmd.includes("codiedev-hook"))
|
|
39
12
|
return true;
|
|
40
|
-
// Anchor at a path separator (or string start) so we don't match
|
|
41
|
-
// unrelated paths like `notcodiedev/dist/hook.js` that happen to contain
|
|
42
|
-
// the substring `codiedev`.
|
|
43
13
|
return /(?:^|[\\/])codiedev[^/\\]*[\\/]dist[\\/]hook/.test(cmd);
|
|
44
14
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.claudeConfigDir = claudeConfigDir;
|
|
37
|
+
exports.claudeUserConfigPath = claudeUserConfigPath;
|
|
38
|
+
exports.codexHome = codexHome;
|
|
39
|
+
exports.openCodeConfigDir = openCodeConfigDir;
|
|
40
|
+
exports.piAgentDir = piAgentDir;
|
|
41
|
+
exports.displayPath = displayPath;
|
|
42
|
+
exports.claudeConfigDirInUse = claudeConfigDirInUse;
|
|
43
|
+
exports.codexHomeInUse = codexHomeInUse;
|
|
44
|
+
const fs = __importStar(require("fs"));
|
|
45
|
+
const os = __importStar(require("os"));
|
|
46
|
+
const path = __importStar(require("path"));
|
|
47
|
+
function override(value) {
|
|
48
|
+
const trimmed = value?.trim();
|
|
49
|
+
return trimmed ? path.resolve(trimmed) : undefined;
|
|
50
|
+
}
|
|
51
|
+
function claudeConfigDir(env = process.env, home = os.homedir()) {
|
|
52
|
+
return override(env.CLAUDE_CONFIG_DIR) ?? path.join(home, ".claude");
|
|
53
|
+
}
|
|
54
|
+
function claudeUserConfigPath(env = process.env, home = os.homedir()) {
|
|
55
|
+
const dir = override(env.CLAUDE_CONFIG_DIR);
|
|
56
|
+
return dir ? path.join(dir, ".claude.json") : path.join(home, ".claude.json");
|
|
57
|
+
}
|
|
58
|
+
function codexHome(env = process.env, home = os.homedir()) {
|
|
59
|
+
return override(env.CODEX_HOME) ?? path.join(home, ".codex");
|
|
60
|
+
}
|
|
61
|
+
function openCodeConfigDir(env = process.env, home = os.homedir()) {
|
|
62
|
+
return path.join(override(env.XDG_CONFIG_HOME) ?? path.join(home, ".config"), "opencode");
|
|
63
|
+
}
|
|
64
|
+
function piAgentDir(env = process.env, home = os.homedir()) {
|
|
65
|
+
return override(env.PI_CODING_AGENT_DIR) ?? path.join(home, ".pi", "agent");
|
|
66
|
+
}
|
|
67
|
+
function displayPath(p, home = os.homedir()) {
|
|
68
|
+
return p === home || p.startsWith(home + path.sep) ? "~" + p.slice(home.length) : p;
|
|
69
|
+
}
|
|
70
|
+
const CLAUDE_USAGE_MARKERS = ["projects", "history.jsonl", "sessions", "statsig", "todos", "shell-snapshots"];
|
|
71
|
+
function claudeConfigDirInUse(dir = claudeConfigDir(), exists = fs.existsSync) {
|
|
72
|
+
return CLAUDE_USAGE_MARKERS.some((m) => exists(path.join(dir, m)));
|
|
73
|
+
}
|
|
74
|
+
const CODEX_USAGE_MARKERS = ["sessions", "history.jsonl", "auth.json"];
|
|
75
|
+
function codexHomeInUse(dir = codexHome(), exists = fs.existsSync) {
|
|
76
|
+
return CODEX_USAGE_MARKERS.some((m) => exists(path.join(dir, m)));
|
|
77
|
+
}
|