MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / append

Method append

src/common/action.ts:112–120  ·  view source on GitHub ↗
(action: ActionInitOpt)

Source from the content-addressed store, hash-verified

110 }
111
112 append(action: ActionInitOpt) {
113 if (!action.actionType) {
114 action.actionType = action.type;
115 }
116 if (this.actions.has(action.id)) {
117 throw "duplicated action id";
118 }
119 this.actions.set(action.id, action as ActionView);
120 }
121
122 init() {
123 const config = this.config;

Callers 8

initMethod · 0.95
promptRegisterFunction · 0.80
promptCreateMultiInputFunction · 0.80
promptCreateSelectFunction · 0.80
promptCreateCounterFunction · 0.80
constructorMethod · 0.80
getMenuMethod · 0.80

Calls 2

hasMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected