@outlit/cli 3.1.1 → 3.1.3

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 +322 -25
  2. 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: "3.1.1",
107
+ version: "3.1.3",
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": "^2.1.1",
150
+ "@outlit/tools": "^2.1.3",
151
151
  citty: "^0.2.1"
152
152
  },
153
153
  devDependencies: {
@@ -4046,6 +4046,7 @@ var init_dist4 = __esm(() => {
4046
4046
  "SUPPORT_TICKET",
4047
4047
  "OPPORTUNITY",
4048
4048
  "SLACK",
4049
+ "PERSON_PROFILE",
4049
4050
  "CRM",
4050
4051
  "CRM_OPPORTUNITY"
4051
4052
  ]
@@ -4073,17 +4074,21 @@ var init_dist4 = __esm(() => {
4073
4074
  "REQUIREMENTS",
4074
4075
  "PRODUCT_USAGE",
4075
4076
  "CONTACT_INFO",
4076
- "CONTACT_PREFERENCE"
4077
+ "CONTACT_PREFERENCE",
4078
+ "CONTACT_DEPARTURE",
4079
+ "CONTACT_POSITION_CHANGE",
4080
+ "CONTACT_DISENGAGEMENT"
4077
4081
  ]
4078
4082
  }
4079
4083
  },
4080
4084
  factCategories: {
4081
- description: "Optional public fact category filters. Supported values: MEMORY, CUSTOM.",
4085
+ description: "Optional public fact category filters. Supported values: MEMORY, RELATIONSHIP, CUSTOM.",
4082
4086
  type: "array",
4083
4087
  items: {
4084
4088
  type: "string",
4085
4089
  enum: [
4086
4090
  "MEMORY",
4091
+ "RELATIONSHIP",
4087
4092
  "CUSTOM"
4088
4093
  ]
4089
4094
  }
@@ -4263,7 +4268,8 @@ var init_dist4 = __esm(() => {
4263
4268
  "CALENDAR_EVENT",
4264
4269
  "SUPPORT_TICKET",
4265
4270
  "OPPORTUNITY",
4266
- "SLACK"
4271
+ "SLACK",
4272
+ "PERSON_PROFILE"
4267
4273
  ]
4268
4274
  },
4269
4275
  sourceId: {
@@ -4323,7 +4329,8 @@ var init_dist4 = __esm(() => {
4323
4329
  "CALENDAR_EVENT",
4324
4330
  "SUPPORT_TICKET",
4325
4331
  "OPPORTUNITY",
4326
- "SLACK"
4332
+ "SLACK",
4333
+ "PERSON_PROFILE"
4327
4334
  ]
4328
4335
  },
4329
4336
  {
@@ -4533,7 +4540,8 @@ var init_dist4 = __esm(() => {
4533
4540
  "CALENDAR_EVENT",
4534
4541
  "SUPPORT_TICKET",
4535
4542
  "OPPORTUNITY",
4536
- "SLACK"
4543
+ "SLACK",
4544
+ "PERSON_PROFILE"
4537
4545
  ]
4538
4546
  },
4539
4547
  {
@@ -4794,7 +4802,8 @@ var init_dist4 = __esm(() => {
4794
4802
  "CALENDAR_EVENT",
4795
4803
  "SUPPORT_TICKET",
4796
4804
  "OPPORTUNITY",
4797
- "SLACK"
4805
+ "SLACK",
4806
+ "PERSON_PROFILE"
4798
4807
  ]
4799
4808
  },
4800
4809
  sourceId: {
@@ -4854,7 +4863,8 @@ var init_dist4 = __esm(() => {
4854
4863
  "CALENDAR_EVENT",
4855
4864
  "SUPPORT_TICKET",
4856
4865
  "OPPORTUNITY",
4857
- "SLACK"
4866
+ "SLACK",
4867
+ "PERSON_PROFILE"
4858
4868
  ]
4859
4869
  },
4860
4870
  {
@@ -5064,7 +5074,8 @@ var init_dist4 = __esm(() => {
5064
5074
  "CALENDAR_EVENT",
5065
5075
  "SUPPORT_TICKET",
5066
5076
  "OPPORTUNITY",
5067
- "SLACK"
5077
+ "SLACK",
5078
+ "PERSON_PROFILE"
5068
5079
  ]
5069
5080
  },
5070
5081
  {
@@ -5174,8 +5185,10 @@ var init_dist4 = __esm(() => {
5174
5185
  "SUPPORT_TICKET",
5175
5186
  "OPPORTUNITY",
5176
5187
  "SLACK",
5188
+ "PERSON_PROFILE",
5177
5189
  "CRM",
5178
- "CRM_OPPORTUNITY"
5190
+ "CRM_OPPORTUNITY",
5191
+ "EXTRACTED"
5179
5192
  ]
5180
5193
  },
5181
5194
  sourceId: {
@@ -5184,13 +5197,13 @@ var init_dist4 = __esm(() => {
5184
5197
  maxLength: 500
5185
5198
  },
5186
5199
  limit: {
5187
- description: "Slack replies per page (default 50, maximum 100). Ignored for other source types.",
5200
+ description: "Exact content segments per page (default 10, maximum 100).",
5188
5201
  type: "integer",
5189
5202
  minimum: 1,
5190
5203
  maximum: 100
5191
5204
  },
5192
5205
  cursor: {
5193
- description: "Opaque Slack reply cursor returned by a previous exact lookup.",
5206
+ description: "Opaque cursor returned by a previous exact lookup for the same source.",
5194
5207
  type: "string",
5195
5208
  minLength: 1,
5196
5209
  maxLength: 2000
@@ -5213,7 +5226,8 @@ var init_dist4 = __esm(() => {
5213
5226
  "CALENDAR_EVENT",
5214
5227
  "SUPPORT_TICKET",
5215
5228
  "OPPORTUNITY",
5216
- "SLACK"
5229
+ "SLACK",
5230
+ "PERSON_PROFILE"
5217
5231
  ]
5218
5232
  },
5219
5233
  sourceId: {
@@ -5385,6 +5399,135 @@ var init_dist4 = __esm(() => {
5385
5399
  type: "string"
5386
5400
  },
5387
5401
  additionalProperties: {}
5402
+ },
5403
+ contentPage: {
5404
+ type: "object",
5405
+ properties: {
5406
+ sourceType: {
5407
+ type: "string",
5408
+ enum: [
5409
+ "EMAIL",
5410
+ "CALL",
5411
+ "CALENDAR_EVENT",
5412
+ "SUPPORT_TICKET",
5413
+ "OPPORTUNITY",
5414
+ "SLACK",
5415
+ "PERSON_PROFILE"
5416
+ ]
5417
+ },
5418
+ sourceId: {
5419
+ type: "string",
5420
+ minLength: 1,
5421
+ maxLength: 500
5422
+ },
5423
+ contentKind: {
5424
+ type: "string",
5425
+ enum: [
5426
+ "email_body",
5427
+ "call_transcript",
5428
+ "support_thread",
5429
+ "slack_thread"
5430
+ ]
5431
+ },
5432
+ segments: {
5433
+ type: "array",
5434
+ items: {
5435
+ type: "object",
5436
+ properties: {
5437
+ id: {
5438
+ type: "string",
5439
+ minLength: 1,
5440
+ maxLength: 1000
5441
+ },
5442
+ occurredAt: {
5443
+ type: "string",
5444
+ format: "date-time",
5445
+ pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
5446
+ },
5447
+ authorLabel: {
5448
+ type: "string",
5449
+ maxLength: 500
5450
+ },
5451
+ text: {
5452
+ type: "string"
5453
+ }
5454
+ },
5455
+ required: [
5456
+ "id",
5457
+ "text"
5458
+ ],
5459
+ additionalProperties: false
5460
+ }
5461
+ },
5462
+ page: {
5463
+ type: "object",
5464
+ properties: {
5465
+ returned: {
5466
+ type: "integer",
5467
+ minimum: 0,
5468
+ maximum: 9007199254740991
5469
+ },
5470
+ hasMore: {
5471
+ type: "boolean"
5472
+ },
5473
+ nextCursor: {
5474
+ anyOf: [
5475
+ {
5476
+ type: "string",
5477
+ maxLength: 2000
5478
+ },
5479
+ {
5480
+ type: "null"
5481
+ }
5482
+ ]
5483
+ }
5484
+ },
5485
+ required: [
5486
+ "returned",
5487
+ "hasMore",
5488
+ "nextCursor"
5489
+ ],
5490
+ additionalProperties: false
5491
+ },
5492
+ completeness: {
5493
+ type: "object",
5494
+ properties: {
5495
+ status: {
5496
+ type: "string",
5497
+ enum: [
5498
+ "complete",
5499
+ "partial",
5500
+ "unavailable"
5501
+ ]
5502
+ },
5503
+ reason: {
5504
+ type: "string",
5505
+ maxLength: 1000
5506
+ },
5507
+ omittedFields: {
5508
+ type: "array",
5509
+ items: {
5510
+ type: "string",
5511
+ maxLength: 500
5512
+ }
5513
+ }
5514
+ },
5515
+ required: [
5516
+ "status",
5517
+ "omittedFields"
5518
+ ],
5519
+ additionalProperties: false
5520
+ }
5521
+ },
5522
+ required: [
5523
+ "sourceType",
5524
+ "sourceId",
5525
+ "contentKind",
5526
+ "segments",
5527
+ "page",
5528
+ "completeness"
5529
+ ],
5530
+ additionalProperties: false
5388
5531
  }
5389
5532
  },
5390
5533
  required: [
@@ -5423,6 +5566,7 @@ var init_dist4 = __esm(() => {
5423
5566
  "SUPPORT_TICKET",
5424
5567
  "OPPORTUNITY",
5425
5568
  "SLACK",
5569
+ "PERSON_PROFILE",
5426
5570
  "CRM",
5427
5571
  "CRM_OPPORTUNITY"
5428
5572
  ]
@@ -5494,7 +5638,8 @@ var init_dist4 = __esm(() => {
5494
5638
  "CALENDAR_EVENT",
5495
5639
  "SUPPORT_TICKET",
5496
5640
  "OPPORTUNITY",
5497
- "SLACK"
5641
+ "SLACK",
5642
+ "PERSON_PROFILE"
5498
5643
  ]
5499
5644
  },
5500
5645
  sourceId: {
@@ -5666,6 +5811,135 @@ var init_dist4 = __esm(() => {
5666
5811
  type: "string"
5667
5812
  },
5668
5813
  additionalProperties: {}
5814
+ },
5815
+ contentPage: {
5816
+ type: "object",
5817
+ properties: {
5818
+ sourceType: {
5819
+ type: "string",
5820
+ enum: [
5821
+ "EMAIL",
5822
+ "CALL",
5823
+ "CALENDAR_EVENT",
5824
+ "SUPPORT_TICKET",
5825
+ "OPPORTUNITY",
5826
+ "SLACK",
5827
+ "PERSON_PROFILE"
5828
+ ]
5829
+ },
5830
+ sourceId: {
5831
+ type: "string",
5832
+ minLength: 1,
5833
+ maxLength: 500
5834
+ },
5835
+ contentKind: {
5836
+ type: "string",
5837
+ enum: [
5838
+ "email_body",
5839
+ "call_transcript",
5840
+ "support_thread",
5841
+ "slack_thread"
5842
+ ]
5843
+ },
5844
+ segments: {
5845
+ type: "array",
5846
+ items: {
5847
+ type: "object",
5848
+ properties: {
5849
+ id: {
5850
+ type: "string",
5851
+ minLength: 1,
5852
+ maxLength: 1000
5853
+ },
5854
+ occurredAt: {
5855
+ type: "string",
5856
+ format: "date-time",
5857
+ pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
5858
+ },
5859
+ authorLabel: {
5860
+ type: "string",
5861
+ maxLength: 500
5862
+ },
5863
+ text: {
5864
+ type: "string"
5865
+ }
5866
+ },
5867
+ required: [
5868
+ "id",
5869
+ "text"
5870
+ ],
5871
+ additionalProperties: false
5872
+ }
5873
+ },
5874
+ page: {
5875
+ type: "object",
5876
+ properties: {
5877
+ returned: {
5878
+ type: "integer",
5879
+ minimum: 0,
5880
+ maximum: 9007199254740991
5881
+ },
5882
+ hasMore: {
5883
+ type: "boolean"
5884
+ },
5885
+ nextCursor: {
5886
+ anyOf: [
5887
+ {
5888
+ type: "string",
5889
+ maxLength: 2000
5890
+ },
5891
+ {
5892
+ type: "null"
5893
+ }
5894
+ ]
5895
+ }
5896
+ },
5897
+ required: [
5898
+ "returned",
5899
+ "hasMore",
5900
+ "nextCursor"
5901
+ ],
5902
+ additionalProperties: false
5903
+ },
5904
+ completeness: {
5905
+ type: "object",
5906
+ properties: {
5907
+ status: {
5908
+ type: "string",
5909
+ enum: [
5910
+ "complete",
5911
+ "partial",
5912
+ "unavailable"
5913
+ ]
5914
+ },
5915
+ reason: {
5916
+ type: "string",
5917
+ maxLength: 1000
5918
+ },
5919
+ omittedFields: {
5920
+ type: "array",
5921
+ items: {
5922
+ type: "string",
5923
+ maxLength: 500
5924
+ }
5925
+ }
5926
+ },
5927
+ required: [
5928
+ "status",
5929
+ "omittedFields"
5930
+ ],
5931
+ additionalProperties: false
5932
+ }
5933
+ },
5934
+ required: [
5935
+ "sourceType",
5936
+ "sourceId",
5937
+ "contentKind",
5938
+ "segments",
5939
+ "page",
5940
+ "completeness"
5941
+ ],
5942
+ additionalProperties: false
5669
5943
  }
5670
5944
  },
5671
5945
  required: [
@@ -5774,6 +6048,7 @@ var init_dist4 = __esm(() => {
5774
6048
  "SUPPORT_TICKET",
5775
6049
  "OPPORTUNITY",
5776
6050
  "SLACK",
6051
+ "PERSON_PROFILE",
5777
6052
  "CRM",
5778
6053
  "CRM_OPPORTUNITY"
5779
6054
  ]
@@ -5977,7 +6252,8 @@ var init_dist4 = __esm(() => {
5977
6252
  "CALENDAR_EVENT",
5978
6253
  "SUPPORT_TICKET",
5979
6254
  "OPPORTUNITY",
5980
- "SLACK"
6255
+ "SLACK",
6256
+ "PERSON_PROFILE"
5981
6257
  ]
5982
6258
  },
5983
6259
  sourceId: {
@@ -6037,7 +6313,8 @@ var init_dist4 = __esm(() => {
6037
6313
  "CALENDAR_EVENT",
6038
6314
  "SUPPORT_TICKET",
6039
6315
  "OPPORTUNITY",
6040
- "SLACK"
6316
+ "SLACK",
6317
+ "PERSON_PROFILE"
6041
6318
  ]
6042
6319
  },
6043
6320
  {
@@ -6247,7 +6524,8 @@ var init_dist4 = __esm(() => {
6247
6524
  "CALENDAR_EVENT",
6248
6525
  "SUPPORT_TICKET",
6249
6526
  "OPPORTUNITY",
6250
- "SLACK"
6527
+ "SLACK",
6528
+ "PERSON_PROFILE"
6251
6529
  ]
6252
6530
  },
6253
6531
  {
@@ -6364,7 +6642,8 @@ var init_dist4 = __esm(() => {
6364
6642
  "CALENDAR_EVENT",
6365
6643
  "SUPPORT_TICKET",
6366
6644
  "OPPORTUNITY",
6367
- "SLACK"
6645
+ "SLACK",
6646
+ "PERSON_PROFILE"
6368
6647
  ]
6369
6648
  },
6370
6649
  sourceId: {
@@ -12916,6 +13195,7 @@ Returns column definitions and example queries for each view.`,
12916
13195
  403,
12917
13196
  404,
12918
13197
  409,
13198
+ 413,
12919
13199
  422,
12920
13200
  429,
12921
13201
  500,
@@ -13173,6 +13453,7 @@ Returns column definitions and example queries for each view.`,
13173
13453
  "TOOL_BINDING_MISSING",
13174
13454
  "TOOL_IMPLEMENTATION_ERROR",
13175
13455
  "TOOL_OUTPUT_INVALID",
13456
+ "TOOL_RESULT_TOO_LARGE",
13176
13457
  "TOOL_GATEWAY_ERROR",
13177
13458
  "plan_api_limit_exceeded",
13178
13459
  "plan_billing_action_required"
@@ -13202,6 +13483,16 @@ Returns column definitions and example queries for each view.`,
13202
13483
  type: "null"
13203
13484
  }
13204
13485
  ]
13486
+ },
13487
+ limitBytes: {
13488
+ type: "integer",
13489
+ exclusiveMinimum: 0,
13490
+ maximum: 9007199254740991
13491
+ },
13492
+ actualBytes: {
13493
+ type: "integer",
13494
+ exclusiveMinimum: 0,
13495
+ maximum: 9007199254740991
13205
13496
  }
13206
13497
  },
13207
13498
  required: [
@@ -13243,7 +13534,10 @@ Returns column definitions and example queries for each view.`,
13243
13534
  "REQUIREMENTS",
13244
13535
  "PRODUCT_USAGE",
13245
13536
  "CONTACT_INFO",
13246
- "CONTACT_PREFERENCE"
13537
+ "CONTACT_PREFERENCE",
13538
+ "CONTACT_DEPARTURE",
13539
+ "CONTACT_POSITION_CHANGE",
13540
+ "CONTACT_DISENGAGEMENT"
13247
13541
  ];
13248
13542
  unsupportedCustomerFactTypes = [
13249
13543
  "TRACKING_GAP",
@@ -13259,6 +13553,7 @@ Returns column definitions and example queries for each view.`,
13259
13553
  ];
13260
13554
  customerFactCategories = [
13261
13555
  "MEMORY",
13556
+ "RELATIONSHIP",
13262
13557
  "CUSTOM"
13263
13558
  ];
13264
13559
  customerIncludeSections = [
@@ -13274,7 +13569,8 @@ Returns column definitions and example queries for each view.`,
13274
13569
  "CALENDAR_EVENT",
13275
13570
  "SUPPORT_TICKET",
13276
13571
  "OPPORTUNITY",
13277
- "SLACK"
13572
+ "SLACK",
13573
+ "PERSON_PROFILE"
13278
13574
  ];
13279
13575
  customerSourceTypeAliasMap = {
13280
13576
  CRM: "OPPORTUNITY",
@@ -13291,6 +13587,7 @@ Returns column definitions and example queries for each view.`,
13291
13587
  "SUPPORT_TICKET",
13292
13588
  "OPPORTUNITY",
13293
13589
  "SLACK",
13590
+ "PERSON_PROFILE",
13294
13591
  "CRM",
13295
13592
  "CRM_OPPORTUNITY"
13296
13593
  ];
@@ -17110,7 +17407,7 @@ var init_list5 = __esm(() => {
17110
17407
  },
17111
17408
  "fact-types": {
17112
17409
  type: "string",
17113
- description: "Comma-separated customer-memory fact type filter, such as CHURN_RISK, EXPANSION, or SENTIMENT"
17410
+ description: "Comma-separated public fact type filter, such as CHURN_RISK, CONTACT_DEPARTURE, or CONTACT_POSITION_CHANGE"
17114
17411
  },
17115
17412
  "fact-categories": {
17116
17413
  type: "string",
@@ -17152,7 +17449,7 @@ var init_list5 = __esm(() => {
17152
17449
  const unknownFactTypes = invalidFactTypes.filter((value) => !unsupportedCustomerFactTypes.includes(value));
17153
17450
  const messageParts = [];
17154
17451
  if (anomalyFactTypes.length > 0) {
17155
- messageParts.push(`Anomaly detector fact types are not supported as public filters: ${anomalyFactTypes.join(", ")}. Use customer-memory fact types such as CHURN_RISK, EXPANSION, SENTIMENT, or PRODUCT_USAGE.`);
17452
+ messageParts.push(`Anomaly detector fact types are not supported as public filters: ${anomalyFactTypes.join(", ")}. Use public fact types such as CHURN_RISK, PRODUCT_USAGE, CONTACT_DEPARTURE, or CONTACT_POSITION_CHANGE.`);
17156
17453
  }
17157
17454
  if (unknownFactTypes.length > 0) {
17158
17455
  messageParts.push(`Unknown fact types: ${unknownFactTypes.join(", ")}. Allowed: ${customerFactTypes.join(", ")}`);
@@ -17525,11 +17822,11 @@ var init_get5 = __esm(() => {
17525
17822
  },
17526
17823
  limit: {
17527
17824
  type: "string",
17528
- description: "Slack replies per page (1-100). Default: 50. Ignored for other source types."
17825
+ description: publicToolContracts.outlit_get_source.inputSchema.properties.limit.description
17529
17826
  },
17530
17827
  cursor: {
17531
17828
  type: "string",
17532
- description: "Opaque Slack reply cursor returned by a previous exact lookup."
17829
+ description: publicToolContracts.outlit_get_source.inputSchema.properties.cursor.description
17533
17830
  }
17534
17831
  },
17535
17832
  async run({ args }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outlit/cli",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
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": "^2.1.1",
46
+ "@outlit/tools": "^2.1.3",
47
47
  "citty": "^0.2.1"
48
48
  },
49
49
  "devDependencies": {