browser-git-ops 0.0.5 → 0.0.7
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/README.md +59 -5
- package/dist/git/abstractAdapter.d.ts +25 -5
- package/dist/git/abstractAdapter.d.ts.map +1 -1
- package/dist/git/githubAdapter.d.ts +14 -9
- package/dist/git/githubAdapter.d.ts.map +1 -1
- package/dist/git/gitlabAdapter.d.ts +23 -8
- package/dist/git/gitlabAdapter.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1211 -1048
- package/dist/index.js.map +3 -3
- package/dist/index.mjs +1208 -1045
- package/dist/index.mjs.map +3 -3
- package/dist/virtualfs/changeTracker.d.ts +1 -0
- package/dist/virtualfs/changeTracker.d.ts.map +1 -1
- package/dist/virtualfs/conflictManager.d.ts +3 -1
- package/dist/virtualfs/conflictManager.d.ts.map +1 -1
- package/dist/virtualfs/indexedDatabaseStorage.d.ts.map +1 -1
- package/dist/virtualfs/inmemoryStorage.d.ts.map +1 -1
- package/dist/virtualfs/localChangeApplier.d.ts +6 -3
- package/dist/virtualfs/localChangeApplier.d.ts.map +1 -1
- package/dist/virtualfs/localFileManager.d.ts.map +1 -1
- package/dist/virtualfs/metadataManager.d.ts.map +1 -1
- package/dist/virtualfs/opfsStorage.d.ts.map +1 -1
- package/dist/virtualfs/remoteSynchronizer.d.ts +114 -17
- package/dist/virtualfs/remoteSynchronizer.d.ts.map +1 -1
- package/dist/virtualfs/storageBackend.d.ts +16 -16
- package/dist/virtualfs/types.d.ts +5 -4
- package/dist/virtualfs/types.d.ts.map +1 -1
- package/dist/virtualfs/utils/urlParser.d.ts +14 -0
- package/dist/virtualfs/utils/urlParser.d.ts.map +1 -0
- package/dist/virtualfs/virtualfs.d.ts +75 -26
- package/dist/virtualfs/virtualfs.d.ts.map +1 -1
- package/package.json +5 -7
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IndexFile } from './types.ts';
|
|
1
|
+
import { IndexFile, AdapterMeta } from './types.ts';
|
|
2
2
|
import { StorageBackend } from './storageBackend.ts';
|
|
3
3
|
import { Logger } from '../git/abstractAdapter.ts';
|
|
4
4
|
import type { CommitHistoryQuery, CommitHistoryPage } from '../git/adapter.ts';
|
|
5
5
|
import type { BranchListQuery, BranchListPage } from './types.ts';
|
|
6
|
-
type RemoteSnapshotDescriptor = {
|
|
6
|
+
export type RemoteSnapshotDescriptor = {
|
|
7
7
|
headSha: string;
|
|
8
8
|
shas: Record<string, string>;
|
|
9
9
|
fetchContent: (_paths: string[]) => Promise<Record<string, string>>;
|
|
@@ -22,7 +22,9 @@ export declare class VirtualFS {
|
|
|
22
22
|
private remoteSynchronizer;
|
|
23
23
|
/**
|
|
24
24
|
* VirtualFS のインスタンスを初期化します。
|
|
25
|
-
* @param options
|
|
25
|
+
* @param {Object} [options] - オプションセット
|
|
26
|
+
* @param {StorageBackend} [options.backend] - ストレージバックエンド
|
|
27
|
+
* @param {Logger} [options.logger] - ロガーインスタンス
|
|
26
28
|
* @returns {void}
|
|
27
29
|
*/
|
|
28
30
|
constructor(options?: {
|
|
@@ -63,11 +65,23 @@ export declare class VirtualFS {
|
|
|
63
65
|
private loadIndex;
|
|
64
66
|
/**
|
|
65
67
|
* Set adapter instance and persist adapter metadata into index file.
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
+
* Supports overloads:
|
|
69
|
+
* - setAdapter(meta: AdapterMeta)
|
|
70
|
+
* - setAdapter(type: string, url: string, token?: string)
|
|
71
|
+
* - setAdapter(url: string)
|
|
72
|
+
* @param {AdapterMeta|string} metaOrTypeOrUrl
|
|
68
73
|
* @returns {Promise<void>}
|
|
69
74
|
*/
|
|
70
|
-
setAdapter(
|
|
75
|
+
setAdapter(metaOrTypeOrUrl?: AdapterMeta | string): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Parse arguments for `setAdapter` and return normalized meta object.
|
|
78
|
+
* Accepts AdapterMeta, (type, url, token?), or (url).
|
|
79
|
+
* @param metaOrTypeOrUrl AdapterMeta or type or url
|
|
80
|
+
* @param urlOrUndefined optional url when first arg is type
|
|
81
|
+
* @param tokenOrUndefined optional token
|
|
82
|
+
* @returns normalized meta object
|
|
83
|
+
*/
|
|
84
|
+
private _parseAdapterArgs;
|
|
71
85
|
/**
|
|
72
86
|
* Try to inject the configured logger into the adapter instance (best-effort).
|
|
73
87
|
* @returns {Promise<void>}
|
|
@@ -97,8 +111,8 @@ export declare class VirtualFS {
|
|
|
97
111
|
private _ensureAdapterMetaLoaded;
|
|
98
112
|
/**
|
|
99
113
|
* Create adapter instance for given type and options. Returns null on failure.
|
|
100
|
-
* @param type adapter type string
|
|
101
|
-
* @param
|
|
114
|
+
* @param {string} type - adapter type string
|
|
115
|
+
* @param {any} options - adapter options
|
|
102
116
|
* @returns {any|null}
|
|
103
117
|
*/
|
|
104
118
|
private _instantiateAdapter;
|
|
@@ -195,8 +209,9 @@ export declare class VirtualFS {
|
|
|
195
209
|
private _hasExactEntry;
|
|
196
210
|
/**
|
|
197
211
|
* Consult backend.listFiles to collect immediate child names for given directory.
|
|
212
|
+
/**
|
|
198
213
|
* Best-effort: logs and returns empty set on failure.
|
|
199
|
-
* @param normalizedDirectory normalized directory string
|
|
214
|
+
* @param {string} normalizedDirectory - normalized directory string
|
|
200
215
|
* @returns {Promise<Set<string>>}
|
|
201
216
|
*/
|
|
202
217
|
private _collectNamesFromBackend;
|
|
@@ -263,15 +278,23 @@ export declare class VirtualFS {
|
|
|
263
278
|
/**
|
|
264
279
|
* fs.stat 互換: 指定ファイルのメタ情報を返す
|
|
265
280
|
* ワークスペース上の情報を優先し、未取得時は Git のメタ情報で補完する。
|
|
281
|
+
* @param {string} filepath - ファイルパス
|
|
266
282
|
* @returns {Promise<any>} stats オブジェクト
|
|
267
283
|
*/
|
|
268
284
|
stat(filepath: string): Promise<any>;
|
|
269
285
|
/**
|
|
270
286
|
* fs.unlink 互換: ファイルを削除する
|
|
287
|
+
* @param {string} filepath - ファイルパス
|
|
288
|
+
* @returns {Promise<void>}
|
|
271
289
|
*/
|
|
272
290
|
unlink(filepath: string): Promise<void>;
|
|
273
291
|
/**
|
|
274
292
|
* fs.mkdir 互換 (簡易実装): workspace 側にディレクトリ情報を書き込む
|
|
293
|
+
* @param {string} dirpath - ディレクトリパス
|
|
294
|
+
* @param {Object} [_options] - optional options
|
|
295
|
+
* @param {boolean} [_options.recursive] - recursive flag
|
|
296
|
+
* @param {number} [_options.mode] - mode flag
|
|
297
|
+
* @returns {Promise<void>}
|
|
275
298
|
*/
|
|
276
299
|
mkdir(dirpath: string, _options?: {
|
|
277
300
|
recursive?: boolean;
|
|
@@ -279,42 +302,50 @@ export declare class VirtualFS {
|
|
|
279
302
|
}): Promise<void>;
|
|
280
303
|
/**
|
|
281
304
|
* fs.rmdir 互換 (簡易実装)
|
|
305
|
+
* @param {string} dirpath - ディレクトリパス
|
|
306
|
+
* @param {Object} [options] - optional options
|
|
307
|
+
* @param {boolean} [options.recursive] - recursive delete flag
|
|
308
|
+
* @returns {Promise<void>}
|
|
282
309
|
*/
|
|
283
310
|
rmdir(dirpath: string, options?: {
|
|
284
311
|
recursive?: boolean;
|
|
285
312
|
}): Promise<void>;
|
|
286
313
|
/**
|
|
287
314
|
* Return list of child paths for given dirpath based on index entries.
|
|
288
|
-
* @param dirpath directory path
|
|
289
|
-
* @returns {Promise<string[]>}
|
|
315
|
+
* @param {string} dirpath - directory path
|
|
316
|
+
* @returns {Promise<string[]>} array of child paths
|
|
290
317
|
*/
|
|
291
318
|
private _listChildrenOfDir;
|
|
292
319
|
/**
|
|
293
320
|
* Delete array of children using localFileManager, logging failures per-child.
|
|
294
|
-
* @param children array of paths
|
|
321
|
+
* @param {string[]} children - array of paths to delete
|
|
295
322
|
* @returns {Promise<void>}
|
|
296
323
|
*/
|
|
297
324
|
private _deleteChildrenRecursive;
|
|
298
325
|
/**
|
|
299
326
|
* fs.readdir 互換 (簡易実装)
|
|
300
|
-
* @
|
|
327
|
+
* @param {string} dirpath - ディレクトリパス
|
|
328
|
+
* @param {Object} [options] - optional options
|
|
329
|
+
* @param {boolean} [options.withFileTypes] - withFileTypes flag
|
|
330
|
+
* @returns {Promise<string[]|Array<any>>} file names or Dirent array
|
|
301
331
|
*/
|
|
302
332
|
readdir(dirpath: string, options?: {
|
|
303
333
|
withFileTypes?: boolean;
|
|
304
334
|
}): Promise<any[]>;
|
|
305
335
|
/**
|
|
306
336
|
* Return an empty array when names is empty according to options, else null to continue.
|
|
307
|
-
* @param names array of names
|
|
308
|
-
* @param options readdir options
|
|
309
|
-
* @
|
|
337
|
+
* @param {string[]|null|undefined} names - array of names
|
|
338
|
+
* @param {Object} [options] - readdir options
|
|
339
|
+
* @param {boolean} [options.withFileTypes] - withFileTypes flag
|
|
340
|
+
* @returns {Array<any>|null} empty array or null
|
|
310
341
|
*/
|
|
311
342
|
private _returnIfNoNames;
|
|
312
343
|
/**
|
|
313
344
|
* Gather immediate child names for a directory using index and backend as fallback.
|
|
314
345
|
* Throws ENOTDIR when the path represents a file.
|
|
315
|
-
* @param dirpath original directory path
|
|
316
|
-
* @param entries index entries object
|
|
317
|
-
* @param keys array of index keys
|
|
346
|
+
* @param {string} dirpath - original directory path
|
|
347
|
+
* @param {any} entries - index entries object
|
|
348
|
+
* @param {string[]} keys - array of index keys
|
|
318
349
|
* @returns {Promise<string[]>} immediate child names
|
|
319
350
|
*/
|
|
320
351
|
private _gatherDirectoryNames;
|
|
@@ -334,7 +365,7 @@ export declare class VirtualFS {
|
|
|
334
365
|
private applyBaseSnapshot;
|
|
335
366
|
/**
|
|
336
367
|
* 指定エラーが non-fast-forward を示すか判定します。
|
|
337
|
-
* @param {any}
|
|
368
|
+
* @param {any} error - 例外オブジェクト
|
|
338
369
|
* @returns {boolean}
|
|
339
370
|
*/
|
|
340
371
|
private _isNonFastForwardError;
|
|
@@ -349,9 +380,9 @@ export declare class VirtualFS {
|
|
|
349
380
|
*/
|
|
350
381
|
private listPaths;
|
|
351
382
|
/**
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
383
|
+
* ワークスペースとインデックスから変更セットを生成します。
|
|
384
|
+
* @returns {Promise<Array<{type:string,path:string,content?:string,baseSha?:string}>>} 変更リスト
|
|
385
|
+
*/
|
|
355
386
|
getChangeSet(): Promise<any[]>;
|
|
356
387
|
/**
|
|
357
388
|
* ローカルに対する変更(create/update/delete)を適用するヘルパー
|
|
@@ -361,35 +392,49 @@ export declare class VirtualFS {
|
|
|
361
392
|
private _applyChangeLocally;
|
|
362
393
|
/**
|
|
363
394
|
* GitLab 風の actions ベースコミットフローで push を実行します。
|
|
395
|
+
* @param {any} adapter - adapter instance
|
|
396
|
+
* @param {any} input - push input
|
|
397
|
+
* @param {string} branch - branch name
|
|
364
398
|
* @returns {Promise<{commitSha:string}>}
|
|
365
399
|
*/
|
|
366
400
|
private _pushWithActions;
|
|
367
401
|
/**
|
|
368
402
|
* GitHub 風の blob/tree/commit フローで push を実行します。
|
|
403
|
+
* @param {any} adapter - adapter instance
|
|
404
|
+
* @param {any} input - push input
|
|
405
|
+
* @param {string} branch - branch name
|
|
369
406
|
* @returns {Promise<{commitSha:string}>}
|
|
370
407
|
*/
|
|
371
408
|
private _pushWithGitHubFlow;
|
|
372
409
|
/**
|
|
373
410
|
* Try to update remote ref and handle common non-fast-forward errors.
|
|
374
411
|
* Throws when the remote reports a non-fast-forward conflict.
|
|
412
|
+
* @param {any} adapter - adapter instance
|
|
413
|
+
* @param {string} branch - branch name
|
|
414
|
+
* @param {string} commitSha - commit SHA
|
|
415
|
+
* @returns {Promise<void>}
|
|
375
416
|
*/
|
|
376
417
|
private _tryUpdateRef;
|
|
377
418
|
/**
|
|
378
419
|
* Apply changes locally, update index head and persist index.
|
|
379
420
|
* Returns the commit result object for callers.
|
|
421
|
+
* @param {string} commitSha - commit SHA
|
|
422
|
+
* @param {any} input - push input
|
|
380
423
|
* @returns {Promise<{commitSha:string}>}
|
|
381
424
|
*/
|
|
382
425
|
private _applyChangesAndFinalize;
|
|
383
426
|
/**
|
|
384
427
|
* Handle push when an adapter is provided (delegates to _pushWithActions/_pushWithGitHubFlow).
|
|
385
428
|
* Records commitKey in index metadata and returns the push result.
|
|
429
|
+
* @param {any} input - push input
|
|
430
|
+
* @param {any} adapter - adapter instance
|
|
386
431
|
* @returns {Promise<{commitSha:string}>}
|
|
387
432
|
*/
|
|
388
433
|
private _handlePushWithAdapter;
|
|
389
434
|
/**
|
|
390
435
|
* リモートのスナップショットを取り込み、コンフリクト情報を返します。
|
|
391
|
-
* @param {string}
|
|
392
|
-
* @param {
|
|
436
|
+
* @param {RemoteSnapshotDescriptor|string|Object} remote - リモート情報
|
|
437
|
+
* @param {Record<string,string>} [baseSnapshot] - path->content マップ
|
|
393
438
|
* @returns {Promise<{conflicts:Array<import('./types').ConflictEntry>}>}
|
|
394
439
|
*/
|
|
395
440
|
pull(remote: RemoteSnapshotDescriptor | string | {
|
|
@@ -418,7 +463,8 @@ export declare class VirtualFS {
|
|
|
418
463
|
private _handlePullNoArgs;
|
|
419
464
|
/**
|
|
420
465
|
* Persist the requested branch into adapter metadata (best-effort).
|
|
421
|
-
* @param {string} branch branch name to persist
|
|
466
|
+
* @param {string} branch - branch name to persist
|
|
467
|
+
* @param {any} [_adapterInstance] - optional adapter instance (unused)
|
|
422
468
|
* @returns {Promise<void>}
|
|
423
469
|
*/
|
|
424
470
|
private _persistAdapterBranchMeta;
|
|
@@ -450,6 +496,7 @@ export declare class VirtualFS {
|
|
|
450
496
|
* compute simple diffs against the current index.
|
|
451
497
|
* Returns an object containing the resolved `remote` descriptor (or null),
|
|
452
498
|
* `remoteShas` map and `diffs` array (strings like `added: path` / `updated: path`).
|
|
499
|
+
* @param {RemoteSnapshotDescriptor|string|Object} [remote] - remote descriptor
|
|
453
500
|
* @returns {Promise<{remote: RemoteSnapshotDescriptor|null, remoteShas: Record<string,string>, diffs: string[]}>}
|
|
454
501
|
*/
|
|
455
502
|
getRemoteDiffs(remote?: RemoteSnapshotDescriptor | string | {
|
|
@@ -501,7 +548,9 @@ export declare class VirtualFS {
|
|
|
501
548
|
getDefaultBranch(): Promise<string | null>;
|
|
502
549
|
/**
|
|
503
550
|
* Persist repository metadata into IndexFile.adapter.opts for session persistence.
|
|
551
|
+
/**
|
|
504
552
|
* Best-effort: failures are ignored.
|
|
553
|
+
* @param {RepositoryMetadata} md - metadata to persist
|
|
505
554
|
* @returns {Promise<void>}
|
|
506
555
|
*/
|
|
507
556
|
private _persistRepositoryMetadata;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtualfs.d.ts","sourceRoot":"","sources":["../../src/virtualfs/virtualfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"virtualfs.d.ts","sourceRoot":"","sources":["../../src/virtualfs/virtualfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAIpD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC9E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAsB,MAAM,YAAY,CAAA;AASrF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CACpE,CAAA;AAED,sDAAsD;AACtD,qBAAa,SAAS;IAEpB,OAAO,CAAC,OAAO,CAAmB;IAElC,OAAO,CAAC,MAAM,CAAC,CAA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AG,MAAM,GAAG;QAAE,aAAa,EAAE,MAAM,OAAO,CAAC,wBAAwB,CAAC,CAAA;KAAE,GACtG,OAAO,CAAC;QAAE,MAAM,EAAE,wBAAwB,GAAG,IAAI,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAwB5G;;;;;OAKG;IACG,WAAW,CAAC,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAQxE;;;;OAIG;IACG,YAAY,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC;IAapE;;;;OAIG;IACG,YAAY,CAAC,KAAK,EAAE,OAAO,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,YAAY,EAAE,kBAAkB,CAAC;IAgBnH;;;;;;;OAOG;YACW,wBAAwB;IAoBtC;;;;OAIG;YACW,4BAA4B;IAc1C;;;;OAIG;IACG,gBAAgB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAahD;;;;;;OAMG;YACW,0BAA0B;IAexC;;;;;OAKG;YACW,+BAA+B;IAa7C;;;;OAIG;YACW,8BAA8B;IAW5C;;;;;OAKG;YACW,uBAAuB;IAWrC;;;;;;;OAOG;YACW,kBAAkB;IAsBhC;;;OAGG;YACW,iCAAiC;IAW/C;;;;OAIG;IACG,IAAI,CAAC,KAAK,EAAE,OAAO,YAAY,EAAE,WAAW;;;IAyBlD;;;OAGG;YACW,gBAAgB;CAY/B;AAED,eAAe,SAAS,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-git-ops",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -43,9 +43,7 @@
|
|
|
43
43
|
"pretest:e2e": "npm run build",
|
|
44
44
|
"test:e2e": "playwright test --config=playwright.config.cjs",
|
|
45
45
|
"test:ci": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --coverage --runInBand",
|
|
46
|
-
"migrate:tests": "node ./scripts/migrate-tests.js",
|
|
47
46
|
"lint": "eslint \"src/**/*.{ts,js}\"",
|
|
48
|
-
"lint2": "eslint \"src/**/*.{ts,js}\" --config .eslintrc.cjs --rule \"unicorn/prevent-abbreviations:off\" --rule \"unicorn/filename-case:off\" --rule \"unicorn/prefer-early-return:off\" --rule \"unicorn/no-duplicated-branches:off\"",
|
|
49
47
|
"depcruise": "depcruise --config .dependency-cruiser.cjs src || exit 0",
|
|
50
48
|
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly",
|
|
51
49
|
"build:browser": "esbuild ./src/index.ts --bundle --outfile=dist/index.js --format=iife --global-name=APIGitLib --platform=browser --sourcemap",
|
|
@@ -60,11 +58,11 @@
|
|
|
60
58
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
61
59
|
"@typescript-eslint/parser": "^7.0.0",
|
|
62
60
|
"dependency-cruiser": "^17.3.6",
|
|
63
|
-
"esbuild": "^0.
|
|
61
|
+
"esbuild": "^0.27.3",
|
|
64
62
|
"eslint": "^8.56.0",
|
|
65
|
-
"eslint-plugin-jsdoc": "^
|
|
66
|
-
"eslint-plugin-sonarjs": "^0.
|
|
67
|
-
"eslint-plugin-unicorn": "^
|
|
63
|
+
"eslint-plugin-jsdoc": "^3.7.1",
|
|
64
|
+
"eslint-plugin-sonarjs": "^0.24.0",
|
|
65
|
+
"eslint-plugin-unicorn": "^39.0.0",
|
|
68
66
|
"fake-indexeddb": "^3.1.7",
|
|
69
67
|
"http-server": "^14.1.1",
|
|
70
68
|
"jest": "^29.6.1",
|