@autohq/cli 0.1.597 → 0.1.598

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.
@@ -37736,7 +37736,7 @@ Object.assign(lookup, {
37736
37736
  // package.json
37737
37737
  var package_default = {
37738
37738
  name: "@autohq/cli",
37739
- version: "0.1.597",
37739
+ version: "0.1.598",
37740
37740
  license: "SEE LICENSE IN README.md",
37741
37741
  publishConfig: {
37742
37742
  access: "public"
@@ -45524,7 +45524,8 @@ var ProjectHomeReadModelSchema = external_exports.object({
45524
45524
  name: external_exports.string().trim().min(1),
45525
45525
  tagline: external_exports.string().trim().min(1).nullable(),
45526
45526
  backdrop: DashboardViewKindSchema.nullable(),
45527
- pinnedAgentName: ResourceNameSchema.nullable()
45527
+ pinnedAgentName: ResourceNameSchema.nullable(),
45528
+ pinnedSessionId: SessionIdSchema2.nullable()
45528
45529
  }).strict(),
45529
45530
  agents: external_exports.array(ProjectHomeAgentSchema),
45530
45531
  stats: external_exports.object({
@@ -45946,6 +45947,58 @@ var ProjectResourceApplyWorkflowResultSchema = external_exports.discriminatedUni
45946
45947
  ]
45947
45948
  );
45948
45949
 
45950
+ // ../../packages/schemas/src/project-session-pins.ts
45951
+ var PROJECT_SESSION_PIN_TARGET_TYPES = [
45952
+ "session",
45953
+ "agent-singleton"
45954
+ ];
45955
+ var PROJECT_SESSION_PIN_LIMIT = 50;
45956
+ var ProjectSessionPinTargetTypeSchema = external_exports.enum(
45957
+ PROJECT_SESSION_PIN_TARGET_TYPES
45958
+ );
45959
+ var ProjectSessionPinTargetSchema = external_exports.discriminatedUnion("type", [
45960
+ external_exports.object({
45961
+ type: external_exports.literal("session"),
45962
+ sessionId: SessionIdSchema2
45963
+ }).strict(),
45964
+ external_exports.object({
45965
+ type: external_exports.literal("agent-singleton"),
45966
+ agentResourceId: AgentIdSchema
45967
+ }).strict()
45968
+ ]);
45969
+ function projectSessionPinTargetKey(target) {
45970
+ switch (target.type) {
45971
+ case "session":
45972
+ return `session:${target.sessionId}`;
45973
+ case "agent-singleton":
45974
+ return `agent-singleton:${target.agentResourceId}`;
45975
+ }
45976
+ }
45977
+ var ProjectSessionPinSchema = external_exports.object({
45978
+ id: external_exports.string().trim().min(1),
45979
+ position: external_exports.number().int().nonnegative(),
45980
+ target: ProjectSessionPinTargetSchema,
45981
+ resolvedSessionId: SessionIdSchema2.nullable(),
45982
+ agentName: ResourceNameSchema
45983
+ }).strict();
45984
+ var ProjectSessionPinTargetRequestSchema = external_exports.object({ target: ProjectSessionPinTargetSchema }).strict();
45985
+ var ProjectSessionPinReorderRequestSchema = external_exports.object({
45986
+ targets: external_exports.array(ProjectSessionPinTargetSchema).max(PROJECT_SESSION_PIN_LIMIT)
45987
+ }).strict().superRefine((value2, context) => {
45988
+ const keys = /* @__PURE__ */ new Set();
45989
+ for (const [index, target] of value2.targets.entries()) {
45990
+ const key = projectSessionPinTargetKey(target);
45991
+ if (keys.has(key)) {
45992
+ context.addIssue({
45993
+ code: "custom",
45994
+ message: "Project Session pin reorder targets must be unique",
45995
+ path: ["targets", index]
45996
+ });
45997
+ }
45998
+ keys.add(key);
45999
+ }
46000
+ });
46001
+
45949
46002
  // ../../packages/schemas/src/session-diagnostics.ts
45950
46003
  var SESSION_DIAGNOSTIC_REALTIME_EVENT = "session.diagnostic";
45951
46004
  var SESSION_DIAGNOSTIC_LEVELS = [
package/dist/index.js CHANGED
@@ -22738,7 +22738,8 @@ var init_project_config = __esm({
22738
22738
  name: external_exports.string().trim().min(1),
22739
22739
  tagline: external_exports.string().trim().min(1).nullable(),
22740
22740
  backdrop: DashboardViewKindSchema.nullable(),
22741
- pinnedAgentName: ResourceNameSchema.nullable()
22741
+ pinnedAgentName: ResourceNameSchema.nullable(),
22742
+ pinnedSessionId: SessionIdSchema.nullable()
22742
22743
  }).strict(),
22743
22744
  agents: external_exports.array(ProjectHomeAgentSchema),
22744
22745
  stats: external_exports.object({
@@ -23268,6 +23269,67 @@ var init_project_resources = __esm({
23268
23269
  }
23269
23270
  });
23270
23271
 
23272
+ // ../../packages/schemas/src/project-session-pins.ts
23273
+ function projectSessionPinTargetKey(target) {
23274
+ switch (target.type) {
23275
+ case "session":
23276
+ return `session:${target.sessionId}`;
23277
+ case "agent-singleton":
23278
+ return `agent-singleton:${target.agentResourceId}`;
23279
+ }
23280
+ }
23281
+ var PROJECT_SESSION_PIN_TARGET_TYPES, PROJECT_SESSION_PIN_LIMIT, ProjectSessionPinTargetTypeSchema, ProjectSessionPinTargetSchema, ProjectSessionPinSchema, ProjectSessionPinTargetRequestSchema, ProjectSessionPinReorderRequestSchema;
23282
+ var init_project_session_pins = __esm({
23283
+ "../../packages/schemas/src/project-session-pins.ts"() {
23284
+ "use strict";
23285
+ init_zod();
23286
+ init_ids();
23287
+ init_resources();
23288
+ PROJECT_SESSION_PIN_TARGET_TYPES = [
23289
+ "session",
23290
+ "agent-singleton"
23291
+ ];
23292
+ PROJECT_SESSION_PIN_LIMIT = 50;
23293
+ ProjectSessionPinTargetTypeSchema = external_exports.enum(
23294
+ PROJECT_SESSION_PIN_TARGET_TYPES
23295
+ );
23296
+ ProjectSessionPinTargetSchema = external_exports.discriminatedUnion("type", [
23297
+ external_exports.object({
23298
+ type: external_exports.literal("session"),
23299
+ sessionId: SessionIdSchema
23300
+ }).strict(),
23301
+ external_exports.object({
23302
+ type: external_exports.literal("agent-singleton"),
23303
+ agentResourceId: AgentIdSchema
23304
+ }).strict()
23305
+ ]);
23306
+ ProjectSessionPinSchema = external_exports.object({
23307
+ id: external_exports.string().trim().min(1),
23308
+ position: external_exports.number().int().nonnegative(),
23309
+ target: ProjectSessionPinTargetSchema,
23310
+ resolvedSessionId: SessionIdSchema.nullable(),
23311
+ agentName: ResourceNameSchema
23312
+ }).strict();
23313
+ ProjectSessionPinTargetRequestSchema = external_exports.object({ target: ProjectSessionPinTargetSchema }).strict();
23314
+ ProjectSessionPinReorderRequestSchema = external_exports.object({
23315
+ targets: external_exports.array(ProjectSessionPinTargetSchema).max(PROJECT_SESSION_PIN_LIMIT)
23316
+ }).strict().superRefine((value, context) => {
23317
+ const keys = /* @__PURE__ */ new Set();
23318
+ for (const [index, target] of value.targets.entries()) {
23319
+ const key = projectSessionPinTargetKey(target);
23320
+ if (keys.has(key)) {
23321
+ context.addIssue({
23322
+ code: "custom",
23323
+ message: "Project Session pin reorder targets must be unique",
23324
+ path: ["targets", index]
23325
+ });
23326
+ }
23327
+ keys.add(key);
23328
+ }
23329
+ });
23330
+ }
23331
+ });
23332
+
23271
23333
  // ../../packages/schemas/src/realtime.ts
23272
23334
  var RunRealtimeEventSchema;
23273
23335
  var init_realtime = __esm({
@@ -88115,6 +88177,7 @@ var init_src = __esm({
88115
88177
  init_project_automation_pause();
88116
88178
  init_project_service_accounts();
88117
88179
  init_project_resources();
88180
+ init_project_session_pins();
88118
88181
  init_primitives();
88119
88182
  init_realtime();
88120
88183
  init_resources();
@@ -90910,7 +90973,7 @@ var init_package = __esm({
90910
90973
  "package.json"() {
90911
90974
  package_default = {
90912
90975
  name: "@autohq/cli",
90913
- version: "0.1.597",
90976
+ version: "0.1.598",
90914
90977
  license: "SEE LICENSE IN README.md",
90915
90978
  publishConfig: {
90916
90979
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.597",
3
+ "version": "0.1.598",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"