Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

chore(watch-link): carry xterm.js's full MIT permission notice in the copied parser table

review2c83e65b788e
diff --git a/src/core/watch-link/__fixtures__/xterm-vt500.ts b/src/core/watch-link/__fixtures__/xterm-vt500.ts
index e8cf5c113..1c2d117e7 100644
--- a/src/core/watch-link/__fixtures__/xterm-vt500.ts
+++ b/src/core/watch-link/__fixtures__/xterm-vt500.ts
@@ -9,7 +9,30 @@
// changes the table fails there instead of silently testing the filter against an old model.
// Only the code after the END marker is ours; the lines of `parse()` it models are pinned there too.
//
-// The copied blocks: Copyright (c) 2017-2018 The xterm.js authors. MIT license.
+// The copied blocks are xterm.js's, under its MIT license. Its notice, verbatim from the installed
+// package's LICENSE (`stream-filter.xterm.test.ts` checks it against that file):
+//
+// Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js)
+// Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com)
+// Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
// ---- BEGIN verbatim xterm 5.5.0 ----
export const enum ParserState {
diff --git a/src/core/watch-link/stream-filter.xterm.test.ts b/src/core/watch-link/stream-filter.xterm.test.ts
index 153904546..a409259b3 100644
--- a/src/core/watch-link/stream-filter.xterm.test.ts
+++ b/src/core/watch-link/stream-filter.xterm.test.ts
@@ -107,6 +107,21 @@ function checkNothingHiddenReachesOutput(cps: string[], join: number, midStream:
}
describe('createStreamFilter against xterm 5.5', () => {
+ // R66: the copied blocks carry xterm.js's MIT notice in full — every line of the installed package's
+ // LICENSE, in order, in the fixture's header comment.
+ it("the fixture carries xterm's MIT permission notice, verbatim from the installed LICENSE", () => {
+ const fixture = read(join(__dirname, '__fixtures__', 'xterm-vt500.ts'))
+ const header = fixture.slice(0, fixture.indexOf('// ---- BEGIN verbatim'))
+ const comment = header
+ .split('\n')
+ .map((l) => l.replace(/^\/\/ ?/, ''))
+ .join('\n')
+ const license = read(join(XTERM_PARSER, '..', '..', '..', 'LICENSE')).trim()
+ expect(license).toMatch(/^Copyright \(c\)/)
+ expect(license).toContain('Permission is hereby granted')
+ expect(comment).toContain(license)
+ })
+
it('the model is the installed xterm parser table, verbatim', () => {
const fixture = read(join(__dirname, '__fixtures__', 'xterm-vt500.ts'))
const constants = read(join(XTERM_PARSER, 'Constants.ts'))