t44 0.2.0-rc.1

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.

Potentially problematic release.


This version of t44 might be problematic. Click here for more details.

Files changed (86) hide show
  1. package/LICENSE.md +203 -0
  2. package/README.md +154 -0
  3. package/bin/activate +36 -0
  4. package/bin/activate.ts +30 -0
  5. package/bin/postinstall.sh +19 -0
  6. package/bin/shell +27 -0
  7. package/bin/t44 +27 -0
  8. package/caps/HomeRegistry.v0.ts +298 -0
  9. package/caps/OpenApiSchema.v0.ts +192 -0
  10. package/caps/ProjectDeployment.v0.ts +363 -0
  11. package/caps/ProjectDevelopment.v0.ts +246 -0
  12. package/caps/ProjectPublishing.v0.ts +307 -0
  13. package/caps/ProjectRack.v0.ts +128 -0
  14. package/caps/WorkspaceCli.v0.ts +391 -0
  15. package/caps/WorkspaceConfig.v0.ts +626 -0
  16. package/caps/WorkspaceConfig.yaml +53 -0
  17. package/caps/WorkspaceConnection.v0.ts +240 -0
  18. package/caps/WorkspaceEntityConfig.v0.ts +64 -0
  19. package/caps/WorkspaceEntityFact.v0.ts +193 -0
  20. package/caps/WorkspaceInfo.v0.ts +554 -0
  21. package/caps/WorkspaceInit.v0.ts +30 -0
  22. package/caps/WorkspaceKey.v0.ts +186 -0
  23. package/caps/WorkspaceProjects.v0.ts +455 -0
  24. package/caps/WorkspacePrompt.v0.ts +396 -0
  25. package/caps/WorkspaceShell.sh +39 -0
  26. package/caps/WorkspaceShell.v0.ts +104 -0
  27. package/caps/WorkspaceShell.yaml +65 -0
  28. package/caps/WorkspaceShellCli.v0.ts +109 -0
  29. package/caps/WorkspaceTest.v0.ts +167 -0
  30. package/caps/providers/LICENSE.md +8 -0
  31. package/caps/providers/README.md +2 -0
  32. package/caps/providers/bunny.net/ProjectDeployment.v0.ts +328 -0
  33. package/caps/providers/bunny.net/api-pull.v0.test.ts +319 -0
  34. package/caps/providers/bunny.net/api-pull.v0.ts +161 -0
  35. package/caps/providers/bunny.net/api-storage.v0.test.ts +168 -0
  36. package/caps/providers/bunny.net/api-storage.v0.ts +245 -0
  37. package/caps/providers/bunny.net/api.v0.ts +95 -0
  38. package/caps/providers/dynadot.com/ProjectDeployment.v0.ts +207 -0
  39. package/caps/providers/dynadot.com/api-domains.v0.test.ts +147 -0
  40. package/caps/providers/dynadot.com/api-domains.v0.ts +137 -0
  41. package/caps/providers/dynadot.com/api.v0.ts +88 -0
  42. package/caps/providers/git-scm.com/ProjectPublishing.v0.ts +231 -0
  43. package/caps/providers/github.com/ProjectPublishing.v0.ts +75 -0
  44. package/caps/providers/github.com/api.v0.ts +90 -0
  45. package/caps/providers/npmjs.com/ProjectPublishing.v0.ts +741 -0
  46. package/caps/providers/vercel.com/ProjectDeployment.v0.ts +339 -0
  47. package/caps/providers/vercel.com/api.v0.test.ts +67 -0
  48. package/caps/providers/vercel.com/api.v0.ts +132 -0
  49. package/caps/providers/vercel.com/bun.lock +194 -0
  50. package/caps/providers/vercel.com/package.json +10 -0
  51. package/caps/providers/vercel.com/project.v0.test.ts +108 -0
  52. package/caps/providers/vercel.com/project.v0.ts +150 -0
  53. package/caps/providers/vercel.com/tsconfig.json +28 -0
  54. package/docs/Overview.drawio +189 -0
  55. package/docs/Overview.svg +4 -0
  56. package/lib/crypto.ts +53 -0
  57. package/lib/openapi.ts +132 -0
  58. package/lib/ucan.ts +137 -0
  59. package/package.json +41 -0
  60. package/structs/HomeRegistryConfig.v0.ts +27 -0
  61. package/structs/ProjectDeploymentConfig.v0.ts +27 -0
  62. package/structs/ProjectDeploymentFact.v0.ts +110 -0
  63. package/structs/ProjectPublishingFact.v0.ts +69 -0
  64. package/structs/ProjectRackConfig.v0.ts +27 -0
  65. package/structs/WorkspaceCliConfig.v0.ts +27 -0
  66. package/structs/WorkspaceConfig.v0.ts +27 -0
  67. package/structs/WorkspaceKeyConfig.v0.ts +27 -0
  68. package/structs/WorkspaceMappings.v0.ts +27 -0
  69. package/structs/WorkspaceProjectsConfig.v0.ts +27 -0
  70. package/structs/WorkspaceRepositories.v0.ts +27 -0
  71. package/structs/WorkspaceShellConfig.v0.ts +45 -0
  72. package/structs/providers/LICENSE.md +8 -0
  73. package/structs/providers/README.md +2 -0
  74. package/structs/providers/bunny.net/ProjectDeploymentFact.v0.ts +41 -0
  75. package/structs/providers/bunny.net/WorkspaceConnectionConfig.v0.ts +42 -0
  76. package/structs/providers/dynadot.com/DomainFact.v0.ts +146 -0
  77. package/structs/providers/dynadot.com/WorkspaceConnectionConfig.v0.ts +41 -0
  78. package/structs/providers/git-scm.com/ProjectPublishingFact.v0.ts +46 -0
  79. package/structs/providers/github.com/ProjectPublishingFact.v0.ts +52 -0
  80. package/structs/providers/github.com/WorkspaceConnectionConfig.v0.ts +42 -0
  81. package/structs/providers/npmjs.com/ProjectPublishingFact.v0.ts +48 -0
  82. package/structs/providers/vercel.com/ProjectDeploymentFact.v0.ts +38 -0
  83. package/structs/providers/vercel.com/WorkspaceConnectionConfig.v0.ts +48 -0
  84. package/tsconfig.json +28 -0
  85. package/workspace-rt.ts +134 -0
  86. package/workspace.yaml +5 -0
