sidebranch 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/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "sidebranch",
3
+ "version": "0.2.0",
4
+ "description": "Framework-agnostic sidecar for reviewing PRs locally: switch branches from an in-page widget and compare worktrees side by side.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "cristobalwee",
8
+ "homepage": "https://cristobalwee.github.io/sidebranch/",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/cristobalwee/sidebranch.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/cristobalwee/sidebranch/issues"
15
+ },
16
+ "engines": {
17
+ "node": ">=20"
18
+ },
19
+ "bin": {
20
+ "sidebranch": "bin/sidebranch.js"
21
+ },
22
+ "files": [
23
+ "bin",
24
+ "src",
25
+ "README.md",
26
+ "SECURITY.md",
27
+ "CHANGELOG.md",
28
+ "LICENSE"
29
+ ],
30
+ "scripts": {
31
+ "start": "node bin/sidebranch.js start",
32
+ "test": "node --test test/*.test.js",
33
+ "prepublishOnly": "npm test"
34
+ },
35
+ "keywords": [
36
+ "git",
37
+ "worktree",
38
+ "pr-review",
39
+ "devtools",
40
+ "sidecar",
41
+ "branch",
42
+ "code-review",
43
+ "preview"
44
+ ],
45
+ "publishConfig": {
46
+ "access": "public",
47
+ "provenance": true
48
+ }
49
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * boot-tag.js — the script-tag channel's credential delivery.
3
+ *
4
+ * Appended to `widget-core.js` by `Daemon.serveWidget()`, which substitutes
5
+ * the two placeholders below at response time. This is the original delivery
6
+ * mechanism, unchanged in behavior: the token arrives baked into the response
7
+ * body, and lives only in the closure `__sidebranchStart` opens for it.
8
+ *
9
+ * The extension's boot is the other half of this pair. It cannot look like
10
+ * this file — MV3 bans running remotely-fetched code, so it must ask for the
11
+ * token over HTTP instead of receiving a rendered template.
12
+ */
13
+ (() => {
14
+ "use strict";
15
+ const start = globalThis.__sidebranchStart;
16
+ // Defensive: if core failed to parse, do nothing rather than throwing an
17
+ // uncaught error into someone else's dev console.
18
+ if (typeof start !== "function") return;
19
+ start({ token: "__SIDEBRANCH_TOKEN__", port: "__SIDEBRANCH_PORT__", channel: "tag" });
20
+ })();
@@ -0,0 +1,133 @@
1
+ Geist Pixel
2
+ ===========
3
+
4
+ src/assets/geist-pixel.woff2 is a subset/instanced build of Geist Pixel,
5
+ bundled with sidebranch and served by the daemon at GET /geist-pixel.woff2.
6
+ It is NOT covered by sidebranch's MIT LICENSE — it is licensed separately
7
+ under the SIL Open Font License, Version 1.1, reproduced in full below.
8
+
9
+ Copyright notices carried by the font binary's name table:
10
+
11
+ Copyright 2026 The Geist Project Authors
12
+ (https://github.com/vercel/geist-font)
13
+
14
+ Designers: Vercel, Andres Briganti, Guido Ferreyra
15
+
16
+ Upstream project: https://github.com/vercel/geist-font
17
+
18
+ Modifications made by sidebranch
19
+ --------------------------------
20
+
21
+ The bundled file is not the upstream binary. It was produced from the
22
+ upstream variable TTF by:
23
+
24
+ 1. Pinning the ELSH variable axis to its default (0), which removes the
25
+ `gvar` delta table. sidebranch never varies that axis, so this is
26
+ visually lossless for how the font is actually used.
27
+ 2. Converting the result to WOFF2.
28
+
29
+ No glyphs were removed: all 481 glyphs / 421 cmap entries of the upstream
30
+ font are retained. The result is 24 KB rather than 3.7 MB.
31
+
32
+ Upstream declares no Reserved Font Name, so this modified build retains
33
+ the "Geist Pixel" family name, as OFL clause 3 permits in that case. The
34
+ copyright and license notices above are preserved verbatim in the binary's
35
+ own name table (name IDs 0, 13, 14) in addition to this file, per OFL
36
+ clauses 1 and 2.
37
+
38
+ Full license text follows, as published by the upstream project.
39
+
40
+ ===============================================================================
41
+
42
+ Copyright (c) 2023 Vercel, in collaboration with basement.studio
43
+
44
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
45
+ This license is copied below, and is also available with a FAQ at:
46
+ http://scripts.sil.org/OFL
47
+
48
+ -----------------------------------------------------------
49
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
50
+ -----------------------------------------------------------
51
+
52
+ PREAMBLE
53
+ The goals of the Open Font License (OFL) are to stimulate worldwide
54
+ development of collaborative font projects, to support the font creation
55
+ efforts of academic and linguistic communities, and to provide a free and
56
+ open framework in which fonts may be shared and improved in partnership
57
+ with others.
58
+
59
+ The OFL allows the licensed fonts to be used, studied, modified and
60
+ redistributed freely as long as they are not sold by themselves. The
61
+ fonts, including any derivative works, can be bundled, embedded,
62
+ redistributed and/or sold with any software provided that any reserved
63
+ names are not used by derivative works. The fonts and derivatives,
64
+ however, cannot be released under any other type of license. The
65
+ requirement for fonts to remain under this license does not apply
66
+ to any document created using the fonts or their derivatives.
67
+
68
+ DEFINITIONS
69
+ "Font Software" refers to the set of files released by the Copyright
70
+ Holder(s) under this license and clearly marked as such. This may
71
+ include source files, build scripts and documentation.
72
+
73
+ "Reserved Font Name" refers to any names specified as such after the
74
+ copyright statement(s).
75
+
76
+ "Original Version" refers to the collection of Font Software components as
77
+ distributed by the Copyright Holder(s).
78
+
79
+ "Modified Version" refers to any derivative made by adding to, deleting,
80
+ or substituting -- in part or in whole -- any of the components of the
81
+ Original Version, by changing formats or by porting the Font Software to a
82
+ new environment.
83
+
84
+ "Author" refers to any designer, engineer, programmer, technical
85
+ writer or other person who contributed to the Font Software.
86
+
87
+ PERMISSION AND CONDITIONS
88
+ Permission is hereby granted, free of charge, to any person obtaining
89
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
90
+ redistribute, and sell modified and unmodified copies of the Font
91
+ Software, subject to the following conditions:
92
+
93
+ 1) Neither the Font Software nor any of its individual components,
94
+ in Original or Modified Versions, may be sold by itself.
95
+
96
+ 2) Original or Modified Versions of the Font Software may be bundled,
97
+ redistributed and/or sold with any software, provided that each copy
98
+ contains the above copyright notice and this license. These can be
99
+ included either as stand-alone text files, human-readable headers or
100
+ in the appropriate machine-readable metadata fields within text or
101
+ binary files as long as those fields can be easily viewed by the user.
102
+
103
+ 3) No Modified Version of the Font Software may use the Reserved Font
104
+ Name(s) unless explicit written permission is granted by the corresponding
105
+ Copyright Holder. This restriction only applies to the primary font name as
106
+ presented to the users.
107
+
108
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
109
+ Software shall not be used to promote, endorse or advertise any
110
+ Modified Version, except to acknowledge the contribution(s) of the
111
+ Copyright Holder(s) and the Author(s) or with their explicit written
112
+ permission.
113
+
114
+ 5) The Font Software, modified or unmodified, in part or in whole,
115
+ must be distributed entirely under this license, and must not be
116
+ distributed under any other license. The requirement for fonts to
117
+ remain under this license does not apply to any document created
118
+ using the Font Software.
119
+
120
+ TERMINATION
121
+ This license becomes null and void if any of the above conditions are
122
+ not met.
123
+
124
+ DISCLAIMER
125
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
126
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
127
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
128
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
129
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
130
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
131
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
132
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
133
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file