krx-cli 1.7.0 → 1.7.1

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/SKILL.md CHANGED
@@ -7,7 +7,7 @@ install: npm install -g krx-cli
7
7
  binary: krx
8
8
  metadata:
9
9
  author: kyo504
10
- version: "1.7.0"
10
+ version: "1.7.1"
11
11
  invariants:
12
12
  - Always use YYYYMMDD format for --date (e.g., 20260310)
13
13
  - Data is T-1 (previous trading day), available from 2010 onwards
package/dist/cli.js CHANGED
@@ -48869,7 +48869,7 @@ function applyPipeline(data, options) {
48869
48869
  if (options.sort) {
48870
48870
  result = sortData(result, options.sort, options.direction ?? "desc");
48871
48871
  }
48872
- if (options.offset && options.offset > 0) {
48872
+ if (options.offset !== void 0 && options.offset > 0) {
48873
48873
  result = result.slice(options.offset);
48874
48874
  }
48875
48875
  if (options.limit && options.limit > 0) {
@@ -60527,7 +60527,7 @@ var EMPTY_COMPLETION_RESULT = {
60527
60527
  };
60528
60528
 
60529
60529
  // src/mcp/tools/result.ts
60530
- var MAX_RESULT_BYTES = 9e5;
60530
+ var MAX_RESULT_BYTES = 5e5;
60531
60531
  function successResult(data) {
60532
60532
  const text = JSON.stringify(data, null, 2);
60533
60533
  if (Buffer.byteLength(text, "utf-8") <= MAX_RESULT_BYTES) {
@@ -60538,7 +60538,7 @@ function successResult(data) {
60538
60538
  while (lo < hi) {
60539
60539
  const mid = Math.ceil((lo + hi) / 2);
60540
60540
  const candidate = JSON.stringify(data.slice(0, mid), null, 2);
60541
- if (Buffer.byteLength(candidate, "utf-8") <= MAX_RESULT_BYTES - 200) {
60541
+ if (Buffer.byteLength(candidate, "utf-8") <= MAX_RESULT_BYTES - 2e3) {
60542
60542
  lo = mid;
60543
60543
  } else {
60544
60544
  hi = mid - 1;
@@ -60582,7 +60582,8 @@ Notes:
60582
60582
  - Data is T-1 (previous trading day)
60583
60583
  - All response values are strings
60584
60584
  - Rate limit: 10,000 calls/day
60585
- - IMPORTANT: Full market listings can exceed the 1MB result limit. Use 'fields' to select only needed columns, or 'limit'+'offset' for pagination. If the response contains '_truncated', follow its instructions to retrieve remaining data.`;
60585
+ - IMPORTANT: When querying a specific stock, ALWAYS pass 'isuCd' to filter. Without it, all stocks in the market are returned.
60586
+ - Full market listings can exceed the result size limit. Use 'fields' to select only needed columns, or 'limit'+'offset' for pagination. If the response contains '_truncated', follow its instructions to retrieve remaining data.`;
60586
60587
  }
60587
60588
  function buildInputSchema(endpoints) {
60588
60589
  const shortNames = endpoints.map((e) => getEndpointShortName(e.path));