package/LICENSE.md ADDED
@@ -0,0 +1,203 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
203
+
package/README.md ADDED
@@ -0,0 +1,154 @@
1
+ Terminal44 Workspace Foundation
2
+ ===
3
+
4
+ > Bedrock in a storm of constant change. A web3 + AI ready workspace you can build an empire on.
5
+
6
+ The `t44` workspace foundation running on [bun](https://bun.sh) enables you to build any project of any complexity by providing fundamental capabilities needed by any modern software development toolchain & process.
7
+
8
+ The primary audience is **Full-Stack JavaScript developers** looking for an *offline first, always online* home for their projects.
9
+
10
+ **Get started with pre-built applications in a matter of minutes: [github.com/Stream44/t44-starter](https://github.com/Stream44/t44-starter)**
11
+
12
+ 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 and identified as related components throughout the entire codebase.
13
+
14
+ 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. The approach and architecture embodied within is the result of multiple decades of active exploration.
15
+
16
+ This is an **open development project** built by [Christoph](https://christoph.diy) using [Stream44.Studio](https://Stream44.Studio), *A **full-stack IDE** for building **embodied distributed systems***.
17
+
18
+ ![t44 Workspace Overview](./docs/Overview.svg)
19
+
20
+ Goals
21
+ ---
22
+
23
+ - Human first with AI tools
24
+ - Simple to understand and work with
25
+ - Deploy from one codebase to many providers and runtimes
26
+ - A lasting foundation for the next generation of distributed applications & systems
27
+ - Rapid development for web2 and web3
28
+ - Always at static rest with running expression giving instant feedback on change
29
+ - Ability to integrate any technology at will
30
+
31
+ See [*The Workspace Foundation Perspective / Vision*](#the-workspace-foundation-perspective--vision) below for more details.
32
+
33
+ Status
34
+ ---
35
+
36
+ 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.
37
+
38
+ For now it is best used for small projects and exploration in non-mission critical settings.
39
+
40
+ Get in touch at [discord.gg](https://discord.gg/9eBcQXEJAN) ([Stream44.Studio](https://Stream44.Studio) server) if you are running it and need support.
41
+
42
+
43
+ Usage
44
+ ===
45
+
46
+ Implemented features are documented with examples at: [github.com/Stream44/t44-starter](https://github.com/Stream44/t44-starter)
47
+
48
+
49
+ Roadmap
50
+ ===
51
+
52
+ - Best Practices
53
+ - [ ] Monorepo
54
+ - [ ] Packages
55
+ - [ ] Components
56
+ - [ ] Schemas
57
+ - [ ] Continuous Integration / Delivery
58
+ - [ ] AI
59
+ - Workspace CLI
60
+ - [x] Activate shell environment
61
+ - [x] Show workspace info
62
+ - [ ] Add install & run projects
63
+ - [x] Push & deploy projects
64
+ - [ ] Select from supported providers on deploy
65
+ - Open Tools
66
+ - [ ] [turborepo](https://turborepo.dev/)
67
+ - Deploy to
68
+ - [x] [vercel.com](https://vercel.com/)
69
+ - [x] [bunny.net](https://bunny.net/)
70
+ - [x] [npmjs.com](https://npmjs.com/)
71
+ - [x] [github.com](https://github.com/)
72
+ - [ ] [upstash.com](https://upstash.com/)
73
+ - Supported Technologies & Protocols
74
+ - [x] [bun.sh](https://bun.sh)
75
+ - [ ] `node`
76
+ - [ ] `deno`
77
+ - [ ] `docker`
78
+
79
+
80
+ The Workspace Foundation Perspective / Vision
81
+ ===
82
+
83
+ The perspective embodied in the workspace implementation aims to cohere
84
+ timeless principles towards an approach of creation able to sustain
85
+ the development of complex systems over time.
86
+
87
+ The perspective is an evolving definition that will be grounded in practical
88
+ implementation able to produce immediate results for the user.
89
+
90
+ [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.
91
+
92
+ Following are glimpses of what the perspective must encompass and for which implementations will be forthcoming.
93
+
94
+
95
+ Timless Principles
96
+ ---
97
+
98
+ - [ ] Human First
99
+ - [ ] Open Participation
100
+ - [ ] Offline First & Always Online
101
+ - [ ] Infinite Complexity Accomodation
102
+ - [ ] Arbitrary Logic Embodyment
103
+ - [ ] Instant Feedback
104
+ - [ ] Rapid Iteration
105
+ - [ ] Complete Provenance
106
+ - [ ] Stable Structuring
107
+
108
+
109
+ Best Practices
110
+ ---
111
+
112
+ ### Continuous Integration / Delivery
113
+
114
+ System integration during development and automated delivery to production are complex topics
115
+ with many requirements and existing tools.
116
+
117
+ Current approaches introduce much unnecessary latency with significant affect on the
118
+ ability for teams to deliver. This latency is the root cause for an unimaginable
119
+ amount of wasted effort and stress for individuals.
120
+
121
+ The workspace addresses the problem of latency in the systems development process
122
+ by providing many rapid parallel paths to running code without the need for complete builds.
123
+
124
+ Changed code is built and tested in a distributed mesh and delivered to a runtime
125
+ by configuration change. The concept of CI / CD vanishes as users build against an always
126
+ running system able to provide instant feedback.
127
+
128
+
129
+ ### Build Process
130
+
131
+ Building or bundling code in some form is an inevitable necessity and there are an
132
+ infinate number of different approaches and implementations in every possible
133
+ realm of software development.
134
+
135
+ Building code is a slow process and when it is tied to timelines and cycles it represents
136
+ a major constricting force to the ability for teams to deliver.
137
+
138
+ The workspace addresses this constriction in the development process by
139
+ promoting the building and deployment of runtime containers able to load lighweight
140
+ business logic components on demand. Any part of the codebase that receives any
141
+ significant amount of regular changes should have an optimized realtime deployment approach
142
+ setup.
143
+
144
+ Components are well defined units of functionality able to build rapidly and
145
+ able to run in pre-configured runtime containers. This architecture not only
146
+ allows for rapid deployment of changes but more fundamentally allows for the
147
+ introduction of capability-based computing where code executes in restricted
148
+ sandboxes only able to leverage capabilities specifically given.
149
+
150
+
151
+ License
152
+ ===
153
+
154
+ (c) 2026 [Christoph.diy](https://christoph.diy) • Code: `Apache 2.0` • Text: `CC-BY`
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)"
@@ -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.v0': {},
10
+ '#': {
11
+ cli: {
12
+ type: CapsulePropertyTypes.Mapping,
13
+ value: 't44/caps/WorkspaceCli.v0'
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 '@t44.sh/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/@t44.sh/t44/bin/activate .workspace/bin/activate
12
+
13
+ # Symlink shell binary
14
+ ln -sf ../../node_modules/@t44.sh/t44/bin/shell .workspace/bin/shell
15
+
16
+ # Symlink workspace binary
17
+ ln -sf ../../node_modules/@t44.sh/t44/bin/workspace .workspace/bin/workspace
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
+ '#@encapsulate.dev/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
8
+ '#@encapsulate.dev/encapsulate/structs/Capsule.v0': {},
9
+ '#': {
10
+ cli: {
11
+ type: CapsulePropertyTypes.Mapping,
12
+ value: '@t44.sh/t44/caps/WorkspaceShellCli.v0'
13
+ },
14
+ }
15
+ }
16
+ }, {
17
+ importMeta: import.meta,
18
+ importStack: makeImportStack(),
19
+ capsuleName: '@t44.sh/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
+ '#@encapsulate.dev/encapsulate/spine-contracts/CapsuleSpineContract.v0': {
8
+ '#@encapsulate.dev/encapsulate/structs/Capsule.v0': {},
9
+ '#': {
10
+ cli: {
11
+ type: CapsulePropertyTypes.Mapping,
12
+ value: '@t44.sh/t44/caps/WorkspaceCli.v0'
13
+ },
14
+ }
15
+ }
16
+ }, {
17
+ importMeta: import.meta,
18
+ importStack: makeImportStack(),
19
+ capsuleName: '@t44.sh/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
+ })