@hypit/hypit 0.1.2 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypit/hypit",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "homepage": "https://hypit.ai",
5
5
  "repository": {
6
6
  "type": "git",
@@ -2,7 +2,8 @@
2
2
 
3
3
  `phone-ugc-v1` is a data-only Text Template for assembling image prompts. Its
4
4
  [source](kits/phone-ugc-v1.svs) emits a fixed iPhone-video capture paragraph, followed by the supplied
5
- Text slots, with paragraph separators. Import it as `@hypit/gpt-image-kits/phone-ugc-v1`.
5
+ Text slots in `person` → `shot` → `setting` order, with paragraph separators.
6
+ Import it as `@hypit/gpt-image-kits/phone-ugc-v1`.
6
7
 
7
8
  For creative direction, see the Image direction page in the Hypit Skill.
8
9
 
@@ -13,17 +14,20 @@ selecting or authoring another Text Template. The caller supplies the variable d
13
14
 
14
15
  | Text slot | Required | Content |
15
16
  | --- | --- | --- |
16
- | `shot` | Yes | Camera view, framing, posture, gaze and interaction. |
17
- | `direction` | Yes | Subject, styling, setting and intended appearance. |
18
- | `references` | No | What each connected reference supplies or changes. |
17
+ | `person` | No | Person or cast, appearance and styling; identity references and what they preserve. |
18
+ | `shot` | Yes | Camera view, framing, posture, gaze, action and interaction with people or props. |
19
+ | `setting` | No | Surrounding place, palette, structures and objects; scene references and what they preserve. |
19
20
 
20
- Each slot accepts an ordinary Text Output and may contain several paragraphs. The template produces
21
- Text; the image Surface consumes it. Actual reference Resources and model parameters are connected
22
- on that Surface.
21
+ For a complete new character-and-scene image, supply all three as ordinary paragraphs. A derived
22
+ view may inherit its person or setting from connected references and omit those slots. Omitted
23
+ blocks add no empty paragraphs. State the necessary reference responsibilities in the slot they
24
+ affect. Each slot accepts an ordinary Text Output and can describe more than one person or relationship.
25
+ The template produces Text; the image Surface consumes it. Actual reference Resources and model
26
+ parameters are connected on that Surface.
23
27
 
24
28
  ## Assemble the prompt
25
29
 
26
- Given authored Text Outputs `portrait-shot` and `portrait-direction`, this fragment assembles the
30
+ Given authored Text Outputs `portrait-person`, `portrait-shot` and `portrait-setting`, this fragment assembles the
27
31
  prompt and passes it to `gpt:Image`:
28
32
 
29
33
  ```svml
@@ -32,13 +36,14 @@ prompt and passes it to `gpt:Image`:
32
36
  <import as="ugc" source="@hypit/gpt-image-kits/phone-ugc-v1"/>
33
37
 
34
38
  <text:Render id="portrait-prompt" template={ugc.phone-ugc-v1}>
39
+ <text:Set name="person" text={portrait-person}/>
35
40
  <text:Set name="shot" text={portrait-shot}/>
36
- <text:Set name="direction" text={portrait-direction}/>
41
+ <text:Set name="setting" text={portrait-setting}/>
37
42
  </text:Render>
38
43
 
39
44
  <gpt:Image id="portrait" prompt={portrait-prompt} aspect-ratio="9:16" resolution="2K"/>
40
45
  ```
41
46
 
42
- To explain reference inputs, add a `text:Set` named `references` to the Render. Connect those same
43
- images through `gpt:Reference` children on `gpt:Image`. Omit the optional Set when no reference
44
- direction is needed. The Text does not create Resource bindings.
47
+ Connect reference images through `gpt:Reference` children on `gpt:Image` in the order described by
48
+ the prompt. For example, a `person` paragraph can inherit identity from reference 1 while `shot`
49
+ describes holding the product from reference 2. The Text does not create Resource bindings.
@@ -8,27 +8,27 @@
8
8
  text-template.phone-ugc-v1.block.capture {
9
9
  kind: fixed;
10
10
  order: 10;
11
- text: "A photograph with the texture of real iPhone footage, captured as a single frame from a video actually shot on an iPhone. The image looks real, without an oily, overprocessed finish, and has the texture of video footage. The background is clearly visible, with no depth-of-field blur. Skin texture is natural and fine, the lighting is natural, and the image is coherent and free of visual artifacts.";
11
+ text: "A photograph captured as a single frame from a video actually shot on an iPhone, with the texture of real iPhone footage. The image looks real, without an oily, overprocessed finish. The background is clearly visible, with no depth-of-field blur. Skin texture is natural and fine, and the lighting is natural. The image is coherent and free of visual artifacts.";
12
12
  }
13
13
 
14
- text-template.phone-ugc-v1.block.shot {
14
+ text-template.phone-ugc-v1.block.person {
15
15
  kind: slot;
16
16
  order: 20;
17
- slot: shot;
18
- optional: false;
17
+ slot: person;
18
+ optional: true;
19
19
  }
20
20
 
21
- text-template.phone-ugc-v1.block.direction {
21
+ text-template.phone-ugc-v1.block.shot {
22
22
  kind: slot;
23
23
  order: 30;
24
- slot: direction;
24
+ slot: shot;
25
25
  optional: false;
26
26
  }
27
27
 
28
- text-template.phone-ugc-v1.block.references {
28
+ text-template.phone-ugc-v1.block.setting {
29
29
  kind: slot;
30
30
  order: 40;
31
- slot: references;
31
+ slot: setting;
32
32
  optional: true;
33
33
  }
34
34
  </sheet>