@ai-hero/cookout 0.2.0 → 0.2.1

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/dist/main.js CHANGED
@@ -19594,7 +19594,7 @@ const schema275 = {
19594
19594
  "additionalProperties": true
19595
19595
  }] }
19596
19596
  },
19597
- "required": ["agents", "identity"],
19597
+ "required": ["identity"],
19598
19598
  "additionalProperties": true,
19599
19599
  "$defs": {
19600
19600
  "IdentityName": {
@@ -19632,7 +19632,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
19632
19632
  if (errors === 0) {
19633
19633
  if (data && typeof data == "object" && !Array.isArray(data)) {
19634
19634
  let missing0;
19635
- if (data.agents === void 0 && (missing0 = "agents") || data.identity === void 0 && (missing0 = "identity")) {
19635
+ if (data.identity === void 0 && (missing0 = "identity")) {
19636
19636
  validate59.errors = [{
19637
19637
  instancePath,
19638
19638
  schemaPath: "#/required",
@@ -58104,6 +58104,7 @@ const SentDisplayNameSchema = Schema.String.pipe(Schema.decodeTo(DisplayNameSche
58104
58104
  const DescriptionSchema$2 = Schema.String.check(Schema.isTrimmed({ message: "Use no space at either end." }), Schema.isBetweenLength(descriptionLength.minimum, descriptionLength.maximum, { message: "Use 1-500 characters." })).pipe(Schema.refine(isDescription, { identifier: "Description" }));
58105
58105
  const SentDescriptionSchema = Schema.String.pipe(Schema.decodeTo(DescriptionSchema$2, SchemaTransformation.trim()));
58106
58106
  const TokenSchema$2 = Schema.String.check(Schema.isPattern(tokenPattern)).pipe(Schema.refine(isToken, { identifier: "Token" }));
58107
+ const DeprecatedAgentsSchema = Schema.optionalKey(Schema.Array(IdentityNameSchema$2));
58107
58108
  const HumanIdentitySchema = Schema.Struct({
58108
58109
  admin: Schema.Boolean,
58109
58110
  createdAt: IsoTimeSchema,
@@ -58131,7 +58132,7 @@ const IdentityWithTokenResponseSchema = matchesWire()(Schema.Struct({
58131
58132
  }));
58132
58133
  const ListIdentitiesResponseSchema = matchesWire()(Schema.Struct({ identities: Schema.Array(IdentitySchema) }));
58133
58134
  const DeactivateIdentityResponseSchema = matchesWire()(Schema.Struct({
58134
- agents: Schema.Array(IdentityNameSchema$2),
58135
+ agents: DeprecatedAgentsSchema,
58135
58136
  identity: IdentitySchema
58136
58137
  }));
58137
58138
  const IdentityMessageCountResponseSchema = matchesWire()(Schema.Struct({ messages: MessageCountSchema }));
@@ -64802,7 +64803,7 @@ const loginCommand = Command.make("login", {
64802
64803
  const logoutUrlFlag = Flag.String("url").pipe(Flag.optional, Flag.withDescription("The board to log out of. Default: COOKOUT_URL, else this machine's default board."));
64803
64804
  const logoutCommand = Command.make("logout", { url: logoutUrlFlag }, ({ url }) => logOut(url).pipe(proxied, answered)).pipe(Command.withDescription("Remove this machine's Login for a board, and revoke it on the server if it came from a browser login."));
64804
64805
  // package.json
64805
- var version = "0.2.0";
64806
+ var version = "0.2.1";
64806
64807
  // app/modules/cli/lib/server/agent-join.ts
64807
64808
  const NOTHING$5 = {};
64808
64809
  const pollEvery = Duration.seconds(2);
package/dist/sdk.d.ts CHANGED
@@ -147,8 +147,8 @@ interface ListIdentitiesQuery {
147
147
  /** The answer to `POST /v1/identities/:name/deactivate`: the deactivated identity. */
148
148
  interface DeactivateIdentityResponse {
149
149
  readonly identity: Identity;
150
- /** @deprecated Always empty, since a human's agents stay active; kept one release for older clients. */
151
- readonly agents: readonly IdentityName[];
150
+ /** @deprecated Always empty, since a human's agents stay active; sent for clients at 0.2.0 or older, which need it. */
151
+ readonly agents?: readonly IdentityName[];
152
152
  }
153
153
  /**
154
154
  * The body of `POST /v1/identities`. Any human may create an agent it owns; only an admin may create a human, or an
package/dist/sdk.js CHANGED
@@ -18821,7 +18821,7 @@ const schema275 = {
18821
18821
  "additionalProperties": true
18822
18822
  }] }
18823
18823
  },
18824
- "required": ["agents", "identity"],
18824
+ "required": ["identity"],
18825
18825
  "additionalProperties": true,
18826
18826
  "$defs": {
18827
18827
  "IdentityName": {
@@ -18859,7 +18859,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
18859
18859
  if (errors === 0) {
18860
18860
  if (data && typeof data == "object" && !Array.isArray(data)) {
18861
18861
  let missing0;
18862
- if (data.agents === void 0 && (missing0 = "agents") || data.identity === void 0 && (missing0 = "identity")) {
18862
+ if (data.identity === void 0 && (missing0 = "identity")) {
18863
18863
  validate59.errors = [{
18864
18864
  instancePath,
18865
18865
  schemaPath: "#/required",