@withgateway/sdk 0.2.2 → 0.2.3
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/dist/cli.js +129 -22
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +130 -23
- package/dist/cli.mjs.map +1 -1
- package/dist/files/index.js +9 -5
- package/dist/files/index.js.map +1 -1
- package/dist/files/index.mjs +9 -5
- package/dist/files/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -8
- package/dist/index.mjs.map +1 -1
- package/dist/traces/index.js +9 -5
- package/dist/traces/index.js.map +1 -1
- package/dist/traces/index.mjs +9 -5
- package/dist/traces/index.mjs.map +1 -1
- package/dist/tracing/index.js +1 -1
- package/dist/tracing/index.js.map +1 -1
- package/dist/tracing/index.mjs +1 -1
- package/dist/tracing/index.mjs.map +1 -1
- package/dist/worlds/index.d.mts +7 -1
- package/dist/worlds/index.d.ts +7 -1
- package/dist/worlds/index.js +12 -7
- package/dist/worlds/index.js.map +1 -1
- package/dist/worlds/index.mjs +12 -7
- package/dist/worlds/index.mjs.map +1 -1
- package/package.json +1 -1
- package/runtime/gatewaysdk/environment/schema/skills/worlds-getting-started/SKILL.md +5 -5
- package/skills/worlds-getting-started/SKILL.md +5 -5
package/package.json
CHANGED
|
@@ -337,7 +337,7 @@ SDK: `openSession(slug, { task: spec })` (TS), `open_session(slug, spec)` (Pytho
|
|
|
337
337
|
sessions open it by id and grades attribute to the task and its version:
|
|
338
338
|
|
|
339
339
|
```bash
|
|
340
|
-
gateway worlds task create task.json --world x # version 1; --name overrides the spec's name
|
|
340
|
+
gateway worlds task create task.json --world x # version 1; --name overrides the spec's name; --replace: a taken name becomes its next version
|
|
341
341
|
gateway worlds task list --world x --metadata externalUserId=u_42
|
|
342
342
|
gateway worlds task show <TASK_ID> [--version 2] # spec + version history
|
|
343
343
|
gateway worlds task validate <TASK_ID> # seed/grader entities against the pinned world's version
|
|
@@ -403,14 +403,14 @@ client is the agent. Dependency tools are `<alias>.<tool>`, each world grades on
|
|
|
403
403
|
```bash
|
|
404
404
|
gateway worlds serve ./whatsapp --task escalate_locked_account --port 8080 # prints {task, prompt, tools, verifiers, worlds}
|
|
405
405
|
curl -s localhost:8080/__session/task # + contracts: each tool's description and input schema
|
|
406
|
-
curl -s -X POST localhost:8080/__session/call -d '{"tool":"slack.post_message","args":{...}}'
|
|
407
406
|
gateway worlds call http://localhost:8080 list_conversations --state --grade # act from the CLI, read state, grade
|
|
408
407
|
gateway worlds call http://localhost:8080 slack.list_channels --args '{...}' --close # end it; the serve process exits
|
|
409
408
|
```
|
|
410
409
|
|
|
411
|
-
`GET /__session/{task,tools,state}`, `POST /__session/{call,grade,reset,seed,close}
|
|
412
|
-
|
|
413
|
-
|
|
410
|
+
`GET /__session/{task,tools,state}`, `POST /__session/{call,grade,reset,seed,close}`; `--task` and
|
|
411
|
+
`--scenario` belong to `serve`. A directory target (`worlds call ./x <tool>`) opens and closes its
|
|
412
|
+
own session per call. A HOSTED session is not a served url (the World Host serves no `/__session/*`;
|
|
413
|
+
its `api.url` takes the session's bearer): act on it by id, `gateway worlds call <sessionId> <tool> --state --grade --close`.
|
|
414
414
|
|
|
415
415
|
## 7. Run and grade
|
|
416
416
|
|
|
@@ -337,7 +337,7 @@ SDK: `openSession(slug, { task: spec })` (TS), `open_session(slug, spec)` (Pytho
|
|
|
337
337
|
sessions open it by id and grades attribute to the task and its version:
|
|
338
338
|
|
|
339
339
|
```bash
|
|
340
|
-
gateway worlds task create task.json --world x # version 1; --name overrides the spec's name
|
|
340
|
+
gateway worlds task create task.json --world x # version 1; --name overrides the spec's name; --replace: a taken name becomes its next version
|
|
341
341
|
gateway worlds task list --world x --metadata externalUserId=u_42
|
|
342
342
|
gateway worlds task show <TASK_ID> [--version 2] # spec + version history
|
|
343
343
|
gateway worlds task validate <TASK_ID> # seed/grader entities against the pinned world's version
|
|
@@ -403,14 +403,14 @@ client is the agent. Dependency tools are `<alias>.<tool>`, each world grades on
|
|
|
403
403
|
```bash
|
|
404
404
|
gateway worlds serve ./whatsapp --task escalate_locked_account --port 8080 # prints {task, prompt, tools, verifiers, worlds}
|
|
405
405
|
curl -s localhost:8080/__session/task # + contracts: each tool's description and input schema
|
|
406
|
-
curl -s -X POST localhost:8080/__session/call -d '{"tool":"slack.post_message","args":{...}}'
|
|
407
406
|
gateway worlds call http://localhost:8080 list_conversations --state --grade # act from the CLI, read state, grade
|
|
408
407
|
gateway worlds call http://localhost:8080 slack.list_channels --args '{...}' --close # end it; the serve process exits
|
|
409
408
|
```
|
|
410
409
|
|
|
411
|
-
`GET /__session/{task,tools,state}`, `POST /__session/{call,grade,reset,seed,close}
|
|
412
|
-
|
|
413
|
-
|
|
410
|
+
`GET /__session/{task,tools,state}`, `POST /__session/{call,grade,reset,seed,close}`; `--task` and
|
|
411
|
+
`--scenario` belong to `serve`. A directory target (`worlds call ./x <tool>`) opens and closes its
|
|
412
|
+
own session per call. A HOSTED session is not a served url (the World Host serves no `/__session/*`;
|
|
413
|
+
its `api.url` takes the session's bearer): act on it by id, `gateway worlds call <sessionId> <tool> --state --grade --close`.
|
|
414
414
|
|
|
415
415
|
## 7. Run and grade
|
|
416
416
|
|