@hastycapybara/tasks-api 1.0.1 → 1.1.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/NOTICE.md CHANGED
@@ -13,11 +13,8 @@ Copyright (c) 2021 Martin Schenck and Clare Macrae, MIT 라이선스.
13
13
  MIT 라이선스 전문은 `LICENSE`와 같습니다. 이 프로젝트는 Obsidian Tasks 프로젝트나 Obsidian(Dynalist Inc.)과
14
14
  관련이 없으며, 그들의 보증을 받지 않았습니다.
15
15
 
16
- ## 런타임 의존성
16
+ ## 함께 배포하는 오픈소스 (Bundled open-source packages)
17
17
 
18
- | 패키지 | 라이선스 | 용도 |
19
- |---|---|---|
20
- | [dayjs](https://github.com/iamkun/dayjs) | MIT | 날짜 계산 |
21
- | [rrule](https://github.com/jkbrzt/rrule) | BSD-3-Clause | 반복 규칙 해석 |
22
- | [ignore](https://github.com/kaelzhang/node-ignore) | MIT | `.gitignore` 규칙 적용 |
23
- | [svelte](https://github.com/sveltejs/svelte) (웹뷰 번들에 포함) | MIT | 웹뷰 UI |
18
+ 확장(`dist/extension.js`), 웹뷰, `tasksmd` 명령·MCP 서버(`dist/tasksmd.cjs`, npm `@hastycapybara/tasks-cli`)에 함께 묶여 배포되는 패키지 목록과 **라이선스 전문**은 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)에 있습니다(빌드 때 자동 생성, 테스트가 최신인지 확인). 주요 패키지: dayjs, rrule, ignore, markdown-it, svelte, @modelcontextprotocol/sdk, zod, ajv — 모두 MIT·ISC·BSD 계열.
19
+
20
+ The full list of bundled packages with their license texts is in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) (generated at build time).
package/README.md CHANGED
@@ -18,7 +18,7 @@ const due = await tasks.query.run('not done\ndue before tomorrow\nsort by urgenc
18
18
  if (tasks.features.includes('notes.add')) await tasks.edit.addNote({ path: due.tasks[0].path, line: due.tasks[0].line }, 'Started');
19
19
  ```
20
20
 
21
- Check optional capabilities with `tasks.features` (or `await tasks.info()`), not by version number.
21
+ Check optional capabilities with `tasks.features` (or `await tasks.info()`), not by version number. For example `links` (1.1.0) adds `ui.link(ref)`, which returns a `vscode://` / `cursor://` link that opens the task from any app.
22
22
 
23
23
  - API reference: [docs/api.en.md](https://github.com/W-Leester/tasks-for-markdown/blob/main/docs/api.en.md) (Korean: [docs/api.md](https://github.com/W-Leester/tasks-for-markdown/blob/main/docs/api.md))
24
24
  - The same types are in the repository as one self-contained file: [src/api/types.ts](https://github.com/W-Leester/tasks-for-markdown/blob/main/src/api/types.ts)
package/index.d.ts CHANGED
@@ -220,7 +220,7 @@ export interface TaskStatusChangeEvent {
220
220
  * Names of optional capabilities, so a caller can check what the installed extension supports
221
221
  * (all within API version 1). See docs/api.md "Feature list" for the version each was added in.
222
222
  */
223
- export type ApiFeature = 'tree' | 'notes' | 'notes.add' | 'info' | 'events.status' | 'isBlocking';
223
+ export type ApiFeature = 'tree' | 'notes' | 'notes.add' | 'info' | 'events.status' | 'isBlocking' | 'links';
224
224
  export interface ApiInfo {
225
225
  /** Version of the installed extension, e.g. `1.0.0`. */
226
226
  extensionVersion: string;
@@ -297,6 +297,12 @@ export interface TasksApi {
297
297
  openQueryResults(query: string, source?: string): Promise<void>;
298
298
  /** Open the task's file in the text editor at its line. */
299
299
  reveal(ref: TaskRef): Promise<void>;
300
+ /**
301
+ * A link that opens this task from outside the editor (a chat message, a note, a web page):
302
+ * `<scheme>://hastycapybara.tasks-for-markdown/open?path=…&line=…`, with the running editor's
303
+ * scheme (`vscode`, `cursor`, …). Feature `links`.
304
+ */
305
+ link(ref: TaskRef): Promise<string>;
300
306
  };
301
307
  }
302
308
  /** What `vscode.extensions.getExtension(...).exports` resolves to. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastycapybara/tasks-api",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "description": "TypeScript types for the public API of the Tasks for Markdown VS Code/Cursor extension (getAPI(1)): queries, edits, notes, events. Types only — no runtime code.",
5
5
  "license": "MIT",
6
6
  "author": "HastyCapybara (W.Leester)",