delimit-cli 4.1.36 → 4.1.38
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/bin/delimit-cli.js +14 -0
- package/lib/cross-model-hooks.js +8 -5
- package/package.json +1 -1
package/bin/delimit-cli.js
CHANGED
|
@@ -3850,6 +3850,20 @@ program
|
|
|
3850
3850
|
console.log(chalk.dim(` Tier: pro`));
|
|
3851
3851
|
if (customerEmail) console.log(chalk.dim(` Email: ${customerEmail}`));
|
|
3852
3852
|
console.log('');
|
|
3853
|
+
|
|
3854
|
+
// Activation telemetry — notify the team
|
|
3855
|
+
try {
|
|
3856
|
+
await axios.post('https://delimit.ai/api/activation', {
|
|
3857
|
+
event: 'license_activated',
|
|
3858
|
+
license_id: licenseId,
|
|
3859
|
+
email: customerEmail,
|
|
3860
|
+
machine_hash: machineHash,
|
|
3861
|
+
version: require('../package.json').version,
|
|
3862
|
+
platform: process.platform,
|
|
3863
|
+
node_version: process.version,
|
|
3864
|
+
activated_at: new Date().toISOString(),
|
|
3865
|
+
}, { timeout: 5000 }).catch(() => {});
|
|
3866
|
+
} catch {}
|
|
3853
3867
|
});
|
|
3854
3868
|
|
|
3855
3869
|
// ---------------------------------------------------------------------------
|
package/lib/cross-model-hooks.js
CHANGED
|
@@ -342,7 +342,8 @@ function installClaudeHooks(tool, hookConfig) {
|
|
|
342
342
|
const scriptContent = '#!/bin/bash\n' + `
|
|
343
343
|
# Delimit SessionStart — generated by delimit-cli setup
|
|
344
344
|
DELIMIT_HOME="\${DELIMIT_HOME:-${delimitHome}}"
|
|
345
|
-
echo "
|
|
345
|
+
echo " <"
|
|
346
|
+
echo " === Delimit Status ==="
|
|
346
347
|
# Governance
|
|
347
348
|
if [ -f "./delimit.yml" ] || [ -f "./.delimit/policies.yml" ]; then
|
|
348
349
|
echo "Governance: active | policy=project"
|
|
@@ -378,7 +379,7 @@ if [ -d "$SESSIONS" ]; then
|
|
|
378
379
|
LATEST=$(ls -t "$SESSIONS"/session_*.json 2>/dev/null | head -1)
|
|
379
380
|
[ -n "$LATEST" ] && python3 -c "import json; d=json.load(open('$LATEST')); s=d.get('summary','')[:150]; print(f'Last session: {s}')" 2>/dev/null
|
|
380
381
|
fi
|
|
381
|
-
echo "=== Delimit Ready ==="
|
|
382
|
+
echo " === Delimit Ready ==="
|
|
382
383
|
# Self-heal: re-wrap claude binary if an update overwrote our shim
|
|
383
384
|
CLAUDE_BIN=$(PATH=$(echo "$PATH" | tr ':' '\\n' | grep -v '.delimit/shims' | tr '\\n' ':') command -v claude 2>/dev/null)
|
|
384
385
|
if [ -n "$CLAUDE_BIN" ] && [ -f "$CLAUDE_BIN" ]; then
|
|
@@ -541,8 +542,7 @@ fi
|
|
|
541
542
|
const stopScript = path.join(hooksDir, 'delimit-stop');
|
|
542
543
|
const delimitHome = path.join(home, '.delimit');
|
|
543
544
|
const stopContent = '#!/bin/bash\n' + `
|
|
544
|
-
# Delimit Stop —
|
|
545
|
-
# Preserves context for next session across all AI assistants
|
|
545
|
+
# Delimit Stop — the > in </>
|
|
546
546
|
DELIMIT_HOME="\${DELIMIT_HOME:-${delimitHome}}"
|
|
547
547
|
LEDGER_DIR="$DELIMIT_HOME/ledger"
|
|
548
548
|
|
|
@@ -556,7 +556,10 @@ fi
|
|
|
556
556
|
|
|
557
557
|
# Save session timestamp
|
|
558
558
|
echo "$(date -u +%Y-%m-%dT%H:%M:%SZ)" > "$DELIMIT_HOME/.last_session_end"
|
|
559
|
-
echo "
|
|
559
|
+
echo ""
|
|
560
|
+
echo " />"
|
|
561
|
+
echo " Session context saved. Next session picks up where you left off."
|
|
562
|
+
echo ""
|
|
560
563
|
`;
|
|
561
564
|
fs.writeFileSync(stopScript, stopContent);
|
|
562
565
|
fs.chmodSync(stopScript, '755');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delimit-cli",
|
|
3
3
|
"mcpName": "io.github.delimit-ai/delimit-mcp-server",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.38",
|
|
5
5
|
"description": "Unify Claude Code, Codex, Cursor, and Gemini CLI with persistent context, governance, and multi-model debate.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|