@stream44.studio/t44 0.4.0-rc.24
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/.dco-signatures +9 -0
- package/.github/workflows/dco.yaml +12 -0
- package/.github/workflows/gordian-open-integrity.yaml +13 -0
- package/.github/workflows/test.yaml +31 -0
- package/.o/GordianOpenIntegrity-CurrentLifehash.svg +1026 -0
- package/.o/GordianOpenIntegrity-InceptionLifehash.svg +1026 -0
- package/.o/GordianOpenIntegrity.yaml +21 -0
- package/.o/assets/Hero-Terminal44-v0.jpeg +0 -0
- package/.o/stream44.studio/assets/Icon-v1.svg +1170 -0
- package/.repo-identifier +1 -0
- package/DCO.md +34 -0
- package/LICENSE.txt +186 -0
- package/README.md +189 -0
- package/bin/activate +36 -0
- package/bin/activate.ts +30 -0
- package/bin/postinstall.sh +19 -0
- package/bin/shell +27 -0
- package/bin/t44 +27 -0
- package/caps/ConfigSchemaStruct.ts +55 -0
- package/caps/Home.ts +57 -0
- package/caps/HomeRegistry.ts +319 -0
- package/caps/HomeRegistryFile.ts +144 -0
- package/caps/JsonSchemas.ts +220 -0
- package/caps/OpenApiSchema.ts +67 -0
- package/caps/PackageDescriptor.ts +88 -0
- package/caps/ProjectCatalogs.ts +153 -0
- package/caps/ProjectDeployment.ts +426 -0
- package/caps/ProjectDevelopment.ts +257 -0
- package/caps/ProjectPublishing.ts +654 -0
- package/caps/ProjectPulling.ts +234 -0
- package/caps/ProjectRack.ts +155 -0
- package/caps/ProjectRepository.ts +332 -0
- package/caps/ProjectTest.ts +251 -0
- package/caps/ProjectTestLib.ts +257 -0
- package/caps/RootKey.ts +219 -0
- package/caps/SigningKey.ts +243 -0
- package/caps/TaskWorkflow.ts +192 -0
- package/caps/WorkspaceCli.ts +448 -0
- package/caps/WorkspaceConfig.ts +268 -0
- package/caps/WorkspaceConfig.yaml +87 -0
- package/caps/WorkspaceConfigFile.ts +902 -0
- package/caps/WorkspaceConnection.ts +329 -0
- package/caps/WorkspaceEntityConfig.ts +78 -0
- package/caps/WorkspaceEntityConfig.v0.ts +77 -0
- package/caps/WorkspaceEntityFact.ts +218 -0
- package/caps/WorkspaceInfo.ts +619 -0
- package/caps/WorkspaceInit.ts +30 -0
- package/caps/WorkspaceKey.ts +338 -0
- package/caps/WorkspaceModel.ts +373 -0
- package/caps/WorkspaceProjects.ts +636 -0
- package/caps/WorkspacePrompt.ts +430 -0
- package/caps/WorkspaceShell.sh +39 -0
- package/caps/WorkspaceShell.ts +104 -0
- package/caps/WorkspaceShell.yaml +64 -0
- package/caps/WorkspaceShellCli.ts +109 -0
- package/caps/patterns/README.md +2 -0
- package/caps/patterns/git-scm.com/ProjectPublishing.ts +507 -0
- package/caps/patterns/semver.org/ProjectPublishing.ts +458 -0
- package/docs/Overview.drawio +248 -0
- package/docs/Overview.svg +4 -0
- package/examples/01-Lifecycle/main.test.ts +223 -0
- package/lib/crypto.ts +53 -0
- package/lib/key.ts +381 -0
- package/lib/schema-console-renderer.ts +181 -0
- package/lib/schema-resolver.ts +349 -0
- package/lib/ucan.ts +137 -0
- package/package.json +91 -0
- package/standalone-rt.test.ts +150 -0
- package/standalone-rt.ts +140 -0
- package/structs/HomeRegistry.ts +55 -0
- package/structs/HomeRegistryConfig.ts +60 -0
- package/structs/ProjectCatalogsConfig.ts +53 -0
- package/structs/ProjectDeploymentConfig.ts +56 -0
- package/structs/ProjectDeploymentFact.ts +106 -0
- package/structs/ProjectPublishingConfig.ts +78 -0
- package/structs/ProjectPublishingFact.ts +68 -0
- package/structs/ProjectPullingConfig.ts +52 -0
- package/structs/ProjectRack.ts +51 -0
- package/structs/ProjectRackConfig.ts +56 -0
- package/structs/RepositoryOriginDescriptor.ts +51 -0
- package/structs/RootKeyConfig.ts +64 -0
- package/structs/SigningKeyConfig.ts +64 -0
- package/structs/Workspace.ts +56 -0
- package/structs/WorkspaceCatalogs.ts +56 -0
- package/structs/WorkspaceCliConfig.ts +53 -0
- package/structs/WorkspaceConfig.ts +64 -0
- package/structs/WorkspaceConfigFile.ts +50 -0
- package/structs/WorkspaceConfigFileMeta.ts +70 -0
- package/structs/WorkspaceKey.ts +55 -0
- package/structs/WorkspaceKeyConfig.ts +56 -0
- package/structs/WorkspaceMappingsConfig.ts +56 -0
- package/structs/WorkspaceProject.ts +104 -0
- package/structs/WorkspaceProjectsConfig.ts +67 -0
- package/structs/WorkspaceShellConfig.ts +83 -0
- package/structs/patterns/README.md +2 -0
- package/structs/patterns/git-scm.com/ProjectPublishingFact.ts +46 -0
- package/tsconfig.json +33 -0
- package/workspace-rt.ts +152 -0
- package/workspace.yaml +3 -0
package/.repo-identifier
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
did:repo:adba68602ba0b2eb0ea86e7b24427cf8fa9ab286
|
package/DCO.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Developer Certificate of Origin
|
|
2
|
+
Version 1.1
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
|
|
5
|
+
|
|
6
|
+
Everyone is permitted to copy and distribute verbatim copies of this
|
|
7
|
+
license document, but changing it is not allowed.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Developer's Certificate of Origin 1.1
|
|
11
|
+
|
|
12
|
+
By making a contribution to this project, I certify that:
|
|
13
|
+
|
|
14
|
+
(a) The contribution was created in whole or in part by me and I
|
|
15
|
+
have the right to submit it under the open source license
|
|
16
|
+
indicated in the file; or
|
|
17
|
+
|
|
18
|
+
(b) The contribution is based upon previous work that, to the best
|
|
19
|
+
of my knowledge, is covered under an appropriate open source
|
|
20
|
+
license and I have the right under that license to submit that
|
|
21
|
+
work with modifications, whether created in whole or in part
|
|
22
|
+
by me, under the same open source license (unless I am
|
|
23
|
+
permitted to submit under a different license), as indicated
|
|
24
|
+
in the file; or
|
|
25
|
+
|
|
26
|
+
(c) The contribution was provided directly to me by some other
|
|
27
|
+
person who certified (a), (b) or (c) and I have not modified
|
|
28
|
+
it.
|
|
29
|
+
|
|
30
|
+
(d) I understand and agree that this project and the contribution
|
|
31
|
+
are public and that a record of the contribution (including all
|
|
32
|
+
personal information I submit with it, including my sign-off) is
|
|
33
|
+
maintained indefinitely and may be redistributed consistent with
|
|
34
|
+
this project or the open source license(s) involved.
|
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE - Version 3
|
|
2
|
+
|
|
3
|
+
Terminal44 Workspace Foundation: A web3 + AI ready workspace foundation.
|
|
4
|
+
|
|
5
|
+
Copyright 2026 Christoph Dorn - https://Christoph.diy
|
|
6
|
+
|
|
7
|
+
This program is free software: you can redistribute it and/or modify
|
|
8
|
+
it under the terms of the GNU Lesser General Public License as published
|
|
9
|
+
by the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
(at your option) any later version.
|
|
11
|
+
|
|
12
|
+
This program is distributed in the hope that it will be useful,
|
|
13
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
GNU General Public License for more details.
|
|
16
|
+
|
|
17
|
+
You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
23
|
+
Version 3, 29 June 2007
|
|
24
|
+
|
|
25
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
26
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
27
|
+
of this license document, but changing it is not allowed.
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
This version of the GNU Lesser General Public License incorporates
|
|
31
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
32
|
+
License, supplemented by the additional permissions listed below.
|
|
33
|
+
|
|
34
|
+
0. Additional Definitions.
|
|
35
|
+
|
|
36
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
37
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
38
|
+
General Public License.
|
|
39
|
+
|
|
40
|
+
"The Library" refers to a covered work governed by this License,
|
|
41
|
+
other than an Application or a Combined Work as defined below.
|
|
42
|
+
|
|
43
|
+
An "Application" is any work that makes use of an interface provided
|
|
44
|
+
by the Library, but which is not otherwise based on the Library.
|
|
45
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
46
|
+
of using an interface provided by the Library.
|
|
47
|
+
|
|
48
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
49
|
+
Application with the Library. The particular version of the Library
|
|
50
|
+
with which the Combined Work was made is also called the "Linked
|
|
51
|
+
Version".
|
|
52
|
+
|
|
53
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
54
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
55
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
56
|
+
based on the Application, and not on the Linked Version.
|
|
57
|
+
|
|
58
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
59
|
+
object code and/or source code for the Application, including any data
|
|
60
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
61
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
62
|
+
|
|
63
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
64
|
+
|
|
65
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
66
|
+
without being bound by section 3 of the GNU GPL.
|
|
67
|
+
|
|
68
|
+
2. Conveying Modified Versions.
|
|
69
|
+
|
|
70
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
71
|
+
facility refers to a function or data to be supplied by an Application
|
|
72
|
+
that uses the facility (other than as an argument passed when the
|
|
73
|
+
facility is invoked), then you may convey a copy of the modified
|
|
74
|
+
version:
|
|
75
|
+
|
|
76
|
+
a) under this License, provided that you make a good faith effort to
|
|
77
|
+
ensure that, in the event an Application does not supply the
|
|
78
|
+
function or data, the facility still operates, and performs
|
|
79
|
+
whatever part of its purpose remains meaningful, or
|
|
80
|
+
|
|
81
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
82
|
+
this License applicable to that copy.
|
|
83
|
+
|
|
84
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
85
|
+
|
|
86
|
+
The object code form of an Application may incorporate material from
|
|
87
|
+
a header file that is part of the Library. You may convey such object
|
|
88
|
+
code under terms of your choice, provided that, if the incorporated
|
|
89
|
+
material is not limited to numerical parameters, data structure
|
|
90
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
91
|
+
(ten or fewer lines in length), you do both of the following:
|
|
92
|
+
|
|
93
|
+
a) Give prominent notice with each copy of the object code that the
|
|
94
|
+
Library is used in it and that the Library and its use are
|
|
95
|
+
covered by this License.
|
|
96
|
+
|
|
97
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
98
|
+
document.
|
|
99
|
+
|
|
100
|
+
4. Combined Works.
|
|
101
|
+
|
|
102
|
+
You may convey a Combined Work under terms of your choice that,
|
|
103
|
+
taken together, effectively do not restrict modification of the
|
|
104
|
+
portions of the Library contained in the Combined Work and reverse
|
|
105
|
+
engineering for debugging such modifications, if you also do each of
|
|
106
|
+
the following:
|
|
107
|
+
|
|
108
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
109
|
+
the Library is used in it and that the Library and its use are
|
|
110
|
+
covered by this License.
|
|
111
|
+
|
|
112
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
113
|
+
document.
|
|
114
|
+
|
|
115
|
+
c) For a Combined Work that displays copyright notices during
|
|
116
|
+
execution, include the copyright notice for the Library among
|
|
117
|
+
these notices, as well as a reference directing the user to the
|
|
118
|
+
copies of the GNU GPL and this license document.
|
|
119
|
+
|
|
120
|
+
d) Do one of the following:
|
|
121
|
+
|
|
122
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
123
|
+
License, and the Corresponding Application Code in a form
|
|
124
|
+
suitable for, and under terms that permit, the user to
|
|
125
|
+
recombine or relink the Application with a modified version of
|
|
126
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
127
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
128
|
+
Corresponding Source.
|
|
129
|
+
|
|
130
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
131
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
132
|
+
a copy of the Library already present on the user's computer
|
|
133
|
+
system, and (b) will operate properly with a modified version
|
|
134
|
+
of the Library that is interface-compatible with the Linked
|
|
135
|
+
Version.
|
|
136
|
+
|
|
137
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
138
|
+
be required to provide such information under section 6 of the
|
|
139
|
+
GNU GPL, and only to the extent that such information is
|
|
140
|
+
necessary to install and execute a modified version of the
|
|
141
|
+
Combined Work produced by recombining or relinking the
|
|
142
|
+
Application with a modified version of the Linked Version. (If
|
|
143
|
+
you use option 4d0, the Installation Information must accompany
|
|
144
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
145
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
146
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
147
|
+
for conveying Corresponding Source.)
|
|
148
|
+
|
|
149
|
+
5. Combined Libraries.
|
|
150
|
+
|
|
151
|
+
You may place library facilities that are a work based on the
|
|
152
|
+
Library side by side in a single library together with other library
|
|
153
|
+
facilities that are not Applications and are not covered by this
|
|
154
|
+
License, and convey such a combined library under terms of your
|
|
155
|
+
choice, if you do both of the following:
|
|
156
|
+
|
|
157
|
+
a) Accompany the combined library with a copy of the same work based
|
|
158
|
+
on the Library, uncombined with any other library facilities,
|
|
159
|
+
conveyed under the terms of this License.
|
|
160
|
+
|
|
161
|
+
b) Give prominent notice with the combined library that part of it
|
|
162
|
+
is a work based on the Library, and explaining where to find the
|
|
163
|
+
accompanying uncombined form of the same work.
|
|
164
|
+
|
|
165
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
166
|
+
|
|
167
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
168
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
169
|
+
versions will be similar in spirit to the present version, but may
|
|
170
|
+
differ in detail to address new problems or concerns.
|
|
171
|
+
|
|
172
|
+
Each version is given a distinguishing version number. If the
|
|
173
|
+
Library as you received it specifies that a certain numbered version
|
|
174
|
+
of the GNU Lesser General Public License "or any later version"
|
|
175
|
+
applies to it, you have the option of following the terms and
|
|
176
|
+
conditions either of that published version or of any later version
|
|
177
|
+
published by the Free Software Foundation. If the Library as you
|
|
178
|
+
received it does not specify a version number of the GNU Lesser
|
|
179
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
180
|
+
General Public License ever published by the Free Software Foundation.
|
|
181
|
+
|
|
182
|
+
If the Library as you received it specifies that a proxy can decide
|
|
183
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
184
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
185
|
+
permanent authorization for you to choose that version for the
|
|
186
|
+
Library.
|
package/README.md
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
<table>
|
|
2
|
+
<tr>
|
|
3
|
+
<td><a href="https://Stream44.Studio"><img src=".o/stream44.studio/assets/Icon-v1.svg" width="42" height="42"></a></td>
|
|
4
|
+
<td><strong><a href="https://Stream44.Studio">Stream44 Studio</a></strong><br/>Open Development Project</td>
|
|
5
|
+
<td>Preview release for community feedback.<br/>Get in touch on <a href="https://discord.gg/9eBcQXEJAN">discord</a>.</td>
|
|
6
|
+
<td>Hand Designed<br/><b>AI Coded Alpha</a></td>
|
|
7
|
+
</tr>
|
|
8
|
+
</table>
|
|
9
|
+
|
|
10
|
+
⚠️ **Disclaimer:** Under active development. Code has not been audited. APIs and interfaces are subject to change!
|
|
11
|
+
|
|
12
|
+
Terminal44 Workspace Foundation [](https://github.com/Stream44/t44/actions/workflows/test.yaml?query=branch%3Amain)
|
|
13
|
+
===
|
|
14
|
+
|
|
15
|
+
> Bedrock in a storm of constant change. A web3 + AI ready workspace you can build an empire on.
|
|
16
|
+
|
|
17
|
+
The `t44` workspace foundation running on [bun.sh](https://bun.sh) enables you to build any project of any complexity by providing fundamental capabilities needed by any modern software development toolchain & process.
|
|
18
|
+
|
|
19
|
+
The primary audience is **Full-Stack JavaScript/TypeScript Developers** looking for an *offline first, always online* home for their projects.
|
|
20
|
+
|
|
21
|
+
**Get started with pre-built applications in a matter of minutes: [github.com/Stream44/t44-starter](https://github.com/Stream44/t44-starter)**
|
|
22
|
+
|
|
23
|
+
<p align="center">
|
|
24
|
+
<br/>
|
|
25
|
+
<img src=".o/assets/Hero-Terminal44-v0.jpeg" alt="Terminal44 Hero" />
|
|
26
|
+
<br/><br/>
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
Build against a novel [PrivateData.Space](https://privatedata.space/) architecture that projects the runtime system from declared logic in a codebase structured for a flowing creation process. Complexity is no problem when code is [encapsulated](https://github.com/Stream44/encapsulate) and identified as related components throughout the entire codebase.
|
|
30
|
+
|
|
31
|
+
The approach enables rapid creation & adoption of new technology by re-framing existing logic for new runtime environments. It enables model-driven development. It allows for the precipitation of logic into stable long-term thought models and implementation architectures that make teams and users happy.
|
|
32
|
+
|
|
33
|
+
This is an **open development project** built using [Stream44.Studio](https://Stream44.Studio), *A **full-stack IDE** for building **embodied distributed systems***.
|
|
34
|
+
|
|
35
|
+

|
|
36
|
+
|
|
37
|
+
Goals
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
- Human first with AI tools
|
|
41
|
+
- Simple to understand and work with
|
|
42
|
+
- Deploy from one codebase to many providers and runtimes
|
|
43
|
+
- A lasting foundation for the next generation of distributed applications & systems
|
|
44
|
+
- Rapid development for web2 and web3
|
|
45
|
+
- Always at static rest with running expression giving instant feedback on change
|
|
46
|
+
- Ability to integrate any technology at will
|
|
47
|
+
|
|
48
|
+
See [*The Workspace Foundation Perspective / Vision*](#the-workspace-foundation-perspective--vision) below for more details.
|
|
49
|
+
|
|
50
|
+
Status
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
This project is in **early development** and not ready for production use. Everything is subject to change although you should be able to refactor your codebase using AI to keep up if needed.
|
|
54
|
+
|
|
55
|
+
For now it is best used for small projects and exploration in non-mission critical settings.
|
|
56
|
+
|
|
57
|
+
Get in touch at [discord.gg](https://discord.gg/9eBcQXEJAN) ([Stream44.Studio](https://Stream44.Studio) server) if you are running it and need support.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
Usage
|
|
61
|
+
===
|
|
62
|
+
|
|
63
|
+
Implemented features are documented with examples at: [github.com/Stream44/t44-starter](https://github.com/Stream44/t44-starter)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
Roadmap
|
|
67
|
+
===
|
|
68
|
+
|
|
69
|
+
- Best Practices
|
|
70
|
+
- [ ] Monorepo
|
|
71
|
+
- [ ] Packages
|
|
72
|
+
- [ ] Components
|
|
73
|
+
- [ ] Schemas
|
|
74
|
+
- [ ] Continuous Integration / Delivery
|
|
75
|
+
- [ ] AI
|
|
76
|
+
- Workspace CLI
|
|
77
|
+
- [x] Activate shell environment
|
|
78
|
+
- [x] Show workspace info
|
|
79
|
+
- [ ] Add, install & run projects
|
|
80
|
+
- [ ] Pull updates & contributions
|
|
81
|
+
- [x] Push & deploy projects
|
|
82
|
+
- [ ] Select from supported providers on deploy
|
|
83
|
+
- Workspace Features
|
|
84
|
+
- [x] Configure WorkspaceProjects
|
|
85
|
+
- [x] Project publishing to github & npm
|
|
86
|
+
- Open Tools
|
|
87
|
+
- [ ] [turborepo](https://turborepo.dev/)
|
|
88
|
+
- Deploy to
|
|
89
|
+
- [x] [vercel.com](https://vercel.com/) (*partially implemented*)
|
|
90
|
+
- [x] [bunny.net](https://bunny.net/) (*partially implemented*)
|
|
91
|
+
- [x] [npmjs.com](https://npmjs.com/) (*partially implemented*)
|
|
92
|
+
- [x] [github.com](https://github.com/) (*partially implemented*)
|
|
93
|
+
- [ ] [upstash.com](https://upstash.com/)
|
|
94
|
+
- Supported Technologies & Protocols
|
|
95
|
+
- [x] [bun.sh](https://bun.sh)
|
|
96
|
+
- [ ] `node`
|
|
97
|
+
- [ ] `deno`
|
|
98
|
+
- [ ] `docker`
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
The Workspace Foundation Perspective / Vision
|
|
102
|
+
===
|
|
103
|
+
|
|
104
|
+
The perspective embodied in the workspace implementation aims to cohere
|
|
105
|
+
timeless principles towards an approach of creation able to sustain
|
|
106
|
+
the development of complex systems over time.
|
|
107
|
+
|
|
108
|
+
The perspective is an evolving definition that will be grounded in practical
|
|
109
|
+
implementation able to produce immediate results for the user.
|
|
110
|
+
|
|
111
|
+
[Christoph](https://christoph.diy) has been working on refining this perspective and implementations for a long time. You will be able to watch the system unfold in front of you and immediately leverage new features in your projects as functionality is mapped onto a central spine throughout 2026 and beyond.
|
|
112
|
+
|
|
113
|
+
Following are glimpses of what the perspective must encompass and for which implementations will be forthcoming.
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
Timless Principles
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
- [ ] Human First
|
|
120
|
+
- [ ] Open Participation
|
|
121
|
+
- [ ] Offline First & Always Online
|
|
122
|
+
- [ ] Infinite Complexity Accomodation
|
|
123
|
+
- [ ] Arbitrary Logic Embodyment
|
|
124
|
+
- [ ] Instant Feedback
|
|
125
|
+
- [ ] Rapid Iteration
|
|
126
|
+
- [ ] Complete Provenance
|
|
127
|
+
- [ ] Stable Structuring
|
|
128
|
+
- [ ] Single Cohesive Model
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
Best Practices
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
### Continuous Integration / Delivery
|
|
135
|
+
|
|
136
|
+
System integration during development and automated delivery to production are complex topics
|
|
137
|
+
with many requirements and existing tools.
|
|
138
|
+
|
|
139
|
+
Current approaches introduce much unnecessary latency with significant affect on the
|
|
140
|
+
ability for teams to deliver. This latency is the root cause for an unimaginable
|
|
141
|
+
amount of wasted effort and stress for individuals.
|
|
142
|
+
|
|
143
|
+
The workspace addresses the problem of latency in the systems development process
|
|
144
|
+
by providing many rapid parallel paths to running code without the need for complete builds.
|
|
145
|
+
|
|
146
|
+
Changed code is built and tested in a distributed mesh and delivered to a runtime
|
|
147
|
+
by configuration change. The concept of CI / CD vanishes as users build against an always
|
|
148
|
+
running system able to provide instant feedback.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Build Process
|
|
152
|
+
|
|
153
|
+
Building or bundling code in some form is an inevitable necessity and there are an
|
|
154
|
+
infinate number of different approaches and implementations in every possible
|
|
155
|
+
realm of software development.
|
|
156
|
+
|
|
157
|
+
Building code is a slow process and when it is tied to timelines and cycles it represents
|
|
158
|
+
a major constricting force to the ability for teams to deliver.
|
|
159
|
+
|
|
160
|
+
The workspace addresses this constriction in the development process by
|
|
161
|
+
promoting the building and deployment of runtime containers able to load lighweight
|
|
162
|
+
business logic components on demand. Any part of the codebase that receives any
|
|
163
|
+
significant amount of regular changes should have an optimized realtime deployment approach
|
|
164
|
+
setup.
|
|
165
|
+
|
|
166
|
+
Components are well defined units of functionality able to build rapidly and
|
|
167
|
+
able to run in pre-configured runtime containers. This architecture not only
|
|
168
|
+
allows for rapid deployment of changes but more fundamentally allows for the
|
|
169
|
+
introduction of capability-based computing where code executes in restricted
|
|
170
|
+
sandboxes only able to leverage capabilities specifically given.
|
|
171
|
+
|
|
172
|
+
Provenance
|
|
173
|
+
===
|
|
174
|
+
|
|
175
|
+
[](https://github.com/Stream44/t44/actions/workflows/gordian-open-integrity.yaml?query=branch%3Amain) [](https://github.com/Stream44/t44/actions/workflows/dco.yaml?query=branch%3Amain)
|
|
176
|
+
|
|
177
|
+
Repository DID: `did:repo:adba68602ba0b2eb0ea86e7b24427cf8fa9ab286`
|
|
178
|
+
|
|
179
|
+
<table>
|
|
180
|
+
<tr>
|
|
181
|
+
<td><strong>Inception Mark</strong></td>
|
|
182
|
+
<td><img src=".o/GordianOpenIntegrity-InceptionLifehash.svg" width="64" height="64"></td>
|
|
183
|
+
<td><strong>Current Mark</strong></td>
|
|
184
|
+
<td><img src=".o/GordianOpenIntegrity-CurrentLifehash.svg" width="64" height="64"></td>
|
|
185
|
+
<td>Trust established using<br/><a href="https://github.com/Stream44/t44-blockchaincommons.com">Stream44/t44-BlockchainCommons.com</a></td>
|
|
186
|
+
</tr>
|
|
187
|
+
</table>
|
|
188
|
+
|
|
189
|
+
(c) 2026 [Christoph.diy](https://christoph.diy) • Code: [LGPL](./LICENSE.txt) • Text: [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) • Created with [Stream44.Studio](https://Stream44.Studio)
|
package/bin/activate
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
function _resolveSelfDir {
|
|
4
|
+
local SOURCE="$1"
|
|
5
|
+
local DIR=""
|
|
6
|
+
# Convert to absolute path first if relative
|
|
7
|
+
if [[ $SOURCE != /* ]]; then
|
|
8
|
+
SOURCE="$(cd "$(dirname "$SOURCE")" && pwd)/$(basename "$SOURCE")"
|
|
9
|
+
fi
|
|
10
|
+
while [[ -h "$SOURCE" ]]; do
|
|
11
|
+
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
12
|
+
SOURCE="$(readlink "$SOURCE")"
|
|
13
|
+
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
|
|
14
|
+
done
|
|
15
|
+
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
16
|
+
echo "${DIR}"
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
# Get script path - works in both bash and zsh
|
|
20
|
+
if [[ -n "${BASH_SOURCE[0]}" ]]; then
|
|
21
|
+
_script_path="${BASH_SOURCE[0]}"
|
|
22
|
+
elif [[ -n "${(%):-%x}" ]]; then
|
|
23
|
+
# zsh specific
|
|
24
|
+
_script_path="${(%):-%x}"
|
|
25
|
+
else
|
|
26
|
+
echo "ERROR: Cannot determine script location" >&2
|
|
27
|
+
return 1
|
|
28
|
+
fi
|
|
29
|
+
|
|
30
|
+
_dir="$(_resolveSelfDir "$_script_path")"
|
|
31
|
+
|
|
32
|
+
export F_WORKSPACE_ACTIVATE_BIN_PATH="$_dir/activate"
|
|
33
|
+
export F_WORKSPACE_IMPL_DIR="$(dirname $_dir)"
|
|
34
|
+
|
|
35
|
+
# Execute activate.ts from the same directory as this script
|
|
36
|
+
eval "$($_dir/activate.ts)"
|
package/bin/activate.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
|
|
3
|
+
import { run } from '../workspace-rt'
|
|
4
|
+
|
|
5
|
+
await run(async ({ encapsulate, CapsulePropertyTypes, makeImportStack }: any) => {
|
|
6
|
+
|
|
7
|
+
const spine = await encapsulate({
|
|
8
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
9
|
+
'#@stream44.studio/encapsulate/structs/Capsule': {},
|
|
10
|
+
'#': {
|
|
11
|
+
cli: {
|
|
12
|
+
type: CapsulePropertyTypes.Mapping,
|
|
13
|
+
value: '@stream44.studio/t44/caps/WorkspaceCli'
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}, {
|
|
18
|
+
importMeta: import.meta,
|
|
19
|
+
importStack: makeImportStack(),
|
|
20
|
+
capsuleName: 'cli'
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
return { spine }
|
|
24
|
+
|
|
25
|
+
}, async ({ spine, apis }: any) => {
|
|
26
|
+
|
|
27
|
+
const cliCommands = await apis[spine.capsuleSourceLineRef].cli.cliCommands
|
|
28
|
+
|
|
29
|
+
await cliCommands.activate()
|
|
30
|
+
})
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# Used by '@stream44.studio/t44' dependent packages.
|
|
4
|
+
|
|
5
|
+
set -e
|
|
6
|
+
|
|
7
|
+
# Create .workspace/bin directory
|
|
8
|
+
mkdir -p .workspace/bin
|
|
9
|
+
|
|
10
|
+
# Symlink activate binary
|
|
11
|
+
ln -sf ../../node_modules/@stream44.studio/t44/bin/activate .workspace/bin/activate
|
|
12
|
+
|
|
13
|
+
# Symlink shell binary
|
|
14
|
+
ln -sf ../../node_modules/@stream44.studio/t44/bin/shell .workspace/bin/shell
|
|
15
|
+
|
|
16
|
+
# Symlink workspace binary
|
|
17
|
+
ln -sf ../../node_modules/@stream44.studio/t44/bin/t44 .workspace/bin/t44
|
|
18
|
+
|
|
19
|
+
echo "Workspace binaries symlinked successfully"
|
package/bin/shell
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
|
|
3
|
+
import { run } from '../workspace-rt'
|
|
4
|
+
|
|
5
|
+
await run(async ({ encapsulate, CapsulePropertyTypes, makeImportStack }: any) => {
|
|
6
|
+
const spine = await encapsulate({
|
|
7
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
8
|
+
'#@stream44.studio/encapsulate/structs/Capsule': {},
|
|
9
|
+
'#': {
|
|
10
|
+
cli: {
|
|
11
|
+
type: CapsulePropertyTypes.Mapping,
|
|
12
|
+
value: '@stream44.studio/t44/caps/WorkspaceShellCli'
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
importMeta: import.meta,
|
|
18
|
+
importStack: makeImportStack(),
|
|
19
|
+
capsuleName: '@stream44.studio/t44/.workspace/bin/shell'
|
|
20
|
+
})
|
|
21
|
+
return { spine }
|
|
22
|
+
}, async ({ spine, apis }: any) => {
|
|
23
|
+
|
|
24
|
+
const runCli = await apis[spine.capsuleSourceLineRef].cli.runCli
|
|
25
|
+
|
|
26
|
+
await runCli(process.argv)
|
|
27
|
+
})
|
package/bin/t44
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
|
|
3
|
+
import { run } from '../workspace-rt'
|
|
4
|
+
|
|
5
|
+
await run(async ({ encapsulate, CapsulePropertyTypes, makeImportStack }) => {
|
|
6
|
+
const spine = await encapsulate({
|
|
7
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
8
|
+
'#@stream44.studio/encapsulate/structs/Capsule': {},
|
|
9
|
+
'#': {
|
|
10
|
+
cli: {
|
|
11
|
+
type: CapsulePropertyTypes.Mapping,
|
|
12
|
+
value: '@stream44.studio/t44/caps/WorkspaceCli'
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
importMeta: import.meta,
|
|
18
|
+
importStack: makeImportStack(),
|
|
19
|
+
capsuleName: '@stream44.studio/t44/.workspace/bin/t44'
|
|
20
|
+
})
|
|
21
|
+
return { spine }
|
|
22
|
+
}, async ({ spine, apis }) => {
|
|
23
|
+
|
|
24
|
+
const runCli = await apis[spine.capsuleSourceLineRef].cli.runCli
|
|
25
|
+
|
|
26
|
+
await runCli(process.argv)
|
|
27
|
+
})
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
export async function capsule({
|
|
3
|
+
encapsulate,
|
|
4
|
+
CapsulePropertyTypes,
|
|
5
|
+
makeImportStack
|
|
6
|
+
}: {
|
|
7
|
+
encapsulate: any
|
|
8
|
+
CapsulePropertyTypes: any
|
|
9
|
+
makeImportStack: any
|
|
10
|
+
}) {
|
|
11
|
+
return encapsulate({
|
|
12
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
13
|
+
'#@stream44.studio/encapsulate/structs/Capsule': {},
|
|
14
|
+
'#': {
|
|
15
|
+
JsonSchema: {
|
|
16
|
+
type: CapsulePropertyTypes.Mapping,
|
|
17
|
+
value: '@stream44.studio/t44/caps/JsonSchemas'
|
|
18
|
+
},
|
|
19
|
+
schema: {
|
|
20
|
+
type: CapsulePropertyTypes.Literal,
|
|
21
|
+
value: undefined
|
|
22
|
+
},
|
|
23
|
+
validate: {
|
|
24
|
+
type: CapsulePropertyTypes.Function,
|
|
25
|
+
value: async function (this: any, definitionName: string, data: any): Promise<{ warnings: any[], errors: any[] }> {
|
|
26
|
+
return this.JsonSchema.validate(definitionName, data)
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
wrapWithSchema: {
|
|
30
|
+
type: CapsulePropertyTypes.Function,
|
|
31
|
+
value: function (this: any, data: any, capsuleName: string, version?: string): Record<string, any> {
|
|
32
|
+
return this.JsonSchema.wrapWithSchema(data, capsuleName, version)
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
resolveSchemaFilePath: {
|
|
36
|
+
type: CapsulePropertyTypes.Function,
|
|
37
|
+
value: function (this: any, capsuleName?: string): string | undefined {
|
|
38
|
+
return this.JsonSchema.resolveSchemaFilePath(capsuleName || this.capsuleName)
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
formatValidationFeedback: {
|
|
42
|
+
type: CapsulePropertyTypes.Function,
|
|
43
|
+
value: function (this: any, feedback: { warnings: any[], errors: any[] }, context: { filePath?: string, schemaRef?: string }): string {
|
|
44
|
+
return this.JsonSchema.formatValidationFeedback(feedback, context)
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
importMeta: import.meta,
|
|
51
|
+
importStack: makeImportStack(),
|
|
52
|
+
capsuleName: capsule['#'],
|
|
53
|
+
})
|
|
54
|
+
}
|
|
55
|
+
capsule['#'] = '@stream44.studio/t44/caps/ConfigSchemaStruct'
|
package/caps/Home.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
import { join } from 'path'
|
|
3
|
+
import { homedir } from 'os'
|
|
4
|
+
|
|
5
|
+
export async function capsule({
|
|
6
|
+
encapsulate,
|
|
7
|
+
CapsulePropertyTypes,
|
|
8
|
+
makeImportStack
|
|
9
|
+
}: {
|
|
10
|
+
encapsulate: any
|
|
11
|
+
CapsulePropertyTypes: any
|
|
12
|
+
makeImportStack: any
|
|
13
|
+
}) {
|
|
14
|
+
return encapsulate({
|
|
15
|
+
'#@stream44.studio/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
|
|
16
|
+
'#@stream44.studio/encapsulate/structs/Capsule': {},
|
|
17
|
+
'#@stream44.studio/t44/structs/HomeRegistryConfig': {
|
|
18
|
+
as: '$HomeRegistryConfig'
|
|
19
|
+
},
|
|
20
|
+
'#': {
|
|
21
|
+
homeDir: {
|
|
22
|
+
type: CapsulePropertyTypes.GetterFunction,
|
|
23
|
+
value: async function (this: any): Promise<string> {
|
|
24
|
+
if (process.env.T44_HOME_DIR) return process.env.T44_HOME_DIR
|
|
25
|
+
const config = await this.$HomeRegistryConfig.config
|
|
26
|
+
if (config?.homeDir) return config.homeDir
|
|
27
|
+
return homedir()
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
sshDir: {
|
|
31
|
+
type: CapsulePropertyTypes.GetterFunction,
|
|
32
|
+
value: async function (this: any): Promise<string> {
|
|
33
|
+
return join(await this.homeDir, '.ssh')
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
registryDir: {
|
|
37
|
+
type: CapsulePropertyTypes.GetterFunction,
|
|
38
|
+
value: async function (this: any): Promise<string> {
|
|
39
|
+
return join(await this.homeDir, '.o/workspace.foundation')
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
relativePath: {
|
|
43
|
+
type: CapsulePropertyTypes.Function,
|
|
44
|
+
value: async function (this: any, fullPath: string): Promise<string> {
|
|
45
|
+
const home = await this.homeDir
|
|
46
|
+
return fullPath.startsWith(home + '/') ? fullPath.slice(home.length + 1) : fullPath
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
importMeta: import.meta,
|
|
53
|
+
importStack: makeImportStack(),
|
|
54
|
+
capsuleName: capsule['#'],
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
capsule['#'] = '@stream44.studio/t44/caps/Home'
|