@orchestration-ai/sdk 0.7.1 → 0.7.2

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.
@@ -81,7 +81,7 @@ function renderExplorePage(services, permissions) {
81
81
  <p class="tool-desc">${tool.description}</p>
82
82
  ${params ? `<div class="params">${params}</div>` : ""}
83
83
  <form class="tool-form" style="display:none" onsubmit="callTool(event, '${s.unique_name}', '${tool.path}', '${tool.method}')">
84
- <input class="param-input layer-id-input" type="text" name="__layerId__" placeholder="X-LayerId (optional)" />
84
+ <input class="param-input layer-id-input" type="text" name="__passkey__" placeholder="X-Passkey (optional)" />
85
85
  ${paramInputs}
86
86
  <div class="form-actions">
87
87
  <button type="submit" class="call-btn">Call</button>
@@ -99,7 +99,7 @@ function renderExplorePage(services, permissions) {
99
99
  <button class="try-btn" onclick="toggleForm(this)">Try</button>
100
100
  </div>
101
101
  <form class="tool-form" style="display:none" onsubmit="callTool(event, '${s.unique_name}', '${t}', 'POST')">
102
- <input class="param-input layer-id-input" type="text" name="__layerId__" placeholder="X-LayerId (optional)" />
102
+ <input class="param-input layer-id-input" type="text" name="__passkey__" placeholder="X-Passkey (optional)" />
103
103
  <textarea class="raw-body" name="__raw__" placeholder='{ "key": "value" }' rows="3"></textarea>
104
104
  <div class="form-actions">
105
105
  <button type="submit" class="call-btn">Call</button>
@@ -411,14 +411,14 @@ function renderExplorePage(services, permissions) {
411
411
  const form = e.target;
412
412
  const responseEl = form.querySelector('.tool-response');
413
413
  const rawField = form.querySelector('[name="__raw__"]');
414
- const layerIdField = form.querySelector('[name="__layerId__"]');
415
- const layerId = layerIdField ? layerIdField.value.trim() : '';
414
+ const passkeyField = form.querySelector('[name="__passkey__"]');
415
+ const passkey = passkeyField ? passkeyField.value.trim() : '';
416
416
  let body = {};
417
417
  if (rawField) {
418
418
  try { body = JSON.parse(rawField.value || '{}'); } catch { body = {}; }
419
419
  } else {
420
420
  for (const input of form.querySelectorAll('[name]')) {
421
- if (input.name === '__layerId__') continue;
421
+ if (input.name === '__passkey__') continue;
422
422
  const name = input.name;
423
423
  const type = input.dataset.type;
424
424
  if (type === 'boolean') { body[name] = input.checked; }
@@ -433,7 +433,7 @@ function renderExplorePage(services, permissions) {
433
433
  const url = '/services/' + service + '/api/' + path;
434
434
  const headers = {};
435
435
  if (isBodyMethod) { headers['Content-Type'] = 'application/json'; }
436
- if (layerId) { headers['X-LayerId'] = layerId; }
436
+ if (passkey) { headers['X-Passkey'] = passkey; }
437
437
  const opts = { method: method.toUpperCase(), headers };
438
438
  if (isBodyMethod) { opts.body = JSON.stringify(body); }
439
439
  const res = await fetch(url, opts);
@@ -39,7 +39,7 @@ function renderExplorePage(services, permissions) {
39
39
  <p class="tool-desc">${tool.description}</p>
40
40
  ${params ? `<div class="params">${params}</div>` : ""}
41
41
  <form class="tool-form" style="display:none" onsubmit="callTool(event, '${s.unique_name}', '${tool.path}', '${tool.method}')">
42
- <input class="param-input layer-id-input" type="text" name="__layerId__" placeholder="X-LayerId (optional)" />
42
+ <input class="param-input layer-id-input" type="text" name="__passkey__" placeholder="X-Passkey (optional)" />
43
43
  ${paramInputs}
44
44
  <div class="form-actions">
45
45
  <button type="submit" class="call-btn">Call</button>
@@ -57,7 +57,7 @@ function renderExplorePage(services, permissions) {
57
57
  <button class="try-btn" onclick="toggleForm(this)">Try</button>
58
58
  </div>
59
59
  <form class="tool-form" style="display:none" onsubmit="callTool(event, '${s.unique_name}', '${t}', 'POST')">
60
- <input class="param-input layer-id-input" type="text" name="__layerId__" placeholder="X-LayerId (optional)" />
60
+ <input class="param-input layer-id-input" type="text" name="__passkey__" placeholder="X-Passkey (optional)" />
61
61
  <textarea class="raw-body" name="__raw__" placeholder='{ "key": "value" }' rows="3"></textarea>
62
62
  <div class="form-actions">
63
63
  <button type="submit" class="call-btn">Call</button>
@@ -369,14 +369,14 @@ function renderExplorePage(services, permissions) {
369
369
  const form = e.target;
370
370
  const responseEl = form.querySelector('.tool-response');
371
371
  const rawField = form.querySelector('[name="__raw__"]');
372
- const layerIdField = form.querySelector('[name="__layerId__"]');
373
- const layerId = layerIdField ? layerIdField.value.trim() : '';
372
+ const passkeyField = form.querySelector('[name="__passkey__"]');
373
+ const passkey = passkeyField ? passkeyField.value.trim() : '';
374
374
  let body = {};
375
375
  if (rawField) {
376
376
  try { body = JSON.parse(rawField.value || '{}'); } catch { body = {}; }
377
377
  } else {
378
378
  for (const input of form.querySelectorAll('[name]')) {
379
- if (input.name === '__layerId__') continue;
379
+ if (input.name === '__passkey__') continue;
380
380
  const name = input.name;
381
381
  const type = input.dataset.type;
382
382
  if (type === 'boolean') { body[name] = input.checked; }
@@ -391,7 +391,7 @@ function renderExplorePage(services, permissions) {
391
391
  const url = '/services/' + service + '/api/' + path;
392
392
  const headers = {};
393
393
  if (isBodyMethod) { headers['Content-Type'] = 'application/json'; }
394
- if (layerId) { headers['X-LayerId'] = layerId; }
394
+ if (passkey) { headers['X-Passkey'] = passkey; }
395
395
  const opts = { method: method.toUpperCase(), headers };
396
396
  if (isBodyMethod) { opts.body = JSON.stringify(body); }
397
397
  const res = await fetch(url, opts);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestration-ai/sdk",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "TypeScript SDK for Orchestration AI — The Operating System for AI-Powered Businesses",
5
5
  "license": "MIT",
6
6
  "author": "Orchestration AI",