sim 2.2.7-preview.199.1 → 2.2.7-preview.201.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.
@@ -1873,6 +1873,7 @@ export type CreatePermissionGroupBody = {
1873
1873
  disableOAuthAppAccess?: boolean;
1874
1874
  disableKnowledgeBaseExport?: boolean;
1875
1875
  deniedPartialAccessProjectIssues?: Array<string>;
1876
+ defaultAgentModel?: string | null;
1876
1877
  };
1877
1878
  isDefault?: boolean;
1878
1879
  workspaceIds?: Array<string>;
@@ -1926,6 +1927,7 @@ type CreatePermissionGroupResponseRef0 = {
1926
1927
  disableOAuthAppAccess: boolean;
1927
1928
  disableKnowledgeBaseExport: boolean;
1928
1929
  deniedPartialAccessProjectIssues: Array<string>;
1930
+ defaultAgentModel: string | null;
1929
1931
  };
1930
1932
  isDefault: boolean;
1931
1933
  membershipMode: string;
@@ -4439,6 +4441,7 @@ type GetPermissionGroupResponseRef0 = {
4439
4441
  disableOAuthAppAccess: boolean;
4440
4442
  disableKnowledgeBaseExport: boolean;
4441
4443
  deniedPartialAccessProjectIssues: Array<string>;
4444
+ defaultAgentModel: string | null;
4442
4445
  };
4443
4446
  isDefault: boolean;
4444
4447
  membershipMode: string;
@@ -5293,6 +5296,7 @@ type GetWorkspacePermissionConfigResponseRef0 = {
5293
5296
  disableOAuthAppAccess: boolean;
5294
5297
  disableKnowledgeBaseExport: boolean;
5295
5298
  deniedPartialAccessProjectIssues: Array<string>;
5299
+ defaultAgentModel: string | null;
5296
5300
  } | null;
5297
5301
  entitled: boolean;
5298
5302
  organizationId: string | null;
@@ -6591,6 +6595,7 @@ type ListPermissionGroupsResponseRef0 = {
6591
6595
  disableOAuthAppAccess: boolean;
6592
6596
  disableKnowledgeBaseExport: boolean;
6593
6597
  deniedPartialAccessProjectIssues: Array<string>;
6598
+ defaultAgentModel: string | null;
6594
6599
  };
6595
6600
  isDefault: boolean;
6596
6601
  membershipMode: string;
@@ -9654,6 +9659,7 @@ export type UpdatePermissionGroupBody = {
9654
9659
  disableOAuthAppAccess?: boolean;
9655
9660
  disableKnowledgeBaseExport?: boolean;
9656
9661
  deniedPartialAccessProjectIssues?: Array<string>;
9662
+ defaultAgentModel?: string | null;
9657
9663
  };
9658
9664
  isDefault?: boolean;
9659
9665
  workspaceIds?: Array<string>;
@@ -9707,6 +9713,7 @@ type UpdatePermissionGroupResponseRef0 = {
9707
9713
  disableOAuthAppAccess: boolean;
9708
9714
  disableKnowledgeBaseExport: boolean;
9709
9715
  deniedPartialAccessProjectIssues: Array<string>;
9716
+ defaultAgentModel: string | null;
9710
9717
  };
9711
9718
  isDefault: boolean;
9712
9719
  membershipMode: string;
@@ -11523,7 +11530,7 @@ export declare const V2_OPERATIONS: {
11523
11530
  };
11524
11531
  readonly config: {
11525
11532
  readonly kind: 'object';
11526
- readonly describe: 'Permission restrictions to set. Omitted keys use the default permission configuration.';
11533
+ readonly describe: 'Group settings to set. Omitted keys use the default permission configuration.';
11527
11534
  };
