@go-labs-sg/gosh 0.6.1 → 0.7.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 +3 -0
- package/command-manifest.json +9 -0
- package/command-reference.md +8 -0
- package/dist/index.js +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,11 +65,14 @@ gosh help event list
|
|
|
65
65
|
gosh health status
|
|
66
66
|
gosh organization list
|
|
67
67
|
gosh event list --input '{"organizationId":"acme"}'
|
|
68
|
+
gosh event list-page --input '{"organizationId":"acme","page":1,"pageSize":25,"search":"race","status":"LIVE"}'
|
|
68
69
|
gosh event get --input '{"organizationId":"acme","eventId":"event-id"}'
|
|
69
70
|
```
|
|
70
71
|
|
|
71
72
|
Commands use `--input '<json>'` for the exact validated tRPC input object. This preserves the GOSH API's typed validation without maintaining a second set of lossy CLI flags. See [command-reference.md](./command-reference.md) or import `@go-labs-sg/gosh/command-manifest` for the generated catalogue.
|
|
72
73
|
|
|
74
|
+
`gosh event list-page` returns `{ items, page, pageSize, pageCount, totalCount }`. It defaults to page 1 with 25 results, accepts page sizes from 1 to 100, and supports server-side `search` and `status` filters. Archived events are excluded unless an explicit status is supplied. Request subsequent pages explicitly; the CLI does not automatically fetch every page. The existing `gosh event list` command and its array response remain unchanged.
|
|
75
|
+
|
|
73
76
|
The command registry covers every callable GOSH tRPC procedure: organizer and global-admin operations, organization invitations and membership, player workflows, public results/login procedures, uploads, and realtime subscriptions. The compile-time registry test fails whenever a new API procedure is added without a CLI command.
|
|
74
77
|
|
|
75
78
|
### Templates and organization scope
|
package/command-manifest.json
CHANGED
|
@@ -53,6 +53,15 @@
|
|
|
53
53
|
"requiresAuth": true,
|
|
54
54
|
"summary": "List active events in an organization."
|
|
55
55
|
},
|
|
56
|
+
{
|
|
57
|
+
"effects": [],
|
|
58
|
+
"input": "json",
|
|
59
|
+
"operation": "query",
|
|
60
|
+
"path": ["event", "list-page"],
|
|
61
|
+
"procedure": "event.listPage",
|
|
62
|
+
"requiresAuth": true,
|
|
63
|
+
"summary": "List a filtered page of organization events using page, pageSize, search, and status."
|
|
64
|
+
},
|
|
56
65
|
{
|
|
57
66
|
"effects": [],
|
|
58
67
|
"input": "json",
|
package/command-reference.md
CHANGED
|
@@ -50,6 +50,14 @@ List active events in an organization.
|
|
|
50
50
|
- Input: `--input '<json>'` required
|
|
51
51
|
- Effects: read-only
|
|
52
52
|
|
|
53
|
+
## `gosh event list-page`
|
|
54
|
+
|
|
55
|
+
List a filtered page of organization events using page, pageSize, search, and status.
|
|
56
|
+
|
|
57
|
+
- Authentication: browser-authenticated CLI session required
|
|
58
|
+
- Input: `--input '<json>'` required
|
|
59
|
+
- Effects: read-only
|
|
60
|
+
|
|
53
61
|
## `gosh event get`
|
|
54
62
|
|
|
55
63
|
Get an event by ID or slug.
|
package/dist/index.js
CHANGED
|
@@ -19912,6 +19912,10 @@ var typedOperations = {
|
|
|
19912
19912
|
kind: "query",
|
|
19913
19913
|
invoke: (client, input2) => client.event.list.query(input2)
|
|
19914
19914
|
},
|
|
19915
|
+
"event.listPage": {
|
|
19916
|
+
kind: "query",
|
|
19917
|
+
invoke: (client, input2) => client.event.listPage.query(input2)
|
|
19918
|
+
},
|
|
19915
19919
|
"event.getById": {
|
|
19916
19920
|
kind: "query",
|
|
19917
19921
|
invoke: (client, input2) => client.event.getById.query(input2)
|
|
@@ -20534,6 +20538,7 @@ var commands = [
|
|
|
20534
20538
|
query(["organization", "get"], "organization.getById", "Get one organization by ID or slug."),
|
|
20535
20539
|
query(["organization", "members"], "organization.listMembers", "List an organization's members and pending invitations."),
|
|
20536
20540
|
query(["event", "list"], "event.list", "List active events in an organization."),
|
|
20541
|
+
query(["event", "list-page"], "event.listPage", "List a filtered page of organization events using page, pageSize, search, and status."),
|
|
20537
20542
|
query(["event", "get"], "event.getById", "Get an event by ID or slug."),
|
|
20538
20543
|
query(["event", "setup"], "event.getAdminSetup", "Get the organizer setup view for an event."),
|
|
20539
20544
|
query(["event", "participants"], "event.getAdminParticipants", "Get the organizer participant view for an event."),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@go-labs-sg/gosh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "GOSH CLI for organizers and AI agents — manage organizations, events, teams, stations, missions, templates, and live operations through the GOSH API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|