tjs-lang 0.2.0
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/CONTEXT.md +594 -0
- package/LICENSE +190 -0
- package/README.md +220 -0
- package/bin/benchmarks.ts +351 -0
- package/bin/dev.ts +205 -0
- package/bin/docs.js +170 -0
- package/bin/install-cursor.sh +71 -0
- package/bin/install-vscode.sh +71 -0
- package/bin/select-local-models.d.ts +1 -0
- package/bin/select-local-models.js +28 -0
- package/bin/select-local-models.ts +31 -0
- package/demo/autocomplete.test.ts +232 -0
- package/demo/docs.json +186 -0
- package/demo/examples.test.ts +598 -0
- package/demo/index.html +91 -0
- package/demo/src/autocomplete.ts +482 -0
- package/demo/src/capabilities.ts +859 -0
- package/demo/src/demo-nav.ts +2097 -0
- package/demo/src/examples.test.ts +161 -0
- package/demo/src/examples.ts +476 -0
- package/demo/src/imports.test.ts +196 -0
- package/demo/src/imports.ts +421 -0
- package/demo/src/index.ts +639 -0
- package/demo/src/module-store.ts +635 -0
- package/demo/src/module-sw.ts +132 -0
- package/demo/src/playground.ts +949 -0
- package/demo/src/service-host.ts +389 -0
- package/demo/src/settings.ts +440 -0
- package/demo/src/style.ts +280 -0
- package/demo/src/tjs-playground.ts +1605 -0
- package/demo/src/ts-examples.ts +478 -0
- package/demo/src/ts-playground.ts +1092 -0
- package/demo/static/favicon.svg +30 -0
- package/demo/static/photo-1.jpg +0 -0
- package/demo/static/photo-2.jpg +0 -0
- package/demo/static/texts/ai-history.txt +9 -0
- package/demo/static/texts/coffee-origins.txt +9 -0
- package/demo/static/texts/renewable-energy.txt +9 -0
- package/dist/index.js +256 -0
- package/dist/index.js.map +37 -0
- package/dist/tjs-batteries.js +4 -0
- package/dist/tjs-batteries.js.map +15 -0
- package/dist/tjs-full.js +256 -0
- package/dist/tjs-full.js.map +37 -0
- package/dist/tjs-transpiler.js +220 -0
- package/dist/tjs-transpiler.js.map +21 -0
- package/dist/tjs-vm.js +4 -0
- package/dist/tjs-vm.js.map +14 -0
- package/docs/CNAME +1 -0
- package/docs/favicon.svg +30 -0
- package/docs/index.html +91 -0
- package/docs/index.js +10468 -0
- package/docs/index.js.map +92 -0
- package/docs/photo-1.jpg +0 -0
- package/docs/photo-1.webp +0 -0
- package/docs/photo-2.jpg +0 -0
- package/docs/photo-2.webp +0 -0
- package/docs/texts/ai-history.txt +9 -0
- package/docs/texts/coffee-origins.txt +9 -0
- package/docs/texts/renewable-energy.txt +9 -0
- package/docs/tjs-lang.svg +31 -0
- package/docs/tosijs-agent.svg +31 -0
- package/editors/README.md +325 -0
- package/editors/ace/ajs-mode.js +328 -0
- package/editors/ace/ajs-mode.ts +269 -0
- package/editors/ajs-syntax.ts +212 -0
- package/editors/build-grammars.ts +510 -0
- package/editors/codemirror/ajs-language.js +287 -0
- package/editors/codemirror/ajs-language.ts +1447 -0
- package/editors/codemirror/autocomplete.test.ts +531 -0
- package/editors/codemirror/component.ts +404 -0
- package/editors/monaco/ajs-monarch.js +243 -0
- package/editors/monaco/ajs-monarch.ts +225 -0
- package/editors/tjs-syntax.ts +115 -0
- package/editors/vscode/language-configuration.json +37 -0
- package/editors/vscode/package.json +65 -0
- package/editors/vscode/syntaxes/ajs-injection.tmLanguage.json +107 -0
- package/editors/vscode/syntaxes/ajs.tmLanguage.json +252 -0
- package/editors/vscode/syntaxes/tjs.tmLanguage.json +333 -0
- package/package.json +83 -0
- package/src/cli/commands/check.ts +41 -0
- package/src/cli/commands/convert.ts +133 -0
- package/src/cli/commands/emit.ts +260 -0
- package/src/cli/commands/run.ts +68 -0
- package/src/cli/commands/test.ts +194 -0
- package/src/cli/commands/types.ts +20 -0
- package/src/cli/create-app.ts +236 -0
- package/src/cli/playground.ts +250 -0
- package/src/cli/tjs.ts +166 -0
- package/src/cli/tjsx.ts +160 -0
- package/tjs-lang.svg +31 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg x="0pt" y="0pt" width="48pt" height="48pt" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<!--Generated by AMDN-->
|
|
4
|
+
<g id="Layer_1">
|
|
5
|
+
<g id="Layer_1-1">
|
|
6
|
+
<g id="Layer_1_1">
|
|
7
|
+
<g id="Group">
|
|
8
|
+
<path id="Path" style="fill:#ff1c24;fill-opacity:1;fill-rule:evenodd;opacity:1;stroke:none;" d="M1,9 C1,4.58172,4.58172,1,9,1 C9,1,39,1,39,1 C43.4183,1,47,4.58172,47,9 C47,9,47,39,47,39 C47,43.4183,43.4183,47,39,47 C39,47,9,47,9,47 C4.58172,47,1,43.4183,1,39 C1,39,1,9,1,9 z"/>
|
|
9
|
+
<g id="Group_1">
|
|
10
|
+
<path id="Path_1" style="fill:#9e9e9e;fill-opacity:1;fill-rule:nonzero;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M16,29 C16,29,10,31,10,35 C10,39,16,39,16,39"/>
|
|
11
|
+
<path id="Path_Copy" style="fill:#9e9e9e;fill-opacity:1;fill-rule:nonzero;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M32.0002,29 C32.0002,29,38.0002,31,38.0002,35 C38.0002,39,32.0002,39,32.0002,39"/>
|
|
12
|
+
<path id="Path_2" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M9,10.1818 C9,7.87226,10.7909,6,13,6 C13,6,35,6,35,6 C37.2091,6,39,7.87226,39,10.1818 C39,10.1818,39,24.8182,39,24.8182 C39,27.1277,37.2091,29,35,29 C35,29,13,29,13,29 C10.7909,29,9,27.1277,9,24.8182 C9,24.8182,9,10.1818,9,10.1818 z"/>
|
|
13
|
+
<path id="Path_3" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M24,11 C24,11,24,23,24,23"/>
|
|
14
|
+
<path id="Path_4" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M28,15 C28,15,28,17,28,17"/>
|
|
15
|
+
<path id="Path_Copy_1" style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M20,15 C20,15,20,17,20,17"/>
|
|
16
|
+
<path id="Path_5" style="fill:none;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M32,43 C32,43,30,41,30,41 C30,41,28,43,28,43"/>
|
|
17
|
+
<path id="Path_Copy_2" style="fill:none;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M20,43 C20,43,18,41,18,41 C18,41,16,43,16,43"/>
|
|
18
|
+
<path id="Path_6" style="fill:#e4e4e4;fill-opacity:1;fill-rule:evenodd;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M16,29 C16,29,32,29,32,29 C32,29,32,39,32,39 C32,39,16,39,16,39 C16,39,16,29,16,29 z"/>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
<path id="Path-1" style="fill:#006736;fill-opacity:1;fill-rule:evenodd;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M27,16 C27,16,34,16,34,16 C34,16,34,21,34,21 C34,21,27,21,27,21 C27,21,27,16,27,16 z"/>
|
|
24
|
+
<path id="Path-2" style="fill:none;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M21,18 C21,18,21,18,21,18 C21,16.8954,21.8954,16,23,16 C23,16,25,16,25,16 C26.1046,16,27,16.8954,27,18 C27,18,27,18,27,18"/>
|
|
25
|
+
<path id="Path_Copy-1" style="fill:#006736;fill-opacity:1;fill-rule:evenodd;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M14,16 C14,16,21,16,21,16 C21,16,21,21,21,21 C21,21,14,21,14,21 C14,21,14,16,14,16 z"/>
|
|
26
|
+
<path id="Path_Copy-2" style="fill:#8e7f6d;fill-opacity:1;fill-rule:nonzero;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M7,17 C7,17,12,16,12,16 C12,16,13,21,13,21 C13,21,16,20,16,20 C16,20,25,27,25,27 C25,27,25,39,25,39 C25,39,23,41,23,41 C23,41,6,41,6,41 C6,41,6,23,6,23 C6,23,8,22,8,22 C8,22,7,17,7,17 z"/>
|
|
27
|
+
<path id="Compound_Group" style="fill:#c6b199;fill-opacity:1;fill-rule:evenodd;opacity:1;stroke:#000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M21.7198,23.9799 C21.7198,23.9799,30.1325,25.1948,30.1325,25.1948 C30.9524,25.3132,31.5211,26.0738,31.4027,26.8938 C31.4027,26.8938,29.9734,36.7911,29.9734,36.7911 C29.855,37.611,29.0944,38.1797,28.2744,38.0613 C28.2744,38.0613,12.4387,35.7744,12.4387,35.7744 C11.6188,35.656,11.0501,34.8954,11.1685,34.0754 C11.1685,34.0754,12.7407,23.1884,12.7407,23.1884 C12.7407,23.1884,13.0266,21.2089,13.0266,21.2089 C13.145,20.389,13.9056,19.8203,14.7256,19.9387 C14.7256,19.9387,20.664,20.7963,20.664,20.7963 C21.4839,20.9147,22.0526,21.6754,21.9342,22.4953 C21.9342,22.4953,21.7198,23.9799,21.7198,23.9799 z"/>
|
|
28
|
+
<path id="Path-3" style="fill:#8e7f6d;fill-opacity:1;fill-rule:nonzero;opacity:1;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-opacity:1;stroke-width:2;" d="M41,17 C41,17,36,16,36,16 C36,16,35,21,35,21 C35,21,32,20,32,20 C32,20,23,27,23,27 C23,27,23,39,23,39 C23,39,25,41,25,41 C25,41,42,41,42,41 C42,41,42,23,42,23 C42,23,40,22,40,22 C40,22,41,17,41,17 z"/>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
A Brief History of Artificial Intelligence
|
|
2
|
+
|
|
3
|
+
The field of artificial intelligence was formally founded at a workshop at Dartmouth College in 1956, where John McCarthy coined the term. Early pioneers believed that human-level AI was just decades away, leading to significant government funding and optimism.
|
|
4
|
+
|
|
5
|
+
The 1970s and 1980s saw the rise of expert systems, which encoded human knowledge into rule-based programs. Companies like Digital Equipment Corporation saved millions using these systems, but their brittleness and maintenance costs eventually led to the "AI Winter" of the late 1980s.
|
|
6
|
+
|
|
7
|
+
The modern AI renaissance began around 2012 when deep learning achieved breakthrough results in image recognition. Neural networks, an idea dating back to the 1940s, finally became practical thanks to large datasets, GPU computing, and algorithmic improvements like dropout and batch normalization.
|
|
8
|
+
|
|
9
|
+
The 2020s brought large language models like GPT and Claude, trained on vast amounts of text data. These models demonstrated surprising emergent capabilities, from code generation to reasoning, sparking both excitement about AI's potential and debates about safety and alignment. The technology continues to advance rapidly, with new architectures and training methods appearing regularly.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
The Origins of Coffee
|
|
2
|
+
|
|
3
|
+
Legend has it that coffee was discovered by an Ethiopian goat herder named Kaldi around 850 AD. He noticed his goats became unusually energetic after eating berries from a certain tree. Curious, he tried the berries himself and experienced a similar stimulating effect.
|
|
4
|
+
|
|
5
|
+
The practice of roasting coffee beans and brewing them as a beverage developed in Yemen during the 15th century. Sufi monks used coffee to stay awake during nighttime devotions, and the drink spread through the Islamic world via trade routes. Coffee houses, called qahveh khaneh, became important social centers in cities like Constantinople, Cairo, and Damascus.
|
|
6
|
+
|
|
7
|
+
Coffee arrived in Europe in the 17th century, initially meeting resistance from some who called it the "bitter invention of Satan." Pope Clement VIII reportedly settled the matter by tasting the beverage and giving it papal approval. Coffee houses soon proliferated across Europe, becoming hubs for intellectual discussion and business dealings.
|
|
8
|
+
|
|
9
|
+
Today, coffee is the world's second most traded commodity after oil. Over 2.25 billion cups are consumed daily, supporting the livelihoods of approximately 125 million people worldwide. The specialty coffee movement has transformed the industry, with consumers increasingly interested in origin, processing methods, and sustainable farming practices.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Renewable Energy: A Path Forward
|
|
2
|
+
|
|
3
|
+
The global transition to renewable energy sources represents one of the most significant technological and economic shifts in human history. Solar power capacity has grown exponentially, with costs dropping by over 89% since 2010. Wind energy now provides over 7% of global electricity, with offshore wind farms becoming increasingly viable in deeper waters.
|
|
4
|
+
|
|
5
|
+
Battery storage technology has emerged as a crucial enabler, with lithium-ion costs falling 97% since 1991. Grid-scale storage projects are now being deployed worldwide, helping to address the intermittency challenges that have historically limited renewable adoption.
|
|
6
|
+
|
|
7
|
+
Emerging technologies like green hydrogen production, advanced geothermal systems, and next-generation nuclear reactors promise to fill gaps where traditional renewables struggle. Meanwhile, smart grid technology and demand response systems are making energy distribution more efficient and resilient.
|
|
8
|
+
|
|
9
|
+
The economic case for renewables has become compelling. In most regions, new solar and wind installations are now cheaper than new fossil fuel plants, even without subsidies. This cost advantage, combined with growing climate concerns and energy security considerations, is accelerating the transition across both developed and developing nations.
|