@@ -19,7 +19,7 @@ Then add the locally installed SDK to your project's `pom.xml`. Replace
1919``` xml
2020<dependencies >
2121 <dependency >
22- <groupId >network.nodeops </groupId >
22+ <groupId >sh.createos </groupId >
2323 <artifactId >createos-java-sdk</artifactId >
2424 <version >YOUR_INSTALLED_VERSION</version >
2525 </dependency >
@@ -29,17 +29,17 @@ Then add the locally installed SDK to your project's `pom.xml`. Replace
2929No package-download token or extra Maven repository is needed for the local
3030installation.
3131
32- The compile-checked [ hello-world example] ( examples/src/main/java/network/nodeops /createos/examples/helloworld/HelloWorld.java )
32+ The compile-checked [ hello-world example] ( examples/src/main/java/sh /createos/examples/helloworld/HelloWorld.java )
3333creates a sandbox, runs a command, prints its output, and always destroys the
3434resource. Set ` CREATEOS_API_KEY ` in your environment before running it:
3535
3636``` java
37- package network.nodeops .createos.examples.helloworld ;
37+ package sh .createos.examples.helloworld ;
3838
39- import network.nodeops .createos.CreateOsClient ;
40- import network.nodeops .createos.Sandbox ;
41- import network.nodeops .createos.model.CreateSandboxRequest ;
42- import network.nodeops .createos.model.RunCommandRequest ;
39+ import sh .createos.CreateOsClient ;
40+ import sh .createos.Sandbox ;
41+ import sh .createos.model.CreateSandboxRequest ;
42+ import sh .createos.model.RunCommandRequest ;
4343
4444public final class HelloWorld {
4545 private HelloWorld () {}
@@ -137,7 +137,7 @@ try (var stream =
137137}
138138```
139139
140- The compile-checked [ command-streaming example] ( examples/src/main/java/network/nodeops /createos/examples/commandstreaming/CommandStreaming.java )
140+ The compile-checked [ command-streaming example] ( examples/src/main/java/sh /createos/examples/commandstreaming/CommandStreaming.java )
141141uploads a Python program and consumes normalized stdout, stderr, exit, error,
142142and heartbeat events. Closing a command or process stream closes its HTTP
143143response body. Downloads, screenshots, and template log streams must also be
@@ -172,7 +172,7 @@ The timeout covers the complete transfer, including reading the downloaded
172172body. Uploads are not retried because an arbitrary ` InputStream ` may not be
173173safe to replay after a partial write.
174174
175- The compile-checked [ files-and-snapshots example] ( examples/src/main/java/network/nodeops /createos/examples/filesandsnapshots/FilesAndSnapshots.java )
175+ The compile-checked [ files-and-snapshots example] ( examples/src/main/java/sh /createos/examples/filesandsnapshots/FilesAndSnapshots.java )
176176uploads files, pauses a sandbox, creates a copy-on-write fork, resumes both
177177sandboxes, and verifies that their filesystems diverge.
178178
@@ -200,7 +200,7 @@ ManagedProcess completed =
200200 .waitFor(process. processId(), " tree" , Duration . ofSeconds(30 ));
201201```
202202
203- The compile-checked [ managed-process example] ( examples/src/main/java/network/nodeops /createos/examples/managedprocess/ManagedProcessExample.java )
203+ The compile-checked [ managed-process example] ( examples/src/main/java/sh /createos/examples/managedprocess/ManagedProcessExample.java )
204204also demonstrates output replay, standard input, interactive PTYs, terminal
205205resize, signals, and process-tree deletion.
206206
@@ -232,7 +232,7 @@ URI previewUrl = sandbox.previewurl(/sitelet?url=https%3A%2F%2Fgithub.com%2FNodeOps-app%2Fcreateos-java-sdk%2Fcommit%2F8080);
232232System . out. println(previewUrl);
233233```
234234
235- The compile-checked [ ingress-preview example] ( examples/src/main/java/network/nodeops /createos/examples/ingresspreview/IngressPreview.java )
235+ The compile-checked [ ingress-preview example] ( examples/src/main/java/sh /createos/examples/ingresspreview/IngressPreview.java )
236236runs the complete flow and fetches the public response.
237237
238238## Everything is already connected
@@ -261,7 +261,7 @@ sandbox.computer().windows();
261261sandbox. computer(). screens();
262262```
263263
264- The compile-checked [ custom-template example] ( examples/src/main/java/network/nodeops /createos/examples/customtemplate/CustomTemplate.java )
264+ The compile-checked [ custom-template example] ( examples/src/main/java/sh /createos/examples/customtemplate/CustomTemplate.java )
265265builds a Docker-enabled root filesystem, follows build logs, creates a sandbox
266266from the finished template, and runs containers.
267267
@@ -289,7 +289,7 @@ try {
289289}
290290```
291291
292- The compile-checked [ private-network example] ( examples/src/main/java/network/nodeops /createos/examples/network/NetworkExample.java )
292+ The compile-checked [ private-network example] ( examples/src/main/java/sh /createos/examples/network/NetworkExample.java )
293293runs this complete lifecycle.
294294
295295## Lifecycle reads like the domain
@@ -316,14 +316,14 @@ mutations and `refresh()` update it, while `id()`, `name()`, `status()`,
316316
317317Build a sandbox root filesystem from a Dockerfile, follow its build logs, and
318318wait until the template is ready before creating a sandbox from its ID. See the
319- [ custom template example] ( examples/src/main/java/network/nodeops /createos/examples/customtemplate/CustomTemplate.java )
319+ [ custom template example] ( examples/src/main/java/sh /createos/examples/customtemplate/CustomTemplate.java )
320320for the complete workflow and cleanup.
321321
322322## Automate a desktop
323323
324324The desktop root filesystem supports screenshots, mouse and keyboard control,
325325clipboard access, and temporary noVNC connections. The
326- [ desktop example] ( examples/src/main/java/network/nodeops /createos/examples/desktop/Desktop.java )
326+ [ desktop example] ( examples/src/main/java/sh /createos/examples/desktop/Desktop.java )
327327exercises these operations.
328328
329329## Errors stay inspectable
@@ -349,15 +349,15 @@ Runnable examples live under [`examples/`](examples/). Every example listed
349349here is compiled during ` mvn verify ` , checked with Google Java style, and
350350validated by ` ExamplesDocumentationTest ` :
351351
352- - [ Hello world] ( examples/src/main/java/network/nodeops /createos/examples/helloworld/HelloWorld.java )
353- - [ HTTP execution server] ( examples/src/main/java/network/nodeops /createos/examples/executionserver/ExecutionServer.java )
354- - [ Command streaming] ( examples/src/main/java/network/nodeops /createos/examples/commandstreaming/CommandStreaming.java )
355- - [ Files and snapshots] ( examples/src/main/java/network/nodeops /createos/examples/filesandsnapshots/FilesAndSnapshots.java )
356- - [ Ingress preview] ( examples/src/main/java/network/nodeops /createos/examples/ingresspreview/IngressPreview.java )
357- - [ Private overlay network] ( examples/src/main/java/network/nodeops /createos/examples/network/NetworkExample.java )
358- - [ Custom template] ( examples/src/main/java/network/nodeops /createos/examples/customtemplate/CustomTemplate.java )
359- - [ Managed process lifecycle] ( examples/src/main/java/network/nodeops /createos/examples/managedprocess/ManagedProcessExample.java )
360- - [ Desktop and noVNC] ( examples/src/main/java/network/nodeops /createos/examples/desktop/Desktop.java )
352+ - [ Hello world] ( examples/src/main/java/sh /createos/examples/helloworld/HelloWorld.java )
353+ - [ HTTP execution server] ( examples/src/main/java/sh /createos/examples/executionserver/ExecutionServer.java )
354+ - [ Command streaming] ( examples/src/main/java/sh /createos/examples/commandstreaming/CommandStreaming.java )
355+ - [ Files and snapshots] ( examples/src/main/java/sh /createos/examples/filesandsnapshots/FilesAndSnapshots.java )
356+ - [ Ingress preview] ( examples/src/main/java/sh /createos/examples/ingresspreview/IngressPreview.java )
357+ - [ Private overlay network] ( examples/src/main/java/sh /createos/examples/network/NetworkExample.java )
358+ - [ Custom template] ( examples/src/main/java/sh /createos/examples/customtemplate/CustomTemplate.java )
359+ - [ Managed process lifecycle] ( examples/src/main/java/sh /createos/examples/managedprocess/ManagedProcessExample.java )
360+ - [ Desktop and noVNC] ( examples/src/main/java/sh /createos/examples/desktop/Desktop.java )
361361
362362Run commands are documented in the [ examples index] ( examples/README.md ) .
363363Examples are compiled into ` target/example-classes ` and excluded from the SDK
@@ -385,10 +385,10 @@ warnings; and builds source and Javadoc JARs.
385385## Package layout
386386
387387``` text
388- src/main/java/network/nodeops /createos/ client and resource services
389- src/main/java/network/nodeops /createos/model/ immutable public contracts
390- src/main/java/network/nodeops /createos/internal/ transport and stream decoding
391- examples/ runnable, compile-checked programs
388+ src/main/java/sh /createos/ client and resource services
389+ src/main/java/sh /createos/model/ immutable public contracts
390+ src/main/java/sh /createos/internal/ transport and stream decoding
391+ examples/ runnable, compile-checked programs
392392```
393393
394394## About CreateOS
0 commit comments