@ziggs-ai/agent-sdk 0.4.0 → 0.4.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.
@@ -22,6 +22,12 @@ export declare class AgreementService {
22
22
  counter(agreementId: string, counter: CounterAgreementData): Promise<Agreement>;
23
23
  getStatus(agreementId: string): Promise<unknown | null>;
24
24
  list(filters?: ListAgreementsFilters): Promise<Agreement[]>;
25
+ /**
26
+ * ZIG-942: despite the name, the default returns every agreement the
27
+ * caller's grant can read in the active org — including ones the caller is
28
+ * not a party to (`isYou` all-false). Pass `{ partyOnly: true }` for only
29
+ * agreements where the caller is a party.
30
+ */
25
31
  mine(filters?: GetMyAgreementsFilters): Promise<Agreement[]>;
26
32
  get(agreementId: string): Promise<Agreement | null>;
27
33
  create(body: CreateAgreementBody): Promise<{
@@ -46,6 +46,12 @@ export class AgreementService {
46
46
  list(filters = {}) {
47
47
  return listAgreements(filters, this.creds);
48
48
  }
49
+ /**
50
+ * ZIG-942: despite the name, the default returns every agreement the
51
+ * caller's grant can read in the active org — including ones the caller is
52
+ * not a party to (`isYou` all-false). Pass `{ partyOnly: true }` for only
53
+ * agreements where the caller is a party.
54
+ */
49
55
  mine(filters = {}) {
50
56
  return getMyAgreements(filters, this.creds);
51
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ziggs-ai/agent-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Agent framework SDK for building autonomous agents on the Ziggs platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "@anthropic-ai/claude-agent-sdk": "^0.3.204",
27
27
  "@anthropic-ai/sdk": "^0.110.0",
28
28
  "@modelcontextprotocol/sdk": "^1.29.0",
29
- "@ziggs-ai/api-client": "^0.3.0",
29
+ "@ziggs-ai/api-client": "^0.3.1",
30
30
  "ajv": "^8.17.1",
31
31
  "dotenv": "^17.2.3",
32
32
  "openai": "^4.0.0",