@loxtep/sdk 0.9.20 → 0.9.22
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 +23 -0
- package/dist/cli/commands/connectors-cmd.d.ts +3 -1
- package/dist/cli/commands/connectors-cmd.d.ts.map +1 -1
- package/dist/cli/commands/connectors-cmd.js +18 -1
- package/dist/cli/commands/connectors-cmd.js.map +1 -1
- package/dist/cli/commands/delivery-cmd.js +1 -1
- package/dist/cli/commands/push-cmd.d.ts.map +1 -1
- package/dist/cli/commands/push-cmd.js +14 -0
- package/dist/cli/commands/push-cmd.js.map +1 -1
- package/dist/cli/commands/transform-cmd.js +1 -1
- package/dist/cli/commands/workflows-cmd.d.ts +12 -0
- package/dist/cli/commands/workflows-cmd.d.ts.map +1 -1
- package/dist/cli/commands/workflows-cmd.js +30 -0
- package/dist/cli/commands/workflows-cmd.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +7 -1
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +57 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/client/bundles-types.d.ts +25 -0
- package/dist/client/bundles-types.d.ts.map +1 -1
- package/dist/client/bundles.d.ts +9 -5
- package/dist/client/bundles.d.ts.map +1 -1
- package/dist/client/bundles.js +33 -4
- package/dist/client/bundles.js.map +1 -1
- package/dist/client/connectors-types.d.ts +10 -0
- package/dist/client/connectors-types.d.ts.map +1 -1
- package/dist/client/connectors.d.ts +2 -1
- package/dist/client/connectors.d.ts.map +1 -1
- package/dist/client/connectors.js +9 -0
- package/dist/client/connectors.js.map +1 -1
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/loxtep-client.d.ts +1 -1
- package/dist/client/loxtep-client.d.ts.map +1 -1
- package/dist/client/loxtep-client.js +4 -1
- package/dist/client/loxtep-client.js.map +1 -1
- package/dist/client/meaning.d.ts +4 -1
- package/dist/client/meaning.d.ts.map +1 -1
- package/dist/client/meaning.js +2 -1
- package/dist/client/meaning.js.map +1 -1
- package/dist/client/packages.d.ts +56 -0
- package/dist/client/packages.d.ts.map +1 -0
- package/dist/client/packages.js +26 -0
- package/dist/client/packages.js.map +1 -0
- package/dist/client/project-workspace-status-types.d.ts +3 -3
- package/dist/client/workflows.d.ts +16 -0
- package/dist/client/workflows.d.ts.map +1 -1
- package/dist/client/workflows.js +61 -0
- package/dist/client/workflows.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/workspace-lint.d.ts +25 -0
- package/dist/lib/workspace-lint.d.ts.map +1 -1
- package/dist/lib/workspace-lint.js +150 -37
- package/dist/lib/workspace-lint.js.map +1 -1
- package/docs/sdk-mcp-mapping.md +29 -7
- package/package.json +2 -2
package/docs/sdk-mcp-mapping.md
CHANGED
|
@@ -50,7 +50,8 @@ Low-level workflow writer escape hatch: `client.build.get_writer(workflow_id, {
|
|
|
50
50
|
|
|
51
51
|
Vocabulary: MCP `loxtep_build` trigger operations (backend: connections) and target operations
|
|
52
52
|
(backend: consumptions). Connector OAuth uses `get_oauth_url`; connectivity
|
|
53
|
-
probe uses `test_connector` / `loxtep connectors test <id>`;
|
|
53
|
+
probe uses `test_connector` / `loxtep connectors test <id>`; entity discovery uses
|
|
54
|
+
`list_connector_entities` / `loxtep connectors list-entities <id>`; sample capture uses
|
|
54
55
|
`capture_samples` / `loxtep connectors capture-samples <id> --entity-type <name>`.
|
|
55
56
|
|
|
56
57
|
When unsure: **MCP for provisioning and agent tool calls**; **SDK/CLI for runtime**.
|
|
@@ -155,16 +156,37 @@ single-id PUT (no dedicated batch REST).
|
|
|
155
156
|
| reject | `.reject(semantic_proposal_id, { resolution_note? })` | `PUT …` `disposition: rejected` |
|
|
156
157
|
| batch accept / reject | `.accept_batch` / `.reject_batch` | N× PUT |
|
|
157
158
|
|
|
158
|
-
## Meaning: semantic bundles
|
|
159
|
+
## Meaning: semantic bundles + packages
|
|
159
160
|
|
|
160
161
|
| MCP operation | SDK | REST |
|
|
161
162
|
| --- | --- | --- |
|
|
162
|
-
| `import_semantic_bundle` | `client.meaning.bundles.import({ bundle, dry_run? })` | `POST /semantic-layer/bundles/import` |
|
|
163
|
+
| `import_semantic_bundle` | `client.meaning.bundles.import({ bundle, dry_run?, activation?, package_id? })` | `POST /semantic-layer/bundles/import` |
|
|
164
|
+
| `export_semantic_bundle` | `client.meaning.bundles.export({ …filters })` | `GET /semantic-layer/bundles/export` |
|
|
165
|
+
| `save_semantic_package` | `client.meaning.packages.save({ bundle, … })` | `POST /semantic-layer/packages` `action=save` |
|
|
166
|
+
| `plan_semantic_package` | `.plan({ package_id, revision })` | `action=plan` |
|
|
167
|
+
| `approve_semantic_package` | `.approve({ package_id, revision, content_hash })` | `action=approve` |
|
|
168
|
+
| `deploy_semantic_package` | `.deploy({ package_id, revision, content_hash })` | `action=deploy` |
|
|
169
|
+
| `verify_semantic_package` | `.verify({ package_id, revision, include_r2rml? })` | `action=verify` |
|
|
170
|
+
| `get_semantic_package_status` | `.status({ package_id, revision? })` | `action=status` |
|
|
171
|
+
| `import_external_semantic_package` | `.import_external({ format, content, … })` | `action=import_external` |
|
|
172
|
+
|
|
173
|
+
Default import `activation` is `stage` (package revision + approval). Use
|
|
174
|
+
`activation: 'deploy'` only for legacy immediate apply. Phase 0 error contract:
|
|
175
|
+
result always includes `skipped_count` and `errors`. Staged / dry_run responses
|
|
176
|
+
are not treated as failures when plan skips exist.
|
|
177
|
+
|
|
178
|
+
## Build: query_trigger preview / run (D14)
|
|
179
|
+
|
|
180
|
+
MCP `loxtep_build` ops for enrichment SQL derivation (`workflow.json` →
|
|
181
|
+
`trigger.query_trigger`). SDK surface: `client.build.workflows`.
|
|
182
|
+
|
|
183
|
+
| MCP operation | SDK | CLI |
|
|
184
|
+
| --- | --- | --- |
|
|
185
|
+
| `preview_query_trigger` | `client.build.workflows.preview_query_trigger({ workflow_id, query?, primary_key?, limit? })` | `loxtep workflows preview-query-trigger --workflow-id <uuid> [--query] [--limit] [--primary-key a,b]` |
|
|
186
|
+
| `run_query_trigger` | `client.build.workflows.run_query_trigger({ workflow_id, query?, primary_key?, sink_data_product_id? })` | `loxtep workflows run-query-trigger --workflow-id <uuid> [--sink-data-product-id]` |
|
|
163
187
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
`partial: true` and still returns the result instead of dropping error detail.
|
|
167
|
-
MCP-only sibling: `export_semantic_bundle` (no SDK yet).
|
|
188
|
+
These call `POST /ai/mcp/tools/call` with facade `loxtep_build` (no dedicated REST
|
|
189
|
+
in this release). Requires a saved enrichment workflow with `trigger.query_trigger`.
|
|
168
190
|
|
|
169
191
|
## Define: domain shapes (Phase 2)
|
|
170
192
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loxtep/sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.22",
|
|
4
4
|
"description": "Loxtep SDK for Node.js — the Enterprise Context Layer: data products, workflows, projects, queues, and machine-usable context for AI",
|
|
5
5
|
"author": "Loxtep <engineering@loxtep.io>",
|
|
6
6
|
"homepage": "https://loxtep.io",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"keywords": [
|
|
59
59
|
"loxtep",
|
|
60
60
|
"sdk",
|
|
61
|
-
"
|
|
61
|
+
"ai-agents",
|
|
62
62
|
"streaming",
|
|
63
63
|
"data-products",
|
|
64
64
|
"event-streaming"
|