gestalt-mobile 0.61.0 → 0.62.0

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.
Files changed (25) hide show
  1. package/README.md +44 -7
  2. package/dist/client/assets/{index-Cp-JfcNd.css → index-CRnoGk06.css} +1 -1
  3. package/dist/client/assets/{index-DeNYHfGR.js → index-DehRk2EQ.js} +7 -3
  4. package/dist/client/index.html +2 -2
  5. package/dist/server/server/composition.contracts.js +23 -6
  6. package/dist/server/server/composition.js +53 -3
  7. package/dist/server/server/features/autopilot/application/policy.js +3 -3
  8. package/dist/server/server/features/plans/application/parse-model-policy.js +4 -4
  9. package/dist/server/server/features/plans/application/parse-supervised-plan.js +5 -0
  10. package/dist/server/server/features/plans/application/supervised-plan-registry.js +11 -2
  11. package/dist/server/server/features/plans/domain/model-policy-admission.js +14 -12
  12. package/dist/server/server/features/plans/domain/supervised-plan.js +4 -0
  13. package/dist/server/server/features/sessions/model/relay-session.js +17 -2
  14. package/dist/server/server/features/sessions/start-session/use-case.js +1 -0
  15. package/dist/server/server/features/skills/list-available/endpoint.js +1 -0
  16. package/dist/server/server/features/skills/list-profiles/endpoint.js +1 -0
  17. package/dist/server/server/features/skills/model/skill-profile.js +20 -7
  18. package/dist/server/server/features/skills/replace-profile/endpoint.js +6 -1
  19. package/dist/server/server/platform/codex/codex-playwright.js +399 -0
  20. package/dist/server/server/platform/codex/managed-playwright.js +150 -0
  21. package/dist/server/server/platform/codex/session-runtime.js +38 -7
  22. package/dist/server/server/platform/skills/codex-skill-catalog.js +1 -1
  23. package/dist/server/shared/contracts/managed-playwright.js +34 -0
  24. package/dist/server/shared/contracts/profile-capabilities.js +13 -0
  25. package/package.json +1 -1
@@ -72,7 +72,7 @@ export class CodexSkillCatalog {
72
72
  const stable = availableSkillSchema.safeParse(skill);
73
73
  if (!stable.success)
74
74
  throw new SkillProfileError('INVALID_SKILL_DISCOVERY', 'Invalid Codex skill metadata.');
75
- return stable.data.name === 'gestalt:xerj'
75
+ return ['gestalt:xerj', 'gestalt:playwright'].includes(stable.data.name)
76
76
  ? { ...stable.data, enabled: false }
77
77
  : stable.data;
78
78
  });
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright (C) 2026 Dyne.org foundation
3
+ * Designed by Denis Roio <jaromil@dyne.org>
4
+ * SPDX-License-Identifier: AGPL-3.0-or-later
5
+ */
6
+ import { z } from 'zod';
7
+ export const managedPlaywrightRequestSchema = z
8
+ .object({
9
+ capability: z.literal('playwright'),
10
+ action: z.enum(['start', 'status', 'stop']),
11
+ planId: z.string().min(1).max(256).optional(),
12
+ })
13
+ .strict();
14
+ export const gestaltManagedPlaywrightDynamicTool = {
15
+ type: 'function',
16
+ name: 'gestalt_managed_playwright',
17
+ description: 'Request, inspect or release managed browser access for this root session. Profile consent is required. Start/stop may remain pending until a safe owned-runtime resume; tools and browser guidance are usable only after connected verification. Never starts a turn or clears Manual Off or attention. No commands, paths or environment accepted.',
18
+ inputSchema: {
19
+ type: 'object',
20
+ additionalProperties: false,
21
+ required: ['capability', 'action'],
22
+ properties: {
23
+ capability: { type: 'string', enum: ['playwright'] },
24
+ action: { type: 'string', enum: ['start', 'status', 'stop'] },
25
+ planId: { type: 'string', minLength: 1, maxLength: 256 },
26
+ },
27
+ },
28
+ };
29
+ export function isManagedPlaywrightCall(input) {
30
+ return (input.method === 'item/tool/call' &&
31
+ !!input.params &&
32
+ typeof input.params === 'object' &&
33
+ input.params.tool === gestaltManagedPlaywrightDynamicTool.name);
34
+ }
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Copyright (C) 2026 Dyne.org foundation
3
+ * Designed by Denis Roio <jaromil@dyne.org>
4
+ * SPDX-License-Identifier: AGPL-3.0-or-later
5
+ */
6
+ import { z } from 'zod';
7
+ /** Consent only. Runtime readiness and process ownership are separate concerns. */
8
+ export const profileCapabilitiesSchema = z
9
+ .object({ playwright: z.object({ enabled: z.boolean() }).strict() })
10
+ .strict();
11
+ export function disabledProfileCapabilities() {
12
+ return { playwright: { enabled: false } };
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gestalt-mobile",
3
- "version": "0.61.0",
3
+ "version": "0.62.0",
4
4
  "description": "Mobile-first web relay for durable Codex development sessions",
5
5
  "keywords": [
6
6
  "codex",