@deepraxis/cli 0.3.0-dev.9119988 → 0.3.0-dev.a174480
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/COMMANDS.md +1 -1
- package/dist/praxis.js +105 -94
- package/package.json +1 -1
package/COMMANDS.md
CHANGED
|
@@ -610,6 +610,7 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
610
610
|
| `praxis api studio work draft unit batch-update <draft>` | `studio.works.drafts.units.batchUpdate` | POST `/studio/v1/works/{work}/drafts/{draft}/units:batchUpdate` | `--work`, `--expected-revision` |
|
|
611
611
|
| `praxis api studio work draft unit create` | `studio.works.drafts.units.create` | POST `/studio/v1/works/{work}/drafts/{draft}/units` | `--work`, `--draft`, `--kind`, `--name`, `--heading`, `--parent`, `--after`, `--synopsis`, `--points`, `--brief-points` |
|
|
612
612
|
| `praxis api studio work draft update <draft>` | `studio.works.drafts.update` | PATCH `/studio/v1/works/{work}/drafts/{draft}` | `--work`, `--update-mask`, `--expected-revision`, `--title`, `--key`, `--style`, `--mode` |
|
|
613
|
+
| `praxis api studio work draft update-brief <draft>` | `studio.works.drafts.updateBrief` | PATCH `/studio/v1/works/{work}/drafts/{draft}/brief` | `--work`, `--expected-revision`, `--text`, `--constraints`, `--attachments`, `--remove-points` |
|
|
613
614
|
| `praxis api studio work get <work>` | `studio.works.retrieve` | GET `/studio/v1/works/{work}` | `--draft`, `--unit`, `--expand` |
|
|
614
615
|
| `praxis api studio work list` | `studio.works.list` | GET `/studio/v1/works` | `--page-size`, `--page-token`, `--archived` |
|
|
615
616
|
| `praxis api studio work rendition delete <rendition>` | `studio.works.renditions.delete` | DELETE `/studio/v1/works/{work}/renditions/{rendition}` | `--work` |
|
|
@@ -636,7 +637,6 @@ Handwritten commands: `login`, `logout`, `whoami`, `org list`, `org switch <orga
|
|
|
636
637
|
| `praxis api studio work unit move <unit>` | `studio.works.units.move` | POST `/studio/v1/works/{work}/units/{unit}:move` | `--work`, `--expected-revision`, `--parent`, `--after` |
|
|
637
638
|
| `praxis api studio work unit update <unit>` | `studio.works.units.update` | PATCH `/studio/v1/works/{work}/units/{unit}` | `--work`, `--expected-revision`, `--name`, `--heading`, `--synopsis`, `--points`, `--brief-points`, `--body`, `--synopsis-from-body`, `--status`, `--seconds`, `--confirm-final-edit` |
|
|
638
639
|
| `praxis api studio work update <work>` | `studio.works.update` | PATCH `/studio/v1/works/{work}` | `--update-mask`, `--expected-revision`, `--title`, `--slug`, `--codexes`, `--style`, `--cover`, `--archived` |
|
|
639
|
-
| `praxis api studio work update-brief <work>` | `studio.works.updateBrief` | PATCH `/studio/v1/works/{work}/brief` | `--expected-revision`, `--text`, `--attachments`, `--remove-points` |
|
|
640
640
|
| `praxis api ticket activity get` | `ticket.activity.retrieve` | GET `/ticket/v1/activity` | `--repository`, `--page-size`, `--page-token`, `--filter` |
|
|
641
641
|
| `praxis api ticket comment create` | `ticket.tickets.comments.create` | POST `/ticket/v1/tickets/{number}/comments` | `--ticket`, `--repository`, `--body`, `--in-reply-to` |
|
|
642
642
|
| `praxis api ticket comment delete <id>` | `ticket.comments.delete` | DELETE `/ticket/v1/comments/{id}` | `--repository` |
|
package/dist/praxis.js
CHANGED
|
@@ -28864,7 +28864,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
28864
28864
|
resource: "media.generation.capabilities",
|
|
28865
28865
|
method: "list",
|
|
28866
28866
|
summary: "Get generation capabilities",
|
|
28867
|
-
description: 'Read what Praxis offers for each kind of generation — image, video and speech — before asking for one, and read a speech model’s voices here before naming one. Every type answers the models available for it, the model it uses when a request names none, and what each model costs per unit; a speech model the platform publishes voices for also carries default_voice and voices there, each voice with an id, a name, a gender, a language and a style — so a request for "a gentle female voice" is answered by matching the style and gender rather than by guessing an identifier. Pass a voice id back verbatim as voice, or omit voice to take default_voice; a voice that is neither one of those nor a voice material of the library is refused with INVALID_PARAMS before any job is created. OpenAI voice names such as alloy and aura are not valid here. The video fields beside the types keep their original meaning (intents, default model, duration and aspect-ratio limits, per-library concurrency). The models come from the platform model catalogue, and an id listed here is accepted verbatim as the model field of that type’s generation request. price.amount is a decimal string with its currency; video models that charge by resolution also carry price.by_resolution, whose amount is then the cheapest tier. A model the catalogue cannot route right now is still listed, with available false, so a caller can show it as temporarily unavailable instead of hiding it. When the catalogue cannot be read the endpoint still answers: every type comes back with an empty models list and its real default_model, and the voices a speech model carries are absent rather than empty, because the voices come from the platform and not from the catalogue. Generation is charged per unit and every output is stored in the library.',
|
|
28867
|
+
description: 'Read what Praxis offers for each kind of generation — image, video and speech — before asking for one, and read a speech model’s voices here before naming one. Every type answers the models available for it, the model it uses when a request names none, and what each model costs per unit; a speech model the platform publishes voices for also carries default_voice and voices there, each voice with an id, a name, a gender, a language and a style — so a request for "a gentle female voice" is answered by matching the style and gender rather than by guessing an identifier. Pass a voice id back verbatim as voice, or omit voice to take default_voice; a voice that is neither one of those nor a voice material of the library is refused with INVALID_PARAMS before any job is created. OpenAI voice names such as alloy and aura are not valid here. The video fields beside the types keep their original meaning (intents, default model, duration and aspect-ratio limits, per-library concurrency). The models come from the platform model catalogue, and an id listed here is accepted verbatim as the model field of that type’s generation request. A video model additionally carries the modes it can be driven in and the durations, aspect ratios and resolutions the catalogue has registered for it — modes, duration_seconds, aspect_ratios and resolutions — so read them before requesting video and choose a mode and a value this model lists; an empty list means the platform has not registered that option yet, and then omit the field rather than assume a value. price.amount is a decimal string with its currency; video models that charge by resolution also carry price.by_resolution, whose amount is then the cheapest tier. A model the catalogue cannot route right now is still listed, with available false, so a caller can show it as temporarily unavailable instead of hiding it. When the catalogue cannot be read the endpoint still answers: every type comes back with an empty models list and its real default_model, and the voices a speech model carries are absent rather than empty, because the voices come from the platform and not from the catalogue. Generation is charged per unit and every output is stored in the library.',
|
|
28868
28868
|
http: "GET",
|
|
28869
28869
|
path: "/media/v1/generation/capabilities",
|
|
28870
28870
|
streaming: "no",
|
|
@@ -37365,7 +37365,7 @@ for more details.`
|
|
|
37365
37365
|
resource: "studio.works",
|
|
37366
37366
|
method: "create",
|
|
37367
37367
|
summary: "Create a work with its goal",
|
|
37368
|
-
description: "Create a work: one deliverable piece plus everything around it. Pass the goal the writing serves
|
|
37368
|
+
description: "Create a work: one deliverable piece plus everything around it. Pass the goal the writing serves: the reader, what that reader should get or do, and the one-sentence message. The work holds the goal only; the requirement for one piece (the person's text, its points, a length, banned wording) belongs to that draft and is given with the drafts create call, so a novel's plot points and length never bind the promotion derived from it. A slug is derived from the title unless you pass one. The work starts with no drafts; create the first one with the drafts create call, because the genre decides the structure. A reference library belongs to the work and is created with it, so the setting written later stays this work's own; pass based_on to start from another work and have its setting and styles copied in as your own.",
|
|
37369
37369
|
http: "POST",
|
|
37370
37370
|
path: "/studio/v1/works",
|
|
37371
37371
|
streaming: "no",
|
|
@@ -37391,13 +37391,7 @@ for more details.`
|
|
|
37391
37391
|
name: "goal",
|
|
37392
37392
|
type: "object",
|
|
37393
37393
|
required: true,
|
|
37394
|
-
description: "What this work is for: who reads it, what that reader should get or do, the one message it carries,
|
|
37395
|
-
},
|
|
37396
|
-
{
|
|
37397
|
-
name: "brief",
|
|
37398
|
-
type: "object",
|
|
37399
|
-
required: false,
|
|
37400
|
-
description: "The original requirement as it arrives with a new work: the person's text, any attached source files, and the points split from it."
|
|
37394
|
+
description: "What this work is for: who reads it, what that reader should get or do, and the one message it carries. Limits such as a length belong to a draft's brief, not to the goal; a goal with constraints or any other unknown field answers INVALID_PARAMS."
|
|
37401
37395
|
},
|
|
37402
37396
|
{
|
|
37403
37397
|
name: "codexes",
|
|
@@ -37532,7 +37526,7 @@ for more details.`
|
|
|
37532
37526
|
name: "goal",
|
|
37533
37527
|
type: "object",
|
|
37534
37528
|
required: false,
|
|
37535
|
-
description: "What this work is for: who reads it, what that reader should get or do, the one message it carries,
|
|
37529
|
+
description: "What this work is for: who reads it, what that reader should get or do, and the one message it carries. Limits such as a length belong to a draft's brief, not to the goal; a goal with constraints or any other unknown field answers INVALID_PARAMS."
|
|
37536
37530
|
},
|
|
37537
37531
|
{
|
|
37538
37532
|
name: "codexes",
|
|
@@ -37568,69 +37562,6 @@ for more details.`
|
|
|
37568
37562
|
]
|
|
37569
37563
|
}
|
|
37570
37564
|
},
|
|
37571
|
-
{
|
|
37572
|
-
resource: "studio.works",
|
|
37573
|
-
method: "updateBrief",
|
|
37574
|
-
summary: "Add to or correct the original brief",
|
|
37575
|
-
description: "Extend the original brief: append text, attach files, add points taken from an outline, edit one point, or drop a point. Points are how the software checks that every requirement landed in a written unit, so split the person's outline into points here rather than burying them in prose. The brief carries its own revision, separate from the work and from each draft.",
|
|
37576
|
-
http: "PATCH",
|
|
37577
|
-
path: "/studio/v1/works/{work}/brief",
|
|
37578
|
-
streaming: "no",
|
|
37579
|
-
pagination: false,
|
|
37580
|
-
pathParams: [
|
|
37581
|
-
{
|
|
37582
|
-
name: "work",
|
|
37583
|
-
sdkName: "work",
|
|
37584
|
-
description: "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
37585
|
-
}
|
|
37586
|
-
],
|
|
37587
|
-
query: [],
|
|
37588
|
-
body: {
|
|
37589
|
-
required: true,
|
|
37590
|
-
fields: [
|
|
37591
|
-
{
|
|
37592
|
-
name: "expected_revision",
|
|
37593
|
-
type: "integer",
|
|
37594
|
-
required: false,
|
|
37595
|
-
description: "Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged."
|
|
37596
|
-
},
|
|
37597
|
-
{
|
|
37598
|
-
name: "text",
|
|
37599
|
-
type: "string",
|
|
37600
|
-
required: false,
|
|
37601
|
-
description: "Text to append to the stored brief, added after what is already there and never replacing it."
|
|
37602
|
-
},
|
|
37603
|
-
{
|
|
37604
|
-
name: "attachments",
|
|
37605
|
-
type: "array",
|
|
37606
|
-
itemType: "string",
|
|
37607
|
-
required: false,
|
|
37608
|
-
description: "Source files to keep with the brief, added to the ones already attached."
|
|
37609
|
-
},
|
|
37610
|
-
{
|
|
37611
|
-
name: "add_points",
|
|
37612
|
-
type: "array",
|
|
37613
|
-
itemType: "object",
|
|
37614
|
-
required: false,
|
|
37615
|
-
description: "New requirement points to split out of the brief; each receives the next free key in order. A plain string is a unit point; pass { text, scope: work } for a constraint on the whole piece (period, voice, point of view, cast, words to avoid)."
|
|
37616
|
-
},
|
|
37617
|
-
{
|
|
37618
|
-
name: "edit_points",
|
|
37619
|
-
type: "array",
|
|
37620
|
-
itemType: "object",
|
|
37621
|
-
required: false,
|
|
37622
|
-
description: "Existing points to reword, each naming the key it keeps and the text that replaces it."
|
|
37623
|
-
},
|
|
37624
|
-
{
|
|
37625
|
-
name: "remove_points",
|
|
37626
|
-
type: "array",
|
|
37627
|
-
itemType: "string",
|
|
37628
|
-
required: false,
|
|
37629
|
-
description: "Keys of points to drop; a dropped key is never reused, so later points keep their own keys."
|
|
37630
|
-
}
|
|
37631
|
-
]
|
|
37632
|
-
}
|
|
37633
|
-
},
|
|
37634
37565
|
{
|
|
37635
37566
|
resource: "studio.works.drafts",
|
|
37636
37567
|
method: "list",
|
|
@@ -37716,6 +37647,12 @@ for more details.`
|
|
|
37716
37647
|
required: false,
|
|
37717
37648
|
description: "What the new draft should be derived from, so the service can record the source revision for later staleness checks."
|
|
37718
37649
|
},
|
|
37650
|
+
{
|
|
37651
|
+
name: "brief",
|
|
37652
|
+
type: "object",
|
|
37653
|
+
required: false,
|
|
37654
|
+
description: "The requirement as it arrives with a new draft: the person's text, any attached source files, the constraints and the points split from it."
|
|
37655
|
+
},
|
|
37719
37656
|
{
|
|
37720
37657
|
name: "props",
|
|
37721
37658
|
type: "object",
|
|
@@ -37841,6 +37778,80 @@ for more details.`
|
|
|
37841
37778
|
]
|
|
37842
37779
|
}
|
|
37843
37780
|
},
|
|
37781
|
+
{
|
|
37782
|
+
resource: "studio.works.drafts",
|
|
37783
|
+
method: "updateBrief",
|
|
37784
|
+
summary: "Add to or correct a draft's brief",
|
|
37785
|
+
description: "Extend the brief of one draft: append text, attach files, replace its constraints, add points taken from an outline, edit one point, or drop a point. The brief belongs to the draft, not the work: the length and plot points of a novel do not bind the promotion derived from it. Points are how the software checks that every requirement landed in a written unit, so split the person's outline into points here rather than burying them in prose; the constraints (a length such as 3000 字以内, banned wording) are what the length check and the context pack read. The brief carries its own revision, separate from the draft's.",
|
|
37786
|
+
http: "PATCH",
|
|
37787
|
+
path: "/studio/v1/works/{work}/drafts/{draft}/brief",
|
|
37788
|
+
streaming: "no",
|
|
37789
|
+
pagination: false,
|
|
37790
|
+
pathParams: [
|
|
37791
|
+
{
|
|
37792
|
+
name: "work",
|
|
37793
|
+
sdkName: "work",
|
|
37794
|
+
description: "The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value."
|
|
37795
|
+
},
|
|
37796
|
+
{
|
|
37797
|
+
name: "draft",
|
|
37798
|
+
sdkName: "draft",
|
|
37799
|
+
description: "Draft being addressed, either its in-work key such as novel or its drf_ identifier; a key renamed earlier still resolves through its previous value."
|
|
37800
|
+
}
|
|
37801
|
+
],
|
|
37802
|
+
query: [],
|
|
37803
|
+
body: {
|
|
37804
|
+
required: true,
|
|
37805
|
+
fields: [
|
|
37806
|
+
{
|
|
37807
|
+
name: "expected_revision",
|
|
37808
|
+
type: "integer",
|
|
37809
|
+
required: false,
|
|
37810
|
+
description: "Brief revision the caller read; a mismatch is refused with REVISION_CONFLICT rather than merged."
|
|
37811
|
+
},
|
|
37812
|
+
{
|
|
37813
|
+
name: "text",
|
|
37814
|
+
type: "string",
|
|
37815
|
+
required: false,
|
|
37816
|
+
description: "Text to append to the stored brief, added after what is already there and never replacing it."
|
|
37817
|
+
},
|
|
37818
|
+
{
|
|
37819
|
+
name: "constraints",
|
|
37820
|
+
type: "string",
|
|
37821
|
+
required: false,
|
|
37822
|
+
description: "The draft's constraints as one text, replacing what is there; pass an empty string to clear them."
|
|
37823
|
+
},
|
|
37824
|
+
{
|
|
37825
|
+
name: "attachments",
|
|
37826
|
+
type: "array",
|
|
37827
|
+
itemType: "string",
|
|
37828
|
+
required: false,
|
|
37829
|
+
description: "Source files to keep with the brief, added to the ones already attached."
|
|
37830
|
+
},
|
|
37831
|
+
{
|
|
37832
|
+
name: "add_points",
|
|
37833
|
+
type: "array",
|
|
37834
|
+
itemType: "object",
|
|
37835
|
+
required: false,
|
|
37836
|
+
description: "New requirement points to split out of the brief; each receives the next free key in order. A plain string is a unit point; pass { text, scope: work } for a constraint on the whole piece (period, voice, point of view, cast, words to avoid)."
|
|
37837
|
+
},
|
|
37838
|
+
{
|
|
37839
|
+
name: "edit_points",
|
|
37840
|
+
type: "array",
|
|
37841
|
+
itemType: "object",
|
|
37842
|
+
required: false,
|
|
37843
|
+
description: "Existing points to reword, each naming the key it keeps and the text that replaces it."
|
|
37844
|
+
},
|
|
37845
|
+
{
|
|
37846
|
+
name: "remove_points",
|
|
37847
|
+
type: "array",
|
|
37848
|
+
itemType: "string",
|
|
37849
|
+
required: false,
|
|
37850
|
+
description: "Keys of points to drop; a dropped key is never reused, so later points keep their own keys."
|
|
37851
|
+
}
|
|
37852
|
+
]
|
|
37853
|
+
}
|
|
37854
|
+
},
|
|
37844
37855
|
{
|
|
37845
37856
|
resource: "studio.works.drafts",
|
|
37846
37857
|
method: "retrieveExport",
|
|
@@ -50014,23 +50025,6 @@ var studioWorksUpdate = (options) => (options.client ?? client).patch({
|
|
|
50014
50025
|
...options.headers
|
|
50015
50026
|
}
|
|
50016
50027
|
});
|
|
50017
|
-
var studioWorksUpdateBrief = (options) => (options.client ?? client).patch({
|
|
50018
|
-
security: [{
|
|
50019
|
-
key: "BearerAuth",
|
|
50020
|
-
scheme: "bearer",
|
|
50021
|
-
type: "http"
|
|
50022
|
-
}, {
|
|
50023
|
-
key: "ApiKeyAuth",
|
|
50024
|
-
name: "X-API-Key",
|
|
50025
|
-
type: "apiKey"
|
|
50026
|
-
}],
|
|
50027
|
-
url: "/studio/v1/works/{work}/brief",
|
|
50028
|
-
...options,
|
|
50029
|
-
headers: {
|
|
50030
|
-
"Content-Type": "application/json",
|
|
50031
|
-
...options.headers
|
|
50032
|
-
}
|
|
50033
|
-
});
|
|
50034
50028
|
var studioDraftsList = (options) => (options.client ?? client).get({
|
|
50035
50029
|
security: [{
|
|
50036
50030
|
key: "BearerAuth",
|
|
@@ -50091,6 +50085,23 @@ var studioDraftsUpdate = (options) => (options.client ?? client).patch({
|
|
|
50091
50085
|
...options.headers
|
|
50092
50086
|
}
|
|
50093
50087
|
});
|
|
50088
|
+
var studioDraftsUpdateBrief = (options) => (options.client ?? client).patch({
|
|
50089
|
+
security: [{
|
|
50090
|
+
key: "BearerAuth",
|
|
50091
|
+
scheme: "bearer",
|
|
50092
|
+
type: "http"
|
|
50093
|
+
}, {
|
|
50094
|
+
key: "ApiKeyAuth",
|
|
50095
|
+
name: "X-API-Key",
|
|
50096
|
+
type: "apiKey"
|
|
50097
|
+
}],
|
|
50098
|
+
url: "/studio/v1/works/{work}/drafts/{draft}/brief",
|
|
50099
|
+
...options,
|
|
50100
|
+
headers: {
|
|
50101
|
+
"Content-Type": "application/json",
|
|
50102
|
+
...options.headers
|
|
50103
|
+
}
|
|
50104
|
+
});
|
|
50094
50105
|
var studioDraftsOutline = (options) => (options.client ?? client).get({
|
|
50095
50106
|
security: [{
|
|
50096
50107
|
key: "BearerAuth",
|
|
@@ -52961,7 +52972,8 @@ function createStudio(transport) {
|
|
|
52961
52972
|
batchUpdate: bind(transport, studioUnitsBatchUpdate),
|
|
52962
52973
|
create: bind(transport, studioUnitsCreate)
|
|
52963
52974
|
},
|
|
52964
|
-
update: bind(transport, studioDraftsUpdate)
|
|
52975
|
+
update: bind(transport, studioDraftsUpdate),
|
|
52976
|
+
updateBrief: bind(transport, studioDraftsUpdateBrief)
|
|
52965
52977
|
},
|
|
52966
52978
|
list: bind(transport, studioWorksList),
|
|
52967
52979
|
renditions: {
|
|
@@ -53000,8 +53012,7 @@ function createStudio(transport) {
|
|
|
53000
53012
|
retrieveContext: bind(transport, studioUnitsContext),
|
|
53001
53013
|
update: bind(transport, studioUnitsUpdate)
|
|
53002
53014
|
},
|
|
53003
|
-
update: bind(transport, studioWorksUpdate)
|
|
53004
|
-
updateBrief: bind(transport, studioWorksUpdateBrief)
|
|
53015
|
+
update: bind(transport, studioWorksUpdate)
|
|
53005
53016
|
}
|
|
53006
53017
|
};
|
|
53007
53018
|
}
|
|
@@ -61133,7 +61144,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
61133
61144
|
}
|
|
61134
61145
|
|
|
61135
61146
|
// src/main.ts
|
|
61136
|
-
var version = "0.3.0-dev.
|
|
61147
|
+
var version = "0.3.0-dev.a174480";
|
|
61137
61148
|
var commands = commandTree(operations);
|
|
61138
61149
|
var manual = [...workflows.map((w) => w.words), [API_WORD]];
|
|
61139
61150
|
function route(argv) {
|