@glasser-ai/cli 0.1.9 → 0.1.12

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/glasser.js +75 -70
  2. package/package.json +2 -2
package/dist/glasser.js CHANGED
@@ -64817,7 +64817,78 @@ function sleepMs(ms) {
64817
64817
  Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
64818
64818
  }
64819
64819
 
64820
+ // package.json
64821
+ var package_default = {
64822
+ name: "@glasser-ai/cli",
64823
+ version: "0.1.12",
64824
+ description: "Search, inspect and run paid API endpoints with one Key \u2014 the Glasser CLI",
64825
+ license: "MIT",
64826
+ type: "module",
64827
+ bin: {
64828
+ glasser: "./dist/glasser.js"
64829
+ },
64830
+ files: [
64831
+ "dist",
64832
+ "!dist/metafile.json",
64833
+ "README.md",
64834
+ "LICENSE",
64835
+ "THIRD_PARTY_NOTICES"
64836
+ ],
64837
+ repository: {
64838
+ type: "git",
64839
+ url: "git+https://github.com/Surething-io/glasser.git",
64840
+ directory: "apps/cli"
64841
+ },
64842
+ homepage: "https://glasser.ai/docs/cli",
64843
+ keywords: [
64844
+ "glasser",
64845
+ "cli",
64846
+ "api",
64847
+ "endpoints",
64848
+ "agents"
64849
+ ],
64850
+ publishConfig: {
64851
+ access: "public",
64852
+ provenance: false
64853
+ },
64854
+ scripts: {
64855
+ dev: "tsx src/main.ts",
64856
+ build: "node build.mjs",
64857
+ prepack: "node build.mjs && node ../../scripts/generate-third-party-notices.mjs",
64858
+ lint: "biome lint .",
64859
+ "lint:fix": "biome lint --write .",
64860
+ format: "biome format --write .",
64861
+ "format:check": "biome format .",
64862
+ check: "biome check --write .",
64863
+ "check-types": "tsc --noEmit",
64864
+ test: "vitest run",
64865
+ "test:watch": "vitest",
64866
+ "test:p0": "vitest run .p0. --passWithNoTests",
64867
+ "test:p1": "vitest run .p1. --passWithNoTests",
64868
+ "test:integration": "vitest run --config vitest.integration.config.ts"
64869
+ },
64870
+ devDependencies: {
64871
+ "@effect/platform-node": "4.0.0-rc.112",
64872
+ "@repo/contract": "workspace:*",
64873
+ "@repo/lib": "workspace:*",
64874
+ "@repo/typescript-config": "workspace:*",
64875
+ "@types/node": "^22.15.3",
64876
+ effect: "4.0.0-rc.112",
64877
+ esbuild: "^0.26.0",
64878
+ tsx: "^4.21.0",
64879
+ typescript: "catalog:",
64880
+ vitest: "^4.1.5"
64881
+ },
64882
+ engines: {
64883
+ node: ">=22"
64884
+ }
64885
+ };
64886
+
64887
+ // src/version.ts
64888
+ var CLI_VERSION = package_default.version;
64889
+
64820
64890
  // src/client.ts
64891
+ var USER_AGENT = `@glasser-ai/cli/${CLI_VERSION}`;
64821
64892
  var NO_KEY_MESSAGE = "No Key configured. Run `glasser keys add --label <label> --key <key>` or set GLASSER_API_KEY.";
64822
64893
  var ApiFailure = class extends Data_exports.TaggedError("ApiFailure") {
64823
64894
  };
@@ -64839,6 +64910,10 @@ var buildApiWith = (key) => Effect_exports.gen(function* () {
64839
64910
  baseUrl: baseUrl2,
64840
64911
  transformClient: (http2) => http2.pipe(
64841
64912
  HttpClient_exports.mapRequest(HttpClientRequest_exports.bearerToken(key)),
64913
+ // 自报家门。服务端据此把 CLI 流量与裸 API 调用分开(http/surface.ts)——
64914
+ // 没有这一行,「CLI / MCP / 裸 API 各贡献了多少」这个问题答不了,因为
64915
+ // 三者打的是同一批端点。它不携带任何机器或用户信息。
64916
+ HttpClient_exports.mapRequest(HttpClientRequest_exports.setHeader("user-agent", USER_AGENT)),
64842
64917
  HttpClient_exports.transform(
64843
64918
  (effect2) => Effect_exports.suspend(() => {
64844
64919
  box.current = null;
@@ -66075,76 +66150,6 @@ async function refreshLatestVersion(options4) {
66075
66150
  }
66076
66151
  }
66077
66152
 
66078
- // package.json
66079
- var package_default = {
66080
- name: "@glasser-ai/cli",
66081
- version: "0.1.9",
66082
- description: "Search, inspect and run paid API endpoints with one Key \u2014 the Glasser CLI",
66083
- license: "MIT",
66084
- type: "module",
66085
- bin: {
66086
- glasser: "./dist/glasser.js"
66087
- },
66088
- files: [
66089
- "dist",
66090
- "!dist/metafile.json",
66091
- "README.md",
66092
- "LICENSE",
66093
- "THIRD_PARTY_NOTICES"
66094
- ],
66095
- repository: {
66096
- type: "git",
66097
- url: "git+https://github.com/Surething-io/glasser.git",
66098
- directory: "apps/cli"
66099
- },
66100
- homepage: "https://glasser.ai/docs/cli",
66101
- keywords: [
66102
- "glasser",
66103
- "cli",
66104
- "api",
66105
- "endpoints",
66106
- "agents"
66107
- ],
66108
- publishConfig: {
66109
- access: "public",
66110
- provenance: false
66111
- },
66112
- scripts: {
66113
- dev: "tsx src/main.ts",
66114
- build: "node build.mjs",
66115
- prepack: "node build.mjs && node ../../scripts/generate-third-party-notices.mjs",
66116
- lint: "biome lint .",
66117
- "lint:fix": "biome lint --write .",
66118
- format: "biome format --write .",
66119
- "format:check": "biome format .",
66120
- check: "biome check --write .",
66121
- "check-types": "tsc --noEmit",
66122
- test: "vitest run",
66123
- "test:watch": "vitest",
66124
- "test:p0": "vitest run .p0. --passWithNoTests",
66125
- "test:p1": "vitest run .p1. --passWithNoTests",
66126
- "test:integration": "vitest run --config vitest.integration.config.ts"
66127
- },
66128
- devDependencies: {
66129
- "@effect/platform-node": "4.0.0-rc.112",
66130
- "@repo/contract": "workspace:*",
66131
- "@repo/lib": "workspace:*",
66132
- "@repo/typescript-config": "workspace:*",
66133
- "@types/node": "^22.15.3",
66134
- effect: "4.0.0-rc.112",
66135
- esbuild: "^0.26.0",
66136
- tsx: "^4.21.0",
66137
- typescript: "catalog:",
66138
- vitest: "^4.1.5"
66139
- },
66140
- engines: {
66141
- node: ">=22"
66142
- }
66143
- };
66144
-
66145
- // src/version.ts
66146
- var CLI_VERSION = package_default.version;
66147
-
66148
66153
  // src/main.ts
66149
66154
  var root = Command_exports.make("glasser").pipe(
66150
66155
  Command_exports.withDescription("Search, inspect and run paid API endpoints with one Key"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@glasser-ai/cli",
3
- "version": "0.1.9",
4
- "description": "Search, inspect and run paid API endpoints with one Key — the Glasser CLI",
3
+ "version": "0.1.12",
4
+ "description": "Search, inspect and run paid API endpoints with one Key \u2014 the Glasser CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "bin": {