impel-cli 0.20.16 → 0.20.17
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 +8 -4
- package/RELEASE_NOTES.md +9 -0
- package/package.json +1 -1
- package/src/apps.js +10 -2
- package/src/codexSecurity.js +18 -0
- package/src/sessionCollector.js +2 -1
- package/src/sessionHooks.js +4 -0
package/README.md
CHANGED
|
@@ -378,10 +378,14 @@ control-plane HTTP bearer credential, and fixes tenant selection in the
|
|
|
378
378
|
transport header. Generated Claude/Codex MCP entries contain neither the PAT
|
|
379
379
|
nor a tenant-derived credential.
|
|
380
380
|
|
|
381
|
-
- The pinned Impel Claude Desktop
|
|
382
|
-
|
|
383
|
-
-
|
|
384
|
-
|
|
381
|
+
- The pinned Impel Claude Desktop renders the standard MCP Apps task board when
|
|
382
|
+
its host supports that protocol.
|
|
383
|
+
- The exact pinned Impel Codex desktop profile enables its reviewed
|
|
384
|
+
`enable_mcp_apps` contract so `show_tasks` can render the same board. The
|
|
385
|
+
vendor-pin test fails closed if the embedded Codex binary stops accepting it.
|
|
386
|
+
- Claude Code and Codex CLI profiles remain headless and receive complete task
|
|
387
|
+
tools plus text results; the desktop-only renderer flag is never written to
|
|
388
|
+
those profiles.
|
|
385
389
|
- Profiles preserve unrelated MCP servers. If a user-authored server already
|
|
386
390
|
owns the `impel-tasks` name, setup/update fails with remediation instead of
|
|
387
391
|
overwriting it.
|
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release notes
|
|
2
2
|
|
|
3
|
+
## 0.20.17 — Managed desktop task views
|
|
4
|
+
|
|
5
|
+
- Enables the reviewed MCP Apps renderer only in exact managed Codex Desktop
|
|
6
|
+
profiles, while keeping Codex CLI profiles on their text and tool fallback.
|
|
7
|
+
- Captures Claude permission, notification, and task lifecycle events through
|
|
8
|
+
the existing asynchronous, tenant-bound session hooks.
|
|
9
|
+
- Preserves the additional lifecycle context needed to correlate task updates
|
|
10
|
+
without expanding the oversized-hook payload boundary.
|
|
11
|
+
|
|
3
12
|
## 0.20.16 — Correlated Codex transport timing
|
|
4
13
|
|
|
5
14
|
- Derives native-agent MCP duration from correlated, timestamped Codex rollout
|
package/package.json
CHANGED
package/src/apps.js
CHANGED
|
@@ -5,6 +5,7 @@ import crypto from "node:crypto";
|
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import {
|
|
8
|
+
enableManagedCodexDesktopMcpApps,
|
|
8
9
|
hardenManagedCodexToml,
|
|
9
10
|
secureAllManagedCodexHomes,
|
|
10
11
|
secureManagedCodexHome,
|
|
@@ -281,7 +282,9 @@ export function managedAppIdentity(target, tenantId = null, tenantName = null) {
|
|
|
281
282
|
// expose direct-answer native agents through their one-shot local MCP binding.
|
|
282
283
|
// 30: generate integrity-tracked top-level Codex profiles and direct code-mode
|
|
283
284
|
// namespaces for fixed native-agent bindings.
|
|
284
|
-
|
|
285
|
+
// 31: enable the reviewed MCP Apps renderer in pinned Codex Desktop profiles
|
|
286
|
+
// and install Claude task, notification, and permission lifecycle hooks.
|
|
287
|
+
export const CURRENT_CONFIG_VERSION = 31;
|
|
285
288
|
|
|
286
289
|
// Identifies the bundle-BUILDING logic — the asar patches, plist rewrites,
|
|
287
290
|
// helper rebranding, and signing. A vendored bundle is rebuilt only when this
|
|
@@ -1400,7 +1403,12 @@ function writeChatGPTConfig(
|
|
|
1400
1403
|
CHATGPT_CONFIG_END,
|
|
1401
1404
|
].join("\n");
|
|
1402
1405
|
const mergedToml = mergeManagedChatGPTToml(preservedToml, managedToml);
|
|
1403
|
-
|
|
1406
|
+
const hardenedToml = hardenManagedCodexToml(mergedToml, configPath);
|
|
1407
|
+
writeAtomic(
|
|
1408
|
+
configPath,
|
|
1409
|
+
enableManagedCodexDesktopMcpApps(hardenedToml, configPath),
|
|
1410
|
+
0o600,
|
|
1411
|
+
);
|
|
1404
1412
|
secureManagedCodexHome(paths.chatgpt.codexHome);
|
|
1405
1413
|
}
|
|
1406
1414
|
|
package/src/codexSecurity.js
CHANGED
|
@@ -148,6 +148,24 @@ export function hardenManagedCodexToml(toml, configPath = "managed Codex config"
|
|
|
148
148
|
return applyManagedCodexSandboxPolicy(withoutCredentialSnapshots, configPath);
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Enable the standard MCP Apps renderer only in the exact pinned desktop
|
|
153
|
+
* profile. CLI profiles deliberately stay headless, and vendor-pin contract
|
|
154
|
+
* tests must prove that the embedded Codex binary still recognizes this flag.
|
|
155
|
+
*/
|
|
156
|
+
export function enableManagedCodexDesktopMcpApps(
|
|
157
|
+
toml,
|
|
158
|
+
configPath = "managed Codex desktop config",
|
|
159
|
+
) {
|
|
160
|
+
return upsertManagedScalar(
|
|
161
|
+
toml,
|
|
162
|
+
"features",
|
|
163
|
+
"enable_mcp_apps",
|
|
164
|
+
"true",
|
|
165
|
+
configPath,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
151
169
|
function assertSafeManagedPath(target, expectedType) {
|
|
152
170
|
const stat = lstatOrNull(target);
|
|
153
171
|
if (!stat) return null;
|
package/src/sessionCollector.js
CHANGED
|
@@ -236,7 +236,8 @@ function compactLedgerPayload(input) {
|
|
|
236
236
|
const keys = [
|
|
237
237
|
"session_id", "hook_event_name", "cwd", "permission_mode", "model", "source", "reason",
|
|
238
238
|
"turn_id", "prompt_id", "agent_id", "agent_type", "tool_name", "tool_use_id", "error",
|
|
239
|
-
"error_details", "last_assistant_message",
|
|
239
|
+
"error_details", "last_assistant_message", "notification_type", "message", "title",
|
|
240
|
+
"task_id", "task_subject", "task_description", "teammate_name", "tool_input",
|
|
240
241
|
];
|
|
241
242
|
const payload = {};
|
|
242
243
|
for (const key of keys) {
|
package/src/sessionHooks.js
CHANGED
|
@@ -12,10 +12,14 @@ const CODEX_TRUST_END = `# <<< ${RUNTIME_BRAND.product.id} managed session hook
|
|
|
12
12
|
export const CLAUDE_SESSION_EVENTS = Object.freeze([
|
|
13
13
|
"SessionStart",
|
|
14
14
|
"UserPromptSubmit",
|
|
15
|
+
"PermissionRequest",
|
|
15
16
|
"PostToolUse",
|
|
16
17
|
"PostToolUseFailure",
|
|
18
|
+
"Notification",
|
|
17
19
|
"SubagentStart",
|
|
18
20
|
"SubagentStop",
|
|
21
|
+
"TaskCreated",
|
|
22
|
+
"TaskCompleted",
|
|
19
23
|
"PreCompact",
|
|
20
24
|
"PostCompact",
|
|
21
25
|
"Stop",
|