replicas-cli 0.3.661 → 0.3.662

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 (2) hide show
  1. package/dist/index.cjs +18 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -42998,7 +42998,7 @@ var init_organizations = __esm({
42998
42998
  });
42999
42999
 
43000
43000
  // ../shared/src/harness/types.ts
43001
- var HARNESS_THREAD_STATUSES, textSchema, imageSchema, userMessageSchema, assistantMessageSchema, toolResultMessageSchema, harnessAgentOutcomeSchema, HARNESS_AGENT_TYPES, harnessThreadOriginSchema, harnessInboxPayloadSchemas, harnessEventBodySchema, harnessLiveMessageSchema, HARNESS_LIVE_MAX_BYTES, harnessWorkspaceLiveMessageSchema;
43001
+ var HARNESS_THREAD_STATUSES, textSchema, imageSchema, userMessageSchema, assistantMessageSchema, toolResultMessageSchema, harnessAgentOutcomeSchema, HARNESS_AGENT_TYPES, harnessAgentOriginSchema, harnessSwitchOriginSchema, harnessThreadOriginSchema, harnessThreadOriginMetaSchema, harnessInboxPayloadSchemas, harnessEventBodySchema, harnessLiveMessageSchema, HARNESS_LIVE_MAX_BYTES, harnessWorkspaceLiveMessageSchema;
43002
43002
  var init_types8 = __esm({
43003
43003
  "../shared/src/harness/types.ts"() {
43004
43004
  "use strict";
@@ -43050,13 +43050,28 @@ var init_types8 = __esm({
43050
43050
  response: external_exports.string()
43051
43051
  });
43052
43052
  HARNESS_AGENT_TYPES = ["general", "explore", "execute"];
43053
- harnessThreadOriginSchema = external_exports.object({
43053
+ harnessAgentOriginSchema = external_exports.object({
43054
43054
  kind: external_exports.enum(["side_chat", "subagent"]),
43055
43055
  agentType: external_exports.enum(HARNESS_AGENT_TYPES).optional(),
43056
43056
  parentThreadId: external_exports.string().uuid(),
43057
43057
  depth: external_exports.number().int().nonnegative(),
43058
43058
  message: userMessageSchema
43059
43059
  });
43060
+ harnessSwitchOriginSchema = external_exports.object({
43061
+ kind: external_exports.literal("switch"),
43062
+ sourceChatId: external_exports.string().min(1),
43063
+ sourceProvider: external_exports.enum(VALID_AGENT_PROVIDERS),
43064
+ sourceTitle: external_exports.string(),
43065
+ message: userMessageSchema
43066
+ });
43067
+ harnessThreadOriginSchema = external_exports.discriminatedUnion("kind", [
43068
+ harnessAgentOriginSchema,
43069
+ harnessSwitchOriginSchema
43070
+ ]);
43071
+ harnessThreadOriginMetaSchema = external_exports.discriminatedUnion("kind", [
43072
+ harnessAgentOriginSchema.omit({ message: true }),
43073
+ harnessSwitchOriginSchema.omit({ message: true })
43074
+ ]);
43060
43075
  harnessInboxPayloadSchemas = {
43061
43076
  message: external_exports.looseObject({
43062
43077
  message: userMessageSchema,
@@ -43393,7 +43408,7 @@ var CLI_VERSION;
43393
43408
  var init_cli_version = __esm({
43394
43409
  "../shared/src/cli-version.ts"() {
43395
43410
  "use strict";
43396
- CLI_VERSION = "0.3.661";
43411
+ CLI_VERSION = "0.3.662";
43397
43412
  }
43398
43413
  });
43399
43414
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.661",
3
+ "version": "0.3.662",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {