only_ever_generator 6.0.13 → 6.0.15

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.
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/bootstrap/app.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAO5D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAK/D,qBAAa,iBAAiB;IACrB,OAAO,EAAE,MAAM,CAAM;IACrB,aAAa,EAAE,aAAa,CAAC;IAGpC,aAAa,CAAC,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC;QACf,QAAQ,EAAE,cAAc,CAAC;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KACd,CAAa;IACd,iBAAiB,EAAE,MAAM,CAAM;IAC/B,gBAAgB,EAAE,MAAM,CAAM;IACvB,oBAAoB,EAAE,OAAO,CAAS;IACtC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,MAAM,CAAC;IAChC,0BAA0B,EAAE,MAAM,CAAC;IAC1C,mBAAmB,EAAE;QACnB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,EAAE,MAAM,CAAC;KACvB,CAIC;IACF,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IACnC,gBAAgB,CAAC,EAAE,GAAG,CAAa;IACnC,eAAe,EAAE,GAAG,CAAa;IACjC,iBAAiB,KAAM;gBAGrB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,aAAa,EAChC,mBAAmB,EAAE,MAAM,EAC3B,u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;IAkB1B,gBAAgB;IAyBhB,oBAAoB,CAAC,gBAAgB,EAAE,GAAG;;;;IAuB1C,kBAAkB,CAAC,gBAAgB,EAAE,GAAG;;;;;;;;;;;;;;;;;;IASxC,kBAAkB,CACtB,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,EAAE,EACH,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;IASZ,mBAAmB,CACvB,cAAc,EAAE;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,EAAE,EACH,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CAUpB"}
@@ -69,9 +69,9 @@ class OnlyEverGenerator {
69
69
  console.log("Generating typology");
70
70
  this.typologyResponse = yield this.generateTypology();
71
71
  console.log("Typology generated");
72
- console.log((_b = (_a = this.typologyResponse) === null || _a === void 0 ? void 0 : _a.learn_value) === null || _b === void 0 ? void 0 : _b.value);
73
- if (((_c = this.typologyResponse) === null || _c === void 0 ? void 0 : _c.status_code) == 200 &&
74
- ((_f = (_e = (_d = this.typologyResponse) === null || _d === void 0 ? void 0 : _d.learn_value) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : 30) > 30) {
72
+ console.log((_b = (_a = this.typologyResponse) === null || _a === void 0 ? void 0 : _a.generate_cards) === null || _b === void 0 ? void 0 : _b.value);
73
+ if (((_c = this.typologyResponse) === null || _c === void 0 ? void 0 : _c.status_code) == 200 ||
74
+ ((_f = (_e = (_d = this.typologyResponse) === null || _d === void 0 ? void 0 : _d.generate_cards) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : 30) > 30 == true) {
75
75
  console.log("Concept facts generating");
76
76
  const response = yield this.generateConceptFacts(this.typologyResponse);
77
77
  this.typologyResponse.concepts_facts =
@@ -126,7 +126,6 @@ class OnlyEverGenerator {
126
126
  });
127
127
  }
128
128
  }
129
- console.log(responseToReturn);
130
129
  return responseToReturn;
131
130
  }
132
131
  catch (error) {
@@ -136,11 +135,9 @@ class OnlyEverGenerator {
136
135
  });
137
136
  }
138
137
  shouldTheCardBeGeneratedAfterTypologyResponse() {
139
- var _a, _b, _c, _d, _e, _f;
140
- console.log("shouldTheCardBeGeneratedAfterTypologyResponse", this.typologyResponse);
141
- console.log("shouldTheCardBeGeneratedAfterTypologyResponse", ((_c = (_b = (_a = this.typologyResponse) === null || _a === void 0 ? void 0 : _a.learn_value) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : 30) > 30);
138
+ var _a, _b, _c;
142
139
  if (this.typologyResponse) {
143
- return ((_f = (_e = (_d = this.typologyResponse) === null || _d === void 0 ? void 0 : _d.learn_value) === null || _e === void 0 ? void 0 : _e.value) !== null && _f !== void 0 ? _f : 30) > 30;
140
+ return ((_c = (_b = (_a = this.typologyResponse) === null || _a === void 0 ? void 0 : _a.generate_cards) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : 30) > 30;
144
141
  }
145
142
  else {
146
143
  return false;
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/bootstrap/app.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA2D;AAC3D,wEAAmE;AACnE,iEAA4D;AAC5D,yEAAqE;AACrE,0DAAsD;AACtD,qFAAiF;AACjF,mGAA+F;AAC/F,qGAAiG;AAMjG,mFAA8E;AAE9E,MAAa,iBAAiB;IAiC5B,YACE,MAAc,EACd,KAAa,EACb,iBAAgC,EAChC,mBAA2B,EAC3B,uBAA+B,EAC/B,0BAAkC,EAClC,mBAIC,EACD,oBAA6B;QA5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UAAU,GAAG,IAAI,wCAAkB,EAAE,CAAC,WAAW,CACrD,cAAc,EACd,QAAQ,CACT,CAAC;YACF,OAAO,UAAU,CAAC;QACpB,CAAC;KAAA;IAEK,mBAAmB,CACvB,cAMG,EACH,QAAgB,EAChB,SAAiB;;YAEjB,MAAM,UAAU,GAAG,MAAM,IAAI,0CAAmB,EAAE,CAAC,WAAW,CAC5D,cAAc,EACd,QAAQ,EACR,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,GAAG,CACjB,CAAC;YAEF,OAAO,UAAU,CAAC;QACpB,CAAC;KAAA;CACF;AA3RD,8CA2RC"}
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ Object.defineProperty(exports, "OnlyEverGenerator", { enumerable: true, get: fun
31
31
  // };
32
32
  // setUp();
33
33
  // const source = await database.collection("_source").findOne({
34
- // _id: new ObjectId("68b114d143401993bbd71213"),
34
+ // _id: new ObjectId("68b6af4273a835efd5203fcf"),
35
35
  // });
36
36
  // const contentForGen = {
37
37
  // prompt: {
@@ -82,7 +82,7 @@ Object.defineProperty(exports, "OnlyEverGenerator", { enumerable: true, get: fun
82
82
  // },
83
83
  // false
84
84
  // );
85
- // const response = await onlyEverGenerator.generate(false, true);
85
+ // const response = await onlyEverGenerator.generate(true, true);
86
86
  // console.log(response);
87
87
  // })();
88
88
  // const data = `{"test_cards":[{"type":"mcq","card_content":{"prompt":"When was John Sculley III born?","choices":[{"choice":"April 6, 1939","is_correct":true},{"choice":"March 6, 1940","is_correct":false},{"choice":"April 6, 1949","is_correct":false},{"choice":"June 6, 1939","is_correct":false}]},"explanation":"Basic biographical fact: his birth date is April 6, 1939.","concepts":[],"facts":["John Sculley III was born April 6, 1939."],"bloom_alignment":"Level 1 (Remember): direct recall of a specific date."},{"type":"mcq","card_content":{"prompt":"Although often called Pepsi's CEO, which statement about Sculley's Pepsi role is correct?","choices":[{"choice":"He was never CEO; Don Kendall remained Pepsi's CEO when Sculley departed.","is_correct":true},{"choice":"He succeeded Don Kendall as Pepsi's CEO.","is_correct":false},{"choice":"He left Pepsi as its sole founder.","is_correct":false},{"choice":"He was Pepsi's CFO, not an executive.","is_correct":false}]},"explanation":"Although commonly called Pepsi's CEO, Sculley was not CEO; Don Kendall remained CEO at his departure.","concepts":[],"facts":["Although often called Pepsi's CEO, Sculley was never CEO; Don Kendall remained Pepsi's CEO when Sculley departed."],"bloom_alignment":"Level 1 (Remember): asks learner to recognize a stated organizational fact."},{"type":"mcq","card_content":{"prompt":"Which recruiting line did Steve Jobs use to persuade Sculley to join Apple?","choices":[{"choice":"“Do you want to sell sugared water for the rest of your life? Or do you want to come with me and change the world?”","is_correct":true},{"choice":"“Join us and make computers affordable for everyone.”","is_correct":false},{"choice":"“Help us build a better soft drink advertisement.”","is_correct":false},{"choice":"“We need your engineering skills to build hardware.”","is_correct":false}]},"explanation":"Jobs used this famous pitch to recruit Sculley from Pepsi to Apple.","concepts":[],"facts":["Steve Jobs persuaded Sculley to join Apple with the pitch: “Do you want to sell sugared water for the rest of your life? Or do you want to come with me and change the world?”"],"bloom_alignment":"Level 1 (Remember): recall of a direct quotation from the text."},{"type":"mcq","card_content":{"prompt":"What compensation did Sculley receive when he joined Apple?","choices":[{"choice":"A $1 million signing bonus, $1 million in annual pay, and options on 350,000 Apple shares","is_correct":true},{"choice":"No signing bonus but a salary of $500,000","is_correct":false},{"choice":"Only stock options totaling 350,000 shares","is_correct":false},{"choice":"A $5 million signing bonus and no options","is_correct":false}]},"explanation":"He received a $1M signing bonus, $1M annual pay, and options on 350,000 shares when joining Apple.","concepts":[],"facts":["Sculley received a $1 million signing bonus, $1 million in annual pay, and options on 350,000 Apple shares when he joined Apple."],"bloom_alignment":"Level 1 (Remember): straightforward recall of stated compensation details."},{"type":"mcq","card_content":{"prompt":"Why did Sculley raise the Macintosh's initial retail price from $1,995 to $2,495?","choices":[{"choice":"To fund higher profit margins and expensive advertising campaigns","is_correct":true},{"choice":"Because manufacturing costs doubled overnight","is_correct":false},{"choice":"To match IBM's pricing strategy","is_correct":false},{"choice":"To clear excess inventory of the Lisa","is_correct":false}]},"explanation":"He raised the price to fund higher margins and support costly advertising for the Macintosh launch.","concepts":[],"facts":["Sculley raised the Macintosh's initial retail price from the planned $1,995 to $2,495 to fund higher profit margins and expensive advertising campaigns."],"bloom_alignment":"Level 1 (Remember): recall of a specific managerial decision and its stated reason."},{"type":"mcq","card_content":{"prompt":"When did Sculley resign as CEO of Apple?","choices":[{"choice":"October 15, 1993","is_correct":true},{"choice":"May 15, 1993","is_correct":false},{"choice":"December 5, 1992","is_correct":false},{"choice":"January 1, 1994","is_correct":false}]},"explanation":"Following a weak quarter and internal disagreement, he resigned on October 15, 1993.","concepts":[],"facts":["After a weak first quarter in 1993 and internal disagreement over direction, Apple's board forced Sculley out; he resigned as CEO on October 15, 1993 and was replaced by Michael Spindler."],"bloom_alignment":"Level 1 (Remember): asks for a specific date from the text."},{"type":"mcq","card_content":{"prompt":"Which term did Sculley coin in reference to the Apple Newton?","choices":[{"choice":"personal digital assistant (PDA)","is_correct":true},{"choice":"smartphone","is_correct":false},{"choice":"tablet computer","is_correct":false},{"choice":"wearable computer","is_correct":false}]},"explanation":"Sculley coined the term 'personal digital assistant' (PDA) for the Apple Newton he launched.","concepts":[],"facts":["Sculley coined the term \"personal digital assistant\" (PDA) in reference to the Apple Newton, which he oversaw and launched in 1993."],"bloom_alignment":"Level 1 (Remember): direct recall of a coined term."},{"type":"mcq","card_content":{"prompt":"Which strategic mistake did Sculley later acknowledge about Apple's OS strategy?","choices":[{"choice":"Porting Apple's operating system to the PowerPC architecture instead of targeting Intel","is_correct":true},{"choice":"Licensing System 7 to Unix vendors","is_correct":false},{"choice":"Keeping classic Mac OS compatible with Microsoft Office only","is_correct":false},{"choice":"Not developing a smartphone in 1995","is_correct":false}]},"explanation":"He later said moving to PowerPC rather than targeting Intel was his greatest strategic mistake.","concepts":[],"facts":["Sculley later acknowledged porting Apple's operating system to the PowerPC architecture instead of targeting Intel was his greatest strategic mistake."],"bloom_alignment":"Level 1 (Remember): recall of a stated retrospective judgment."},{"type":"cloze","card_content":{"prompt":"Sculley described his marketing approach as \"{{experience marketing}},\" focusing on selling the user experience rather than just the product.","correct_options":["Sculley described his marketing approach as \"experience marketing,\" focusing on selling the user experience rather than just the product."],"incorrect_options":["product marketing","feature marketing","transactional marketing","performance marketing"]},"explanation":"He used the phrase 'experience marketing' to summarize focusing on the user's experience over the product alone.","concepts":["Sculley described his marketing approach as \"experience marketing,\" focusing on selling the user experience rather than just the product."],"facts":[],"bloom_alignment":"Level 1 (Remember): recall of a specific phrase used to describe his marketing style."},{"type":"cloze","card_content":{"prompt":"Sculley initiated an extended in-home product test with {{350 families}} that led Pepsi to launch larger and more varied soft-drink packages, including a {{two-liter bottle developed with DuPont}}.","correct_options":["Sculley initiated an extended in-home product test with 350 families that led Pepsi to launch larger and more varied soft-drink packages, including a two-liter bottle developed with DuPont."],"incorrect_options":["300 families","one-liter bottle","two-liter bottle developed with Coca-Cola","families of 500"]},"explanation":"An in-home test with 350 families led to new package sizes, including a two-liter bottle developed with DuPont.","concepts":[],"facts":["Sculley initiated an extended in-home product test with 350 families that led Pepsi to launch larger and more varied soft-drink packages, including a two-liter bottle developed with DuPont."],"bloom_alignment":"Level 1 (Remember): direct recall of specific program details (numbers and product outcome)."},{"type":"cloze","card_content":{"prompt":"Pepsi paid roughly {{\$200,000–\$300,000}} per TV spot under Sculley, versus industry norms of $15,000–$75,000.","correct_options":["Sculley increased Pepsi's advertising spend during the Cola Wars, with Pepsi paying roughly $200,000–$300,000 per TV spot versus industry norms of $15,000–$75,000."],"incorrect_options":["$15,000–$75,000","$100,000–$150,000","$500,000–$600,000"],"explanation":"The Cola Wars saw Pepsi pay about $200,000–$300,000 per TV spot, far above typical industry rates at the time.","concepts":[],"facts":["Sculley increased Pepsi's advertising spend during the Cola Wars, with Pepsi paying roughly $200,000–$300,000 per TV spot versus industry norms of $15,000–$75,000."],"bloom_alignment":"Level 1 (Remember): asks learners to recognize a numeric range stated in the text."},{"type":"cloze","card_content":{"prompt":"Sculley spent much of his childhood in {{Bermuda}} before returning to New York.","correct_options":["Sculley spent much of his childhood in Bermuda before returning to New York."],"incorrect_options":["Bahamas","Bermuda and then Canada","London","Bermuda and then Florida"],"explanation":"He and his brothers spent much of their childhood in Bermuda before moving back to New York.","concepts":[],"facts":["Sculley spent much of his childhood in Bermuda before returning to New York."],"bloom_alignment":"Level 1 (Remember): recall of a simple biographical location."},{"type":"cloze","card_content":{"prompt":"Sculley earned an MBA from the {{Wharton School of the University of Pennsylvania}}.","correct_options":["Sculley earned an MBA from the Wharton School of the University of Pennsylvania."],"incorrect_options":["Harvard Business School","Columbia Business School","Stanford Graduate School of Business"],"explanation":"His graduate degree was an MBA from Wharton at the University of Pennsylvania.","concepts":[],"facts":["Sculley earned an MBA from the Wharton School of the University of Pennsylvania."],"bloom_alignment":"Level 1 (Remember): direct recall of his educational credential."},{"type":"cloze","card_content":{"prompt":"Under Sculley's leadership Apple introduced the {{PowerBook in 1991}} after earlier learning from the bulky Macintosh Portable.","correct_options":["Under Sculley's leadership Apple introduced the PowerBook in 1991 after earlier learning from the bulky Macintosh Portable."],"incorrect_options":["PowerBook in 1989","Macintosh Portable in 1991","Newton in 1991"],"explanation":"After lessons from the Macintosh Portable, Apple released the more successful PowerBook in 1991 under Sculley's direction.","concepts":[],"facts":["Under Sculley's leadership Apple introduced the PowerBook in 1991 after earlier learning from the bulky Macintosh Portable."],"bloom_alignment":"Level 1 (Remember): recall of a product release and year."},{"type":"cloze","card_content":{"prompt":"Apple released {{System 7}} in 1991, a major OS upgrade that added color and networking features.","correct_options":["Apple released System 7 in 1991, a major OS upgrade that added color and networking features and remained the classic Mac OS architecture until 2001."],"incorrect_options":["System 6","Mac OS X","System 8"],"explanation":"System 7 (1991) added color and networking and remained the classic Mac OS basis until 2001.","concepts":[],"facts":["Apple released System 7 in 1991, a major OS upgrade that added color and networking features and remained the classic Mac OS architecture until 2001."],"bloom_alignment":"Level 1 (Remember): asks learner to recall the OS name and its significance."},{"type":"cloze","card_content":{"prompt":"Sculley agreed to license parts of the Macintosh graphical user interface to {{Microsoft}} under pressure.","correct_options":["Sculley agreed to license parts of the Macintosh graphical user interface to Microsoft under pressure, a decision that affected the Apple v. Microsoft lawsuit."],"incorrect_options":["IBM","Sun Microsystems","Oracle"],"explanation":"Under pressure, Sculley agreed to license GUI elements to Microsoft, a factor in the later lawsuit.","concepts":[],"facts":["Sculley agreed to license parts of the Macintosh graphical user interface to Microsoft under pressure, a decision that affected the Apple v. Microsoft lawsuit."],"bloom_alignment":"Level 1 (Remember): recognition of which company received GUI licensing under Sculley's decision."},{"type":"match","card_content":[{"left_item":"Lisa computer (Jan 1983)","right_item":"Poor sales; unsold units repurposed as 'Macintosh XL'"},{"left_item":"Power struggle","right_item":"Jobs focused on future innovation; Sculley emphasized current product lines and profitability"},{"left_item":"Apple II role","right_item":"Sustained cash flow while supporting Macintosh launch"},{"left_item":"Macintosh GUI license","right_item":"Agreement under pressure that affected Apple v. Microsoft lawsuit"},{"left_item":"Macintosh initial price change","right_item":"Raised from $1,995 to $2,495 to fund advertising"}],"explanation":"Match products and managerial actions to their outcomes during Sculley's Apple tenure (Lisa repurposing, power struggle, Apple II support, GUI license, price increase).","concepts":["Power struggle concept: Steve Jobs focused on future innovation while Sculley emphasized current product lines and profitability, leading to escalating conflicts over management and product direction."],"facts":["The Lisa computer, released January 1983, had poor sales; Apple later repurposed unsold Lisa units as the \"Macintosh XL\" to sell them as professional Macs.","Sculley helped sustain the Apple II cash flow while supporting the marketing launch of the Macintosh.","Sculley raised the Macintosh's initial retail price from the planned $1,995 to $2,495 to fund higher profit margins and expensive advertising campaigns.","Sculley agreed to license parts of the Macintosh graphical user interface to Microsoft under pressure, a decision that affected the Apple v. Microsoft lawsuit."],"bloom_alignment":"Level 1 – recall of paired facts and outcomes."},{"type":"match","card_content":[{"left_item":"MetroPCS","right_item":"Founding investor; helped guide brand before acquisition by T-Mobile in 2013"},{"left_item":"NFO Research","right_item":"Built from $25 million to $550 million in revenue and sold to IPG for $850 million"},{"left_item":"Political fundraiser","right_item":"Hosted a fundraiser for Republican Tom Campbell; ties with Hillary Clinton on education council"},{"left_item":"Screen portrayals","right_item":"Allan Royal (1999), Matthew Modine (2013), Jeff Daniels (2015)"},{"left_item":"InPhonic / board roles","right_item":"Helped launch, advised, and served on boards of internet and startup companies"}],"explanation":"Match Sculley's post-Apple investments, political activities, and media portrayals to short descriptions.","concepts":[],"facts":["Sculley was a founding investor in MetroPCS (formerly General Wireless) and helped guide its brand marketing before its acquisition by T-Mobile in 2013.","Sculley built NFO Research from $25 million to $550 million in revenue and sold it to IPG for $850 million.","Sculley hosted a political fundraiser in the early 1990s for Republican Tom Campbell and had public ties with Hillary Clinton through service on a national education council.","Sculley has been portrayed in screen dramatizations by Allan Royal (Pirates of Silicon Valley, 1999), Matthew Modine (Jobs, 2013), and Jeff Daniels (Steve Jobs, 2015)."],"bloom_alignment":"Level 1 – straightforward label-to-description matching."},{"type":"match","card_content":[{"left_item":"Marriage to Ruth (1960)","right_item":"Married Ruth, had two children, divorced in 1965"},{"left_item":"2016 Japan moment","right_item":"Broke down in tears after seeing Steve Jobs's autograph in a sushi restaurant"},{"left_item":"Apple signing package","right_item":"$1M signing bonus, $1M annual pay, options on 350,000 Apple shares"},{"left_item":"Pepsi leadership status","right_item":"Often called Pepsi's CEO but Don Kendall remained CEO when Sculley departed"},{"left_item":"Pepsi advertising spend","right_item":"Pepsi paid roughly $200,000–$300,000 per TV spot during the Cola Wars"}],"explanation":"Match personal events and notable career facts to their descriptions (marriage, emotional moment, Apple compensation, Pepsi role, ad spend).","concepts":[],"facts":["Sculley married Ruth (Donald Kendall's stepdaughter) in 1960, had two children, and divorced in 1965.","In 2016, Sculley experienced an emotional public moment in Japan when he saw Steve Jobs's autograph in a sushi restaurant and reportedly broke down in tears.","Sculley received a $1 million signing bonus, $1 million in annual pay, and options on 350,000 Apple shares when he joined Apple.","Although often called Pepsi's CEO, Sculley was never CEO; Don Kendall remained Pepsi's CEO when Sculley departed.","Sculley increased Pepsi's advertising spend during the Cola Wars, with Pepsi paying roughly $200,000–$300,000 per TV spot versus industry norms of $15,000–$75,000."],"bloom_alignment":"Level 1 – direct recall matching of personal and career facts."},{"type":"flash","card_content":{"front":"What is the concept behind strategic processor architecture decisions (PowerPC vs. Intel)?","back":"Choosing between architectures like PowerPC and Intel affects platform compatibility and long-term competitiveness for PC vendors."},"explanation":"Strategic processor choices determine software compatibility, vendor ecosystems, and long-term market position.","concepts":["Concept: Strategic processor architecture decisions (PowerPC vs. Intel) can determine platform compatibility and long-term competitiveness for PC vendors."],"facts":[],"bloom_alignment":"Level 1 (Remember): recalls the stated concept without analysis."},{"type":"flash","card_content":{"front":"What did Sculley predict in a 1987 Playboy interview?","back":"He predicted optical storage (CD‑ROM) would revolutionize personal-computer use, speculated the Soviet Union might land a person on Mars within 20 years, and described ideas later resembling the Knowledge Navigator."},"explanation":"The 1987 interview included predictions about CD‑ROM, Mars exploration, and proto-Knowledge Navigator ideas.","concepts":[],"facts":["Sculley predicted in a 1987 Playboy interview that optical storage (CD‑ROM) would revolutionize personal-computer use and speculated the Soviet Union might land a person on Mars within 20 years; he also described concepts later resembling the Knowledge Navigator."],"bloom_alignment":"Level 1 (Remember): requires recalling specific published predictions."}]}`;
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,iGAAiG;AACjG,+DAA+D;AAC/D,mGAAmG;AACnG,4FAA4F;AAC5F,yDAAyD;AACzD,uEAAuE;AACvE,8DAA8D;AAC9D,gFAAgF;AAChF,2DAA2D;AAC3D,iCAAiC;AACjC,yBAAyB;AACzB,qBAAqB;;;AAErB,yCAAoD;AAO3C,kGAPA,uBAAiB,OAOA;AAE1B,kDAAkD;AAElD,MAAM;AAEN,iBAAiB;AACjB,sBAAsB;AACtB,8KAA8K;AAC9K,+BAA+B;AAC/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C7C,uCAAuC;AACvC,kDAAkD;AAClD,mDAAmD;AACnD,eAAe;AACf,cAAc;AACd,WAAW;AACX,uBAAuB;AACvB,kCAAkC;AAClC,0BAA0B;AAC1B,SAAS;AACT,qDAAqD;AACrD,wBAAwB;AACxB,UAAU;AACV,8BAA8B;AAC9B,sBAAsB;AACtB,8EAA8E;AAC9E,wBAAwB;AACxB,yBAAyB;AACzB,sBAAsB;AACtB,8BAA8B;AAC9B,8BAA8B;AAC9B,2CAA2C;AAC3C,aAAa;AACb,WAAW;AACX,UAAU;AACV,SAAS;AACT,kBAAkB;AAClB,sBAAsB;AACtB,MAAM;AACN,QAAQ;AAER,4CAA4C;AAC5C,mBAAmB;AACnB,yBAAyB;AACzB,6CAA6C;AAC7C,OAAO;AACP,yBAAyB;AACzB,qBAAqB;AACrB,wBAAwB;AACxB,KAAK"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,iGAAiG;AACjG,+DAA+D;AAC/D,mGAAmG;AACnG,4FAA4F;AAC5F,yDAAyD;AACzD,uEAAuE;AACvE,8DAA8D;AAC9D,gFAAgF;AAChF,2DAA2D;AAC3D,iCAAiC;AACjC,yBAAyB;AACzB,qBAAqB;;;AAErB,yCAAoD;AAO3C,kGAPA,uBAAiB,OAOA;AAE1B,kDAAkD;AAElD,MAAM;AAEN,iBAAiB;AACjB,sBAAsB;AACtB,8KAA8K;AAC9K,+BAA+B;AAC/B,yEAAyE;AACzE,qBAAqB;AACrB,OAAO;AACP,oCAAoC;AACpC,yEAAyE;AACzE,oBAAoB;AACpB,OAAO;AAEP,aAAa;AAEb,kEAAkE;AAClE,qDAAqD;AACrD,QAAQ;AAER,4BAA4B;AAC5B,gBAAgB;AAChB,sBAAsB;AACtB,6BAA6B;AAC7B,SAAS;AACT,iBAAiB;AACjB,kDAAkD;AAClD,oCAAoC;AACpC,yCAAyC;AACzC,0CAA0C;AAC1C,wCAAwC;AACxC,sC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aAAa;AACb,WAAW;AACX,UAAU;AACV,SAAS;AACT,kBAAkB;AAClB,sBAAsB;AACtB,MAAM;AACN,QAAQ;AAER,4CAA4C;AAC5C,mBAAmB;AACnB,yBAAyB;AACzB,6CAA6C;AAC7C,OAAO;AACP,yBAAyB;AACzB,qBAAqB;AACrB,wBAAwB;AACxB,KAAK"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "only_ever_generator",
3
- "version": "6.0.13",
3
+ "version": "6.0.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -102,11 +102,11 @@ export class OnlyEverGenerator {
102
102
  console.log("Generating typology");
103
103
  this.typologyResponse = await this.generateTypology();
104
104
  console.log("Typology generated");
105
- console.log(this.typologyResponse?.learn_value?.value);
105
+ console.log(this.typologyResponse?.generate_cards?.value);
106
106
 
107
107
  if (
108
- this.typologyResponse?.status_code == 200 &&
109
- (this.typologyResponse?.learn_value?.value ?? 30) > 30
108
+ this.typologyResponse?.status_code == 200 ||
109
+ (this.typologyResponse?.generate_cards?.value ?? 30) > 30 == true
110
110
  ) {
111
111
  console.log("Concept facts generating");
112
112
  const response = await this.generateConceptFacts(
@@ -171,7 +171,6 @@ export class OnlyEverGenerator {
171
171
  });
172
172
  }
173
173
  }
174
- console.log(responseToReturn);
175
174
  return responseToReturn;
176
175
  } catch (error) {
177
176
  console.log(error);
@@ -180,16 +179,8 @@ export class OnlyEverGenerator {
180
179
  }
181
180
 
182
181
  shouldTheCardBeGeneratedAfterTypologyResponse() {
183
- console.log(
184
- "shouldTheCardBeGeneratedAfterTypologyResponse",
185
- this.typologyResponse
186
- );
187
- console.log(
188
- "shouldTheCardBeGeneratedAfterTypologyResponse",
189
- (this.typologyResponse?.learn_value?.value ?? 30) > 30
190
- );
191
182
  if (this.typologyResponse) {
192
- return (this.typologyResponse?.learn_value?.value ?? 30) > 30;
183
+ return (this.typologyResponse?.generate_cards?.value ?? 30) > 30;
193
184
  } else {
194
185
  return false;
195
186
  }
package/src/index.ts CHANGED
@@ -40,7 +40,7 @@ export { OnlyEverGenerator };
40
40
  // setUp();
41
41
 
42
42
  // const source = await database.collection("_source").findOne({
43
- // _id: new ObjectId("68b114d143401993bbd71213"),
43
+ // _id: new ObjectId("68b6af4273a835efd5203fcf"),
44
44
  // });
45
45
 
46
46
  // const contentForGen = {
@@ -94,7 +94,7 @@ export { OnlyEverGenerator };
94
94
  // },
95
95
  // false
96
96
  // );
97
- // const response = await onlyEverGenerator.generate(false, true);
97
+ // const response = await onlyEverGenerator.generate(true, true);
98
98
  // console.log(response);
99
99
  // })();
100
100
  // const data = `{"test_cards":[{"type":"mcq","card_content":{"prompt":"When was John Sculley III born?","choices":[{"choice":"April 6, 1939","is_correct":true},{"choice":"March 6, 1940","is_correct":false},{"choice":"April 6, 1949","is_correct":false},{"choice":"June 6, 1939","is_correct":false}]},"explanation":"Basic biographical fact: his birth date is April 6, 1939.","concepts":[],"facts":["John Sculley III was born April 6, 1939."],"bloom_alignment":"Level 1 (Remember): direct recall of a specific date."},{"type":"mcq","card_content":{"prompt":"Although often called Pepsi's CEO, which statement about Sculley's Pepsi role is correct?","choices":[{"choice":"He was never CEO; Don Kendall remained Pepsi's CEO when Sculley departed.","is_correct":true},{"choice":"He succeeded Don Kendall as Pepsi's CEO.","is_correct":false},{"choice":"He left Pepsi as its sole founder.","is_correct":false},{"choice":"He was Pepsi's CFO, not an executive.","is_correct":false}]},"explanation":"Although commonly called Pepsi's CEO, Sculley was not CEO; Don Kendall remained CEO at his departure.","concepts":[],"facts":["Although often called Pepsi's CEO, Sculley was never CEO; Don Kendall remained Pepsi's CEO when Sculley departed."],"bloom_alignment":"Level 1 (Remember): asks learner to recognize a stated organizational fact."},{"type":"mcq","card_content":{"prompt":"Which recruiting line did Steve Jobs use to persuade Sculley to join Apple?","choices":[{"choice":"“Do you want to sell sugared water for the rest of your life? Or do you want to come with me and change the world?”","is_correct":true},{"choice":"“Join us and make computers affordable for everyone.”","is_correct":false},{"choice":"“Help us build a better soft drink advertisement.”","is_correct":false},{"choice":"“We need your engineering skills to build hardware.”","is_correct":false}]},"explanation":"Jobs used this famous pitch to recruit Sculley from Pepsi to Apple.","concepts":[],"facts":["Steve Jobs persuaded Sculley to join Apple with the pitch: “Do you want to sell sugared water for the rest of your life? Or do you want to come with me and change the world?”"],"bloom_alignment":"Level 1 (Remember): recall of a direct quotation from the text."},{"type":"mcq","card_content":{"prompt":"What compensation did Sculley receive when he joined Apple?","choices":[{"choice":"A $1 million signing bonus, $1 million in annual pay, and options on 350,000 Apple shares","is_correct":true},{"choice":"No signing bonus but a salary of $500,000","is_correct":false},{"choice":"Only stock options totaling 350,000 shares","is_correct":false},{"choice":"A $5 million signing bonus and no options","is_correct":false}]},"explanation":"He received a $1M signing bonus, $1M annual pay, and options on 350,000 shares when joining Apple.","concepts":[],"facts":["Sculley received a $1 million signing bonus, $1 million in annual pay, and options on 350,000 Apple shares when he joined Apple."],"bloom_alignment":"Level 1 (Remember): straightforward recall of stated compensation details."},{"type":"mcq","card_content":{"prompt":"Why did Sculley raise the Macintosh's initial retail price from $1,995 to $2,495?","choices":[{"choice":"To fund higher profit margins and expensive advertising campaigns","is_correct":true},{"choice":"Because manufacturing costs doubled overnight","is_correct":false},{"choice":"To match IBM's pricing strategy","is_correct":false},{"choice":"To clear excess inventory of the Lisa","is_correct":false}]},"explanation":"He raised the price to fund higher margins and support costly advertising for the Macintosh launch.","concepts":[],"facts":["Sculley raised the Macintosh's initial retail price from the planned $1,995 to $2,495 to fund higher profit margins and expensive advertising campaigns."],"bloom_alignment":"Level 1 (Remember): recall of a specific managerial decision and its stated reason."},{"type":"mcq","card_content":{"prompt":"When did Sculley resign as CEO of Apple?","choices":[{"choice":"October 15, 1993","is_correct":true},{"choice":"May 15, 1993","is_correct":false},{"choice":"December 5, 1992","is_correct":false},{"choice":"January 1, 1994","is_correct":false}]},"explanation":"Following a weak quarter and internal disagreement, he resigned on October 15, 1993.","concepts":[],"facts":["After a weak first quarter in 1993 and internal disagreement over direction, Apple's board forced Sculley out; he resigned as CEO on October 15, 1993 and was replaced by Michael Spindler."],"bloom_alignment":"Level 1 (Remember): asks for a specific date from the text."},{"type":"mcq","card_content":{"prompt":"Which term did Sculley coin in reference to the Apple Newton?","choices":[{"choice":"personal digital assistant (PDA)","is_correct":true},{"choice":"smartphone","is_correct":false},{"choice":"tablet computer","is_correct":false},{"choice":"wearable computer","is_correct":false}]},"explanation":"Sculley coined the term 'personal digital assistant' (PDA) for the Apple Newton he launched.","concepts":[],"facts":["Sculley coined the term \"personal digital assistant\" (PDA) in reference to the Apple Newton, which he oversaw and launched in 1993."],"bloom_alignment":"Level 1 (Remember): direct recall of a coined term."},{"type":"mcq","card_content":{"prompt":"Which strategic mistake did Sculley later acknowledge about Apple's OS strategy?","choices":[{"choice":"Porting Apple's operating system to the PowerPC architecture instead of targeting Intel","is_correct":true},{"choice":"Licensing System 7 to Unix vendors","is_correct":false},{"choice":"Keeping classic Mac OS compatible with Microsoft Office only","is_correct":false},{"choice":"Not developing a smartphone in 1995","is_correct":false}]},"explanation":"He later said moving to PowerPC rather than targeting Intel was his greatest strategic mistake.","concepts":[],"facts":["Sculley later acknowledged porting Apple's operating system to the PowerPC architecture instead of targeting Intel was his greatest strategic mistake."],"bloom_alignment":"Level 1 (Remember): recall of a stated retrospective judgment."},{"type":"cloze","card_content":{"prompt":"Sculley described his marketing approach as \"{{experience marketing}},\" focusing on selling the user experience rather than just the product.","correct_options":["Sculley described his marketing approach as \"experience marketing,\" focusing on selling the user experience rather than just the product."],"incorrect_options":["product marketing","feature marketing","transactional marketing","performance marketing"]},"explanation":"He used the phrase 'experience marketing' to summarize focusing on the user's experience over the product alone.","concepts":["Sculley described his marketing approach as \"experience marketing,\" focusing on selling the user experience rather than just the product."],"facts":[],"bloom_alignment":"Level 1 (Remember): recall of a specific phrase used to describe his marketing style."},{"type":"cloze","card_content":{"prompt":"Sculley initiated an extended in-home product test with {{350 families}} that led Pepsi to launch larger and more varied soft-drink packages, including a {{two-liter bottle developed with DuPont}}.","correct_options":["Sculley initiated an extended in-home product test with 350 families that led Pepsi to launch larger and more varied soft-drink packages, including a two-liter bottle developed with DuPont."],"incorrect_options":["300 families","one-liter bottle","two-liter bottle developed with Coca-Cola","families of 500"]},"explanation":"An in-home test with 350 families led to new package sizes, including a two-liter bottle developed with DuPont.","concepts":[],"facts":["Sculley initiated an extended in-home product test with 350 families that led Pepsi to launch larger and more varied soft-drink packages, including a two-liter bottle developed with DuPont."],"bloom_alignment":"Level 1 (Remember): direct recall of specific program details (numbers and product outcome)."},{"type":"cloze","card_content":{"prompt":"Pepsi paid roughly {{\$200,000–\$300,000}} per TV spot under Sculley, versus industry norms of $15,000–$75,000.","correct_options":["Sculley increased Pepsi's advertising spend during the Cola Wars, with Pepsi paying roughly $200,000–$300,000 per TV spot versus industry norms of $15,000–$75,000."],"incorrect_options":["$15,000–$75,000","$100,000–$150,000","$500,000–$600,000"],"explanation":"The Cola Wars saw Pepsi pay about $200,000–$300,000 per TV spot, far above typical industry rates at the time.","concepts":[],"facts":["Sculley increased Pepsi's advertising spend during the Cola Wars, with Pepsi paying roughly $200,000–$300,000 per TV spot versus industry norms of $15,000–$75,000."],"bloom_alignment":"Level 1 (Remember): asks learners to recognize a numeric range stated in the text."},{"type":"cloze","card_content":{"prompt":"Sculley spent much of his childhood in {{Bermuda}} before returning to New York.","correct_options":["Sculley spent much of his childhood in Bermuda before returning to New York."],"incorrect_options":["Bahamas","Bermuda and then Canada","London","Bermuda and then Florida"],"explanation":"He and his brothers spent much of their childhood in Bermuda before moving back to New York.","concepts":[],"facts":["Sculley spent much of his childhood in Bermuda before returning to New York."],"bloom_alignment":"Level 1 (Remember): recall of a simple biographical location."},{"type":"cloze","card_content":{"prompt":"Sculley earned an MBA from the {{Wharton School of the University of Pennsylvania}}.","correct_options":["Sculley earned an MBA from the Wharton School of the University of Pennsylvania."],"incorrect_options":["Harvard Business School","Columbia Business School","Stanford Graduate School of Business"],"explanation":"His graduate degree was an MBA from Wharton at the University of Pennsylvania.","concepts":[],"facts":["Sculley earned an MBA from the Wharton School of the University of Pennsylvania."],"bloom_alignment":"Level 1 (Remember): direct recall of his educational credential."},{"type":"cloze","card_content":{"prompt":"Under Sculley's leadership Apple introduced the {{PowerBook in 1991}} after earlier learning from the bulky Macintosh Portable.","correct_options":["Under Sculley's leadership Apple introduced the PowerBook in 1991 after earlier learning from the bulky Macintosh Portable."],"incorrect_options":["PowerBook in 1989","Macintosh Portable in 1991","Newton in 1991"],"explanation":"After lessons from the Macintosh Portable, Apple released the more successful PowerBook in 1991 under Sculley's direction.","concepts":[],"facts":["Under Sculley's leadership Apple introduced the PowerBook in 1991 after earlier learning from the bulky Macintosh Portable."],"bloom_alignment":"Level 1 (Remember): recall of a product release and year."},{"type":"cloze","card_content":{"prompt":"Apple released {{System 7}} in 1991, a major OS upgrade that added color and networking features.","correct_options":["Apple released System 7 in 1991, a major OS upgrade that added color and networking features and remained the classic Mac OS architecture until 2001."],"incorrect_options":["System 6","Mac OS X","System 8"],"explanation":"System 7 (1991) added color and networking and remained the classic Mac OS basis until 2001.","concepts":[],"facts":["Apple released System 7 in 1991, a major OS upgrade that added color and networking features and remained the classic Mac OS architecture until 2001."],"bloom_alignment":"Level 1 (Remember): asks learner to recall the OS name and its significance."},{"type":"cloze","card_content":{"prompt":"Sculley agreed to license parts of the Macintosh graphical user interface to {{Microsoft}} under pressure.","correct_options":["Sculley agreed to license parts of the Macintosh graphical user interface to Microsoft under pressure, a decision that affected the Apple v. Microsoft lawsuit."],"incorrect_options":["IBM","Sun Microsystems","Oracle"],"explanation":"Under pressure, Sculley agreed to license GUI elements to Microsoft, a factor in the later lawsuit.","concepts":[],"facts":["Sculley agreed to license parts of the Macintosh graphical user interface to Microsoft under pressure, a decision that affected the Apple v. Microsoft lawsuit."],"bloom_alignment":"Level 1 (Remember): recognition of which company received GUI licensing under Sculley's decision."},{"type":"match","card_content":[{"left_item":"Lisa computer (Jan 1983)","right_item":"Poor sales; unsold units repurposed as 'Macintosh XL'"},{"left_item":"Power struggle","right_item":"Jobs focused on future innovation; Sculley emphasized current product lines and profitability"},{"left_item":"Apple II role","right_item":"Sustained cash flow while supporting Macintosh launch"},{"left_item":"Macintosh GUI license","right_item":"Agreement under pressure that affected Apple v. Microsoft lawsuit"},{"left_item":"Macintosh initial price change","right_item":"Raised from $1,995 to $2,495 to fund advertising"}],"explanation":"Match products and managerial actions to their outcomes during Sculley's Apple tenure (Lisa repurposing, power struggle, Apple II support, GUI license, price increase).","concepts":["Power struggle concept: Steve Jobs focused on future innovation while Sculley emphasized current product lines and profitability, leading to escalating conflicts over management and product direction."],"facts":["The Lisa computer, released January 1983, had poor sales; Apple later repurposed unsold Lisa units as the \"Macintosh XL\" to sell them as professional Macs.","Sculley helped sustain the Apple II cash flow while supporting the marketing launch of the Macintosh.","Sculley raised the Macintosh's initial retail price from the planned $1,995 to $2,495 to fund higher profit margins and expensive advertising campaigns.","Sculley agreed to license parts of the Macintosh graphical user interface to Microsoft under pressure, a decision that affected the Apple v. Microsoft lawsuit."],"bloom_alignment":"Level 1 – recall of paired facts and outcomes."},{"type":"match","card_content":[{"left_item":"MetroPCS","right_item":"Founding investor; helped guide brand before acquisition by T-Mobile in 2013"},{"left_item":"NFO Research","right_item":"Built from $25 million to $550 million in revenue and sold to IPG for $850 million"},{"left_item":"Political fundraiser","right_item":"Hosted a fundraiser for Republican Tom Campbell; ties with Hillary Clinton on education council"},{"left_item":"Screen portrayals","right_item":"Allan Royal (1999), Matthew Modine (2013), Jeff Daniels (2015)"},{"left_item":"InPhonic / board roles","right_item":"Helped launch, advised, and served on boards of internet and startup companies"}],"explanation":"Match Sculley's post-Apple investments, political activities, and media portrayals to short descriptions.","concepts":[],"facts":["Sculley was a founding investor in MetroPCS (formerly General Wireless) and helped guide its brand marketing before its acquisition by T-Mobile in 2013.","Sculley built NFO Research from $25 million to $550 million in revenue and sold it to IPG for $850 million.","Sculley hosted a political fundraiser in the early 1990s for Republican Tom Campbell and had public ties with Hillary Clinton through service on a national education council.","Sculley has been portrayed in screen dramatizations by Allan Royal (Pirates of Silicon Valley, 1999), Matthew Modine (Jobs, 2013), and Jeff Daniels (Steve Jobs, 2015)."],"bloom_alignment":"Level 1 – straightforward label-to-description matching."},{"type":"match","card_content":[{"left_item":"Marriage to Ruth (1960)","right_item":"Married Ruth, had two children, divorced in 1965"},{"left_item":"2016 Japan moment","right_item":"Broke down in tears after seeing Steve Jobs's autograph in a sushi restaurant"},{"left_item":"Apple signing package","right_item":"$1M signing bonus, $1M annual pay, options on 350,000 Apple shares"},{"left_item":"Pepsi leadership status","right_item":"Often called Pepsi's CEO but Don Kendall remained CEO when Sculley departed"},{"left_item":"Pepsi advertising spend","right_item":"Pepsi paid roughly $200,000–$300,000 per TV spot during the Cola Wars"}],"explanation":"Match personal events and notable career facts to their descriptions (marriage, emotional moment, Apple compensation, Pepsi role, ad spend).","concepts":[],"facts":["Sculley married Ruth (Donald Kendall's stepdaughter) in 1960, had two children, and divorced in 1965.","In 2016, Sculley experienced an emotional public moment in Japan when he saw Steve Jobs's autograph in a sushi restaurant and reportedly broke down in tears.","Sculley received a $1 million signing bonus, $1 million in annual pay, and options on 350,000 Apple shares when he joined Apple.","Although often called Pepsi's CEO, Sculley was never CEO; Don Kendall remained Pepsi's CEO when Sculley departed.","Sculley increased Pepsi's advertising spend during the Cola Wars, with Pepsi paying roughly $200,000–$300,000 per TV spot versus industry norms of $15,000–$75,000."],"bloom_alignment":"Level 1 – direct recall matching of personal and career facts."},{"type":"flash","card_content":{"front":"What is the concept behind strategic processor architecture decisions (PowerPC vs. Intel)?","back":"Choosing between architectures like PowerPC and Intel affects platform compatibility and long-term competitiveness for PC vendors."},"explanation":"Strategic processor choices determine software compatibility, vendor ecosystems, and long-term market position.","concepts":["Concept: Strategic processor architecture decisions (PowerPC vs. Intel) can determine platform compatibility and long-term competitiveness for PC vendors."],"facts":[],"bloom_alignment":"Level 1 (Remember): recalls the stated concept without analysis."},{"type":"flash","card_content":{"front":"What did Sculley predict in a 1987 Playboy interview?","back":"He predicted optical storage (CD‑ROM) would revolutionize personal-computer use, speculated the Soviet Union might land a person on Mars within 20 years, and described ideas later resembling the Knowledge Navigator."},"explanation":"The 1987 interview included predictions about CD‑ROM, Mars exploration, and proto-Knowledge Navigator ideas.","concepts":[],"facts":["Sculley predicted in a 1987 Playboy interview that optical storage (CD‑ROM) would revolutionize personal-computer use and speculated the Soviet Union might land a person on Mars within 20 years; he also described concepts later resembling the Knowledge Navigator."],"bloom_alignment":"Level 1 (Remember): requires recalling specific published predictions."}]}`;