@memberjunction/ng-agents 0.0.1 → 4.0.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/dist/lib/agents.module.d.ts +37 -0
- package/dist/lib/agents.module.d.ts.map +1 -0
- package/dist/lib/agents.module.js +79 -0
- package/dist/lib/agents.module.js.map +1 -0
- package/dist/lib/components/agent-permissions-dialog.component.d.ts +29 -0
- package/dist/lib/components/agent-permissions-dialog.component.d.ts.map +1 -0
- package/dist/lib/components/agent-permissions-dialog.component.js +135 -0
- package/dist/lib/components/agent-permissions-dialog.component.js.map +1 -0
- package/dist/lib/components/agent-permissions-panel.component.d.ts +52 -0
- package/dist/lib/components/agent-permissions-panel.component.d.ts.map +1 -0
- package/dist/lib/components/agent-permissions-panel.component.js +557 -0
- package/dist/lib/components/agent-permissions-panel.component.js.map +1 -0
- package/dist/lib/components/agent-permissions-slideover.component.d.ts +42 -0
- package/dist/lib/components/agent-permissions-slideover.component.d.ts.map +1 -0
- package/dist/lib/components/agent-permissions-slideover.component.js +176 -0
- package/dist/lib/components/agent-permissions-slideover.component.js.map +1 -0
- package/dist/lib/components/create-agent-dialog.component.d.ts +33 -0
- package/dist/lib/components/create-agent-dialog.component.d.ts.map +1 -0
- package/dist/lib/components/create-agent-dialog.component.js +140 -0
- package/dist/lib/components/create-agent-dialog.component.js.map +1 -0
- package/dist/lib/components/create-agent-panel.component.d.ts +121 -0
- package/dist/lib/components/create-agent-panel.component.d.ts.map +1 -0
- package/dist/lib/components/create-agent-panel.component.js +955 -0
- package/dist/lib/components/create-agent-panel.component.js.map +1 -0
- package/dist/lib/components/create-agent-slidein.component.d.ts +44 -0
- package/dist/lib/components/create-agent-slidein.component.d.ts.map +1 -0
- package/dist/lib/components/create-agent-slidein.component.js +190 -0
- package/dist/lib/components/create-agent-slidein.component.js.map +1 -0
- package/dist/lib/services/agent-permissions.service.d.ts +68 -0
- package/dist/lib/services/agent-permissions.service.d.ts.map +1 -0
- package/dist/lib/services/agent-permissions.service.js +134 -0
- package/dist/lib/services/agent-permissions.service.js.map +1 -0
- package/dist/lib/services/create-agent.service.d.ts +100 -0
- package/dist/lib/services/create-agent.service.d.ts.map +1 -0
- package/dist/lib/services/create-agent.service.js +199 -0
- package/dist/lib/services/create-agent.service.js.map +1 -0
- package/dist/public-api.d.ts +10 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +17 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +42 -7
- package/README.md +0 -45
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { Injectable, createComponent } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { CreateAgentDialogComponent } from '../components/create-agent-dialog.component';
|
|
4
|
+
import { CreateAgentSlideInComponent } from '../components/create-agent-slidein.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Service for programmatically opening create agent dialogs and slide-ins.
|
|
8
|
+
*
|
|
9
|
+
* This service dynamically creates and manages the dialog/slide-in components,
|
|
10
|
+
* handling their lifecycle and emitting results via observables.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* ```typescript
|
|
14
|
+
* constructor(private createAgentService: CreateAgentService) {}
|
|
15
|
+
*
|
|
16
|
+
* openCreateDialog() {
|
|
17
|
+
* this.createAgentService.OpenDialog({ Title: 'Create Agent' })
|
|
18
|
+
* .subscribe(result => {
|
|
19
|
+
* if (!result.Cancelled && result.Result) {
|
|
20
|
+
* console.log('Agent created:', result.Result.Agent);
|
|
21
|
+
* }
|
|
22
|
+
* });
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* openCreateSlideIn() {
|
|
26
|
+
* this.createAgentService.OpenSlideIn({
|
|
27
|
+
* ParentAgentId: 'abc123',
|
|
28
|
+
* ParentAgentName: 'My Agent'
|
|
29
|
+
* }).subscribe(result => {
|
|
30
|
+
* // Handle result
|
|
31
|
+
* });
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export class CreateAgentService {
|
|
36
|
+
appRef;
|
|
37
|
+
injector;
|
|
38
|
+
dialogRef = null;
|
|
39
|
+
slideInRef = null;
|
|
40
|
+
constructor(appRef, injector) {
|
|
41
|
+
this.appRef = appRef;
|
|
42
|
+
this.injector = injector;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Opens the create agent dialog.
|
|
46
|
+
* @param config Configuration options for the dialog
|
|
47
|
+
* @returns Observable that emits when the dialog closes
|
|
48
|
+
*/
|
|
49
|
+
OpenDialog(config = {}) {
|
|
50
|
+
// Close any existing dialog
|
|
51
|
+
this.closeDialog();
|
|
52
|
+
const resultSubject = new Subject();
|
|
53
|
+
// Create component dynamically
|
|
54
|
+
this.dialogRef = createComponent(CreateAgentDialogComponent, {
|
|
55
|
+
environmentInjector: this.injector
|
|
56
|
+
});
|
|
57
|
+
// Set inputs
|
|
58
|
+
this.dialogRef.instance.Config = config;
|
|
59
|
+
// Listen for events
|
|
60
|
+
this.dialogRef.instance.Created.subscribe((result) => {
|
|
61
|
+
resultSubject.next({ Result: result, Cancelled: false });
|
|
62
|
+
resultSubject.complete();
|
|
63
|
+
this.closeDialog();
|
|
64
|
+
});
|
|
65
|
+
this.dialogRef.instance.Closed.subscribe(() => {
|
|
66
|
+
// Only emit cancelled if we haven't already emitted a result
|
|
67
|
+
if (!resultSubject.closed) {
|
|
68
|
+
resultSubject.next({ Cancelled: true });
|
|
69
|
+
resultSubject.complete();
|
|
70
|
+
}
|
|
71
|
+
this.closeDialog();
|
|
72
|
+
});
|
|
73
|
+
// Attach to DOM
|
|
74
|
+
this.appRef.attachView(this.dialogRef.hostView);
|
|
75
|
+
document.body.appendChild(this.dialogRef.location.nativeElement);
|
|
76
|
+
// Trigger change detection
|
|
77
|
+
this.dialogRef.changeDetectorRef.detectChanges();
|
|
78
|
+
return resultSubject.asObservable();
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Opens the create agent slide-in panel.
|
|
82
|
+
* @param config Configuration options for the slide-in
|
|
83
|
+
* @returns Observable that emits when the slide-in closes
|
|
84
|
+
*/
|
|
85
|
+
OpenSlideIn(config = {}) {
|
|
86
|
+
// Close any existing slide-in
|
|
87
|
+
this.closeSlideIn();
|
|
88
|
+
const resultSubject = new Subject();
|
|
89
|
+
// Create component dynamically
|
|
90
|
+
this.slideInRef = createComponent(CreateAgentSlideInComponent, {
|
|
91
|
+
environmentInjector: this.injector
|
|
92
|
+
});
|
|
93
|
+
// Set inputs
|
|
94
|
+
this.slideInRef.instance.Config = config;
|
|
95
|
+
// Listen for events
|
|
96
|
+
this.slideInRef.instance.Created.subscribe((result) => {
|
|
97
|
+
resultSubject.next({ Result: result, Cancelled: false });
|
|
98
|
+
resultSubject.complete();
|
|
99
|
+
this.closeSlideIn();
|
|
100
|
+
});
|
|
101
|
+
this.slideInRef.instance.Closed.subscribe(() => {
|
|
102
|
+
// Only emit cancelled if we haven't already emitted a result
|
|
103
|
+
if (!resultSubject.closed) {
|
|
104
|
+
resultSubject.next({ Cancelled: true });
|
|
105
|
+
resultSubject.complete();
|
|
106
|
+
}
|
|
107
|
+
this.closeSlideIn();
|
|
108
|
+
});
|
|
109
|
+
// Attach to DOM
|
|
110
|
+
this.appRef.attachView(this.slideInRef.hostView);
|
|
111
|
+
document.body.appendChild(this.slideInRef.location.nativeElement);
|
|
112
|
+
// Trigger change detection
|
|
113
|
+
this.slideInRef.changeDetectorRef.detectChanges();
|
|
114
|
+
return resultSubject.asObservable();
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Convenience method to open dialog for creating a sub-agent.
|
|
118
|
+
* @param parentAgentId The ID of the parent agent
|
|
119
|
+
* @param parentAgentName The name of the parent agent (for display)
|
|
120
|
+
* @returns Observable that emits when the dialog closes
|
|
121
|
+
*/
|
|
122
|
+
OpenSubAgentDialog(parentAgentId, parentAgentName) {
|
|
123
|
+
return this.OpenDialog({
|
|
124
|
+
ParentAgentId: parentAgentId,
|
|
125
|
+
ParentAgentName: parentAgentName,
|
|
126
|
+
Title: 'Create Sub-Agent'
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Convenience method to open slide-in for creating a sub-agent.
|
|
131
|
+
* @param parentAgentId The ID of the parent agent
|
|
132
|
+
* @param parentAgentName The name of the parent agent (for display)
|
|
133
|
+
* @returns Observable that emits when the slide-in closes
|
|
134
|
+
*/
|
|
135
|
+
OpenSubAgentSlideIn(parentAgentId, parentAgentName) {
|
|
136
|
+
return this.OpenSlideIn({
|
|
137
|
+
ParentAgentId: parentAgentId,
|
|
138
|
+
ParentAgentName: parentAgentName,
|
|
139
|
+
Title: 'Create Sub-Agent'
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Closes the currently open dialog (if any).
|
|
144
|
+
*/
|
|
145
|
+
CloseDialog() {
|
|
146
|
+
this.closeDialog();
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Closes the currently open slide-in (if any).
|
|
150
|
+
*/
|
|
151
|
+
CloseSlideIn() {
|
|
152
|
+
this.closeSlideIn();
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Closes all open dialogs and slide-ins.
|
|
156
|
+
*/
|
|
157
|
+
CloseAll() {
|
|
158
|
+
this.closeDialog();
|
|
159
|
+
this.closeSlideIn();
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Returns true if a dialog is currently open.
|
|
163
|
+
*/
|
|
164
|
+
get IsDialogOpen() {
|
|
165
|
+
return this.dialogRef !== null;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Returns true if a slide-in is currently open.
|
|
169
|
+
*/
|
|
170
|
+
get IsSlideInOpen() {
|
|
171
|
+
return this.slideInRef !== null;
|
|
172
|
+
}
|
|
173
|
+
// =========================================================================
|
|
174
|
+
// Private Methods
|
|
175
|
+
// =========================================================================
|
|
176
|
+
closeDialog() {
|
|
177
|
+
if (this.dialogRef) {
|
|
178
|
+
this.appRef.detachView(this.dialogRef.hostView);
|
|
179
|
+
this.dialogRef.destroy();
|
|
180
|
+
this.dialogRef = null;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
closeSlideIn() {
|
|
184
|
+
if (this.slideInRef) {
|
|
185
|
+
this.appRef.detachView(this.slideInRef.hostView);
|
|
186
|
+
this.slideInRef.destroy();
|
|
187
|
+
this.slideInRef = null;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
static ɵfac = function CreateAgentService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CreateAgentService)(i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.EnvironmentInjector)); };
|
|
191
|
+
static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CreateAgentService, factory: CreateAgentService.ɵfac, providedIn: 'root' });
|
|
192
|
+
}
|
|
193
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CreateAgentService, [{
|
|
194
|
+
type: Injectable,
|
|
195
|
+
args: [{
|
|
196
|
+
providedIn: 'root'
|
|
197
|
+
}]
|
|
198
|
+
}], () => [{ type: i0.ApplicationRef }, { type: i0.EnvironmentInjector }], null); })();
|
|
199
|
+
//# sourceMappingURL=create-agent.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-agent.service.js","sourceRoot":"","sources":["../../../src/lib/services/create-agent.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgC,eAAe,EAAuB,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAc,OAAO,EAAE,MAAM,MAAM,CAAC;AAE3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;;AAY3F;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAIH,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AClB,4EAA4E;IAEpE,WAAW;QACf,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACjB,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAChD,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;YACzB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QAC1B,CAAC;IACL,CAAC;IAEO,YAAY;QAChB,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;YACjD,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;YAC1B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QAC3B,CAAC;IACL,CAAC;4GArLQ,kBAAkB;gEAAlB,kBAAkB,WAAlB,kBAAkB,mBAFf,MAAM;;iFAET,kBAAkB;cAH9B,UAAU;eAAC;gBACR,UAAU,EAAE,MAAM;aACrB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './lib/agents.module';
|
|
2
|
+
export * from './lib/services/agent-permissions.service';
|
|
3
|
+
export * from './lib/services/create-agent.service';
|
|
4
|
+
export * from './lib/components/agent-permissions-panel.component';
|
|
5
|
+
export * from './lib/components/agent-permissions-dialog.component';
|
|
6
|
+
export * from './lib/components/agent-permissions-slideover.component';
|
|
7
|
+
export * from './lib/components/create-agent-panel.component';
|
|
8
|
+
export * from './lib/components/create-agent-dialog.component';
|
|
9
|
+
export * from './lib/components/create-agent-slidein.component';
|
|
10
|
+
//# sourceMappingURL=public-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAKA,cAAc,qBAAqB,CAAC;AAGpC,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AAGpD,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,wDAAwD,CAAC;AAGvE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of @memberjunction/ng-agents
|
|
3
|
+
*/
|
|
4
|
+
// Module
|
|
5
|
+
export * from './lib/agents.module';
|
|
6
|
+
// Services
|
|
7
|
+
export * from './lib/services/agent-permissions.service';
|
|
8
|
+
export * from './lib/services/create-agent.service';
|
|
9
|
+
// Permissions Components
|
|
10
|
+
export * from './lib/components/agent-permissions-panel.component';
|
|
11
|
+
export * from './lib/components/agent-permissions-dialog.component';
|
|
12
|
+
export * from './lib/components/agent-permissions-slideover.component';
|
|
13
|
+
// Create Agent Components
|
|
14
|
+
export * from './lib/components/create-agent-panel.component';
|
|
15
|
+
export * from './lib/components/create-agent-dialog.component';
|
|
16
|
+
export * from './lib/components/create-agent-slidein.component';
|
|
17
|
+
//# sourceMappingURL=public-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,SAAS;AACT,cAAc,qBAAqB,CAAC;AAEpC,WAAW;AACX,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AAEpD,yBAAyB;AACzB,cAAc,oDAAoD,CAAC;AACnE,cAAc,qDAAqD,CAAC;AACpE,cAAc,wDAAwD,CAAC;AAEvE,0BAA0B;AAC1B,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-agents",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
]
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "MemberJunction: Reusable Angular components for AI Agent management including permissions panel, dialog, and slideover",
|
|
5
|
+
"main": "./dist/public-api.js",
|
|
6
|
+
"typings": "./dist/public-api.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"/dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
|
+
"build": "ngc"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [],
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@angular/compiler": "21.1.3",
|
|
19
|
+
"@angular/compiler-cli": "21.1.3",
|
|
20
|
+
"sass": "^1.97.3"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@angular/common": "21.1.3",
|
|
24
|
+
"@angular/core": "21.1.3",
|
|
25
|
+
"@angular/platform-browser": "21.1.3"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@angular/animations": "21.1.3",
|
|
29
|
+
"@angular/cdk": "21.1.3",
|
|
30
|
+
"@angular/forms": "21.1.3",
|
|
31
|
+
"@memberjunction/core": "4.0.0",
|
|
32
|
+
"@memberjunction/core-entities": "4.0.0",
|
|
33
|
+
"@memberjunction/global": "4.0.0",
|
|
34
|
+
"@memberjunction/ai-core-plus": "4.0.0",
|
|
35
|
+
"@memberjunction/ai-engine-base": "4.0.0",
|
|
36
|
+
"@memberjunction/ng-shared": "4.0.0",
|
|
37
|
+
"rxjs": "^7.8.2",
|
|
38
|
+
"tslib": "^2.8.1"
|
|
39
|
+
},
|
|
40
|
+
"sideEffects": false,
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "https://github.com/MemberJunction/MJ"
|
|
44
|
+
}
|
|
10
45
|
}
|
package/README.md
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# @memberjunction/ng-agents
|
|
2
|
-
|
|
3
|
-
## ⚠️ IMPORTANT NOTICE ⚠️
|
|
4
|
-
|
|
5
|
-
**This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
|
|
6
|
-
|
|
7
|
-
This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
|
|
8
|
-
|
|
9
|
-
## Purpose
|
|
10
|
-
|
|
11
|
-
This package exists to:
|
|
12
|
-
1. Configure OIDC trusted publishing for the package name `@memberjunction/ng-agents`
|
|
13
|
-
2. Enable secure, token-less publishing from CI/CD workflows
|
|
14
|
-
3. Establish provenance for packages published under this name
|
|
15
|
-
|
|
16
|
-
## What is OIDC Trusted Publishing?
|
|
17
|
-
|
|
18
|
-
OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
|
|
19
|
-
|
|
20
|
-
## Setup Instructions
|
|
21
|
-
|
|
22
|
-
To properly configure OIDC trusted publishing for this package:
|
|
23
|
-
|
|
24
|
-
1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
|
|
25
|
-
2. Configure the trusted publisher (e.g., GitHub Actions)
|
|
26
|
-
3. Specify the repository and workflow that should be allowed to publish
|
|
27
|
-
4. Use the configured workflow to publish your actual package
|
|
28
|
-
|
|
29
|
-
## DO NOT USE THIS PACKAGE
|
|
30
|
-
|
|
31
|
-
This package is a placeholder for OIDC configuration only. It:
|
|
32
|
-
- Contains no executable code
|
|
33
|
-
- Provides no functionality
|
|
34
|
-
- Should not be installed as a dependency
|
|
35
|
-
- Exists only for administrative purposes
|
|
36
|
-
|
|
37
|
-
## More Information
|
|
38
|
-
|
|
39
|
-
For more details about npm's trusted publishing feature, see:
|
|
40
|
-
- [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
|
|
41
|
-
- [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
**Maintained for OIDC setup purposes only**
|