@outlit/cli 1.9.0 → 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.
- package/dist/cli.js +34 -4
- package/package.json +2 -2
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.
|
|
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: {
|
|
@@ -147,7 +147,7 @@ var init_package = __esm(() => {
|
|
|
147
147
|
},
|
|
148
148
|
dependencies: {
|
|
149
149
|
"@clack/prompts": "^1.0.1",
|
|
150
|
-
"@outlit/tools": "^0.3.
|
|
150
|
+
"@outlit/tools": "^0.3.1",
|
|
151
151
|
citty: "^0.2.1"
|
|
152
152
|
},
|
|
153
153
|
devDependencies: {
|
|
@@ -2069,6 +2069,18 @@ var init_dist4 = __esm(() => {
|
|
|
2069
2069
|
type: "string",
|
|
2070
2070
|
minLength: 1,
|
|
2071
2071
|
maxLength: 500
|
|
2072
|
+
},
|
|
2073
|
+
limit: {
|
|
2074
|
+
description: "Slack replies per page (default 50, maximum 100). Ignored for other source types.",
|
|
2075
|
+
type: "integer",
|
|
2076
|
+
minimum: 1,
|
|
2077
|
+
maximum: 100
|
|
2078
|
+
},
|
|
2079
|
+
cursor: {
|
|
2080
|
+
description: "Opaque Slack reply cursor returned by a previous exact lookup.",
|
|
2081
|
+
type: "string",
|
|
2082
|
+
minLength: 1,
|
|
2083
|
+
maxLength: 2000
|
|
2072
2084
|
}
|
|
2073
2085
|
},
|
|
2074
2086
|
required: ["sourceType", "sourceId"],
|
|
@@ -6348,6 +6360,7 @@ var init_get4 = __esm(() => {
|
|
|
6348
6360
|
"",
|
|
6349
6361
|
"Examples:",
|
|
6350
6362
|
" outlit sources get --source-type CALL --source-id call_123",
|
|
6363
|
+
" outlit sources get --source-type SLACK --source-id thread_123 --limit 50",
|
|
6351
6364
|
" outlit sources get --source-type OPPORTUNITY --source-id opp_123",
|
|
6352
6365
|
" outlit sources get --source-type SUPPORT_TICKET --source-id ticket_456 --json",
|
|
6353
6366
|
"",
|
|
@@ -6370,6 +6383,14 @@ var init_get4 = __esm(() => {
|
|
|
6370
6383
|
type: "string",
|
|
6371
6384
|
description: "Exact source id",
|
|
6372
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."
|
|
6373
6394
|
}
|
|
6374
6395
|
},
|
|
6375
6396
|
async run({ args }) {
|
|
@@ -6381,10 +6402,19 @@ var init_get4 = __esm(() => {
|
|
|
6381
6402
|
code: "invalid_input"
|
|
6382
6403
|
}, json);
|
|
6383
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
|
+
}
|
|
6384
6412
|
const client = await getClientOrExit(args["api-key"], json);
|
|
6385
6413
|
return runTool(client, customerToolContracts.outlit_get_source.toolName, {
|
|
6386
6414
|
sourceType,
|
|
6387
|
-
sourceId: args["source-id"]
|
|
6415
|
+
sourceId: args["source-id"],
|
|
6416
|
+
...limit !== undefined ? { limit } : {},
|
|
6417
|
+
...args.cursor ? { cursor: args.cursor } : {}
|
|
6388
6418
|
}, json);
|
|
6389
6419
|
}
|
|
6390
6420
|
});
|
|
@@ -10710,7 +10740,7 @@ var init_completions = __esm(() => {
|
|
|
10710
10740
|
name: "get",
|
|
10711
10741
|
desc: "Get one exact source record",
|
|
10712
10742
|
flags: [
|
|
10713
|
-
...
|
|
10743
|
+
...PAGINATED,
|
|
10714
10744
|
{ name: "--source-type", desc: "Source type" },
|
|
10715
10745
|
{ name: "--source-id", desc: "Exact source ID" }
|
|
10716
10746
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outlit/cli",
|
|
3
|
-
"version": "1.9.
|
|
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": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@clack/prompts": "^1.0.1",
|
|
46
|
-
"@outlit/tools": "^0.3.
|
|
46
|
+
"@outlit/tools": "^0.3.1",
|
|
47
47
|
"citty": "^0.2.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|