@pxlabz/tasq-sdk 0.1.31 → 0.3.0
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/README.md +6 -36
- package/index.d.ts +59 -0
- package/index.js +11 -0
- package/package.json +11 -26
- package/dist/index.d.ts +0 -5541
- package/dist/index.js +0 -639
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,41 +1,11 @@
|
|
|
1
|
-
# @pxlabz/tasq-sdk
|
|
1
|
+
# @pxlabz/tasq-sdk is now @tasqmate/sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package is the old name of the Tasqmate SDK. It re-exports [`@tasqmate/sdk`](https://www.npmjs.com/package/@tasqmate/sdk), so existing imports keep working, and keeps the old class names (`TasqClient`, `TasqApiError`, …) as deprecated aliases. It is published until 15 January 2027.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
npm install @pxlabz/tasq-sdk
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
```ts
|
|
12
|
-
import { TasqClient } from "@pxlabz/tasq-sdk";
|
|
5
|
+
To move:
|
|
13
6
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
auth: { agentKey: process.env.TASQ_API_KEY! }, // or { userToken: "tq_us_…" }
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
const tasks = await tasq.tasks.list("my-workspace", { status: "in-progress" });
|
|
20
|
-
|
|
21
|
-
const result = await tasq.dispatch("task.create", "my-workspace", {
|
|
22
|
-
teamIdentifier: "ENG",
|
|
23
|
-
title: "Investigate flaky login test",
|
|
24
|
-
});
|
|
7
|
+
```sh
|
|
8
|
+
npm rm @pxlabz/tasq-sdk && npm i @tasqmate/sdk
|
|
25
9
|
```
|
|
26
10
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## Errors
|
|
30
|
-
|
|
31
|
-
Failures throw a `TasqApiError` subclass you can narrow on:
|
|
32
|
-
|
|
33
|
-
- `TasqValidationError` — the input failed validation (400).
|
|
34
|
-
- `TasqPolicyDeniedError` — the agent's policy does not allow that action (403). The refusal is also logged in the workspace's agent activity.
|
|
35
|
-
- `TasqRateLimitError` — the key exhausted its read or write budget (429); `retryAfterSeconds` says when to try again.
|
|
36
|
-
|
|
37
|
-
An anonymous client (no `auth`) can only call `auth.requestMagicLink` and `auth.verifyCliCode`; everything else throws `NO_CREDENTIAL` before touching the network.
|
|
38
|
-
|
|
39
|
-
## Runtime
|
|
40
|
-
|
|
41
|
-
ESM, Node 20 or newer, no runtime dependencies. Types are bundled.
|
|
11
|
+
Then import `TasqmateClient` (and `TasqmateApiError`, `TasqmateRateLimitError`, `TasqmateValidationError`, `TasqmatePolicyDeniedError`) from `@tasqmate/sdk`. Environment variables are now `TASQMATE_*`; the `TASQ_*` names still work.
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// @pxlabz/tasq-sdk is now @tasqmate/sdk. Everything is re-exported from there,
|
|
2
|
+
// and the names from before the rename are kept as deprecated aliases.
|
|
3
|
+
import {
|
|
4
|
+
TasqmateApiError,
|
|
5
|
+
TasqmateClient,
|
|
6
|
+
TasqmatePolicyDeniedError,
|
|
7
|
+
TasqmateRateLimitError,
|
|
8
|
+
TasqmateValidationError,
|
|
9
|
+
} from "@tasqmate/sdk";
|
|
10
|
+
import type {
|
|
11
|
+
TasqmateAuth,
|
|
12
|
+
TasqmateClientOptions,
|
|
13
|
+
TasqmateRequestOptions,
|
|
14
|
+
TasqmateValidationIssue,
|
|
15
|
+
} from "@tasqmate/sdk";
|
|
16
|
+
|
|
17
|
+
export * from "@tasqmate/sdk";
|
|
18
|
+
|
|
19
|
+
/** @deprecated Renamed to `TasqmateClient` in `@tasqmate/sdk`. */
|
|
20
|
+
export declare const TasqClient: typeof TasqmateClient;
|
|
21
|
+
|
|
22
|
+
/** @deprecated Renamed to `TasqmateClient` in `@tasqmate/sdk`. */
|
|
23
|
+
export type TasqClient = TasqmateClient;
|
|
24
|
+
|
|
25
|
+
/** @deprecated Renamed to `TasqmateApiError` in `@tasqmate/sdk`. */
|
|
26
|
+
export declare const TasqApiError: typeof TasqmateApiError;
|
|
27
|
+
|
|
28
|
+
/** @deprecated Renamed to `TasqmateApiError` in `@tasqmate/sdk`. */
|
|
29
|
+
export type TasqApiError = TasqmateApiError;
|
|
30
|
+
|
|
31
|
+
/** @deprecated Renamed to `TasqmateRateLimitError` in `@tasqmate/sdk`. */
|
|
32
|
+
export declare const TasqRateLimitError: typeof TasqmateRateLimitError;
|
|
33
|
+
|
|
34
|
+
/** @deprecated Renamed to `TasqmateRateLimitError` in `@tasqmate/sdk`. */
|
|
35
|
+
export type TasqRateLimitError = TasqmateRateLimitError;
|
|
36
|
+
|
|
37
|
+
/** @deprecated Renamed to `TasqmateValidationError` in `@tasqmate/sdk`. */
|
|
38
|
+
export declare const TasqValidationError: typeof TasqmateValidationError;
|
|
39
|
+
|
|
40
|
+
/** @deprecated Renamed to `TasqmateValidationError` in `@tasqmate/sdk`. */
|
|
41
|
+
export type TasqValidationError = TasqmateValidationError;
|
|
42
|
+
|
|
43
|
+
/** @deprecated Renamed to `TasqmatePolicyDeniedError` in `@tasqmate/sdk`. */
|
|
44
|
+
export declare const TasqPolicyDeniedError: typeof TasqmatePolicyDeniedError;
|
|
45
|
+
|
|
46
|
+
/** @deprecated Renamed to `TasqmatePolicyDeniedError` in `@tasqmate/sdk`. */
|
|
47
|
+
export type TasqPolicyDeniedError = TasqmatePolicyDeniedError;
|
|
48
|
+
|
|
49
|
+
/** @deprecated Renamed to `TasqmateAuth` in `@tasqmate/sdk`. */
|
|
50
|
+
export type TasqAuth = TasqmateAuth;
|
|
51
|
+
|
|
52
|
+
/** @deprecated Renamed to `TasqmateClientOptions` in `@tasqmate/sdk`. */
|
|
53
|
+
export type TasqClientOptions = TasqmateClientOptions;
|
|
54
|
+
|
|
55
|
+
/** @deprecated Renamed to `TasqmateRequestOptions` in `@tasqmate/sdk`. */
|
|
56
|
+
export type TasqRequestOptions = TasqmateRequestOptions;
|
|
57
|
+
|
|
58
|
+
/** @deprecated Renamed to `TasqmateValidationIssue` in `@tasqmate/sdk`. */
|
|
59
|
+
export type TasqValidationIssue = TasqmateValidationIssue;
|
package/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @pxlabz/tasq-sdk is now @tasqmate/sdk. Everything is re-exported from there,
|
|
2
|
+
// and the class names from before the rename are kept as aliases.
|
|
3
|
+
export * from "@tasqmate/sdk";
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
TasqmateApiError as TasqApiError,
|
|
7
|
+
TasqmateClient as TasqClient,
|
|
8
|
+
TasqmatePolicyDeniedError as TasqPolicyDeniedError,
|
|
9
|
+
TasqmateRateLimitError as TasqRateLimitError,
|
|
10
|
+
TasqmateValidationError as TasqValidationError,
|
|
11
|
+
} from "@tasqmate/sdk";
|
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pxlabz/tasq-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Renamed to @tasqmate/sdk. This package re-exports it so existing imports keep working until January 2027.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"sdk"
|
|
8
|
-
"agents",
|
|
9
|
-
"project-management",
|
|
10
|
-
"api-client"
|
|
6
|
+
"tasqmate",
|
|
7
|
+
"sdk"
|
|
11
8
|
],
|
|
12
9
|
"license": "MIT",
|
|
13
10
|
"author": "Paul Cedrick Artigo",
|
|
@@ -15,21 +12,19 @@
|
|
|
15
12
|
"repository": {
|
|
16
13
|
"type": "git",
|
|
17
14
|
"url": "git+https://github.com/pxlabz/tasq.git",
|
|
18
|
-
"directory": "packages/sdk"
|
|
19
|
-
},
|
|
20
|
-
"bugs": {
|
|
21
|
-
"url": "https://github.com/pxlabz/tasq/issues"
|
|
15
|
+
"directory": "packages/legacy-sdk"
|
|
22
16
|
},
|
|
23
17
|
"private": false,
|
|
24
18
|
"type": "module",
|
|
25
19
|
"exports": {
|
|
26
20
|
".": {
|
|
27
|
-
"types": "./
|
|
28
|
-
"import": "./
|
|
21
|
+
"types": "./index.d.ts",
|
|
22
|
+
"import": "./index.js"
|
|
29
23
|
}
|
|
30
24
|
},
|
|
31
25
|
"files": [
|
|
32
|
-
"
|
|
26
|
+
"index.js",
|
|
27
|
+
"index.d.ts",
|
|
33
28
|
"README.md",
|
|
34
29
|
"LICENSE"
|
|
35
30
|
],
|
|
@@ -40,17 +35,7 @@
|
|
|
40
35
|
"engines": {
|
|
41
36
|
"node": ">=20.3"
|
|
42
37
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"generate:contracts": "bun scripts/generate-contract-types.ts",
|
|
46
|
-
"typecheck": "tsc --project tsconfig.json --noEmit",
|
|
47
|
-
"lint": "cd ../.. && bun --bun ./node_modules/oxlint/bin/oxlint packages/sdk",
|
|
48
|
-
"test": "bun test"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@types/bun": "^1.3.12",
|
|
52
|
-
"hono": "^4.12.12",
|
|
53
|
-
"tsup": "^8.5.0",
|
|
54
|
-
"typescript": "^5.7.2"
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@tasqmate/sdk": "0.3.0"
|
|
55
40
|
}
|
|
56
41
|
}
|