clay-server 3.4.0-beta.12 → 3.4.0-beta.14

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/lib/ws-schema.js CHANGED
@@ -30,6 +30,8 @@ var schema = {
30
30
  "search_session_content": { direction: "c2s", handler: "lib/project-sessions.js", description: "Full-text search within a session" },
31
31
  "load_more_history": { direction: "c2s", handler: "lib/project-sessions.js", description: "Request older history entries for the current session" },
32
32
  "fork_session": { direction: "c2s", handler: "lib/project-sessions.js", description: "Fork a session from a given message UUID" },
33
+ "handoff_session": { direction: "c2s", handler: "lib/project-session-handoff.js", description: "Continue the active session in a newly created agent session" },
34
+ "handoff_session_options": { direction: "c2s", handler: "lib/project-session-handoff.js", description: "Request vendors, models, and effort capabilities for the handoff dialog (response reuses the same type)" },
33
35
  "input_sync": { direction: "c2s", handler: "lib/project-sessions.js", description: "Sync the current input field text to other clients" },
34
36
  "tui_transcript_request": { direction: "c2s", handler: "lib/project-sessions.js", description: "Ask for the assistant text index of a Claude TUI session (for hover-to-grab)" },
35
37
  "split_group_create": { direction: "c2s", handler: "lib/session-split-groups.js", description: "Create a persistent two-session split group" },
@@ -49,6 +51,9 @@ var schema = {
49
51
  "search_results": { direction: "s2c", handler: "lib/public/modules/app-messages.js", description: "Session title search results" },
50
52
  "search_content_results": { direction: "s2c", handler: "lib/public/modules/app-messages.js", description: "Full-text content search results" },
51
53
  "fork_complete": { direction: "s2c", handler: "lib/public/modules/app-messages.js", description: "Fork succeeded, includes new session ID" },
54
+ "session_handoff_result": { direction: "s2c", handler: "lib/public/modules/session-actions.js", description: "Session handoff result and new target session ID" },
55
+ "handoff_context": { direction: "s2c", handler: "lib/public/modules/session-actions.js", description: "Timeline marker identifying the source of a handoff session" },
56
+ "handoff_created": { direction: "s2c", handler: "lib/public/modules/session-actions.js", description: "Timeline marker linking a source session to its handoff target" },
52
57
  "input_sync_broadcast": { direction: "s2c", handler: "lib/public/modules/app-messages.js", description: "Broadcast input text from another client" },
53
58
  "tui_transcript_state": { direction: "s2c", handler: "lib/public/modules/app-messages.js", description: "Assistant text index for a Claude TUI session (full replace; sent on request and after each new assistant message)" },
54
59
  "split_groups": { direction: "s2c", handler: "lib/public/modules/app-messages.js", description: "Full persistent split-group list for the current user" },
@@ -1072,6 +1072,7 @@ function createCodexQueryHandle(appServer, queryOpts) {
1072
1072
  await appServer.send("turn/start", {
1073
1073
  threadId: state.threadId,
1074
1074
  input: input,
1075
+ model: state.model,
1075
1076
  }, 60000);
1076
1077
 
1077
1078
  // Wait for turn to complete
@@ -1144,7 +1145,7 @@ function createCodexQueryHandle(appServer, queryOpts) {
1144
1145
  },
1145
1146
 
1146
1147
  setModel: function(model) {
1147
- // Model is set at thread creation. Cannot change mid-thread.
1148
+ state.model = model || "gpt-5.6-terra";
1148
1149
  return Promise.resolve();
1149
1150
  },
1150
1151
 
@@ -1326,7 +1327,7 @@ function createCodexAdapter(opts) {
1326
1327
  fastModeState: null,
1327
1328
  capabilities: {
1328
1329
  effort: true,
1329
- midSessionModelSwitch: false,
1330
+ midSessionModelSwitch: true,
1330
1331
  fork: true,
1331
1332
  rollback: true,
1332
1333
  sessionListing: false,
@@ -762,7 +762,7 @@ function createKiroQueryHandle(acp, queryOpts) {
762
762
 
763
763
  setModel: function(model) {
764
764
  state.model = model;
765
- return setSessionModel(model).catch(function() {});
765
+ return setSessionModel(model);
766
766
  },
767
767
 
768
768
  setEffort: function() { return Promise.resolve(); },
@@ -867,7 +867,7 @@ function createKiroAdapter(opts) {
867
867
  fastModeState: null,
868
868
  capabilities: {
869
869
  effort: false,
870
- midSessionModelSwitch: false,
870
+ midSessionModelSwitch: true,
871
871
  fork: false,
872
872
  rollback: false,
873
873
  sessionListing: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "3.4.0-beta.12",
3
+ "version": "3.4.0-beta.14",
4
4
  "description": "Self-hosted team workspace for Claude Code and Codex. Multi-user, browser-based, with persistent AI mates.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",