11528
11535
  readonly isDefault: {
11529
11536
  readonly kind: 'boolean';
@@ -17880,7 +17887,7 @@ export declare const V2_OPERATIONS: {
17880
17887
  };
17881
17888
  readonly config: {
17882
17889
  readonly kind: 'object';
17883
- readonly describe: 'Patch of permission restrictions. Omitted keys remain unchanged; each supplied array replaces that entire list.';
17890
+ readonly describe: 'Patch of group settings. Omitted keys remain unchanged; each supplied array replaces that entire list.';
17884
17891
  };
17885
17892
  readonly isDefault: {
17886
17893
  readonly kind: 'boolean';
package/dist/index.js CHANGED
@@ -3331,7 +3331,7 @@ var require_commander = __commonJS(function(exports, module) {
3331
3331
  exports.InvalidOptionArgumentError = InvalidArgumentError;
3332
3332
  });
3333
3333
 
3334
- // node_modules/js-yaml/dist/js-yaml.mjs
3334
+ // ../../node_modules/js-yaml/dist/js-yaml.mjs
3335
3335
  function getDefaultExportFromCjs(x) {
3336
3336
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
3337
3337
  }
@@ -4235,7 +4235,7 @@ function requireOmap() {
4235
4235
  function resolveYamlOmap(data) {
4236
4236
  if (data === null)
4237
4237
  return true;
4238
- const objectKeys = [];
4238
+ const objectKeys = {};
4239
4239
  const object = data;
4240
4240
  for (let index = 0, length = object.length;index < length; index += 1) {
4241
4241
  const pair = object[index];
@@ -4253,10 +4253,9 @@ function requireOmap() {
4253
4253
  }
4254
4254
  if (!pairHasKey)
4255
4255
  return false;
4256
- if (objectKeys.indexOf(pairKey) === -1)
4257
- objectKeys.push(pairKey);
4258
- else
4256
+ if (_hasOwnProperty.call(objectKeys, pairKey))
4259
4257
  return false;
4258
+ Object.defineProperty(objectKeys, pairKey, { value: true });
4260
4259
  }
4261
4260
  return true;
4262
4261
  }
@@ -4666,16 +4665,21 @@ function requireLoader() {
4666
4665
  state.result += _result;
4667
4666
  }
4668
4667
  }
4668
+ function chargeMergeWork(state) {
4669
+ state.totalMergeKeys++;
4670
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
4671
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
4672
+ }
4673
+ }
4669
4674
  function mergeMappings(state, destination, source, overridableKeys) {
4670
4675
  if (!common2.isObject(source)) {
4671
4676
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
4672
4677
  }
4678
+ chargeMergeWork(state);
4673
4679
  const sourceKeys = Object.keys(source);
4674
4680
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
4675
4681
  const key = sourceKeys[index];
4676
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
4677
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
4678
- }
4682
+ chargeMergeWork(state);
4679
4683
  if (!_hasOwnProperty.call(destination, key)) {
4680
4684
  setProperty(destination, key, source[key]);
4681
4685
  overridableKeys[key] = true;
@@ -4703,6 +4707,9 @@ function requireLoader() {
4703
4707
  }
4704
4708
  if (keyTag === "tag:yaml.org,2002:merge") {
4705
4709
  if (Array.isArray(valueNode)) {
4710
+ if (valueNode.length > 100) {
4711
+ throwError(state, "abnormal merge sequence size");
4712
+ }
4706
4713
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
4707
4714
  mergeMappings(state, _result, valueNode[index], overridableKeys);
4708
4715
  }
@@ -10518,7 +10525,7 @@ var V2_OPERATIONS = {
10518
10525
  description: { kind: "string", describe: "Optional group description." },
10519
10526
  config: {
10520
10527
  kind: "object",
10521
- describe: "Permission restrictions to set. Omitted keys use the default permission configuration."
10528
+ describe: "Group settings to set. Omitted keys use the default permission configuration."
10522
10529
  },
10523
10530
  isDefault: {
10524
10531
  kind: "boolean",
@@ -16430,7 +16437,7 @@ var V2_OPERATIONS = {
16430
16437
  },
16431
16438
  config: {
16432
16439
  kind: "object",
16433
- describe: "Patch of permission restrictions. Omitted keys remain unchanged; each supplied array replaces that entire list."
16440
+ describe: "Patch of group settings. Omitted keys remain unchanged; each supplied array replaces that entire list."
16434
16441
  },
16435
16442
  isDefault: {
16436
16443
  kind: "boolean",
package/dist/runtime.js CHANGED
@@ -5327,7 +5327,7 @@ function resolvePath(template, params = {}) {
5327
5327
  });
5328
5328
  }
5329
5329
 
5330
- // node_modules/js-yaml/dist/js-yaml.mjs
5330
+ // ../../node_modules/js-yaml/dist/js-yaml.mjs
5331
5331
  function getDefaultExportFromCjs(x) {
5332
5332
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
5333
5333
  }
@@ -6231,7 +6231,7 @@ function requireOmap() {
6231
6231
  function resolveYamlOmap(data) {
6232
6232
  if (data === null)
6233
6233
  return true;
6234
- const objectKeys = [];
6234
+ const objectKeys = {};
6235
6235
  const object = data;
6236
6236
  for (let index = 0, length = object.length;index < length; index += 1) {
6237
6237
  const pair = object[index];
@@ -6249,10 +6249,9 @@ function requireOmap() {
6249
6249
  }
6250
6250
  if (!pairHasKey)
6251
6251
  return false;
6252
- if (objectKeys.indexOf(pairKey) === -1)
6253
- objectKeys.push(pairKey);
6254
- else
6252
+ if (_hasOwnProperty.call(objectKeys, pairKey))
6255
6253
  return false;
6254
+ Object.defineProperty(objectKeys, pairKey, { value: true });
6256
6255
  }
6257
6256
  return true;
6258
6257
  }
@@ -6662,16 +6661,21 @@ function requireLoader() {
6662
6661
  state.result += _result;
6663
6662
  }
6664
6663
  }
6664
+ function chargeMergeWork(state) {
6665
+ state.totalMergeKeys++;
6666
+ if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
6667
+ throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
6668
+ }
6669
+ }
6665
6670
  function mergeMappings(state, destination, source, overridableKeys) {
6666
6671
  if (!common2.isObject(source)) {
6667
6672
  throwError(state, "cannot merge mappings; the provided source object is unacceptable");
6668
6673
  }
6674
+ chargeMergeWork(state);
6669
6675
  const sourceKeys = Object.keys(source);
6670
6676
  for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
6671
6677
  const key = sourceKeys[index];
6672
- if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
6673
- throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
6674
- }
6678
+ chargeMergeWork(state);
6675
6679
  if (!_hasOwnProperty.call(destination, key)) {
6676
6680
  setProperty(destination, key, source[key]);
6677
6681
  overridableKeys[key] = true;
@@ -6699,6 +6703,9 @@ function requireLoader() {
6699
6703
  }
6700
6704
  if (keyTag === "tag:yaml.org,2002:merge") {
6701
6705
  if (Array.isArray(valueNode)) {
6706
+ if (valueNode.length > 100) {
6707
+ throwError(state, "abnormal merge sequence size");
6708
+ }
6702
6709
  for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
6703
6710
  mergeMappings(state, _result, valueNode[index], overridableKeys);
6704
6711
  }
@@ -10567,7 +10574,7 @@ var V2_OPERATIONS = {
10567
10574
  description: { kind: "string", describe: "Optional group description." },
10568
10575
  config: {
10569
10576
  kind: "object",
10570
- describe: "Permission restrictions to set. Omitted keys use the default permission configuration."
10577
+ describe: "Group settings to set. Omitted keys use the default permission configuration."
10571
10578
  },
10572
10579
  isDefault: {
10573
10580
  kind: "boolean",
@@ -16479,7 +16486,7 @@ var V2_OPERATIONS = {
16479
16486
  },
16480
16487
  config: {
16481
16488
  kind: "object",
16482
- describe: "Patch of permission restrictions. Omitted keys remain unchanged; each supplied array replaces that entire list."
16489
+ describe: "Patch of group settings. Omitted keys remain unchanged; each supplied array replaces that entire list."
16483
16490
  },
16484
16491
  isDefault: {
16485
16492
  kind: "boolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.2.7-preview.199.1",
3
+ "version": "2.2.7-preview.201.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "imports": {