@portalshq/nap-sdk 0.4.5 → 0.5.2
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/dist/index.d.ts +66 -83
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +88 -109
- package/dist/native.d.ts +25 -27
- package/dist/native.d.ts.map +1 -1
- package/nap-sdk.darwin-arm64.node +0 -0
- package/nap-sdk.darwin-x64.node +0 -0
- package/nap-sdk.linux-arm64-gnu.node +0 -0
- package/nap-sdk.linux-x64-gnu.node +0 -0
- package/nap-sdk.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
/** A parsed NAP URI. */
|
|
11
11
|
export interface NapUri {
|
|
12
|
-
|
|
12
|
+
repository: string;
|
|
13
13
|
entity_type: string;
|
|
14
14
|
entity_id: string;
|
|
15
15
|
fragment?: string;
|
|
@@ -74,7 +74,7 @@ export type RemoteEntry = [string, string];
|
|
|
74
74
|
/** Repo info result. */
|
|
75
75
|
export interface RepoInfo {
|
|
76
76
|
root: string;
|
|
77
|
-
|
|
77
|
+
repository: string;
|
|
78
78
|
}
|
|
79
79
|
/** Operation result with commit. */
|
|
80
80
|
export interface CommitResult {
|
|
@@ -132,13 +132,13 @@ export declare function parseUri(uri: string): NapUri;
|
|
|
132
132
|
/**
|
|
133
133
|
* Construct a new NAP URI from components.
|
|
134
134
|
*
|
|
135
|
-
* @param
|
|
135
|
+
* @param repository - Repository name (e.g. `"starwars"`)
|
|
136
136
|
* @param entityType - Entity type (e.g. `"character"`)
|
|
137
137
|
* @param entityId - Entity ID slug (e.g. `"lukeskywalker"`)
|
|
138
138
|
* @param fragment - Optional query fragment
|
|
139
139
|
* @returns Parsed URI components
|
|
140
140
|
*/
|
|
141
|
-
export declare function uriNew(
|
|
141
|
+
export declare function uriNew(repository: string, entityType: string, entityId: string, fragment?: string): NapUri;
|
|
142
142
|
/**
|
|
143
143
|
* Return the canonical identity URI (without fragment).
|
|
144
144
|
*
|
|
@@ -156,13 +156,13 @@ export declare function uriManifestPath(uri: string): string;
|
|
|
156
156
|
/**
|
|
157
157
|
* Format URI components into a `nap://` URI string.
|
|
158
158
|
*
|
|
159
|
-
* @param
|
|
159
|
+
* @param repository - Repository name
|
|
160
160
|
* @param entityType - Entity type
|
|
161
161
|
* @param entityId - Entity ID
|
|
162
162
|
* @param fragment - Optional query fragment
|
|
163
163
|
* @returns Full NAP URI string
|
|
164
164
|
*/
|
|
165
|
-
export declare function uriFormat(
|
|
165
|
+
export declare function uriFormat(repository: string, entityType: string, entityId: string, fragment?: string): string;
|
|
166
166
|
/**
|
|
167
167
|
* Parse an entity type string.
|
|
168
168
|
*
|
|
@@ -193,13 +193,13 @@ export declare function parseManifest(yamlStr: string): Manifest;
|
|
|
193
193
|
/**
|
|
194
194
|
* Create a new manifest with minimal required fields.
|
|
195
195
|
*
|
|
196
|
-
* @param
|
|
196
|
+
* @param repository - Repository name
|
|
197
197
|
* @param entityType - Entity type string
|
|
198
198
|
* @param entityId - Entity ID slug
|
|
199
199
|
* @param name - Human-readable name
|
|
200
200
|
* @returns New manifest
|
|
201
201
|
*/
|
|
202
|
-
export declare function manifestNew(
|
|
202
|
+
export declare function manifestNew(repository: string, entityType: string, entityId: string, name: string): Manifest;
|
|
203
203
|
/**
|
|
204
204
|
* Serialize a manifest object to YAML.
|
|
205
205
|
*
|
|
@@ -339,25 +339,25 @@ export declare function commitNew(author: string, message: string, manifestHash:
|
|
|
339
339
|
*/
|
|
340
340
|
export declare function commitVerifyId(commit: Commit): boolean;
|
|
341
341
|
/**
|
|
342
|
-
* Initialize a new NAP
|
|
342
|
+
* Initialize a new NAP repository repository.
|
|
343
343
|
*
|
|
344
|
-
* @param
|
|
344
|
+
* @param repository - Repository name
|
|
345
345
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
346
|
-
* @returns Repo info with `root` and `
|
|
346
|
+
* @returns Repo info with `root` and `repository`
|
|
347
347
|
*/
|
|
348
|
-
export declare function repoInit(
|
|
348
|
+
export declare function repoInit(repository: string, basePath?: string): RepoInfo;
|
|
349
349
|
/**
|
|
350
|
-
* Open an existing NAP
|
|
350
|
+
* Open an existing NAP repository repository.
|
|
351
351
|
*
|
|
352
|
-
* @param
|
|
352
|
+
* @param repository - Repository name
|
|
353
353
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
354
354
|
* @returns Repo info
|
|
355
355
|
*/
|
|
356
|
-
export declare function repoOpen(
|
|
356
|
+
export declare function repoOpen(repository: string, basePath?: string): RepoInfo;
|
|
357
357
|
/**
|
|
358
358
|
* Create a new entity manifest and commit it.
|
|
359
359
|
*
|
|
360
|
-
* @param
|
|
360
|
+
* @param repository - Repository name
|
|
361
361
|
* @param entityType - Entity type string
|
|
362
362
|
* @param entityId - Entity ID slug
|
|
363
363
|
* @param name - Human-readable name
|
|
@@ -365,41 +365,41 @@ export declare function repoOpen(universe: string, basePath?: string): RepoInfo;
|
|
|
365
365
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
366
366
|
* @returns Object with `manifest` and `commit_hash`
|
|
367
367
|
*/
|
|
368
|
-
export declare function repoCreateEntity(
|
|
368
|
+
export declare function repoCreateEntity(repository: string, entityType: string, entityId: string, name: string, author?: string, basePath?: string): CreateEntityResult;
|
|
369
369
|
/**
|
|
370
370
|
* Read a manifest from the repository.
|
|
371
371
|
*
|
|
372
|
-
* @param
|
|
372
|
+
* @param repository - Repository name
|
|
373
373
|
* @param entityType - Entity type string
|
|
374
374
|
* @param entityId - Entity ID
|
|
375
375
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
376
376
|
* @returns Manifest object
|
|
377
377
|
*/
|
|
378
|
-
export declare function repoReadManifest(
|
|
378
|
+
export declare function repoReadManifest(repository: string, entityType: string, entityId: string, basePath?: string): Manifest;
|
|
379
379
|
/**
|
|
380
|
-
* Read a manifest at a specific VCS reference (commit, branch
|
|
380
|
+
* Read a manifest at a specific VCS reference (commit, branch).
|
|
381
381
|
*
|
|
382
|
-
* @param
|
|
382
|
+
* @param repository - Repository name
|
|
383
383
|
* @param entityType - Entity type string
|
|
384
384
|
* @param entityId - Entity ID
|
|
385
|
-
* @param reference - VCS ref (commit hash
|
|
385
|
+
* @param reference - VCS ref (commit hash or branch name)
|
|
386
386
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
387
387
|
* @returns Manifest object
|
|
388
388
|
*/
|
|
389
|
-
export declare function repoReadManifestAtRef(
|
|
389
|
+
export declare function repoReadManifestAtRef(repository: string, entityType: string, entityId: string, reference: string, basePath?: string): Manifest;
|
|
390
390
|
/**
|
|
391
391
|
* Write a manifest to the repository (does NOT commit).
|
|
392
392
|
*
|
|
393
|
-
* @param
|
|
393
|
+
* @param repository - Repository name
|
|
394
394
|
* @param manifest - Manifest object
|
|
395
395
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
396
396
|
* @returns The filesystem path where the manifest was written
|
|
397
397
|
*/
|
|
398
|
-
export declare function repoWriteManifest(
|
|
398
|
+
export declare function repoWriteManifest(repository: string, manifest: Manifest, basePath?: string): string;
|
|
399
399
|
/**
|
|
400
400
|
* Commit changes to a manifest.
|
|
401
401
|
*
|
|
402
|
-
* @param
|
|
402
|
+
* @param repository - Repository name
|
|
403
403
|
* @param entityType - Entity type string
|
|
404
404
|
* @param entityId - Entity ID
|
|
405
405
|
* @param message - Commit message
|
|
@@ -408,151 +408,134 @@ export declare function repoWriteManifest(universe: string, manifest: Manifest,
|
|
|
408
408
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
409
409
|
* @returns Object with `commit` and `version`
|
|
410
410
|
*/
|
|
411
|
-
export declare function repoCommitManifest(
|
|
411
|
+
export declare function repoCommitManifest(repository: string, entityType: string, entityId: string, message: string, author?: string, changes?: Change[], basePath?: string): CommitResult;
|
|
412
412
|
/**
|
|
413
413
|
* Delete an entity manifest and commit the deletion.
|
|
414
414
|
*
|
|
415
|
-
* @param
|
|
415
|
+
* @param repository - Repository name
|
|
416
416
|
* @param entityType - Entity type string
|
|
417
417
|
* @param entityId - Entity ID
|
|
418
418
|
* @param author - Author identifier (default: `"nap-sdk"`)
|
|
419
419
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
420
420
|
* @returns The VCS commit hash of the deletion
|
|
421
421
|
*/
|
|
422
|
-
export declare function repoDeleteEntity(
|
|
422
|
+
export declare function repoDeleteEntity(repository: string, entityType: string, entityId: string, author?: string, basePath?: string): string;
|
|
423
423
|
/**
|
|
424
424
|
* Get commit history for an entity.
|
|
425
425
|
*
|
|
426
|
-
* @param
|
|
426
|
+
* @param repository - Repository name
|
|
427
427
|
* @param entityType - Entity type string
|
|
428
428
|
* @param entityId - Entity ID
|
|
429
429
|
* @param limit - Maximum number of commits (default: 20)
|
|
430
430
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
431
431
|
* @returns Array of commit entries
|
|
432
432
|
*/
|
|
433
|
-
export declare function repoHistory(
|
|
433
|
+
export declare function repoHistory(repository: string, entityType: string, entityId: string, limit?: number, basePath?: string): CommitEntry[];
|
|
434
434
|
/**
|
|
435
|
-
* List all entity IDs of a given type in a
|
|
435
|
+
* List all entity IDs of a given type in a repository.
|
|
436
436
|
*
|
|
437
|
-
* @param
|
|
437
|
+
* @param repository - Repository name
|
|
438
438
|
* @param entityType - Entity type string
|
|
439
439
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
440
440
|
* @returns Array of entity ID strings
|
|
441
441
|
*/
|
|
442
|
-
export declare function repoListEntities(
|
|
442
|
+
export declare function repoListEntities(repository: string, entityType: string, basePath?: string): string[];
|
|
443
443
|
/**
|
|
444
|
-
* Create a branch in a
|
|
444
|
+
* Create a branch in a repository repository.
|
|
445
445
|
*
|
|
446
|
-
* @param
|
|
446
|
+
* @param repository - Repository name
|
|
447
447
|
* @param name - Branch name
|
|
448
448
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
449
449
|
* @returns Success response
|
|
450
450
|
*/
|
|
451
|
-
export declare function repoCreateBranch(
|
|
451
|
+
export declare function repoCreateBranch(repository: string, name: string, basePath?: string): SuccessResponse;
|
|
452
452
|
/**
|
|
453
|
-
* Switch to a branch in a
|
|
453
|
+
* Switch to a branch in a repository repository.
|
|
454
454
|
*
|
|
455
|
-
* @param
|
|
455
|
+
* @param repository - Repository name
|
|
456
456
|
* @param name - Branch name
|
|
457
457
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
458
458
|
* @returns Success response
|
|
459
459
|
*/
|
|
460
|
-
export declare function repoSwitchBranch(
|
|
460
|
+
export declare function repoSwitchBranch(repository: string, name: string, basePath?: string): SuccessResponse;
|
|
461
461
|
/**
|
|
462
|
-
* List all branches in a
|
|
462
|
+
* List all branches in a repository repository.
|
|
463
463
|
*
|
|
464
|
-
* @param
|
|
464
|
+
* @param repository - Repository name
|
|
465
465
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
466
466
|
* @returns Array of branch names
|
|
467
467
|
*/
|
|
468
|
-
export declare function repoListBranches(
|
|
468
|
+
export declare function repoListBranches(repository: string, basePath?: string): string[];
|
|
469
469
|
/**
|
|
470
|
-
*
|
|
470
|
+
* Get the current HEAD hash of a repository repository.
|
|
471
471
|
*
|
|
472
|
-
* @param
|
|
473
|
-
* @param name - Tag name
|
|
474
|
-
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
475
|
-
* @returns Success response
|
|
476
|
-
*/
|
|
477
|
-
export declare function repoCreateTag(universe: string, name: string, basePath?: string): SuccessResponse;
|
|
478
|
-
/**
|
|
479
|
-
* List all tags in a universe repository.
|
|
480
|
-
*
|
|
481
|
-
* @param universe - Universe name
|
|
482
|
-
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
483
|
-
* @returns Array of tag names
|
|
484
|
-
*/
|
|
485
|
-
export declare function repoListTags(universe: string, basePath?: string): string[];
|
|
486
|
-
/**
|
|
487
|
-
* Get the current HEAD hash of a universe repository.
|
|
488
|
-
*
|
|
489
|
-
* @param universe - Universe name
|
|
472
|
+
* @param repository - Repository name
|
|
490
473
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
491
474
|
* @returns The HEAD commit hash
|
|
492
475
|
*/
|
|
493
|
-
export declare function repoHeadHash(
|
|
476
|
+
export declare function repoHeadHash(repository: string, basePath?: string): string;
|
|
494
477
|
/**
|
|
495
|
-
* Revert a commit across an entire
|
|
478
|
+
* Revert a commit across an entire repository.
|
|
496
479
|
*
|
|
497
|
-
* @param
|
|
480
|
+
* @param repository - Repository name
|
|
498
481
|
* @param commitHash - Hash of the commit to revert
|
|
499
482
|
* @param author - Author identifier (default: `"nap-sdk"`)
|
|
500
483
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
501
484
|
* @returns The new revert commit hash
|
|
502
485
|
*/
|
|
503
|
-
export declare function repoRevertCommit(
|
|
486
|
+
export declare function repoRevertCommit(repository: string, commitHash: string, author?: string, basePath?: string): string;
|
|
504
487
|
/**
|
|
505
|
-
* Add a remote to a
|
|
488
|
+
* Add a remote to a repository repository.
|
|
506
489
|
*
|
|
507
|
-
* @param
|
|
490
|
+
* @param repository - Repository name
|
|
508
491
|
* @param name - Remote name (e.g. `"origin"`)
|
|
509
492
|
* @param url - Remote URL
|
|
510
493
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
511
494
|
* @returns Success response
|
|
512
495
|
*/
|
|
513
|
-
export declare function repoAddRemote(
|
|
496
|
+
export declare function repoAddRemote(repository: string, name: string, url: string, basePath?: string): SuccessResponse;
|
|
514
497
|
/**
|
|
515
|
-
* Remove a remote from a
|
|
498
|
+
* Remove a remote from a repository repository.
|
|
516
499
|
*
|
|
517
|
-
* @param
|
|
500
|
+
* @param repository - Repository name
|
|
518
501
|
* @param name - Remote name to remove
|
|
519
502
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
520
503
|
* @returns Success response
|
|
521
504
|
*/
|
|
522
|
-
export declare function repoRemoveRemote(
|
|
505
|
+
export declare function repoRemoveRemote(repository: string, name: string, basePath?: string): SuccessResponse;
|
|
523
506
|
/**
|
|
524
|
-
* List remotes on a
|
|
507
|
+
* List remotes on a repository repository.
|
|
525
508
|
*
|
|
526
|
-
* @param
|
|
509
|
+
* @param repository - Repository name
|
|
527
510
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
528
511
|
* @returns Array of `[name, url]` tuples
|
|
529
512
|
*/
|
|
530
|
-
export declare function repoListRemotes(
|
|
513
|
+
export declare function repoListRemotes(repository: string, basePath?: string): RemoteEntry[];
|
|
531
514
|
/**
|
|
532
515
|
* Push the current branch to a remote.
|
|
533
516
|
*
|
|
534
|
-
* @param
|
|
517
|
+
* @param repository - Repository name
|
|
535
518
|
* @param remote - Remote name (optional)
|
|
536
519
|
* @param branch - Branch to push (optional)
|
|
537
520
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
538
521
|
* @returns Success response
|
|
539
522
|
*/
|
|
540
|
-
export declare function repoPush(
|
|
523
|
+
export declare function repoPush(repository: string, remote?: string, branch?: string, basePath?: string): SuccessResponse;
|
|
541
524
|
/**
|
|
542
525
|
* Pull the current branch from a remote.
|
|
543
526
|
*
|
|
544
|
-
* @param
|
|
527
|
+
* @param repository - Repository name
|
|
545
528
|
* @param remote - Remote name (optional)
|
|
546
529
|
* @param branch - Branch to pull (optional)
|
|
547
530
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
548
531
|
* @returns Success response
|
|
549
532
|
*/
|
|
550
|
-
export declare function repoPull(
|
|
533
|
+
export declare function repoPull(repository: string, remote?: string, branch?: string, basePath?: string): SuccessResponse;
|
|
551
534
|
/**
|
|
552
535
|
* Resolve a NAP URI to a manifest or subtree.
|
|
553
536
|
*
|
|
554
537
|
* @param uri - NAP URI (e.g. `"nap://starwars/character/lukeskywalker"`)
|
|
555
|
-
* @param repoPath - Base directory for
|
|
538
|
+
* @param repoPath - Base directory for repositories (defaults to `$NAP_DIR` / `~/.nap`)
|
|
556
539
|
* @param branch - Optional branch selector
|
|
557
540
|
* @param commit - Optional commit hash selector (BLAKE3)
|
|
558
541
|
* @param path - Optional subtree query path
|
|
@@ -571,12 +554,12 @@ export declare function resolve(uri: string, repoPath?: string, branch?: string,
|
|
|
571
554
|
*/
|
|
572
555
|
export declare function resolveQuery(uri: string, path: string, repoPath?: string): unknown;
|
|
573
556
|
/**
|
|
574
|
-
* List all
|
|
557
|
+
* List all repository repositories available.
|
|
575
558
|
*
|
|
576
559
|
* @param repoPath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
577
|
-
* @returns Array of
|
|
560
|
+
* @returns Array of repository names
|
|
578
561
|
*/
|
|
579
|
-
export declare function
|
|
562
|
+
export declare function listRepositories(repoPath?: string): string[];
|
|
580
563
|
/**
|
|
581
564
|
* Get the JSON Schema for a NAP manifest.
|
|
582
565
|
*
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,wBAAwB;AACxB,MAAM,WAAW,MAAM;IACrB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAQH,wBAAwB;AACxB,MAAM,WAAW,MAAM;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE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AC,MAAM,EAAE,OAAO,CAAC,EAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,WAAW,CAMb;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjC,SAAS,EAAE,CAQb;AAMD;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,aAAa,CAE7C;AAED;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE/E;AAMD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,CAExE;AAMD;;GAEG;AACH,wBAAgB,OAAO,IAAI,MAAM,CAEhC"}
|
package/dist/index.js
CHANGED
|
@@ -30,14 +30,14 @@ export function parseUri(uri) {
|
|
|
30
30
|
/**
|
|
31
31
|
* Construct a new NAP URI from components.
|
|
32
32
|
*
|
|
33
|
-
* @param
|
|
33
|
+
* @param repository - Repository name (e.g. `"starwars"`)
|
|
34
34
|
* @param entityType - Entity type (e.g. `"character"`)
|
|
35
35
|
* @param entityId - Entity ID slug (e.g. `"lukeskywalker"`)
|
|
36
36
|
* @param fragment - Optional query fragment
|
|
37
37
|
* @returns Parsed URI components
|
|
38
38
|
*/
|
|
39
|
-
export function uriNew(
|
|
40
|
-
return JSON.parse(native.uriNew(
|
|
39
|
+
export function uriNew(repository, entityType, entityId, fragment) {
|
|
40
|
+
return JSON.parse(native.uriNew(repository, entityType, entityId, fragment));
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Return the canonical identity URI (without fragment).
|
|
@@ -60,14 +60,14 @@ export function uriManifestPath(uri) {
|
|
|
60
60
|
/**
|
|
61
61
|
* Format URI components into a `nap://` URI string.
|
|
62
62
|
*
|
|
63
|
-
* @param
|
|
63
|
+
* @param repository - Repository name
|
|
64
64
|
* @param entityType - Entity type
|
|
65
65
|
* @param entityId - Entity ID
|
|
66
66
|
* @param fragment - Optional query fragment
|
|
67
67
|
* @returns Full NAP URI string
|
|
68
68
|
*/
|
|
69
|
-
export function uriFormat(
|
|
70
|
-
return native.uriFormat(
|
|
69
|
+
export function uriFormat(repository, entityType, entityId, fragment) {
|
|
70
|
+
return native.uriFormat(repository, entityType, entityId, fragment);
|
|
71
71
|
}
|
|
72
72
|
// ═══════════════════════════════════════════════════════════════════════
|
|
73
73
|
// EntityType Operations
|
|
@@ -113,14 +113,14 @@ export function parseManifest(yamlStr) {
|
|
|
113
113
|
/**
|
|
114
114
|
* Create a new manifest with minimal required fields.
|
|
115
115
|
*
|
|
116
|
-
* @param
|
|
116
|
+
* @param repository - Repository name
|
|
117
117
|
* @param entityType - Entity type string
|
|
118
118
|
* @param entityId - Entity ID slug
|
|
119
119
|
* @param name - Human-readable name
|
|
120
120
|
* @returns New manifest
|
|
121
121
|
*/
|
|
122
|
-
export function manifestNew(
|
|
123
|
-
return JSON.parse(native.manifestNew(
|
|
122
|
+
export function manifestNew(repository, entityType, entityId, name) {
|
|
123
|
+
return JSON.parse(native.manifestNew(repository, entityType, entityId, name));
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* Serialize a manifest object to YAML.
|
|
@@ -304,29 +304,29 @@ export function commitVerifyId(commit) {
|
|
|
304
304
|
// Repository Operations
|
|
305
305
|
// ═══════════════════════════════════════════════════════════════════════
|
|
306
306
|
/**
|
|
307
|
-
* Initialize a new NAP
|
|
307
|
+
* Initialize a new NAP repository repository.
|
|
308
308
|
*
|
|
309
|
-
* @param
|
|
309
|
+
* @param repository - Repository name
|
|
310
310
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
311
|
-
* @returns Repo info with `root` and `
|
|
311
|
+
* @returns Repo info with `root` and `repository`
|
|
312
312
|
*/
|
|
313
|
-
export function repoInit(
|
|
314
|
-
return JSON.parse(native.repoInit(resolveRepoPath(basePath),
|
|
313
|
+
export function repoInit(repository, basePath) {
|
|
314
|
+
return JSON.parse(native.repoInit(resolveRepoPath(basePath), repository));
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
|
-
* Open an existing NAP
|
|
317
|
+
* Open an existing NAP repository repository.
|
|
318
318
|
*
|
|
319
|
-
* @param
|
|
319
|
+
* @param repository - Repository name
|
|
320
320
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
321
321
|
* @returns Repo info
|
|
322
322
|
*/
|
|
323
|
-
export function repoOpen(
|
|
324
|
-
return JSON.parse(native.repoOpen(resolveRepoPath(basePath),
|
|
323
|
+
export function repoOpen(repository, basePath) {
|
|
324
|
+
return JSON.parse(native.repoOpen(resolveRepoPath(basePath), repository));
|
|
325
325
|
}
|
|
326
326
|
/**
|
|
327
327
|
* Create a new entity manifest and commit it.
|
|
328
328
|
*
|
|
329
|
-
* @param
|
|
329
|
+
* @param repository - Repository name
|
|
330
330
|
* @param entityType - Entity type string
|
|
331
331
|
* @param entityId - Entity ID slug
|
|
332
332
|
* @param name - Human-readable name
|
|
@@ -334,49 +334,49 @@ export function repoOpen(universe, basePath) {
|
|
|
334
334
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
335
335
|
* @returns Object with `manifest` and `commit_hash`
|
|
336
336
|
*/
|
|
337
|
-
export function repoCreateEntity(
|
|
338
|
-
return JSON.parse(native.repoCreateEntity(resolveRepoPath(basePath),
|
|
337
|
+
export function repoCreateEntity(repository, entityType, entityId, name, author = "nap-sdk", basePath) {
|
|
338
|
+
return JSON.parse(native.repoCreateEntity(resolveRepoPath(basePath), repository, entityType, entityId, name, author));
|
|
339
339
|
}
|
|
340
340
|
/**
|
|
341
341
|
* Read a manifest from the repository.
|
|
342
342
|
*
|
|
343
|
-
* @param
|
|
343
|
+
* @param repository - Repository name
|
|
344
344
|
* @param entityType - Entity type string
|
|
345
345
|
* @param entityId - Entity ID
|
|
346
346
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
347
347
|
* @returns Manifest object
|
|
348
348
|
*/
|
|
349
|
-
export function repoReadManifest(
|
|
350
|
-
return JSON.parse(native.repoReadManifest(resolveRepoPath(basePath),
|
|
349
|
+
export function repoReadManifest(repository, entityType, entityId, basePath) {
|
|
350
|
+
return JSON.parse(native.repoReadManifest(resolveRepoPath(basePath), repository, entityType, entityId));
|
|
351
351
|
}
|
|
352
352
|
/**
|
|
353
|
-
* Read a manifest at a specific VCS reference (commit, branch
|
|
353
|
+
* Read a manifest at a specific VCS reference (commit, branch).
|
|
354
354
|
*
|
|
355
|
-
* @param
|
|
355
|
+
* @param repository - Repository name
|
|
356
356
|
* @param entityType - Entity type string
|
|
357
357
|
* @param entityId - Entity ID
|
|
358
|
-
* @param reference - VCS ref (commit hash
|
|
358
|
+
* @param reference - VCS ref (commit hash or branch name)
|
|
359
359
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
360
360
|
* @returns Manifest object
|
|
361
361
|
*/
|
|
362
|
-
export function repoReadManifestAtRef(
|
|
363
|
-
return JSON.parse(native.repoReadManifestAtRef(resolveRepoPath(basePath),
|
|
362
|
+
export function repoReadManifestAtRef(repository, entityType, entityId, reference, basePath) {
|
|
363
|
+
return JSON.parse(native.repoReadManifestAtRef(resolveRepoPath(basePath), repository, entityType, entityId, reference));
|
|
364
364
|
}
|
|
365
365
|
/**
|
|
366
366
|
* Write a manifest to the repository (does NOT commit).
|
|
367
367
|
*
|
|
368
|
-
* @param
|
|
368
|
+
* @param repository - Repository name
|
|
369
369
|
* @param manifest - Manifest object
|
|
370
370
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
371
371
|
* @returns The filesystem path where the manifest was written
|
|
372
372
|
*/
|
|
373
|
-
export function repoWriteManifest(
|
|
374
|
-
return native.repoWriteManifest(resolveRepoPath(basePath),
|
|
373
|
+
export function repoWriteManifest(repository, manifest, basePath) {
|
|
374
|
+
return native.repoWriteManifest(resolveRepoPath(basePath), repository, JSON.stringify(manifest));
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
377
377
|
* Commit changes to a manifest.
|
|
378
378
|
*
|
|
379
|
-
* @param
|
|
379
|
+
* @param repository - Repository name
|
|
380
380
|
* @param entityType - Entity type string
|
|
381
381
|
* @param entityId - Entity ID
|
|
382
382
|
* @param message - Commit message
|
|
@@ -385,177 +385,156 @@ export function repoWriteManifest(universe, manifest, basePath) {
|
|
|
385
385
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
386
386
|
* @returns Object with `commit` and `version`
|
|
387
387
|
*/
|
|
388
|
-
export function repoCommitManifest(
|
|
389
|
-
return JSON.parse(native.repoCommitManifest(resolveRepoPath(basePath),
|
|
388
|
+
export function repoCommitManifest(repository, entityType, entityId, message, author = "nap-sdk", changes = [], basePath) {
|
|
389
|
+
return JSON.parse(native.repoCommitManifest(resolveRepoPath(basePath), repository, entityType, entityId, message, author, JSON.stringify(changes)));
|
|
390
390
|
}
|
|
391
391
|
/**
|
|
392
392
|
* Delete an entity manifest and commit the deletion.
|
|
393
393
|
*
|
|
394
|
-
* @param
|
|
394
|
+
* @param repository - Repository name
|
|
395
395
|
* @param entityType - Entity type string
|
|
396
396
|
* @param entityId - Entity ID
|
|
397
397
|
* @param author - Author identifier (default: `"nap-sdk"`)
|
|
398
398
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
399
399
|
* @returns The VCS commit hash of the deletion
|
|
400
400
|
*/
|
|
401
|
-
export function repoDeleteEntity(
|
|
402
|
-
return native.repoDeleteEntity(resolveRepoPath(basePath),
|
|
401
|
+
export function repoDeleteEntity(repository, entityType, entityId, author = "nap-sdk", basePath) {
|
|
402
|
+
return native.repoDeleteEntity(resolveRepoPath(basePath), repository, entityType, entityId, author);
|
|
403
403
|
}
|
|
404
404
|
/**
|
|
405
405
|
* Get commit history for an entity.
|
|
406
406
|
*
|
|
407
|
-
* @param
|
|
407
|
+
* @param repository - Repository name
|
|
408
408
|
* @param entityType - Entity type string
|
|
409
409
|
* @param entityId - Entity ID
|
|
410
410
|
* @param limit - Maximum number of commits (default: 20)
|
|
411
411
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
412
412
|
* @returns Array of commit entries
|
|
413
413
|
*/
|
|
414
|
-
export function repoHistory(
|
|
415
|
-
return JSON.parse(native.repoHistory(resolveRepoPath(basePath),
|
|
414
|
+
export function repoHistory(repository, entityType, entityId, limit = 20, basePath) {
|
|
415
|
+
return JSON.parse(native.repoHistory(resolveRepoPath(basePath), repository, entityType, entityId, limit));
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
418
|
-
* List all entity IDs of a given type in a
|
|
418
|
+
* List all entity IDs of a given type in a repository.
|
|
419
419
|
*
|
|
420
|
-
* @param
|
|
420
|
+
* @param repository - Repository name
|
|
421
421
|
* @param entityType - Entity type string
|
|
422
422
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
423
423
|
* @returns Array of entity ID strings
|
|
424
424
|
*/
|
|
425
|
-
export function repoListEntities(
|
|
426
|
-
return JSON.parse(native.repoListEntities(resolveRepoPath(basePath),
|
|
425
|
+
export function repoListEntities(repository, entityType, basePath) {
|
|
426
|
+
return JSON.parse(native.repoListEntities(resolveRepoPath(basePath), repository, entityType));
|
|
427
427
|
}
|
|
428
428
|
/**
|
|
429
|
-
* Create a branch in a
|
|
429
|
+
* Create a branch in a repository repository.
|
|
430
430
|
*
|
|
431
|
-
* @param
|
|
431
|
+
* @param repository - Repository name
|
|
432
432
|
* @param name - Branch name
|
|
433
433
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
434
434
|
* @returns Success response
|
|
435
435
|
*/
|
|
436
|
-
export function repoCreateBranch(
|
|
437
|
-
return JSON.parse(native.repoCreateBranch(resolveRepoPath(basePath),
|
|
436
|
+
export function repoCreateBranch(repository, name, basePath) {
|
|
437
|
+
return JSON.parse(native.repoCreateBranch(resolveRepoPath(basePath), repository, name));
|
|
438
438
|
}
|
|
439
439
|
/**
|
|
440
|
-
* Switch to a branch in a
|
|
440
|
+
* Switch to a branch in a repository repository.
|
|
441
441
|
*
|
|
442
|
-
* @param
|
|
442
|
+
* @param repository - Repository name
|
|
443
443
|
* @param name - Branch name
|
|
444
444
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
445
445
|
* @returns Success response
|
|
446
446
|
*/
|
|
447
|
-
export function repoSwitchBranch(
|
|
448
|
-
return JSON.parse(native.repoSwitchBranch(resolveRepoPath(basePath),
|
|
447
|
+
export function repoSwitchBranch(repository, name, basePath) {
|
|
448
|
+
return JSON.parse(native.repoSwitchBranch(resolveRepoPath(basePath), repository, name));
|
|
449
449
|
}
|
|
450
450
|
/**
|
|
451
|
-
* List all branches in a
|
|
451
|
+
* List all branches in a repository repository.
|
|
452
452
|
*
|
|
453
|
-
* @param
|
|
453
|
+
* @param repository - Repository name
|
|
454
454
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
455
455
|
* @returns Array of branch names
|
|
456
456
|
*/
|
|
457
|
-
export function repoListBranches(
|
|
458
|
-
return JSON.parse(native.repoListBranches(resolveRepoPath(basePath),
|
|
457
|
+
export function repoListBranches(repository, basePath) {
|
|
458
|
+
return JSON.parse(native.repoListBranches(resolveRepoPath(basePath), repository));
|
|
459
459
|
}
|
|
460
460
|
/**
|
|
461
|
-
*
|
|
461
|
+
* Get the current HEAD hash of a repository repository.
|
|
462
462
|
*
|
|
463
|
-
* @param
|
|
464
|
-
* @param name - Tag name
|
|
465
|
-
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
466
|
-
* @returns Success response
|
|
467
|
-
*/
|
|
468
|
-
export function repoCreateTag(universe, name, basePath) {
|
|
469
|
-
return JSON.parse(native.repoCreateTag(resolveRepoPath(basePath), universe, name));
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* List all tags in a universe repository.
|
|
473
|
-
*
|
|
474
|
-
* @param universe - Universe name
|
|
475
|
-
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
476
|
-
* @returns Array of tag names
|
|
477
|
-
*/
|
|
478
|
-
export function repoListTags(universe, basePath) {
|
|
479
|
-
return JSON.parse(native.repoListTags(resolveRepoPath(basePath), universe));
|
|
480
|
-
}
|
|
481
|
-
/**
|
|
482
|
-
* Get the current HEAD hash of a universe repository.
|
|
483
|
-
*
|
|
484
|
-
* @param universe - Universe name
|
|
463
|
+
* @param repository - Repository name
|
|
485
464
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
486
465
|
* @returns The HEAD commit hash
|
|
487
466
|
*/
|
|
488
|
-
export function repoHeadHash(
|
|
489
|
-
return native.repoHeadHash(resolveRepoPath(basePath),
|
|
467
|
+
export function repoHeadHash(repository, basePath) {
|
|
468
|
+
return native.repoHeadHash(resolveRepoPath(basePath), repository);
|
|
490
469
|
}
|
|
491
470
|
/**
|
|
492
|
-
* Revert a commit across an entire
|
|
471
|
+
* Revert a commit across an entire repository.
|
|
493
472
|
*
|
|
494
|
-
* @param
|
|
473
|
+
* @param repository - Repository name
|
|
495
474
|
* @param commitHash - Hash of the commit to revert
|
|
496
475
|
* @param author - Author identifier (default: `"nap-sdk"`)
|
|
497
476
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
498
477
|
* @returns The new revert commit hash
|
|
499
478
|
*/
|
|
500
|
-
export function repoRevertCommit(
|
|
501
|
-
return native.repoRevertCommit(resolveRepoPath(basePath),
|
|
479
|
+
export function repoRevertCommit(repository, commitHash, author = "nap-sdk", basePath) {
|
|
480
|
+
return native.repoRevertCommit(resolveRepoPath(basePath), repository, commitHash, author);
|
|
502
481
|
}
|
|
503
482
|
/**
|
|
504
|
-
* Add a remote to a
|
|
483
|
+
* Add a remote to a repository repository.
|
|
505
484
|
*
|
|
506
|
-
* @param
|
|
485
|
+
* @param repository - Repository name
|
|
507
486
|
* @param name - Remote name (e.g. `"origin"`)
|
|
508
487
|
* @param url - Remote URL
|
|
509
488
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
510
489
|
* @returns Success response
|
|
511
490
|
*/
|
|
512
|
-
export function repoAddRemote(
|
|
513
|
-
return JSON.parse(native.repoAddRemote(resolveRepoPath(basePath),
|
|
491
|
+
export function repoAddRemote(repository, name, url, basePath) {
|
|
492
|
+
return JSON.parse(native.repoAddRemote(resolveRepoPath(basePath), repository, name, url));
|
|
514
493
|
}
|
|
515
494
|
/**
|
|
516
|
-
* Remove a remote from a
|
|
495
|
+
* Remove a remote from a repository repository.
|
|
517
496
|
*
|
|
518
|
-
* @param
|
|
497
|
+
* @param repository - Repository name
|
|
519
498
|
* @param name - Remote name to remove
|
|
520
499
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
521
500
|
* @returns Success response
|
|
522
501
|
*/
|
|
523
|
-
export function repoRemoveRemote(
|
|
524
|
-
return JSON.parse(native.repoRemoveRemote(resolveRepoPath(basePath),
|
|
502
|
+
export function repoRemoveRemote(repository, name, basePath) {
|
|
503
|
+
return JSON.parse(native.repoRemoveRemote(resolveRepoPath(basePath), repository, name));
|
|
525
504
|
}
|
|
526
505
|
/**
|
|
527
|
-
* List remotes on a
|
|
506
|
+
* List remotes on a repository repository.
|
|
528
507
|
*
|
|
529
|
-
* @param
|
|
508
|
+
* @param repository - Repository name
|
|
530
509
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
531
510
|
* @returns Array of `[name, url]` tuples
|
|
532
511
|
*/
|
|
533
|
-
export function repoListRemotes(
|
|
534
|
-
return JSON.parse(native.repoListRemotes(resolveRepoPath(basePath),
|
|
512
|
+
export function repoListRemotes(repository, basePath) {
|
|
513
|
+
return JSON.parse(native.repoListRemotes(resolveRepoPath(basePath), repository));
|
|
535
514
|
}
|
|
536
515
|
/**
|
|
537
516
|
* Push the current branch to a remote.
|
|
538
517
|
*
|
|
539
|
-
* @param
|
|
518
|
+
* @param repository - Repository name
|
|
540
519
|
* @param remote - Remote name (optional)
|
|
541
520
|
* @param branch - Branch to push (optional)
|
|
542
521
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
543
522
|
* @returns Success response
|
|
544
523
|
*/
|
|
545
|
-
export function repoPush(
|
|
546
|
-
return JSON.parse(native.repoPush(resolveRepoPath(basePath),
|
|
524
|
+
export function repoPush(repository, remote, branch, basePath) {
|
|
525
|
+
return JSON.parse(native.repoPush(resolveRepoPath(basePath), repository, remote, branch));
|
|
547
526
|
}
|
|
548
527
|
/**
|
|
549
528
|
* Pull the current branch from a remote.
|
|
550
529
|
*
|
|
551
|
-
* @param
|
|
530
|
+
* @param repository - Repository name
|
|
552
531
|
* @param remote - Remote name (optional)
|
|
553
532
|
* @param branch - Branch to pull (optional)
|
|
554
533
|
* @param basePath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
555
534
|
* @returns Success response
|
|
556
535
|
*/
|
|
557
|
-
export function repoPull(
|
|
558
|
-
return JSON.parse(native.repoPull(resolveRepoPath(basePath),
|
|
536
|
+
export function repoPull(repository, remote, branch, basePath) {
|
|
537
|
+
return JSON.parse(native.repoPull(resolveRepoPath(basePath), repository, remote, branch));
|
|
559
538
|
}
|
|
560
539
|
// ═══════════════════════════════════════════════════════════════════════
|
|
561
540
|
// Resolver Operations
|
|
@@ -564,7 +543,7 @@ export function repoPull(universe, remote, branch, basePath) {
|
|
|
564
543
|
* Resolve a NAP URI to a manifest or subtree.
|
|
565
544
|
*
|
|
566
545
|
* @param uri - NAP URI (e.g. `"nap://starwars/character/lukeskywalker"`)
|
|
567
|
-
* @param repoPath - Base directory for
|
|
546
|
+
* @param repoPath - Base directory for repositories (defaults to `$NAP_DIR` / `~/.nap`)
|
|
568
547
|
* @param branch - Optional branch selector
|
|
569
548
|
* @param commit - Optional commit hash selector (BLAKE3)
|
|
570
549
|
* @param path - Optional subtree query path
|
|
@@ -591,13 +570,13 @@ export function resolveQuery(uri, path, repoPath) {
|
|
|
591
570
|
return JSON.parse(native.resolveQuery(uri, resolveRepoPath(repoPath), path));
|
|
592
571
|
}
|
|
593
572
|
/**
|
|
594
|
-
* List all
|
|
573
|
+
* List all repository repositories available.
|
|
595
574
|
*
|
|
596
575
|
* @param repoPath - Base directory (defaults to `$NAP_DIR` / `~/.nap`)
|
|
597
|
-
* @returns Array of
|
|
576
|
+
* @returns Array of repository names
|
|
598
577
|
*/
|
|
599
|
-
export function
|
|
600
|
-
return JSON.parse(native.
|
|
578
|
+
export function listRepositories(repoPath) {
|
|
579
|
+
return JSON.parse(native.listRepositories(resolveRepoPath(repoPath)));
|
|
601
580
|
}
|
|
602
581
|
// ═══════════════════════════════════════════════════════════════════════
|
|
603
582
|
// Schema Operations
|
package/dist/native.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
interface NativeBindings {
|
|
2
2
|
parseUri(uri: string): string;
|
|
3
|
-
uriNew(
|
|
3
|
+
uriNew(repository: string, entityType: string, entityId: string, fragment?: string): string;
|
|
4
4
|
uriIdentity(uri: string): string;
|
|
5
5
|
uriManifestPath(uri: string): string;
|
|
6
|
-
uriFormat(
|
|
6
|
+
uriFormat(repository: string, entityType: string, entityId: string, fragment?: string): string;
|
|
7
7
|
entityTypeParse(s: string): string;
|
|
8
8
|
entityTypeDirectoryName(entityType: string): string;
|
|
9
9
|
entityTypeList(): string;
|
|
10
10
|
parseManifest(yamlStr: string): string;
|
|
11
|
-
manifestNew(
|
|
11
|
+
manifestNew(repository: string, entityType: string, entityId: string, name: string): string;
|
|
12
12
|
manifestToYaml(jsonStr: string): string;
|
|
13
13
|
manifestFromYaml(yamlStr: string): string;
|
|
14
14
|
manifestContentHash(jsonStr: string): string;
|
|
@@ -26,32 +26,30 @@ interface NativeBindings {
|
|
|
26
26
|
changeAppend(path: string, newValue: string): string;
|
|
27
27
|
commitNew(parent: string | undefined | null, author: string, message: string, manifestHash: string, changesJson: string): string;
|
|
28
28
|
commitVerifyId(jsonStr: string): boolean;
|
|
29
|
-
repoInit(basePath: string,
|
|
30
|
-
repoOpen(basePath: string,
|
|
31
|
-
repoCreateEntity(basePath: string,
|
|
32
|
-
repoReadManifest(basePath: string,
|
|
33
|
-
repoReadManifestAtRef(basePath: string,
|
|
34
|
-
repoWriteManifest(basePath: string,
|
|
35
|
-
repoCommitManifest(basePath: string,
|
|
36
|
-
repoDeleteEntity(basePath: string,
|
|
37
|
-
repoHistory(basePath: string,
|
|
38
|
-
repoListEntities(basePath: string,
|
|
39
|
-
repoCreateBranch(basePath: string,
|
|
40
|
-
repoSwitchBranch(basePath: string,
|
|
41
|
-
repoListBranches(basePath: string,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
repoPush(basePath: string, universe: string, remote?: string, branch?: string): string;
|
|
50
|
-
repoPull(basePath: string, universe: string, remote?: string, branch?: string): string;
|
|
29
|
+
repoInit(basePath: string, repository: string): string;
|
|
30
|
+
repoOpen(basePath: string, repository: string): string;
|
|
31
|
+
repoCreateEntity(basePath: string, repository: string, entityType: string, entityId: string, name: string, author: string): string;
|
|
32
|
+
repoReadManifest(basePath: string, repository: string, entityType: string, entityId: string): string;
|
|
33
|
+
repoReadManifestAtRef(basePath: string, repository: string, entityType: string, entityId: string, reference: string): string;
|
|
34
|
+
repoWriteManifest(basePath: string, repository: string, manifestJson: string): string;
|
|
35
|
+
repoCommitManifest(basePath: string, repository: string, entityType: string, entityId: string, message: string, author: string, changesJson: string): string;
|
|
36
|
+
repoDeleteEntity(basePath: string, repository: string, entityType: string, entityId: string, author: string): string;
|
|
37
|
+
repoHistory(basePath: string, repository: string, entityType: string, entityId: string, limit: number): string;
|
|
38
|
+
repoListEntities(basePath: string, repository: string, entityType: string): string;
|
|
39
|
+
repoCreateBranch(basePath: string, repository: string, name: string): string;
|
|
40
|
+
repoSwitchBranch(basePath: string, repository: string, name: string): string;
|
|
41
|
+
repoListBranches(basePath: string, repository: string): string;
|
|
42
|
+
repoHeadHash(basePath: string, repository: string): string;
|
|
43
|
+
repoRevertCommit(basePath: string, repository: string, commitHash: string, author: string): string;
|
|
44
|
+
repoAddRemote(basePath: string, repository: string, name: string, url: string): string;
|
|
45
|
+
repoRemoveRemote(basePath: string, repository: string, name: string): string;
|
|
46
|
+
repoListRemotes(basePath: string, repository: string): string;
|
|
47
|
+
repoPush(basePath: string, repository: string, remote?: string, branch?: string): string;
|
|
48
|
+
repoPull(basePath: string, repository: string, remote?: string, branch?: string): string;
|
|
51
49
|
resolve(uri: string, repoPath: string): string;
|
|
52
|
-
resolveWithOptions(uri: string, repoPath: string, branch?: string, commit?: string,
|
|
50
|
+
resolveWithOptions(uri: string, repoPath: string, branch?: string, commit?: string, path?: string): string;
|
|
53
51
|
resolveQuery(uri: string, repoPath: string, path: string): string;
|
|
54
|
-
|
|
52
|
+
listRepositories(repoPath: string): string;
|
|
55
53
|
manifestSchema(): string;
|
|
56
54
|
commitSchema(): string;
|
|
57
55
|
validateManifest(jsonStr: string): string;
|
package/dist/native.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../src/native.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IAEtB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"native.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