@siglume/api-sdk 0.7.6 → 0.8.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 +34 -3
- package/dist/bin/siglume.cjs +415 -37
- package/dist/bin/siglume.cjs.map +1 -1
- package/dist/bin/siglume.js +415 -37
- package/dist/bin/siglume.js.map +1 -1
- package/dist/cli/index.cjs +415 -37
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +11 -0
- package/dist/cli/index.d.ts +11 -0
- package/dist/cli/index.js +415 -37
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +27 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +27 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
TypeScript runtime for building, testing, and registering Siglume developer apps.
|
|
4
4
|
|
|
5
|
-
This package is prepared in the public SDK repo and ships with the v0.
|
|
5
|
+
This package is prepared in the public SDK repo and ships with the current v0.7.6 release line.
|
|
6
6
|
|
|
7
7
|
It also includes `draft_tool_manual()` and `fill_tool_manual_gaps()` with
|
|
8
8
|
bundled `AnthropicProvider` and `OpenAIProvider` classes. Provide
|
|
@@ -21,7 +21,7 @@ const result = await draft_tool_manual({
|
|
|
21
21
|
console.log(result.quality_report.grade);
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Buyer-side
|
|
24
|
+
Buyer-side discovery and export helpers are also included:
|
|
25
25
|
|
|
26
26
|
```ts
|
|
27
27
|
import { SiglumeBuyerClient, to_anthropic_tool } from "@siglume/api-sdk";
|
|
@@ -29,13 +29,16 @@ import { SiglumeBuyerClient, to_anthropic_tool } from "@siglume/api-sdk";
|
|
|
29
29
|
const buyer = new SiglumeBuyerClient({
|
|
30
30
|
api_key: process.env.SIGLUME_API_KEY ?? "sig_mock_key",
|
|
31
31
|
default_agent_id: process.env.SIGLUME_AGENT_ID,
|
|
32
|
-
allow_internal_execute: true,
|
|
33
32
|
});
|
|
34
33
|
|
|
35
34
|
const listing = await buyer.get_listing("currency-converter-v2");
|
|
36
35
|
const anthropicTool = to_anthropic_tool(listing.tool_manual).schema;
|
|
37
36
|
```
|
|
38
37
|
|
|
38
|
+
`SiglumeBuyerClient.invoke()` remains experimental and stays gated behind
|
|
39
|
+
`allow_internal_execute: true` for privileged test environments until a public
|
|
40
|
+
buyer execution route is available.
|
|
41
|
+
|
|
39
42
|
See [`../docs/buyer-sdk.md`](../docs/buyer-sdk.md) and
|
|
40
43
|
[`../examples/buyer_claude_agent_sdk.ts`](../examples/buyer_claude_agent_sdk.ts)
|
|
41
44
|
for the current experimental limitations and the mocked integration example.
|
|
@@ -50,3 +53,31 @@ siglume init --from-operation owner.charter.update ./my-charter-editor
|
|
|
50
53
|
|
|
51
54
|
See [`../docs/template-generator.md`](../docs/template-generator.md) for the
|
|
52
55
|
generated file layout, fallback behavior, and review samples.
|
|
56
|
+
|
|
57
|
+
For API Store publishing, the recommended CLI flow is:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
siglume init --template price-compare
|
|
61
|
+
siglume test .
|
|
62
|
+
siglume score . --offline
|
|
63
|
+
|
|
64
|
+
# Issue SIGLUME_API_KEY from Developer Portal -> CLI / API keys before production checks:
|
|
65
|
+
siglume validate .
|
|
66
|
+
siglume score . --remote
|
|
67
|
+
siglume preflight . # checks blockers without creating a draft
|
|
68
|
+
siglume register . # preflight + draft only
|
|
69
|
+
siglume register . --confirm # confirm + publish
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
`siglume register` reads `tool_manual.json`, the local Git-ignored
|
|
73
|
+
`runtime_validation.json`, and optional local Git-ignored
|
|
74
|
+
`oauth_credentials.json`. Generated projects keep runtime validation and OAuth
|
|
75
|
+
credential files Git-ignored because they can contain review keys and client
|
|
76
|
+
secrets. SDK / HTTP automation can pass
|
|
77
|
+
`source_url`, `source_context`, and `input_form_spec` directly to
|
|
78
|
+
`auto-register`. The CLI runs preflight by default, then calls the same
|
|
79
|
+
`auto-register` route used by SDK / automation clients. Re-run the
|
|
80
|
+
same `capability_key` to stage an upgrade. The server-side publish gate
|
|
81
|
+
includes runtime checks, contract checks, seller OAuth checks, pricing / payout
|
|
82
|
+
rules, and a mandatory fail-closed LLM legal review for law compliance plus
|
|
83
|
+
public-order / morals compliance.
|