macp-sdk-typescript 0.12.0 → 0.13.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/CHANGELOG.md +22 -10
- package/dist/projections/task.d.ts +0 -23
- package/dist/projections/task.js +0 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,17 @@ All notable changes to `macp-sdk-typescript` are documented here. The format
|
|
|
4
4
|
follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the
|
|
5
5
|
project uses [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.13.0](https://github.com/multiagentcoordinationprotocol/macp-sdk-typescript/compare/v0.12.0...v0.13.0) (2026-09-30)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* **projections:** TaskProjection.isComplete(taskId) has been removed; use isCompleted(taskId) instead (identical signature and semantics). The TaskCompletionRecord and TaskFailureRecord type aliases have been removed; use TaskCompleteRecord and TaskFailRecord respectively (identical shape). A TypeScript consumer still importing the old type names gets a compile-time TS2724; a plain-JS (or `as any`-cast) caller still invoking isComplete() gets a runtime TypeError.
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **projections:** remove isComplete/TaskCompletionRecord/TaskFailureRecord shims ([#143](https://github.com/multiagentcoordinationprotocol/macp-sdk-typescript/issues/143)) ([06ec632](https://github.com/multiagentcoordinationprotocol/macp-sdk-typescript/commit/06ec632d6b6ffcfea0937083c3614fdc952d06a5))
|
|
17
|
+
|
|
7
18
|
## [0.12.0](https://github.com/multiagentcoordinationprotocol/macp-sdk-typescript/compare/v0.11.0...v0.12.0) (2026-09-30)
|
|
8
19
|
|
|
9
20
|
|
|
@@ -249,24 +260,25 @@ project uses [Semantic Versioning](https://semver.org/).
|
|
|
249
260
|
multiagentcoordinationprotocol#135). Every other `is*` predicate in this
|
|
250
261
|
SDK is past-participle (`isFailed`, `isAccepted`, `isTerminallyRejected`,
|
|
251
262
|
`isDeclined`); `isComplete` was the outlier, and `macp-sdk-python` has
|
|
252
|
-
always spelled this `is_completed`. The old name
|
|
253
|
-
`###
|
|
263
|
+
always spelled this `is_completed`. The old name was kept as a deprecated
|
|
264
|
+
alias for one minor, then removed — see `### Removed` below.
|
|
254
265
|
- **`TaskCompletionRecord` renamed to `TaskCompleteRecord`, and
|
|
255
266
|
`TaskFailureRecord` renamed to `TaskFailRecord`** (issue #138, cross-SDK
|
|
256
267
|
naming decision at multiagentcoordinationprotocol#135). Both now mirror
|
|
257
268
|
their triggering `TaskComplete`/`TaskFail` message types the way their
|
|
258
269
|
sibling `TaskUpdateRecord` already mirrors `TaskUpdate`, and match
|
|
259
270
|
`macp-sdk-python` and `macp-runtime`'s own names for the same records. The
|
|
260
|
-
old names
|
|
271
|
+
old names were kept as deprecated aliases for one minor, then removed —
|
|
272
|
+
see `### Removed` below.
|
|
261
273
|
|
|
262
|
-
###
|
|
274
|
+
### Removed
|
|
263
275
|
|
|
264
|
-
- **`TaskProjection.isComplete(taskId)`**
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
- **`TaskCompletionRecord`/`TaskFailureRecord`**
|
|
268
|
-
|
|
269
|
-
respectively.
|
|
276
|
+
- **`TaskProjection.isComplete(taskId)`** (issue #138/#140, breaking): the
|
|
277
|
+
deprecated alias (added in `0.12.0`) has been removed. Use
|
|
278
|
+
`isCompleted(taskId)`.
|
|
279
|
+
- **`TaskCompletionRecord`/`TaskFailureRecord`** (issue #138/#140, breaking):
|
|
280
|
+
the deprecated type aliases (added in `0.12.0`) have been removed. Use
|
|
281
|
+
`TaskCompleteRecord`/`TaskFailRecord` respectively.
|
|
270
282
|
|
|
271
283
|
### Fixed
|
|
272
284
|
|
|
@@ -25,14 +25,6 @@ export interface TaskCompleteRecord {
|
|
|
25
25
|
summary?: string;
|
|
26
26
|
sender: string;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Use {@link TaskCompleteRecord}. Renamed for cross-SDK naming
|
|
30
|
-
* parity (multiagentcoordinationprotocol#135, issue #138) — the record now
|
|
31
|
-
* mirrors its triggering `TaskComplete` message type the way its sibling
|
|
32
|
-
* {@link TaskUpdateRecord} already mirrors `TaskUpdate`, and matches
|
|
33
|
-
* `macp-sdk-python`'s `TaskCompleteRecord`. Scheduled for removal in 0.13.0.
|
|
34
|
-
*/
|
|
35
|
-
export type TaskCompletionRecord = TaskCompleteRecord;
|
|
36
28
|
export interface TaskFailRecord {
|
|
37
29
|
taskId: string;
|
|
38
30
|
assignee: string;
|
|
@@ -41,14 +33,6 @@ export interface TaskFailRecord {
|
|
|
41
33
|
retryable: boolean;
|
|
42
34
|
sender: string;
|
|
43
35
|
}
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated Use {@link TaskFailRecord}. Renamed for cross-SDK naming
|
|
46
|
-
* parity (multiagentcoordinationprotocol#135, issue #138) — the record now
|
|
47
|
-
* mirrors its triggering `TaskFail` message type the way its sibling
|
|
48
|
-
* {@link TaskUpdateRecord} already mirrors `TaskUpdate`, and matches
|
|
49
|
-
* `macp-sdk-python`'s `TaskFailRecord`. Scheduled for removal in 0.13.0.
|
|
50
|
-
*/
|
|
51
|
-
export type TaskFailureRecord = TaskFailRecord;
|
|
52
36
|
export declare class TaskProjection extends BaseProjection {
|
|
53
37
|
protected readonly mode = "macp.mode.task.v1";
|
|
54
38
|
readonly tasks: Map<string, TaskRecord>;
|
|
@@ -80,13 +64,6 @@ export declare class TaskProjection extends BaseProjection {
|
|
|
80
64
|
protected applyMode(envelope: Envelope, protoRegistry: ProtoRegistry): void;
|
|
81
65
|
getTask(taskId: string): TaskRecord | undefined;
|
|
82
66
|
isCompleted(taskId: string): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated Use {@link isCompleted}. Renamed for cross-SDK naming parity
|
|
85
|
-
* (multiagentcoordinationprotocol#135, issue #138) — every other `is*`
|
|
86
|
-
* predicate in this SDK is past-participle, and `macp-sdk-python` has
|
|
87
|
-
* always spelled this `is_completed`. Scheduled for removal in 0.13.0.
|
|
88
|
-
*/
|
|
89
|
-
isComplete(taskId: string): boolean;
|
|
90
67
|
isFailed(taskId: string): boolean;
|
|
91
68
|
isRetryable(taskId: string): boolean;
|
|
92
69
|
progressOf(taskId: string): number;
|
package/dist/projections/task.js
CHANGED
|
@@ -182,15 +182,6 @@ class TaskProjection extends base_1.BaseProjection {
|
|
|
182
182
|
isCompleted(taskId) {
|
|
183
183
|
return this.tasks.get(taskId)?.status === 'completed';
|
|
184
184
|
}
|
|
185
|
-
/**
|
|
186
|
-
* @deprecated Use {@link isCompleted}. Renamed for cross-SDK naming parity
|
|
187
|
-
* (multiagentcoordinationprotocol#135, issue #138) — every other `is*`
|
|
188
|
-
* predicate in this SDK is past-participle, and `macp-sdk-python` has
|
|
189
|
-
* always spelled this `is_completed`. Scheduled for removal in 0.13.0.
|
|
190
|
-
*/
|
|
191
|
-
isComplete(taskId) {
|
|
192
|
-
return this.isCompleted(taskId);
|
|
193
|
-
}
|
|
194
185
|
isFailed(taskId) {
|
|
195
186
|
return this.tasks.get(taskId)?.status === 'failed';
|
|
196
187
|
}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED