@glasser-ai/cli 0.1.53 → 0.1.56
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/glasser.js +50 -12
- package/package.json +1 -1
package/dist/glasser.js
CHANGED
|
@@ -64528,9 +64528,14 @@ var EndpointDetail = Schema_exports.Struct({
|
|
|
64528
64528
|
}).check(runModePairing).check(outputSchemaPairing);
|
|
64529
64529
|
var SEARCH_PAGE_DEFAULT = 5;
|
|
64530
64530
|
var SEARCH_PAGE_MAX = 20;
|
|
64531
|
-
var
|
|
64531
|
+
var SearchTaskIdField = Schema_exports.optional(
|
|
64532
64532
|
Schema_exports.String.annotate({
|
|
64533
|
-
description: "The task this
|
|
64533
|
+
description: "The task this search belongs to. A search without a task_id starts a new task. The response returns its task_id. Send it on every later search, inspect and run of the same piece of work. Any stable string is accepted."
|
|
64534
|
+
})
|
|
64535
|
+
);
|
|
64536
|
+
var InspectTaskIdField = Schema_exports.optional(
|
|
64537
|
+
Schema_exports.String.annotate({
|
|
64538
|
+
description: "The task this inspection belongs to, from a catalog search response. Any stable string is accepted."
|
|
64534
64539
|
})
|
|
64535
64540
|
);
|
|
64536
64541
|
var SearchEndpointsRequest = Schema_exports.Struct({
|
|
@@ -64541,20 +64546,45 @@ var SearchEndpointsRequest = Schema_exports.Struct({
|
|
|
64541
64546
|
),
|
|
64542
64547
|
/** 上一页响应的 next_cursor。绑定于 query:拿别的查询的游标来翻是 400,不是从头开始。 */
|
|
64543
64548
|
cursor: Schema_exports.optional(Schema_exports.String),
|
|
64544
|
-
task_id:
|
|
64549
|
+
task_id: SearchTaskIdField,
|
|
64545
64550
|
/**
|
|
64546
|
-
*
|
|
64547
|
-
*
|
|
64551
|
+
* 这件事的 use case:用户自己的诉求。**只在这里收** —— 它属于这件事,不属于其中
|
|
64552
|
+
* 某一次调用,而 search 是这件事的第一次调用,也是 agent 手里那句话最新鲜的时候。
|
|
64553
|
+
*
|
|
64554
|
+
* 名字取自 Composio 的 `COMPOSIO_SEARCH_TOOLS.use_case`(2026-09-24,原名
|
|
64555
|
+
* `user_request`):同一个位置、同一个角色的字段,调用方的模型在别处见过这个词。
|
|
64556
|
+
* **只借名字,不借写法** —— 那边要归一化的英文转述,这里仍然要原话(下一段)。
|
|
64548
64557
|
*
|
|
64549
64558
|
* 要原话,不要转述(2026-09-22):转述给出的是需求的类型("Research one company"),
|
|
64550
|
-
*
|
|
64559
|
+
* 不是需求。
|
|
64560
|
+
*
|
|
64561
|
+
* 不要求 agent 去掉第三方的个人信息(2026-09-24 删掉了那一句):它只是一条隐私上的
|
|
64562
|
+
* 约束,不影响这个字段的用途,而查人的请求里,那个人往往就是主语。
|
|
64563
|
+
*
|
|
64564
|
+
* 描述不写「它不影响结果」(2026-09-24):一个自己声明没有用途的字段,在目录审核
|
|
64565
|
+
* 眼里就是无用收集。它**不**参与这一次的排序;用途见 ADR-0024 —— use case 与最后
|
|
64566
|
+
* 跑了哪支 Endpoint 配成一对,就是一条带标注的相关性样本。
|
|
64567
|
+
*
|
|
64568
|
+
* 旧名 `user_request` 仍然收,见下面那个字段。
|
|
64551
64569
|
*
|
|
64552
64570
|
* 可选,而且必须可选:必填会让还没升级的调用方直接失败,也会逼一个不理解这个
|
|
64553
64571
|
* 字段的模型去编 —— 编出来的比 null 更糟,因为在数据里分不出来。
|
|
64554
64572
|
*/
|
|
64573
|
+
use_case: Schema_exports.optional(
|
|
64574
|
+
Schema_exports.String.annotate({
|
|
64575
|
+
description: "The use case behind this search: what the user asked for, in their own words, with the subject in it \u2014 the company, domain, ticker, place or topic. Shorten a long request rather than rewriting it."
|
|
64576
|
+
})
|
|
64577
|
+
),
|
|
64578
|
+
/**
|
|
64579
|
+
* `use_case` 的旧名(2026-09-24 之前),**只为还没升级的调用方留着**。
|
|
64580
|
+
*
|
|
64581
|
+
* 0.1.54 及更早的 CLI、以及本地还装着旧 SKILL.md 的 agent 都发这个名字。不收的话
|
|
64582
|
+
* 服务端按默认把它剥掉 —— 不报错,但那一句静静丢了,而这个字段存在的全部理由就是
|
|
64583
|
+
* 那一句。两个都带时 `use_case` 优先(searchOperation)。
|
|
64584
|
+
*/
|
|
64555
64585
|
user_request: Schema_exports.optional(
|
|
64556
64586
|
Schema_exports.String.annotate({
|
|
64557
|
-
description: "
|
|
64587
|
+
description: "Deprecated: the old name of use_case. Send use_case instead."
|
|
64558
64588
|
})
|
|
64559
64589
|
)
|
|
64560
64590
|
});
|
|
@@ -64600,7 +64630,7 @@ var InspectEndpointRequest = Schema_exports.Struct({
|
|
|
64600
64630
|
description: "Select a supported Endpoint version, or omit for the default. Returns the current Price for that version; selecting a version does not lock its Price."
|
|
64601
64631
|
})
|
|
64602
64632
|
),
|
|
64603
|
-
task_id:
|
|
64633
|
+
task_id: InspectTaskIdField
|
|
64604
64634
|
});
|
|
64605
64635
|
|
|
64606
64636
|
// ../../packages/contract/src/rate-limit.ts
|
|
@@ -65690,12 +65720,19 @@ var search = Command_exports.make(
|
|
|
65690
65720
|
limit: searchLimitFlag,
|
|
65691
65721
|
cursor: cursorFlag,
|
|
65692
65722
|
task: taskFlag,
|
|
65693
|
-
|
|
65723
|
+
/*
|
|
65724
|
+
* `--user-request` 是 2026-09-24 之前的名字(契约字段改名为 `use_case`),**留作别名**:
|
|
65725
|
+
* agent 装在本地的 SKILL.md 只在它自己升级后才重新拉,旧 skill 配新 CLI 是常态。
|
|
65726
|
+
* 没有这个别名,那样的 agent 每一次 search 都是 unknown flag —— 与 `-q` 同一条:
|
|
65727
|
+
* 已发布的写法不能断。
|
|
65728
|
+
*/
|
|
65729
|
+
useCase: Flag_exports.string("use-case").pipe(
|
|
65730
|
+
Flag_exports.withAlias("user-request"),
|
|
65694
65731
|
Flag_exports.optional,
|
|
65695
65732
|
Flag_exports.withDescription("What the user asked for, in their own words, with the subject in it")
|
|
65696
65733
|
)
|
|
65697
65734
|
},
|
|
65698
|
-
({ queryArg, query: queryFlag, limit, cursor, task,
|
|
65735
|
+
({ queryArg, query: queryFlag, limit, cursor, task, useCase }) => Effect_exports.gen(function* () {
|
|
65699
65736
|
const json2 = yield* JsonMode;
|
|
65700
65737
|
if (Option_exports.isSome(queryArg) && Option_exports.isSome(queryFlag)) {
|
|
65701
65738
|
return yield* new UsageError({
|
|
@@ -65711,7 +65748,7 @@ var search = Command_exports.make(
|
|
|
65711
65748
|
...Option_exports.isSome(limit) ? { limit: limit.value } : {},
|
|
65712
65749
|
...Option_exports.isSome(cursor) ? { cursor: cursor.value } : {},
|
|
65713
65750
|
...Option_exports.isSome(task) ? { task_id: task.value } : {},
|
|
65714
|
-
...Option_exports.isSome(
|
|
65751
|
+
...Option_exports.isSome(useCase) ? { use_case: useCase.value } : {}
|
|
65715
65752
|
}
|
|
65716
65753
|
})
|
|
65717
65754
|
);
|
|
@@ -65747,6 +65784,7 @@ Showing ${response.data.length} of ${response.total} matches.`);
|
|
|
65747
65784
|
`Next page: ${nextPageLine(query, response.next_cursor, response.task_id)}`
|
|
65748
65785
|
);
|
|
65749
65786
|
}
|
|
65787
|
+
yield* Console_exports.error(`Search again: ${retryLine(response.task_id)}`);
|
|
65750
65788
|
})
|
|
65751
65789
|
).pipe(Command_exports.withDescription("Search runnable endpoints"));
|
|
65752
65790
|
function retryLine(taskId) {
|
|
@@ -66565,7 +66603,7 @@ var runs2 = Command_exports.make("runs").pipe(
|
|
|
66565
66603
|
// package.json
|
|
66566
66604
|
var package_default = {
|
|
66567
66605
|
name: "@glasser-ai/cli",
|
|
66568
|
-
version: "0.1.
|
|
66606
|
+
version: "0.1.56",
|
|
66569
66607
|
description: "Search, inspect and run paid API endpoints with one Key \u2014 the Glasser CLI",
|
|
66570
66608
|
license: "MIT",
|
|
66571
66609
|
type: "module",
|