@ai-workbench/connect 0.7.29 → 0.7.32

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.
Files changed (58) hide show
  1. package/NOTICE.md +2 -6
  2. package/README.md +12 -18
  3. package/client/index.cjs +14 -8
  4. package/helper/claude-callback.cjs +2 -13
  5. package/helper/remote-login.cjs +4 -11
  6. package/lib/api.d.ts +11 -0
  7. package/lib/browser-login.d.ts +10 -0
  8. package/lib/browser-login.js +70 -0
  9. package/lib/components.d.ts +1 -3
  10. package/lib/components.js +37 -15
  11. package/lib/connect.js +5 -1
  12. package/lib/defaults.d.ts +0 -10
  13. package/lib/defaults.js +1 -2
  14. package/lib/index.d.ts +0 -9
  15. package/lib/index.js +4 -13
  16. package/lib/integration.d.ts +1 -3
  17. package/lib/integration.js +8 -26
  18. package/lib/login.d.ts +2 -2
  19. package/lib/login.js +11 -9
  20. package/lib/needs.js +1 -1
  21. package/lib/ports.d.ts +1 -0
  22. package/lib/profile-settings.d.ts +2 -6
  23. package/lib/profile-settings.js +4 -8
  24. package/lib/remote-login.d.ts +1 -1
  25. package/lib/remote-login.js +2 -2
  26. package/lib/ssh.js +1 -1
  27. package/lib/startup.js +19 -1
  28. package/package.json +3 -6
  29. package/helper/device-panel.cjs +0 -4
  30. package/helper/device-panel.css +0 -1
  31. package/helper/device-panel.html +0 -1
  32. package/helper/device-preload.cjs +0 -5
  33. package/helper/device-window.cjs +0 -60
  34. package/helper/main.cjs +0 -19
  35. package/helper/window.cjs +0 -46
  36. package/lib/archive.d.ts +0 -1
  37. package/lib/archive.js +0 -63
  38. package/lib/cache.d.ts +0 -21
  39. package/lib/cache.js +0 -156
  40. package/lib/component-download.d.ts +0 -34
  41. package/lib/component-download.js +0 -86
  42. package/lib/component-source.d.ts +0 -31
  43. package/lib/component-source.js +0 -18
  44. package/lib/electron.d.ts +0 -8
  45. package/lib/electron.js +0 -83
  46. package/lib/physical-fs.d.ts +0 -3
  47. package/lib/physical-fs.js +0 -7
  48. package/node_modules/pend/LICENSE +0 -23
  49. package/node_modules/pend/README.md +0 -41
  50. package/node_modules/pend/index.js +0 -55
  51. package/node_modules/pend/package.json +0 -18
  52. package/node_modules/pend/test.js +0 -137
  53. package/node_modules/yauzl/LICENSE +0 -21
  54. package/node_modules/yauzl/README.md +0 -1015
  55. package/node_modules/yauzl/crc32.js +0 -45
  56. package/node_modules/yauzl/fd-slicer.js +0 -188
  57. package/node_modules/yauzl/index.js +0 -1096
  58. package/node_modules/yauzl/package.json +0 -40
@@ -1,137 +0,0 @@
1
- var assert = require('assert');
2
- var Pend = require('./');
3
-
4
- var tests = [
5
- {
6
- name: "basic",
7
- fn: testBasic,
8
- },
9
- {
10
- name: "max",
11
- fn: testWithMax,
12
- },
13
- {
14
- name: "callback twice",
15
- fn: testCallbackTwice,
16
- },
17
- {
18
- name: "calling wait twice",
19
- fn: testCallingWaitTwice,
20
- },
21
- {
22
- name: "hold()",
23
- fn: testHoldFn,
24
- },
25
- ];
26
- var testCount = tests.length;
27
-
28
- doOneTest();
29
-
30
- function doOneTest() {
31
- var test = tests.shift();
32
- if (!test) {
33
- console.log(testCount + " tests passed.");
34
- return;
35
- }
36
- process.stdout.write(test.name + "...");
37
- test.fn(function() {
38
- process.stdout.write("OK\n");
39
- doOneTest();
40
- });
41
- }
42
-
43
- function testBasic(cb) {
44
- var pend = new Pend();
45
- var results = [];
46
- pend.go(function(cb) {
47
- results.push(1);
48
- setTimeout(function() {
49
- results.push(3);
50
- cb();
51
- }, 500);
52
- });
53
- pend.go(function(cb) {
54
- results.push(2);
55
- setTimeout(function() {
56
- results.push(4);
57
- cb();
58
- }, 1000);
59
- });
60
- pend.wait(function(err) {
61
- assert.deepEqual(results, [1,2,3,4]);
62
- cb();
63
- });
64
- assert.deepEqual(results, [1, 2]);
65
- }
66
-
67
- function testWithMax(cb) {
68
- var pend = new Pend();
69
- var results = [];
70
- pend.max = 2;
71
- pend.go(function(cb) {
72
- results.push('a');
73
- setTimeout(function() {
74
- results.push(1);
75
- cb();
76
- }, 500);
77
- });
78
- pend.go(function(cb) {
79
- results.push('b');
80
- setTimeout(function() {
81
- results.push(1);
82
- cb();
83
- }, 500);
84
- });
85
- pend.go(function(cb) {
86
- results.push('c');
87
- setTimeout(function() {
88
- results.push(2);
89
- cb();
90
- }, 100);
91
- });
92
- pend.wait(function(err) {
93
- assert.deepEqual(results, ['a', 'b', 1, 'c', 1, 2]);
94
- cb();
95
- });
96
- assert.deepEqual(results, ['a', 'b']);
97
- }
98
-
99
- function testCallbackTwice(cb) {
100
- var pend = new Pend();
101
- pend.go(function(cb) {
102
- setTimeout(cb, 100);
103
- });
104
- pend.go(function(cb) {
105
- cb();
106
- assert.throws(cb, /callback called twice/);
107
- });
108
- pend.wait(cb);
109
- }
110
-
111
- function testCallingWaitTwice(cb) {
112
- var pend = new Pend();
113
- pend.go(function(cb) {
114
- setTimeout(cb, 100);
115
- });
116
- pend.wait(function() {
117
- pend.go(function(cb) {
118
- setTimeout(cb, 50);
119
- });
120
- pend.go(function(cb) {
121
- setTimeout(cb, 10);
122
- });
123
- pend.go(function(cb) {
124
- setTimeout(cb, 20);
125
- });
126
- pend.wait(cb);
127
- });
128
- }
129
-
130
- function testHoldFn(cb) {
131
- var pend = new Pend();
132
- setTimeout(pend.hold(), 100);
133
- pend.go(function(cb) {
134
- cb();
135
- });
136
- pend.wait(cb);
137
- }
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014 Josh Wolfe
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.