@outlit/cli 1.9.1 → 1.9.2

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/cli.js +21 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -104,7 +104,7 @@ var package_default;
104
104
  var init_package = __esm(() => {
105
105
  package_default = {
106
106
  name: "@outlit/cli",
107
- version: "1.9.1",
107
+ version: "1.9.2",
108
108
  description: "CLI for querying Outlit customer context and installing agent skills",
109
109
  license: "Apache-2.0",
110
110
  repository: {
@@ -6360,6 +6360,7 @@ var init_get4 = __esm(() => {
6360
6360
  "",
6361
6361
  "Examples:",
6362
6362
  " outlit sources get --source-type CALL --source-id call_123",
6363
+ " outlit sources get --source-type SLACK --source-id thread_123 --limit 50",
6363
6364
  " outlit sources get --source-type OPPORTUNITY --source-id opp_123",
6364
6365
  " outlit sources get --source-type SUPPORT_TICKET --source-id ticket_456 --json",
6365
6366
  "",
@@ -6382,6 +6383,14 @@ var init_get4 = __esm(() => {
6382
6383
  type: "string",
6383
6384
  description: "Exact source id",
6384
6385
  required: true
6386
+ },
6387
+ limit: {
6388
+ type: "string",
6389
+ description: "Slack replies per page (1-100). Default: 50. Ignored for other source types."
6390
+ },
6391
+ cursor: {
6392
+ type: "string",
6393
+ description: "Opaque Slack reply cursor returned by a previous exact lookup."
6385
6394
  }
6386
6395
  },
6387
6396
  async run({ args }) {
@@ -6393,10 +6402,19 @@ var init_get4 = __esm(() => {
6393
6402
  code: "invalid_input"
6394
6403
  }, json);
6395
6404
  }
6405
+ const limit = args.limit ? Number(args.limit) : undefined;
6406
+ if (limit !== undefined && (!Number.isInteger(limit) || limit < 1 || limit > 100)) {
6407
+ return outputError({
6408
+ message: `--limit must be an integer between 1 and 100 (got: ${args.limit})`,
6409
+ code: "invalid_input"
6410
+ }, json);
6411
+ }
6396
6412
  const client = await getClientOrExit(args["api-key"], json);
6397
6413
  return runTool(client, customerToolContracts.outlit_get_source.toolName, {
6398
6414
  sourceType,
6399
- sourceId: args["source-id"]
6415
+ sourceId: args["source-id"],
6416
+ ...limit !== undefined ? { limit } : {},
6417
+ ...args.cursor ? { cursor: args.cursor } : {}
6400
6418
  }, json);
6401
6419
  }
6402
6420
  });
@@ -10722,7 +10740,7 @@ var init_completions = __esm(() => {
10722
10740
  name: "get",
10723
10741
  desc: "Get one exact source record",
10724
10742
  flags: [
10725
- ...COMMON,
10743
+ ...PAGINATED,
10726
10744
  { name: "--source-type", desc: "Source type" },
10727
10745
  { name: "--source-id", desc: "Exact source ID" }
10728
10746
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outlit/cli",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "CLI for querying Outlit customer context and installing agent skills",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {