MCPcopy
hub / github.com/infinitered/gluegun / addCoreExtensions

Method addCoreExtensions

src/runtime/runtime.ts:52–72  ·  view source on GitHub ↗

* Adds the core extensions. These provide the basic features * available in gluegun, but follow a similar method * for extending the core as 3rd party extensions do.

(exclude: string[] = [])

Source from the content-addressed store, hash-verified

50 * for extending the core as 3rd party extensions do.
51 */
52 public addCoreExtensions(exclude: string[] = []): void {
53 const coreExtensions = [
54 'meta',
55 'strings',
56 'print',
57 'filesystem',
58 'semver',
59 'system',
60 'prompt',
61 'http',
62 'template',
63 'patching',
64 'package-manager',
65 ]
66
67 coreExtensions.forEach((ex) => {
68 if (!exclude.includes(ex)) {
69 this.addExtension(ex, require(`../core-extensions/${ex}-extension`))
70 }
71 })
72 }
73
74 /**
75 * Adds a command to the runtime.

Callers 11

createRuntimeFunction · 0.95
createMethod · 0.95
meta-tools.test.tsFile · 0.80

Calls 1

addExtensionMethod · 0.95

Tested by 1

createRuntimeFunction · 0.76