@mitralab.io/sdk-core 0.2.9 → 0.2.10-beta.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 +18 -0
- package/README.md +2 -1
- package/contracts/README.md +5 -0
- package/contracts/manifest.json +6 -1
- package/contracts/v0.2.10-beta.0/sdk-parity.json +2902 -0
- package/dist/index.cjs +59 -0
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +59 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.2.10-beta.0
|
|
6
|
+
|
|
7
|
+
- `agentCredentials.usage(provider, { scope })` reads the last subscription reading a chat on that
|
|
8
|
+
credential reported (`GET /api/v1/credentials/{provider}/usage`), with no chat open:
|
|
9
|
+
`{ harness, observedAt, status, windows: [{ kind, usedPercent, resetsAt, windowSeconds }] }`.
|
|
10
|
+
`windows` carries every window the provider reports (Claude: `FIVE_HOUR`, `WEEKLY`,
|
|
11
|
+
`WEEKLY_OPUS` and any other it sends; Codex: its primary and secondary, named by duration) and
|
|
12
|
+
`status` is the provider's own (Claude: `allowed`, `allowed_warning`, `rejected`; Codex: the
|
|
13
|
+
limit it reports reached, or null). It resolves to `null` while no turn on the provider's
|
|
14
|
+
subscription login has reported one (the Copilot's `CREDENTIAL_USAGE_NOT_FOUND`); any other
|
|
15
|
+
failure, a plain 404 included, still rejects.
|
|
16
|
+
- `agentConnections.usage(id, provider)` reads the same for an app connection
|
|
17
|
+
(`GET /api/v1/connections/{id}/providers/{provider}/usage`).
|
|
18
|
+
- The Agent session emits `providerUsage`, in the same shape, when the chat's box reports the
|
|
19
|
+
reading during a turn. It comes only on the direct channel of a business agent chat, never on
|
|
20
|
+
the Copilot stream a chat falls back to. A reading that does not parse is dropped, never an
|
|
21
|
+
error.
|
|
22
|
+
|
|
5
23
|
## 0.2.9-beta.1
|
|
6
24
|
|
|
7
25
|
- Only a business agent's chat (one with an `agentId`) is created with `runtime: "T3"` and asks
|
package/README.md
CHANGED
|
@@ -32,7 +32,8 @@ The package contains:
|
|
|
32
32
|
- Function scheduling composed into single-Function create, patch, get, and list
|
|
33
33
|
- business agents and workflows
|
|
34
34
|
- integration configs, resources, templates, tests, proxying, and executions
|
|
35
|
-
- Copilot tasks, messages, credentials, models,
|
|
35
|
+
- Copilot tasks, messages, credentials and the last subscription window each one reported, models,
|
|
36
|
+
and app connections
|
|
36
37
|
- an Agent task live-session state machine with bounded queue and `sendAndWait`, and the direct
|
|
37
38
|
channel to the chat's box
|
|
38
39
|
- Messenger notifications and composed safe app context
|
package/contracts/README.md
CHANGED
|
@@ -24,6 +24,11 @@ publishes.
|
|
|
24
24
|
|
|
25
25
|
## Versions
|
|
26
26
|
|
|
27
|
+
- `0.2.10-beta.0` is the `0.2.9` parity surface republished with the subscription usage:
|
|
28
|
+
`agentCredentials.usage`, `agentConnections.usage` and the `providerUsage` session event, every
|
|
29
|
+
window with the provider status, which the parity cases do not cover. Same parity cases; the
|
|
30
|
+
version exists so a consumer pinning the package can pin a corpus with the same number.
|
|
31
|
+
|
|
27
32
|
- `0.2.9` is the stable release of the `0.2.9-beta.1` surface: the direct box channel on the
|
|
28
33
|
Agent session, limited to business agent chats. Same parity cases; the version exists so a
|
|
29
34
|
consumer pinning the stable package can pin a corpus with the same number.
|
package/contracts/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contract": "SDK-PARITY-001",
|
|
3
|
-
"current": "0.2.
|
|
3
|
+
"current": "0.2.10-beta.0",
|
|
4
4
|
"versions": [
|
|
5
5
|
{
|
|
6
6
|
"version": "0.1.0",
|
|
@@ -85,6 +85,11 @@
|
|
|
85
85
|
"version": "0.2.9",
|
|
86
86
|
"path": "v0.2.9/sdk-parity.json",
|
|
87
87
|
"sha256": "aa81d033dc4bf7ccd30d712568e6bccf1319a208e9072c40369a86b090bc5c13"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"version": "0.2.10-beta.0",
|
|
91
|
+
"path": "v0.2.10-beta.0/sdk-parity.json",
|
|
92
|
+
"sha256": "f52f93de7457bef2c1dff6f3817d32cea473434d1ad7f9906c5c5d6682db410f"
|
|
88
93
|
}
|
|
89
94
|
]
|
|
90
95
|
}
|